diff options
Diffstat (limited to 'src/slic3r/GUI/ConfigSnapshotDialog.hpp')
-rw-r--r-- | src/slic3r/GUI/ConfigSnapshotDialog.hpp | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/slic3r/GUI/ConfigSnapshotDialog.hpp b/src/slic3r/GUI/ConfigSnapshotDialog.hpp new file mode 100644 index 000000000..f43fb8ed1 --- /dev/null +++ b/src/slic3r/GUI/ConfigSnapshotDialog.hpp @@ -0,0 +1,34 @@ +#ifndef slic3r_GUI_ConfigSnapshotDialog_hpp_ +#define slic3r_GUI_ConfigSnapshotDialog_hpp_ + +#include "GUI.hpp" + +#include <wx/wx.h> +#include <wx/intl.h> +#include <wx/html/htmlwin.h> + +namespace Slic3r { +namespace GUI { + +namespace Config { + class SnapshotDB; +} + +class ConfigSnapshotDialog : public wxDialog +{ +public: + ConfigSnapshotDialog(const Config::SnapshotDB &snapshot_db, const wxString &id); + const std::string& snapshot_to_activate() const { return m_snapshot_to_activate; } + +private: + void onLinkClicked(wxHtmlLinkEvent &event); + void onCloseDialog(wxEvent &); + + // If set, it contains a snapshot ID to be restored after the dialog closes. + std::string m_snapshot_to_activate; +}; + +} // namespace GUI +} // namespace Slic3r + +#endif /* slic3r_GUI_ConfigSnapshotDialog_hpp_ */ |