2018-04-10 14:27:42 +00:00
|
|
|
#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:
|
2018-04-20 08:26:23 +00:00
|
|
|
ConfigSnapshotDialog(const Config::SnapshotDB &snapshot_db, const std::string &id);
|
2018-04-11 10:21:15 +00:00
|
|
|
const std::string& snapshot_to_activate() const { return m_snapshot_to_activate; }
|
|
|
|
|
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;
|
2018-04-10 14:27:42 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace GUI
|
|
|
|
} // namespace Slic3r
|
|
|
|
|
|
|
|
#endif /* slic3r_GUI_ConfigSnapshotDialog_hpp_ */
|