Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorenricoturri1966 <enricoturri@seznam.cz>2021-04-06 14:17:29 +0300
committerenricoturri1966 <enricoturri@seznam.cz>2021-04-06 14:17:29 +0300
commit5d4b7c03b603945cec03e270faca14f957f08cb0 (patch)
treea0e57235fc0f0b456419c5c6de0726342282672d /src/slic3r/GUI/Plater.hpp
parent144e37c2745b188c99e8c88fde7c6f4da3603ef3 (diff)
Extended interface of project dirty state manager
Diffstat (limited to 'src/slic3r/GUI/Plater.hpp')
-rw-r--r--src/slic3r/GUI/Plater.hpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/slic3r/GUI/Plater.hpp b/src/slic3r/GUI/Plater.hpp
index f2d60d801..ead9679c7 100644
--- a/src/slic3r/GUI/Plater.hpp
+++ b/src/slic3r/GUI/Plater.hpp
@@ -130,9 +130,15 @@ public:
Plater &operator=(const Plater &) = delete;
~Plater() = default;
+#if ENABLE_PROJECT_DIRTY_STATE
+ bool is_project_dirty() const;
+ void update_project_dirty_from_presets();
+ bool save_project_if_dirty();
+ void reset_project_dirty_after_save();
#if ENABLE_PROJECT_DIRTY_STATE_DEBUG_WINDOW
void render_project_state_debug_window() const;
#endif // ENABLE_PROJECT_DIRTY_STATE_DEBUG_WINDOW
+#endif // ENABLE_PROJECT_DIRTY_STATE
Sidebar& sidebar();
Model& model();
@@ -201,7 +207,11 @@ public:
void export_gcode(bool prefer_removable);
void export_stl(bool extended = false, bool selection_only = false);
void export_amf();
+#if ENABLE_PROJECT_DIRTY_STATE
+ bool export_3mf(const boost::filesystem::path& output_path = boost::filesystem::path());
+#else
void export_3mf(const boost::filesystem::path& output_path = boost::filesystem::path());
+#endif // ENABLE_PROJECT_DIRTY_STATE
void reload_from_disk();
void reload_all_from_disk();
bool has_toolpaths_to_export() const;