Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuSanka <yusanka@gmail.com>2020-03-04 15:47:35 +0300
committerYuSanka <yusanka@gmail.com>2020-03-04 15:47:35 +0300
commitfc453df38fee744b0ea9e60af51aafe136d7678e (patch)
tree595d57f62b5ccafefb2f8482d3d8b7d4e4826866 /src/slic3r/GUI/Tab.hpp
parenta256cc95149c9fbac2a13bdd0ab8aecd23480285 (diff)
Implemented "Detach preset from system" button
Diffstat (limited to 'src/slic3r/GUI/Tab.hpp')
-rw-r--r--src/slic3r/GUI/Tab.hpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/slic3r/GUI/Tab.hpp b/src/slic3r/GUI/Tab.hpp
index c3016fa04..987f715a8 100644
--- a/src/slic3r/GUI/Tab.hpp
+++ b/src/slic3r/GUI/Tab.hpp
@@ -227,6 +227,7 @@ public:
PresetCollection* m_presets;
DynamicPrintConfig* m_config;
ogStaticText* m_parent_preset_description_line;
+ ScalableButton* m_detach_preset_btn = nullptr;
wxStaticText* m_colored_Label = nullptr;
// Counter for the updating (because of an update() function can have a recursive behavior):
// 1. increase value from the very beginning of an update() function
@@ -253,6 +254,7 @@ public:
const wxString& label = wxEmptyString,
long style = wxBU_EXACTFIT | wxNO_BORDER);
void add_scaled_bitmap(wxWindow* parent, ScalableBitmap& btn, const std::string& icon_name);
+ void update_ui_items_related_on_parent_preset(const Preset* selected_preset_parent);
void load_current_preset();
void rebuild_page_tree();
void update_page_tree_visibility();
@@ -264,7 +266,7 @@ public:
void OnTreeSelChange(wxTreeEvent& event);
void OnKeyDown(wxKeyEvent& event);
- void save_preset(std::string name = "");
+ void save_preset(std::string name = "", std::string suffix = "");
void delete_preset();
void toggle_show_hide_incompatible();
void update_show_hide_incompatible_button();
@@ -311,6 +313,8 @@ protected:
void load_key_value(const std::string& opt_key, const boost::any& value, bool saved_value = false);
void on_presets_changed();
+ void detach_preset(Preset& preset);
+ void build_preset_description_line(ConfigOptionsGroup* optgroup);
void update_preset_description_line();
void update_frequently_changed_parameters();
void fill_icon_descriptions();