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>2018-10-22 00:09:24 +0300
committerYuSanka <yusanka@gmail.com>2018-10-22 00:10:37 +0300
commit70f4ca3f5b79a8f5b9eba8c046e8f8af717eb956 (patch)
treec8e876c31513fedb7c6a68d0641eb7ac5bef355a /src/slic3r/GUI/OptionsGroup.hpp
parentf47949504e0fa3efd7272dce57d03e8854644a80 (diff)
Completed settings hiding according to view mode
Diffstat (limited to 'src/slic3r/GUI/OptionsGroup.hpp')
-rw-r--r--src/slic3r/GUI/OptionsGroup.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/slic3r/GUI/OptionsGroup.hpp b/src/slic3r/GUI/OptionsGroup.hpp
index 66f2d1d37..656ae1d72 100644
--- a/src/slic3r/GUI/OptionsGroup.hpp
+++ b/src/slic3r/GUI/OptionsGroup.hpp
@@ -182,6 +182,7 @@ public:
protected:
std::map<t_config_option_key, Option> m_options;
wxWindow* m_parent {nullptr};
+ std::vector<ConfigOptionMode> m_options_mode;
/// Field list, contains unique_ptrs of the derived type.
/// using types that need to know what it is beyond the public interface
@@ -245,7 +246,8 @@ public:
void back_to_config_value(const DynamicPrintConfig& config, const std::string& opt_key);
void on_kill_focus() override{ reload_config();}
void reload_config();
- void update_visibility(ConfigOptionMode mode);
+ // return value shows visibility : false => all options are hidden
+ bool update_visibility(ConfigOptionMode mode);
boost::any config_value(const std::string& opt_key, int opt_index, bool deserialize);
// return option value from config
boost::any get_config_value(const DynamicPrintConfig& config, const std::string& opt_key, int opt_index = -1);