Commit Graph

1261 Commits

Author SHA1 Message Date
a23cfac53f Project dirty state manager -> presets dirty state 2021-04-06 16:29:05 +02:00
36afd411d6 Extended interface of project dirty state manager 2021-04-06 13:17:29 +02:00
614ba5deab 1st installment of project dirty state manager 2021-04-06 10:00:17 +02:00
56df6f80aa Suppress to show Search window on the Plater using Ctrl+F shortcut, when we are at Preview mode 2021-03-24 11:32:33 +01:00
4cbddfaf36 OptionsSearcher improvements: Fixed a key for option() and groups_and_categories.
It contains "preset_type;opt_key" now. This key helps to avoid a collisions by using a same options key from different type presets.
Example: Option "elefant_foot_compensation" is in Print presets and SLA_printer presets
2021-03-24 11:14:07 +01:00
32afda7d57 Fix of #6212 - Cannot select "New Project" after deleting models in saved project, continuing overwrites old project 2021-03-16 10:32:15 +01:00
aa0216af39 Worked around some quirky Linux file system issues. Namely
the Chromebooks share their file system to Linux using the 9p file
system, which does not support setting file ownership. Newly PrusaSlicer
will detect platform and it will not panick if copy_file() cannot set
file ownership after copying. It just logs the incident, and on
chromebooks the loglevel for that incident is "Info", not "Error".

