Commit Graph

1047 Commits

Author SHA1 Message Date
tamasmeszaros
c489663126 Add arrange support for unprintable items 2020-03-09 14:06:07 +01:00
bubnikv
42d4910c12 Merge branch 'ys_detach_btn' 2020-03-06 17:41:43 +01:00
David Kocik
e39e9b05ae keyboard and file menu shortcuts for save to sd card and eject 2020-03-06 15:35:47 +01:00
bubnikv
b3b800de65 Refactoring of RemovableDriveManager:
1) On Windows and Linux, the device enumeration now runs at a background
   thread, while it ran on the UI thread on idle, which may have been
   blocking on some rare Windows setups, see GH #3515 #3733 #3746 #3766
2) On OSX, the device enumeration now relies on OS callback, no
   polling is required.
3) Refactored for cleaner interface.
2020-03-06 15:10:58 +01:00
bubnikv
baad542d15 Refactoring of RemovableDriveManager
1) On Windows and Linux, polling of removable drives is done at a background
   thread, not at a UI thread.
2) On OSX, there is no polling, but a OS notification callback.
3) Refactored for clarity of the RemovableDriveManager interface.
2020-03-06 14:49:21 +01:00
bubnikv
3834ab7ede Merge branch 'master' into ys_detach_btn 2020-03-06 14:40:28 +01:00
YuSanka
6f67a5bccc Fixed :
* the editing of extruder color from PresetComboBox,
when incompatible filament preset is selected and red flag is shown.

*OSX specific bug : empty icons for PresetComboBox had non-scaled width
2020-03-06 14:22:14 +01:00
Enrico Turri
de7a09f833 Fixed conflicts after merge with master 2020-03-05 10:41:11 +01:00
Enrico Turri
dc3df3aec7 Removed temporary debug output and clean up 2020-03-05 10:14:12 +01:00
bubnikv
a2b7c6945c Merge remote-tracking branch 'remotes/origin/vb_3dconnexion_refactoring' 2020-03-05 09:56:06 +01:00
YuSanka
a85e455934 Localization:
- Deleted redundant whitespaces before semicolons.
- All "\t" extracted from the phrases (The PhraseApp used to the translations "doesn't see" it, and as a result all translations missed them)
2020-03-05 07:49:05 +01:00
Enrico Turri
dcf3565426 Attempt to fix crash on MAC when closing using Command+Q 2020-03-04 15:19:48 +01:00
Enrico Turri
1bff1f7460 Added temporary debug output to investigate crash on MAC when closing using Command+Q 2020-03-04 14:19:15 +01:00
bubnikv
0b96855c2e Reworked the 3DConnexion interfacing code to run the device
enumeration / connect / disconnect and read out at the background
thread only.
2020-03-04 11:36:36 +01:00
Lukas Matena
7589e4ebfc Fixed some more warnings 2020-03-03 15:53:26 +01:00
Lukas Matena
6918f11100 Removed SLA unused code
Mostly the dead-ends that were tried when hollowing was being implemented
2020-03-03 15:53:26 +01:00
Lukas Matena
50ebdf5293 Include cleanup in Plater, GLCanvas3D and GLGizmosManager 2020-03-03 15:53:26 +01:00
Enrico Turri
96f5430cee Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer into et_canvas_manager 2020-03-03 11:10:59 +01:00
Lukas Matena
bcd3842183 Fixing wxString::Format encoding mismatches (part 2) 2020-03-03 10:54:17 +01:00
Enrico Turri
d12cc6cb77 Removed temporary debug output 2020-03-03 08:34:03 +01:00
Enrico Turri
8b5a08a64a Added temporary debug output 2020-03-02 15:22:41 +01:00
Enrico Turri
9e06a5e8d6 Fix build on Linux and MAC 2020-03-02 13:09:12 +01:00
Enrico Turri
595128a90d View toolbar's initialization of icon size moved from GLCanvas3D::GLCanvas3D() to Plater::priv::priv() for OSX build 2020-03-02 12:45:04 +01:00
Enrico Turri
2f8970de86 Fixed conflicts after merge with master 2020-03-02 11:35:03 +01:00
Enrico Turri
0b629eb905 GLCanvas3DManager moved from being a static member of _3DScene to be a normal member of GUI_App 2020-03-02 10:58:46 +01:00
bubnikv
c9a75bb70a Fixed localization issue of the "Removable media unmounted" message.
Generalized the Slic3r::show_info() function to std::strings and
const char*
2020-02-29 12:03:07 +01:00
Enrico Turri
dff9af20a4 Follow-up of 47604b6326 -> Fixed layout at startup 2020-02-28 11:19:46 +01:00
Lukas Matena
abca180f9f More polishing of translations 2020-02-27 14:11:20 +01:00
bubnikv
b4d0d9610e Various changes in handling of profile compatiblilities
and the "show incompatible profiles" option.

