Commit Graph

1411 Commits

Author SHA1 Message Date
Oleksandra Yushchenko
4e17e61be4 Check unsaved changes (#6991)
* Check Unsaved changes (partially related to #5903)
 + Allow create new project when Plater is empty, but some of presets are modified (related to #5903)
 + When creating new project allow Keep or Discard modification from previous project
 + Added check of changes:
    * before any load project (including DnD and "Load From Recent Projects")
    * before preset updater
    * when configuration is changing from the ConfigWizard
 + Dialog caption is added for each check

 + Create/Destroy ConfigWizard every time when it's called

* Check Unsaved changes: Next Improvements
 + For dialog "Save project changes" added a reason of saving and name of the current project (or "Untitled")
 + UnsavedChangesDialog: Headers are extended to better explain the reason
 + Preferences: Fixed tooltiops for "Always ask for unsaved changes when..."
 + Suppress "Remember my choice" checkbox for actions which are not frequently used

* Fixed behavior of the application when try to save changed project but "Cancel" button is selected in "Save file as..." dialog

* Check unsaved changes: Improvements for Config Wizard - Check all cases when presets should be updated
 + Fixed info line for Materials pages. Text of the info relates to the printer technology now

* Improved suggested name for a project when Application is closing

* Fixed Linux/OSX build warnings
2021-09-22 12:44:13 +02:00
enricoturri1966
0d5a4c2b53 Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer 2021-09-22 11:38:15 +02:00
enricoturri1966
962f15a778 #6983 - Fixed preview when switching to it after automatic background processing is completed 2021-09-22 11:38:08 +02:00
Lukas Matena
f5359c281e Fix of #6898 (finishing slicing interfered with dragging gizmos) 2021-09-22 11:02:52 +02:00
YuSanka
37b45d048c Improvements for statistics information:
+ Show 2 groups of errors: "Auto-repared" and "Remaning".
 + Use different icons for volumes with/without remaining errors
 + Fixed update of the ObjectList warnings icons after switch the color mode of a PrusaSlicer
 + Some code refactoring: Use same code for tooltips for "exclamation"-icon from an ObjectList and from a Sidebar->ObjectInfo
2021-09-21 17:20:12 +02:00
tamasmeszaros
d6640faed0 Add dedicated subclass NotificationProgressIndicator
to replace ProgressStatusBar and revert changes from b9dab754, keep UI jobs untouched
2021-09-21 12:34:40 +02:00
Vojtech Bubnik
53a5c23d0f Eradicated admesh from TriangleMesh:
TriangleMesh newly only holds indexed_triangle_set and
TriangleMeshStats. TriangleMeshStats contains an excerpt of stl_stats.
TriangleMeshStats are updated when initializing with indexed_triangle_set.

Admesh triangle mesh fixing is newly only used when loading an STL.
AMF / 3MF / OBJ file formats are already indexed triangle sets, thus
they are no more converted to admesh stl_file format, nor fixed
through admesh repair machinery. When importing AMF / 3MF / OBJ files,
volume is calculated and if negative, all faces are flipped. Also
a bounding box and number of open edges is calculated.

Implemented its_number_of_patches(), its_num_open_edges()
Optimized its_split(), its_is_splittable() using a visitor pattern.

Reworked QHull integration into TriangleMesh:
    1) Face normals were not right.
    2) Indexed triangle set is newly emitted instead of duplicating
       vertices for each face.

Fixed cut_mesh(): Orient the triangulated faces correctly.
2021-09-20 17:12:22 +02:00
David Kocik
d76c15dc70 Slicing progress notification cancel button hides notification if process is idle. 2021-09-20 11:22:00 +02:00
YuSanka
a243421a87 Implemented possibility to fix several objects at once 2021-09-16 10:07:00 +02:00
Lukas Matena
8b9facd399 Fixed build on Win and one more warning 2021-09-15 18:39:55 +02:00
Lukas Matena
e03bcc7c4e Fix several warnings 2021-09-15 16:36:59 +02:00
enricoturri1966
762e7f9474 Tech ENABLE_FIX_IMPORTING_COLOR_PRINT_VIEW_INTO_GCODEVIEWER set as default 2021-09-14 15:05:33 +02:00
enricoturri1966
3034093082 Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer into et_reload_from_disk_changes 2021-09-14 10:05:18 +02:00
David Kocik
817c151550 Removes bottom status bar.
StatusBar class calls are commented out and replaced with notifications.
SlicicingProgress notification shows progress of slicing, ProgressIndicator notification handles other progress information, like arrange objects etc.
2021-09-10 14:35:13 +02:00
David Kocik
4157706143 Object warning notification
Opens when loading object, closes at deletion.
Replaces SimplifySuggesion.
2021-09-10 10:47:07 +02:00
enricoturri1966
78cf2a2dcc ENABLE_RELOAD_FROM_DISK_REPLACE_FILE - Search missing files in the same folder of the current project 2021-09-10 10:22:44 +02:00
enricoturri1966
aac9b87687 Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer into et_reload_from_disk_changes 2021-09-10 09:07:55 +02:00
enricoturri1966
f17a5837b7 Removed duplicated method GLVolumeCollection::check_outside_state() 2021-09-10 08:27:03 +02:00
enricoturri1966
1722765d67 Fixed conflicts after merge with master 2021-09-09 11:01:49 +02:00
Vojtech Bubnik
ca9d1ff6e1 Follow-up to b5a007a683
WIP to G-code export parallelization through pipelining:
GCodeProcessor is called during the G-code export,
the G-code is no more reopened and re-read, but it is pipelined
from the G-code generator.
2021-09-08 15:06:12 +02:00
Vojtech Bubnik
1c60fa2704 GCodeProcessor collects positions of line ends for GCodeViewer,
GCodeViewer no more parses G-code just to extract line end positions.
Removed start_mapping_gcode_window(), void stop_mapping_gcode_window(),
they are no more needed.
2021-09-07 15:42:56 +02:00
Lukas Matena
5cbf9c18ff Do not allow 'replace by stl' when a gizmo is active,
some of the gizmos might not cope well. ALso avoided
code duplication in all such cases (currently fix by
Netfabb, simplify, replace by stl).
2021-09-03 13:53:07 +02:00
enricoturri1966
357c46b297 Merge branch 'master' of https://github.com/prusa3d/PrusaSlicer 2021-09-02 09:49:13 +02:00
enricoturri1966
01842aaf6f Follow-up of 2bb14849f4 - Similar fix for Open Project command 2021-09-02 09:49:04 +02:00
David Kocik
458e880aa4 Calling destructor of notifications manager and hint database
Ensures to translate hints after change of language
2021-09-02 09:48:06 +02:00
enricoturri1966
afc5665519 #6866 - Do not clear plater when pressing Cancel button in the New Project confirmation dialog 2021-09-02 08:32:05 +02:00
enricoturri1966
15ce5d271b Fixed conflicts after merge with master 2021-09-01 13:28:10 +02:00
Vojtech Bubnik
d31562f5d3 Fix for #6803 - Illegal character in filename when STL opened direct from CAD app
Follow-up to ea4e9b35a3
Win32 specific: Substitute slashes to back slashes in file paths
when loading model files (STLs, 3MFS ...)
2021-09-01 11:08:08 +02:00
enricoturri1966
8aefcad7d7 Follow-up of 3abc71fa15 - Fixed call to trigger undo/redo snapshot 2021-08-31 14:19:32 +02:00
enricoturri1966
afed273930 Allow to replace files found as missing during reload from disk command 2021-08-31 13:16:29 +02:00
Vojtech Bubnik
d9fd4d5610 Brim separation from object, follow up to 82373334bc
1) Changed the name of the variable "brim_offset" to "brim_separation"
   for clarity.
