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

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2018-09-19 12:02:24 +0300
committerbubnikv <bubnikv@gmail.com>2018-09-19 12:02:24 +0300
commit0558b53493a77bae44831cf87bb0f59359828ef5 (patch)
treec3e8dbdf7d91a051c12d9ebbf7606d41047fea96 /src/slic3r/GUI/UpdateDialogs.hpp
parent3ddaccb6410478ad02d8c0e02d6d8e6eb1785b9f (diff)
WIP: Moved sources int src/, separated most of the source code from Perl.mass_rename
The XS was left only for the unit / integration tests, and it links libslic3r only. No wxWidgets are allowed to be used from Perl starting from now.
Diffstat (limited to 'src/slic3r/GUI/UpdateDialogs.hpp')
-rw-r--r--src/slic3r/GUI/UpdateDialogs.hpp81
1 files changed, 81 insertions, 0 deletions
diff --git a/src/slic3r/GUI/UpdateDialogs.hpp b/src/slic3r/GUI/UpdateDialogs.hpp
new file mode 100644
index 000000000..62548b98b
--- /dev/null
+++ b/src/slic3r/GUI/UpdateDialogs.hpp
@@ -0,0 +1,81 @@
+#ifndef slic3r_UpdateDialogs_hpp_
+#define slic3r_UpdateDialogs_hpp_
+
+#include <string>
+#include <unordered_map>
+
+#include "slic3r/Utils/Semver.hpp"
+#include "MsgDialog.hpp"
+
+class wxBoxSizer;
+class wxCheckBox;
+
+namespace Slic3r {
+
+namespace GUI {
+
+
+// A confirmation dialog listing configuration updates
+class MsgUpdateSlic3r : public MsgDialog
+{
+public:
+ MsgUpdateSlic3r(const Semver &ver_current, const Semver &ver_online);
+ MsgUpdateSlic3r(MsgUpdateSlic3r &&) = delete;
+ MsgUpdateSlic3r(const MsgUpdateSlic3r &) = delete;
+ MsgUpdateSlic3r &operator=(MsgUpdateSlic3r &&) = delete;
+ MsgUpdateSlic3r &operator=(const MsgUpdateSlic3r &) = delete;
+ virtual ~MsgUpdateSlic3r();
+
+ // Tells whether the user checked the "don't bother me again" checkbox
+ bool disable_version_check() const;
+
+private:
+ const Semver &ver_current;
+ const Semver &ver_online;
+ wxCheckBox *cbox;
+};
+
+
+// Confirmation dialog informing about configuration update. Lists updated bundles & their versions.
+class MsgUpdateConfig : public MsgDialog
+{
+public:
+ // updates is a map of "vendor name" -> "version (comment)"
+ MsgUpdateConfig(const std::unordered_map<std::string, std::string> &updates);
+ MsgUpdateConfig(MsgUpdateConfig &&) = delete;
+ MsgUpdateConfig(const MsgUpdateConfig &) = delete;
+ MsgUpdateConfig &operator=(MsgUpdateConfig &&) = delete;
+ MsgUpdateConfig &operator=(const MsgUpdateConfig &) = delete;
+ ~MsgUpdateConfig();
+};
+
+// Informs about currently installed bundles not being compatible with the running Slic3r. Asks about action.
+class MsgDataIncompatible : public MsgDialog
+{
+public:
+ // incompats is a map of "vendor name" -> "version restrictions"
+ MsgDataIncompatible(const std::unordered_map<std::string, wxString> &incompats);
+ MsgDataIncompatible(MsgDataIncompatible &&) = delete;
+ MsgDataIncompatible(const MsgDataIncompatible &) = delete;
+ MsgDataIncompatible &operator=(MsgDataIncompatible &&) = delete;
+ MsgDataIncompatible &operator=(const MsgDataIncompatible &) = delete;
+ ~MsgDataIncompatible();
+};
+
+// Informs about a legacy data directory - an update from Slic3r PE < 1.40
+class MsgDataLegacy : public MsgDialog
+{
+public:
+ MsgDataLegacy();
+ MsgDataLegacy(MsgDataLegacy &&) = delete;
+ MsgDataLegacy(const MsgDataLegacy &) = delete;
+ MsgDataLegacy &operator=(MsgDataLegacy &&) = delete;
+ MsgDataLegacy &operator=(const MsgDataLegacy &) = delete;
+ ~MsgDataLegacy();
+};
+
+
+}
+}
+
+#endif