Adjusted the full screen mode to contain menu bar.
Moved Platform.cpp/hpp to libslic3r
2021-03-15 16:19:22 +01:00
31c7eacfbe Ys code refactoring (#6227)
* GUI_ObjectList code refactoring:
The MenuFactory structure contains functions related to the context menu and bitmaps used to different volume types.
The SettingsFactory structure contains functions to getting overridden options, its bundles and bitmaps used to setting categories.

Fixed bugs/crashes:
1. Add object -> Add Settings from 3D scene -> Right click on object => Part's Settings list instead of object's
   (Same behavior if something else but Object is selected in ObjectList)
2. Add settings to the part -> Change part type to the "Support Blocker/Enforcer" -> Settings disappears (it's OK) but =>
   Save Project -> Open project => Support Blocker/Enforcer has a settings
3. Add part for object -> Change type of part -> Change monitor DPI -> old type icon appears
4. Select all instances in ObjectList -> Context menu in 3D scene -> Add Settings -> Select some category -> Crash

* ObjectLayers: Fixed a crash on re-scaling, when some layer range is selected

* Fixed OSX build

* Added menu item "Split to Objects" for multipart objects

+ Fixed bug: Add 2 parts,
             Add some settings for one part
             Delete part without settings => Single part object without settings, but settings are applied for the object.

+ Next refactoring: use same menu for Plater and ObjectList
2021-03-15 10:04:45 +01:00
49a4e92587 ConfigOptions: GUI type as enum, not string.
Fixing compilation error in the new Platform code.
Fixing one issue in FDM support after splitting the top/bottom
interface layers.
2021-03-15 09:55:57 +01:00
0308debf16 Detecting platform, namely reading /proc/version to detect Chromium OS.
Disabling Eject on Chromium, detecting removable media the Chromium way.
2021-03-15 09:55:57 +01:00
7f371d35fc Splitting FDM support gap to top / bottom, introducing
support_material_bottom_contact_distance
Fixing Crash in support generation after fcb714c (repro attached) #6195
2021-03-15 09:55:57 +01:00
4021f63f25 Auto color change: Fixed show/hide for the notification. 2021-03-15 09:54:24 +01:00
f3eb7699b9 Fix stl export with hollowed mesh 2021-03-08 17:38:10 +01:00
b8bd29cf42 Adjustable wipe tower brim 2021-03-05 16:41:02 +01:00
f1fecd7d80 Added progress dialog for adding parts from files 2021-03-04 15:09:50 +01:00
88b808e3e6 Fixed layout of loading file progress dialog 2021-03-04 13:36:07 +01:00
7c4eeddbd8 Show an error notification when attempting to save 3MF while editing SLA support points
The notification disappears when it is no longer valid.
2021-03-04 09:35:41 +01:00
2c197570b2 Add a notification when custom support enforcers are not used due to supports being off
It is now emitted from Print::validate and has a hyperlink to enable supports
2021-03-04 09:35:22 +01:00
f9f0a29373 Follow-up 409849d238:
Added check for visibility for all loaded presets.
Added notification about this action.
 + PresetComboBox: Fixed update() function for physical printers, when some of related presets are invisible.
2021-03-02 12:19:49 +01:00
fbd663469b Tech ENABLE_CTRL_M_ON_WINDOWS set as default 2021-02-25 15:22:12 +01:00
d8655821c6 Fix of #5510: ctrlsub.cpp(231): assert "IsValid(n)" failed in GetClientData(): Invalid index passed to GetClientData()
BitmapComboBox: Use virtual OnSelect() on wxEVT_COMBO event
Don't save information about preset combobox type to the evt.SetInt(). This information can be received from BitmapComboBox::get_type() now.
2021-02-25 12:55:28 +01:00
9762804663 Partial revert of 204714d566 -> Alternate fix for crash on printer presets switching between MM and SM printers 2021-02-23 12:00:23 +01:00
b76f3419a3 Show a notification when attempting to slice during SLA support points editing
This should also fix #5736 and a similar crash when deleting an object during manual editing (which was introduced between 2.2.0 and 2.3.0)
2021-02-22 16:26:16 +01:00
8aca687aef Tech ENABLE_PREVIEW_TYPE_CHANGE set as default 2021-02-18 11:52:14 +01:00
455dbc01ed Tech ENABLE_ARROW_KEYS_WITH_SLIDERS set as default 2021-02-17 17:21:06 +01:00
a12ee64cf5 Tech ENABLE_DRAG_AND_DROP_FIX set as default 2021-02-17 14:52:58 +01:00
902f89b1d4 Fixed localization for the message text 2021-02-12 14:29:22 +01:00
72fcba1202 SPE-1103 Added menu items for the conversation of the volumes from/to meters
Related to #4521
2021-02-10 20:34:05 +01:00
9b3e81b3e4 Fixes issue #5979 - NULL pointer crash in ModelObject::split()
ModelObject::split() expects a non-NULL new_objects vector where it adds pointers to the new models resulting from the split.
But in the CLI case the caller does not care about this and passes NULL which causes a crash. To fix the crash we could pass
a dummy vector but it turns out that we actually have a use for the results because we should assign a unique name to each
new model the same way as the GUI does. These names show up as comments in the gcode so this change makes the gcode produced
by the GUI and the CLI more similar and diffable.

@lukasmatena has amended the original commit by @combolek (pull request #5991) in order to avoid code duplication
2021-02-10 12:30:06 +01:00
e4df27997e Added check for loaded STL file if it was saved in meters. Related to #4521 (Some files are imported in the wrong size) 2021-02-09 17:04:32 +01:00
22ef17af54 Fixing Clang warnings 1 2021-02-08 17:52:29 +01:00
0b77d57117 Restoring custom supports/seams after reload from disk
Until now, the custom data were lost.
2021-02-08 09:51:49 +01:00
3be02881a9 Localization: Added plural form for some phrases, updated POT 2021-02-03 21:30:38 +01:00
3f2b57b1d4 Squash merge of lh_brim_rework,
brim separated to Brim.cpp,hpp
Refactored accessors to PrintObjectPtrs, PrintRegionPtrs, LayerPtrs,
SupportLayerPtrs for const correctness.
2021-02-03 15:12:53 +01:00
da6dc77973 Fixing GCC warnings 3 2021-01-29 10:47:02 +01:00
8ce485300b #5541 - Fixed reload from disk after loading from 3mf 2021-01-27 08:19:42 +01:00
893db4d89b OSX specific, related to the wxWidgets 3.1.4: Fixed wrong UI-scaling
(wxWidgets 3.1.4 can binding of wxEVT_DPI_CHANGED now, so it was called msw_rescale() for most of the controls redundantly)

+ Fixed update of the DoubleSlider after changing of the system color
2021-01-22 21:44:15 +01:00
3782412a99 Fix of #5619 - Copying Item with Printable Property 2021-01-18 15:19:02 +01:00
e4bfe8093a Fix of [prusa3d/PrusaSlicer] Remove unnecessary null pointer checks (#5813)
Don't use
if (ptr)
	delete ptr;
call
delete ptr;
directly, it contains the test for null ptr.
2021-01-18 09:33:19 +01:00
6402cd7efc Merge remote-tracking branch 'origin/master' into dev 2021-01-13 14:18:55 +01:00
1eb1616656 Fixed black rects for extruder colors, when we load 3mf project with MM-printer profile and extruder colors is set to the filament colors
+ Fixed a bug with updating colors in extruder editors in ObjectList, when we use filaments colors for extruders and some filament profile is switched
2021-01-07 08:52:45 +01:00
05f6215f54 Fix of G-code Viewer not loading .gco files #5536
".gcode", ".gco", ".g" and ".ngc" were considered to be G-code file
extensions by the G-code import / export file dialogs, but not by
various other functions. Now the G-code extension is tested by
a single function is_gcode_file(string).
2021-01-05 12:26:11 +01:00
5cab1cff73 Fix of second part of #5531
From the Win 2004 preset combobox lose a focus after change the preset selection and that is why the up/down arrow doesn't work properly.
So, set the focus to the combobox explicitly.
2021-01-04 16:51:29 +01:00
958ff9f01d Change the y_step for sidebar slider to fix strange layout of the sidebar 2020-12-29 19:04:38 +01:00
62e24c2833 GCodeViewer - Fixed visualization of time estimates for silent mode 2020-12-17 11:41:41 +01:00
cb1cc0fa27 Fix through Netfabb notification - remove 'undo' hypertext for now and
refuse to fix when a gizmo is opened (because of missing updates)
This is a follow-up of 1249fdb
2020-12-16 17:33:55 +01:00
c34347c019 Merge branch 'lm_230beta3_fixes' 2020-12-16 13:51:09 +01:00
27ec080af0 When activating the PrusaSlicer main window, focus the Plater 3D view
or G-code preview if it is marked as Active.
Fixes 3Dconnexion not work directly after importing stl (focus problem ?) #5141
Keep your fingers crossed that it will not break something else.
2020-12-15 15:14:59 +01:00
cc91a95f30 Suppress to change "inches" flag after conversion to the inches. 2020-12-15 13:57:30 +01:00
7fe22ed0bc Fix of #5472 - UI bug: profile edit controls hidden by scroll bars 2020-12-15 09:38:18 +01:00