1 #ifndef slic3r_GUI_ConfigSnapshotDialog_hpp_
2 #define slic3r_GUI_ConfigSnapshotDialog_hpp_
3 
4 #include "GUI.hpp"
5 #include "GUI_Utils.hpp"
6 
7 #include <wx/wx.h>
8 #include <wx/intl.h>
9 #include <wx/html/htmlwin.h>
10 
11 namespace Slic3r {
12 namespace GUI {
13 
14 namespace Config {
15 	class SnapshotDB;
16 }
17 
18 class ConfigSnapshotDialog : public DPIDialog
19 {
20 public:
21     ConfigSnapshotDialog(const Config::SnapshotDB &snapshot_db, const wxString &id);
snapshot_to_activate() const22     const std::string& snapshot_to_activate() const { return m_snapshot_to_activate; }
23 
24 protected:
25     void on_dpi_changed(const wxRect &suggested_rect) override;
26 
27 private:
28     void onLinkClicked(wxHtmlLinkEvent &event);
29     void onCloseDialog(wxEvent &);
30 
31     // If set, it contains a snapshot ID to be restored after the dialog closes.
32     std::string m_snapshot_to_activate;
33 
34     wxHtmlWindow* html;
35 };
36 
37 } // namespace GUI
38 } // namespace Slic3r
39 
40 #endif /* slic3r_GUI_ConfigSnapshotDialog_hpp_ */
41