2) Added legacy conversion after loading an old 3MF that does not define
   then new "brim_separation" variable: The "brim_separation" is being
   filled in with the "elefant_foot_compensation" value to produce
   equal brim separation to the old PrusaSlicer that saved that 3MF file.
2021-08-31 12:22:44 +02:00
Lukas Matena
9ac2a851db Fixed encoding of undo/redo snapshot names created through
TakeSnapshot class (implicit std::string/wxString conversion)
2021-08-31 12:05:08 +02:00
Lukas Matena
ff08edc441 Fixed undo/redo issue when clear method of FacetsAnnotation and ModelConfig
reset timestamp to 1. This led to a bug where e.g. deleting painted facets
through the respective item in object list followed by  possible other actions
and undo restored the painted facets from the time when the project was loaded.
I'm not sure if there was any other situation where this problem manifested.
2021-08-31 09:16:09 +02:00
enricoturri1966
0090f05145 Do not add an undo/redo snapshot when hitting Del key while nothing is selected 2021-08-31 08:07:38 +02:00
tamasmeszaros
271838edc5 Fix unsliced objects when their dimensions are close to bed limits
fixes #6823
2021-08-26 13:39:22 +02:00
enricoturri1966
d5d79c5654 Tech ENABLE_SAVE_COMMANDS_ALWAYS_ENABLED -> 1st installment: Allow to save/load empty projects 2021-08-26 10:38:14 +02:00
Filip Sykala
07b77828f2 Merge branch 'master' into fs_QuadricEdgeCollapse
# Conflicts:
#	src/slic3r/GUI/NotificationManager.hpp
2021-08-25 13:16:01 +02:00
enricoturri1966
3e283d0acb Fixed update of backend after the changes introduced with b3010a817b (Do not allow objects to be placed fully below bed) and pop object on the bed when only one part is left 2021-08-25 12:39:46 +02:00
enricoturri1966
0be3198e38 Removed confirmation dialog for command Delete All 2021-08-24 12:09:30 +02:00
enricoturri1966
7746e09082 Fixed sequential print clearance contours not disappearing after undo 2021-08-24 11:31:04 +02:00
Vojtech Bubnik
5dbf6c00b8 Slight refactoring of the project state. 2021-08-24 09:34:31 +02:00
enricoturri1966
27b9afd777 Follow-up of ab6c638e44 -> Fixed logic to center objects loaded from 3mf files produced by 3rd part softwares 2021-08-24 08:25:04 +02:00
Lukas Matena
eb90579d3f Fixup of e5f0099 2021-08-23 21:16:58 +02:00
Filip Sykala
9e06b2fbf9 Merge branch 'master' into fs_QuadricEdgeCollapse 2021-08-23 15:57:18 +02:00
Lukas Matena
38637ee3b3 Fixed ProjectDropDialog: it sometimes did something else than selected 2021-08-23 15:34:53 +02:00
Filip Sykala
b25cbac1a4 Merge branch 'master' into fs_QuadricEdgeCollapse 2021-08-23 11:33:14 +02:00
Filip Sykala
91985e283c Create multiple simplify notification 2021-08-23 11:31:38 +02:00
Vojtech Bubnik
611f02a3f4 Improved wording of message boxes popping up on
looks_like_saved_in_meters() and looks_like_saved_in_inches()
2021-08-20 16:19:00 +02:00
enricoturri1966
80eb37645f Always center on the bed objects loaded from 3mf produced by 3rd part softwares 2021-08-20 15:06:42 +02:00
YuSanka
172726ef2d Fix for #6803 - Illegal character in filename when STL opened direct from CAD app 2021-08-20 09:38:35 +02:00