It was not able to select the incompatible Print profile, which is
possible now.
(see Cannot select incompatible printer profile #3715)

When the Printer profile derived from the Prusa3D system profile was
active or a system Prusa3D profile was active, and when the Print profile
with the removed "inherits" field was active (or any other profile
derived from the "-- default --" profile was active), then the filament
selector offered just the profiles with the removed "inherits" field
(or any other profile derived from the "-- default--") profile.
This behavior has been now changed, so that in this scenario the Filament selector
will offer the Prusa3D vendor profiles compatible with the active Print
and Printer profile as well as the user profiles.

Slicer was also changed to keep an incompatible preset selected
at its respective tab if its respective "Red flag" is enabled.
For example, if an incompatible Print preset is selected and a Printer
profile is switched to another one which is not compatible with the active
Print preset that was red already, the active Print preset is
not switched if the Print "Red flag" is active. However, if the Print profile
was compatible before the Printer profile is switched and now the Print
profile becomes incompatible, another compatible Print profile is selected.

A likely bug in wxWidgets was worked around when switching a Print preset
on Plater, if the last item in the Print preset was active and incompatible,
and another Print preset was selected by the user. On Windows, an CBN_EDITCHANGE
is sent just after combo box selection change event and the CBN_EDITCHANGE
holds an index of the combo box item, which will be removed by the 1st event,
therefore leading to an assert in wxWidgets on CBN_EDITCHANGE. The workaround
is to disable processing of CBN_EDITCHANGE on Windows for the Plater
preset selection combo boxes.
2020-02-27 11:44:12 +01:00
David Kocik
70f5efbfc3 eject sd card/usb icon 2020-02-26 15:02:43 +01:00
Enrico Turri
69e1e46dd7 Fixed reload from disk for modifiers 2020-02-26 08:56:05 +01:00
Lukas Matena
f475d994b3 Fixup of previous commit - actually added the translation macros 2020-02-24 15:24:12 +01:00
Lukas Matena
e16786b701 Added a missing localization L mark 2020-02-24 14:54:44 +01:00
Lukas Matena
15ea6f5609 Several translation-related fixes
ConfigWizard name was missing translation macro in several places
Few typos corrected
Some string conversions fixed
Two strings were not marked for translation
2020-02-24 11:00:48 +01:00
bubnikv
a7ffd2a6fe GUI::show_error() is now generalized for std::string and const char*
Fixed return type of std::string translate_utf8() with context
(incorrectly returned wxString, should return std::string).
Fixed double translation of BackgroundSlicingProcess::validate() in Plater.
2020-02-21 13:38:06 +01:00
Lukas Matena
91cabe5832 Fixed few more encoding issues
All uncovered after disabling unsafe wxString conversions
2020-02-21 12:53:51 +01:00
YuSanka
487ac0423e Implemented time estimation for PausePrint (#3544)
DoubleSlider: fixed get_color_for_color_change_tick()
2020-02-20 17:33:43 +01:00
YuSanka
ae197ddd94 Added a shortcut to the tooltip for a "Send to printer" button (related to #3667)
+ Localization: fixed some phrases
2020-02-19 10:59:05 +01:00
YuSanka
5c6987137d Removed code which is redundant now,
but causes an issue #3642 (G-Code Export button visible in "non-default" position)

All Show/Hide() of active buttons are processed inside show_action_buttons() function
2020-02-18 15:45:17 +01:00
YuSanka
1693a56ea3 Suppress print info about Weight and cost, if they are equal to zero 2020-02-17 11:51:22 +01:00
YuSanka
23732864ab Fixed bug related to possibility of load several files as a multi-part object
Steps to repro:
 - set MMU printer
 - set SL1 printer
 - add two or more objects
 - select yes in "Multi-part object detected" dialog
2020-02-14 14:44:17 +01:00
YuSanka
3f27802c0a Fix of Crash when trying to select extruders for multiple parts (#3657) 2020-02-14 13:27:25 +01:00
Lukas Matena
2f3b665ac5 Fixup of 6d0cf16: Export hollowed STL 2020-02-13 13:49:18 +01:00
Enrico Turri
4a59a45d51 ENABLE_SHOW_SCENE_LABELS set as default 2020-02-13 13:24:52 +01:00
Enrico Turri
6914f688f8 ENABLE_BACKWARD_COMPATIBLE_RELOAD_FROM_DISK set as default 2020-02-13 12:43:19 +01:00
Enrico Turri
904263d231 ENABLE_CONFIGURABLE_PATHS_EXPORT_TO_3MF_AND_AMF set as default 2020-02-13 11:25:34 +01:00
Lukas Matena
6d0cf16797 Export STL exports hollowed & drilled mesh (if it is shown) 2020-02-11 11:15:44 +01:00
David Kocik
a6f1c41b94 eject button text correction 2020-02-07 15:13:20 +01:00
Enrico Turri
a1c0a29af2 ENABLE_BACKWARD_COMPATIBLE_RELOAD_FROM_DISK - Fixed inconsistencies for splitted and cutted objects 2020-02-07 09:49:48 +01:00
Enrico Turri
f37a31596c Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer into et_labels 2020-02-06 09:15:15 +01:00
bubnikv
495a71ed00 Implemented top_solid_min_thickness / bottom_solid_min_thickness.
The two new config keys define a minimum vertical shell thickness.
The top shell thickness is calculated as a maximum of sum over
top_solid_layers * layer heights and top_solid_min_thickness,
the bottom shell thickness is calculated as a maximum of sum over
bottom_solid_layers * layer heights and bottom_solid_min_thickness.

The results of the formula above are shown at the Print parameter page
below the two new values to hint the user about the interaction
of the old versus new config values.

top_solid_min_thickness has no meaning if top_solid_layers is zero,
bottom_solid_min_thickness has no meaning if bottom_solid_layers is zero.
2020-02-05 16:53:48 +01:00
Enrico Turri
5c4b481e35 Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer into et_labels 2020-02-05 15:27:20 +01:00
David Kocik
65b9ef6636 configuration updater
forced update dialog
check for updates button
check address when downloading bundles
2020-02-04 15:27:11 +01:00
Lukas Matena
0e3ebb3e07 Hollowing gizmo: Invalidate drilled mesh in case a hole is manipulated
This way the holes cannot be placed on its own walls
Downside is that AABB trees have to be recalculated
2020-02-04 15:03:10 +01:00
Enrico Turri
3ec4b77dcd Added item menu 'Edit/Show labels' and removed labels activation from preferences dialog 2020-02-04 14:42:26 +01:00
Enrico Turri
f09bed32b6 Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer 2020-02-03 15:48:56 +01:00
Enrico Turri
03680bb014 Follow-up of 3a99b23ec7 -> F5 accelerator added also to objects list 2020-02-03 15:47:09 +01:00
Lukas Matena
227cc4dc33 Fixed conflicts after merge
slaposHollowing was divided into slaposHollowing and slaposDrillHoles on master
This commit takes this into account on the code that was merged from lm_drilling_backend_rebased
2020-02-03 15:42:54 +01:00
YuSanka
1472ad9b14 To fix blurred icons under OSX there is implemented PresetBitmapComboBox, derived from wxBitmapComboBox,
which now will be used for preset choosers on sidebar a preset tabs.

+ for BitmapCache class added m_scale used for correct scaling of SVG images on Retina displays

+ some code clearing from unused functions or function's parameters
2020-01-31 16:57:45 +01:00
Enrico Turri
3a99b23ec7 #3580 - Added menu item 'Edit/Reload from disk' and F5 key acceleration to reload the entire plater 2020-01-31 12:15:04 +01:00
bubnikv
d937ac1ed3 Forcing a print bed update after config or config bundle is loaded.
The solution is hackish, but a major refactoring would be needed
to avoid multiple refreshes of the print bed, and to avoid
expensive checks at Plater::on_config_change() every time
a config value changes at a parameter tab.
2020-01-24 15:16:36 +01:00
Lukas Matena
1c0aedbbe5 Hollowing gizmo can now trigger the backend calculation 2020-01-24 10:53:40 +01:00
tamasmeszaros
b45e95877e Merge branch 'master' into lm_tm_hollowing 2020-01-23 17:43:18 +01:00
YuSanka
5ff8ae955b Implemented editing for extruder of existing ToolChangeCode tick
+ Code refactoring: DoubleSlider is extracted from wxExtensions
2020-01-23 16:11:21 +01:00
YuSanka
1ed313ab79 Synchronized mode of color_print data to/from 3mf/amf
+ Code refactoring " CustomGCode extracted to separate namespace and file
2020-01-23 16:11:21 +01:00
YuSanka
d8b5f2950d Select first printer for 3rd vendor.
+ fixed typo in output message
2020-01-21 16:34:07 +01:00
Enrico Turri
2b93900ac0 Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer 2020-01-21 14:07:22 +01:00
Enrico Turri
dd09077bba Reload from disk command enhanced to work with 3mf/amf files saved with PrusaSlicer 2.1.0 and earlier 2020-01-21 14:07:13 +01:00
David Kocik
8cf2a97807 removable drive manager bug fixes 2020-01-21 13:29:39 +01:00
David Kocik
2c1bedf503 new graphics for export button 2020-01-21 13:29:39 +01:00
David Kocik
787a6264b1 changed button usage: save to hd is now save to sd card 2020-01-21 13:29:39 +01:00
David Kocik
53f04b4bfd callback for showing action buttons when device is connected/disconnected 2020-01-21 13:29:39 +01:00
David Kocik
7e97576e56 button for exporting gcode to harddrive 2020-01-21 13:29:39 +01:00
David Kocik
b08788cf96 typo at Unmounting successful message 2020-01-21 13:29:39 +01:00
Lukas Matena
63b0eec5a9 Merge branch 'master' into lm_tm_hollowing 2020-01-21 13:00:07 +01:00
Jebtrix
b616c16c0a Change confusing message text 2020-01-20 11:18:26 -05:00
foxox
07d6fd8f7e Platter->Plater 2020-01-20 11:16:49 -05:00
Enrico Turri
cc19e9c48f ENABLE_KEEP_LOADED_VOLUME_TRANSFORM_AS_STAND_ALONE set as default 2020-01-17 12:12:38 +01:00
Enrico Turri
4eee702984 ENABLE_ADAPTIVE_LAYER_HEIGHT_PROFILE set as default 2020-01-17 11:26:26 +01:00
Enrico Turri
ccb126a5f4 ENABLE_RELOAD_FROM_DISK_MISSING_SELECTION set as default 2020-01-17 11:07:10 +01:00
Enrico Turri
b6ab6378d7 ENABLE_VIEW_TOOLBAR_BACKGROUND_FIX set as default 2020-01-17 10:50:25 +01:00
YuSanka
89fcd7f95a Added "mode" variable for custom_gcode_per_print_z 2020-01-16 16:01:19 +01:00
bubnikv
8bfc986fa7 Refactoring of GCode::process_layer().
Refactoring of GCode export of color changes, extruder switches etc,
so that the "color change" like extruder switches are applied first
at the Wipe Tower / G-code export, so that adding / removing
an extruder switch at the G-code preview slider does not invalidate
slicing.
2020-01-14 10:31:18 +01:00
YuSanka
3d4cda8ace Fixed update of "Cost" field in "Sliced Info" box after a change of any material's options
("bottle_cost", "bottle_volume", "bottle_weight", "material_density")
2020-01-08 15:27:09 +01:00
Enrico Turri
abd432e7a8 Configurable paths export (fullpath or not) to 3mf and amf 2020-01-08 11:11:38 +01:00
Lukas Matena
0551411c48 Merge branch 'master' into lm_tm_hollowing 2020-01-06 12:41:29 +01:00
Enrico Turri
a4ad0a0925 Fixed unresponsive 3Dconnexion device when switching to preview 2020-01-03 11:41:29 +01:00
Enrico Turri
a2ff94515f #3430 - Fixed crash when right-clicking on wipe tower 2020-01-02 09:07:33 +01:00
Enrico Turri
cf0697b5f2 Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer 2019-12-20 16:03:04 +01:00
Enrico Turri
ba5815c606 Fixed wrong z value after reload from disk for objects with x and y rotation 2019-12-20 16:02:56 +01:00
bubnikv
ec91a92ba0 Merge remote-tracking branch 'remotes/origin/dk_remote_devices' 2019-12-20 15:07:49 +01:00
Enrico Turri
e9bb3c2450 3mf and amf import: keep loaded volumes transformation as a member of ModelVolume without applying it to the mesh 2019-12-20 12:11:58 +01:00
Lukas Matena
b3f15b1c98 Merge branch 'master' into lm_tm_hollowing 2019-12-20 10:33:53 +01:00
David Kocik
d7698a36cb changes in plater.cpp 2019-12-19 14:19:41 +01:00
Enrico Turri
3b8d42a64f Fixed selection after cut command 2019-12-19 10:06:46 +01:00
Enrico Turri
7013f148b5 Store new source path in ModelVolume after reload from disk 2019-12-19 09:02:50 +01:00
David Kocik
3a54279cec Merge branch 'master' into dk_remote_devices 2019-12-19 08:58:11 +01:00
Enrico Turri
c9dcf3e865 Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer 2019-12-18 15:33:12 +01:00
Enrico Turri
b2b037eb0b Show requested filename on title of reload from disk dialog on Mac 2019-12-18 15:32:25 +01:00
David Kocik
df36a7dcb2 merge with master 2019-12-18 10:45:16 +01:00
David Kocik
1fa464af96 removableDriveManager bug fixes 2019-12-18 10:34:26 +01:00
YuSanka
7650732c61 Show context menu for a multi-object selection on 3DScene,
add "Reload from disk" item for this menu
2019-12-18 09:11:33 +01:00
YuSanka
afcc6bbb08 Code refactoring for Color change implementation 2019-12-17 08:37:50 +01:00
David Kocik
a029e689d8 verification of save path 2019-12-16 17:15:27 +01:00
David Kocik
bfc9dda1f6 save last path earlier 2019-12-16 15:47:36 +01:00
David Kocik
0db9815467 correct beahvior when disconnecting device other way than button in slicer 2019-12-16 13:53:12 +01:00
tamasmeszaros
a9403319b7 Separate Job, ProgressStatusBar and ProgressIndicator
* Separate GUI::Job
* make use of ProgressIndicator interface
* make ProgressStatusbar independent from GUI::App
2019-12-16 11:07:43 +01:00
Enrico Turri
ca518c003f Added message dialog informing the user that it is not allowed to change the filename when using reload from disk command 2019-12-16 10:24:08 +01:00
David Kocik
507134accb merge 2019-12-13 18:02:54 +01:00
David Kocik
5a26be1150 message box about succesful removal 2019-12-13 18:02:25 +01:00
YuSanka
7d0d70534b Fixed "actions" buttons size under OSX 2019-12-13 17:56:04 +01:00
David Kocik
81a2f8535a merge 2019-12-13 15:26:42 +01:00
YuSanka
2df903640b Implemented rescaling for "Remove device" button 2019-12-13 15:13:55 +01:00
David Kocik
6de41c6147 button show after write 2019-12-13 15:13:55 +01:00
David Kocik
9c79c7f644 prev commit linux part 2019-12-13 15:12:20 +01:00
David Kocik
1ec7fc23e2 check if last path is on rem drive 2019-12-13 15:07:35 +01:00
David Kocik
acab61fa54 comments 2019-12-13 13:51:46 +01:00
David Kocik
5a9ec0d074 button show after write 2019-12-13 13:51:46 +01:00
David Kocik
9085440c15 button show after write 2019-12-13 13:51:46 +01:00
David Kocik
2c7b711f76 eject button after export 2019-12-13 13:51:46 +01:00
David Kocik
68125b12a7 eject button functionality 2019-12-13 13:51:46 +01:00
David Kocik
a01eec34f9 eject button functionality 2019-12-13 13:51:46 +01:00
David Kocik
8f0eef8f36 eject button functionality 2019-12-13 13:51:46 +01:00
David Kocik
f5e3750d23 eject button functionality 2019-12-13 13:51:46 +01:00
YuSanka
c47fda39f1 Implemented "Disconnect" button 2019-12-13 13:51:45 +01:00
David Kocik
63ee4e3a2f last path functions 2019-12-13 13:51:45 +01:00
David Kocik
735308b794 refactoring 2019-12-13 13:51:45 +01:00
David Kocik
852d8ad5cc check if last path is on rem drive 2019-12-13 13:51:45 +01:00
YuSanka
7e87d093fc Merge branch 'dk_remote_devices' of https://github.com/prusa3d/PrusaSlicer into dk_remote_devices 2019-12-13 13:24:12 +01:00
YuSanka
e5fcb587e2 Implemented rescaling for "Remove device" button 2019-12-13 13:23:55 +01:00
David Kocik
8895e944cf comments 2019-12-13 13:04:09 +01:00
Enrico Turri
62e36cd2d5 Fixed filename shown in open file dialog for reload from disk 2019-12-13 12:41:46 +01:00
David Kocik
e1d9de3ca4 button show after write 2019-12-12 15:43:14 +01:00
David Kocik
95ccc2c4df button show after write 2019-12-12 14:56:30 +01:00
Lukas Matena
537260494d Merge branch 'master' into lm_tm_hollowing 2019-12-12 11:37:33 +01:00
David Kocik
0cb9a4c542 eject button after export 2019-12-12 10:48:33 +01:00
David Kocik
e2048775f6 eject button functionality 2019-12-11 17:42:56 +01:00
YuSanka
d66761e030 Fixed wrong context menu selection for instance(s). Related to #3275 2019-12-11 16:07:00 +01:00
David Kocik
6dddc1cc6b eject button functionality 2019-12-11 15:02:20 +01:00
David Kocik
4a7f50ad66 eject button functionality 2019-12-11 14:53:28 +01:00
David Kocik
975642e3e0 eject button functionality 2019-12-11 12:28:51 +01:00
YuSanka
37b6d9e8ad Implemented "Disconnect" button 2019-12-10 17:31:27 +01:00
Enrico Turri
b63b5125b6 Enable selection for missing files in reload from disk command 2019-12-10 14:42:28 +01:00
Enrico Turri
bdfed9d9ef Attempt to fix view toolbar background not showing up on Mac when using dark mode 2019-12-10 10:56:21 +01:00
Enrico Turri
68812b081f Removed obsolete (and unused) code 2019-12-09 15:40:14 +01:00
David Kocik
5f54856be0 last path functions 2019-12-05 14:07:02 +01:00
YuSanka
ee71f83939 Localization improvements:
* fixed "\n" at the end of phrases
 + updated list of files to localization
 + new PrusaSlicer.pot
 + Japanese localization
2019-12-04 11:14:13 +01:00
David Kocik
2ecc8a1b6f merge s kocikdav fork removable_drives branch 2019-12-03 11:35:46 +01:00
YuSanka
22aa17128a Fixed function to get a profile name by alias for all preset collections 2019-11-29 11:02:58 +01:00
Enrico Turri
58fa4f32de Revert e3b9c755aa 2019-11-29 11:01:51 +01:00