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"
|
2019-04-18 00:03:40 +00:00
|
|
|
#include "GUI_Utils.hpp"
|
2018-02-23 13:55:27 +00:00
|
|
|
|
|
|
|
#include <wx/dialog.h>
|
|
|
|
#include <map>
|
|
|
|
|
|
|
|
namespace Slic3r {
|
|
|
|
namespace GUI {
|
|
|
|
|
|
|
|
class ConfigOptionsGroup;
|
|
|
|
|
2019-04-18 00:03:40 +00:00
|
|
|
class PreferencesDialog : public DPIDialog
|
2018-02-23 13:55:27 +00:00
|
|
|
{
|
|
|
|
std::map<std::string, std::string> m_values;
|
2020-01-16 10:08:19 +00:00
|
|
|
std::shared_ptr<ConfigOptionsGroup> m_optgroup_general;
|
|
|
|
std::shared_ptr<ConfigOptionsGroup> m_optgroup_camera;
|
|
|
|
std::shared_ptr<ConfigOptionsGroup> m_optgroup_gui;
|
|
|
|
wxSizer* m_icon_size_sizer;
|
2020-05-05 15:23:58 +00:00
|
|
|
wxRadioBox* m_layout_mode_box;
|
2019-05-22 15:08:02 +00:00
|
|
|
bool isOSX {false};
|
2018-02-23 13:55:27 +00:00
|
|
|
public:
|
2018-10-02 11:23:38 +00:00
|
|
|
PreferencesDialog(wxWindow* parent);
|
2018-10-31 11:56:08 +00:00
|
|
|
~PreferencesDialog() {}
|
2018-02-23 13:55:27 +00:00
|
|
|
|
|
|
|
void build();
|
|
|
|
void accept();
|
2019-04-18 00:03:40 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
void on_dpi_changed(const wxRect &suggested_rect) override;
|
2019-05-22 11:51:02 +00:00
|
|
|
void layout();
|
|
|
|
void create_icon_size_slider();
|
2020-05-04 20:30:38 +00:00
|
|
|
void create_settings_mode_widget();
|
2018-02-23 13:55:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // GUI
|
|
|
|
} // Slic3r
|
|
|
|
|
2018-04-20 10:58:07 +00:00
|
|
|
|
|
|
|
#endif /* slic3r_Preferences_hpp_ */
|