2018-04-10 14:27:42 +00:00
|
|
|
#ifndef slic3r_GUI_ConfigSnapshotDialog_hpp_
|
|
|
|
#define slic3r_GUI_ConfigSnapshotDialog_hpp_
|
|
|
|
|
|
|
|
#include "GUI.hpp"
|
2019-04-18 13:05:17 +00:00
|
|
|
#include "GUI_Utils.hpp"
|
2018-04-10 14:27:42 +00:00
|
|
|
|
|
|
|
#include <wx/wx.h>
|
|
|
|
#include <wx/intl.h>
|
|
|
|
#include <wx/html/htmlwin.h>
|
|
|
|
|
|
|
|
namespace Slic3r {
|
|
|
|
namespace GUI {
|
|
|
|
|
|
|
|
namespace Config {
|
|
|
|
class SnapshotDB;
|
|
|
|
}
|
|
|
|
|
2019-04-18 13:05:17 +00:00
|
|
|
class ConfigSnapshotDialog : public DPIDialog
|
2018-04-10 14:27:42 +00:00
|
|
|
{
|
|
|
|
public:
|
2018-05-02 11:20:36 +00:00
|
|
|
ConfigSnapshotDialog(const Config::SnapshotDB &snapshot_db, const wxString &id);
|
2018-04-11 10:21:15 +00:00
|
|
|
const std::string& snapshot_to_activate() const { return m_snapshot_to_activate; }
|
|
|
|
|
2019-04-18 13:05:17 +00:00
|
|
|
protected:
|
|
|
|
void on_dpi_changed(const wxRect &suggested_rect) override;
|
|
|
|
|
2018-04-10 14:27:42 +00:00
|
|
|
private:
|
|
|
|
void onLinkClicked(wxHtmlLinkEvent &event);
|
|
|
|
void onCloseDialog(wxEvent &);
|
2018-04-11 10:21:15 +00:00
|
|
|
|
2018-04-20 08:26:23 +00:00
|
|
|
// If set, it contains a snapshot ID to be restored after the dialog closes.
|
2018-04-11 10:21:15 +00:00
|
|
|
std::string m_snapshot_to_activate;
|
2019-04-18 13:05:17 +00:00
|
|
|
|
|
|
|
wxHtmlWindow* html;
|
2018-04-10 14:27:42 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace GUI
|
|
|
|
} // namespace Slic3r
|
|
|
|
|
|
|
|
#endif /* slic3r_GUI_ConfigSnapshotDialog_hpp_ */
|