PrusaSlicer-NonPlainar/src/slic3r/GUI/Preferences.hpp

38 lines
709 B
C++
Raw Normal View History

2018-04-20 10:58:07 +00:00
#ifndef slic3r_Preferences_hpp_
#define slic3r_Preferences_hpp_
2018-02-23 13:55:27 +00:00
#include "GUI.hpp"
#include "GUI_Utils.hpp"
2018-02-23 13:55:27 +00:00
#include <wx/dialog.h>
#include <map>
namespace Slic3r {
namespace GUI {
class ConfigOptionsGroup;
class PreferencesDialog : public DPIDialog
2018-02-23 13:55:27 +00:00
{
std::map<std::string, std::string> m_values;
std::shared_ptr<ConfigOptionsGroup> m_optgroup;
wxSizer* m_icon_size_sizer;
2018-02-23 13:55:27 +00:00
public:
PreferencesDialog(wxWindow* parent);
2018-10-31 11:56:08 +00:00
~PreferencesDialog() {}
2018-02-23 13:55:27 +00:00
void build();
void accept();
protected:
void on_dpi_changed(const wxRect &suggested_rect) override;
void layout();
void create_icon_size_slider();
2018-02-23 13:55:27 +00:00
};
} // GUI
} // Slic3r
2018-04-20 10:58:07 +00:00
#endif /* slic3r_Preferences_hpp_ */