diff options
author | YuSanka <yusanka@gmail.com> | 2021-12-22 16:38:23 +0300 |
---|---|---|
committer | YuSanka <yusanka@gmail.com> | 2021-12-22 16:38:23 +0300 |
commit | f2aeca3a716d8d3d4233be321cddcf463c1bf21f (patch) | |
tree | 445b819c8a4eaa68dd10dae415e5dd15a9430533 /src/slic3r/GUI/MainFrame.cpp | |
parent | 1fe4ba289bf68a7e4ceb575b5e63194441bc1bfa (diff) |
Options from the "Preferences" dialog added to the Search
Some code refactoring:
* use GUI_App::open_preferences() on all places where it's needed
* Preferences Dialog is an attribute of a ManeFrame class and created just ones during the MainFrame creation now.
* Created class Highlighter. Use it in Preferences and Tab
Diffstat (limited to 'src/slic3r/GUI/MainFrame.cpp')
-rw-r--r-- | src/slic3r/GUI/MainFrame.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/slic3r/GUI/MainFrame.cpp b/src/slic3r/GUI/MainFrame.cpp index 1e589e432..a88509527 100644 --- a/src/slic3r/GUI/MainFrame.cpp +++ b/src/slic3r/GUI/MainFrame.cpp @@ -47,6 +47,7 @@ #include "GUI_ObjectList.hpp" #include "GalleryDialog.hpp" #include "NotificationManager.hpp" +#include "Preferences.hpp" #ifdef _WIN32 #include <dbt.h> @@ -272,6 +273,8 @@ DPIFrame(NULL, wxID_ANY, "", wxDefaultPosition, wxDefaultSize, wxDEFAULT_FRAME_S if (m_plater != nullptr) { m_plater->get_collapse_toolbar().set_enabled(wxGetApp().app_config->get("show_collapse_button") == "1"); m_plater->show_action_buttons(true); + + preferences_dialog = new PreferencesDialog(this); } } |