mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-06-22 10:36:36 +03:00
1. PreferencesDialog: When "Cancel" is selected, don't close the PreferencesDialog, just revert layout mode selection 2. For the tooltip of "Switch to Settings" added information about shortcuts 3. Shortcuts for the switching between tabs work from Settings Dialog now 4. Fixed the collapse button show after preference's change
43 lines
956 B
C++
43 lines
956 B
C++
#ifndef slic3r_Preferences_hpp_
|
|
#define slic3r_Preferences_hpp_
|
|
|
|
#include "GUI.hpp"
|
|
#include "GUI_Utils.hpp"
|
|
|
|
#include <wx/dialog.h>
|
|
#include <map>
|
|
|
|
namespace Slic3r {
|
|
namespace GUI {
|
|
|
|
class ConfigOptionsGroup;
|
|
|
|
class PreferencesDialog : public DPIDialog
|
|
{
|
|
std::map<std::string, std::string> m_values;
|
|
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;
|
|
wxRadioBox* m_layout_mode_box;
|
|
bool isOSX {false};
|
|
public:
|
|
PreferencesDialog(wxWindow* parent);
|
|
~PreferencesDialog() {}
|
|
|
|
void build();
|
|
void accept();
|
|
|
|
protected:
|
|
void on_dpi_changed(const wxRect &suggested_rect) override;
|
|
void layout();
|
|
void create_icon_size_slider();
|
|
void create_settings_mode_widget();
|
|
};
|
|
|
|
} // GUI
|
|
} // Slic3r
|
|
|
|
|
|
#endif /* slic3r_Preferences_hpp_ */
|