diff options
author | bubnikv <bubnikv@gmail.com> | 2019-03-18 14:48:39 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2019-03-18 14:49:57 +0300 |
commit | cf53604ae8899c3165d7d819979c981281505bff (patch) | |
tree | ca94ae2e75710c28108dfab614324d6e4413fe4f /src/slic3r/GUI/OptionsGroup.hpp | |
parent | 60260c26be31c6a68165f33a56749ddde4d9483d (diff) |
Moved the Fileds from the Page object to the respective OptionGroups
for performance reasons. Disabled clearing of background for most
of the static texts and Fields stored into OptionGrops.
Diffstat (limited to 'src/slic3r/GUI/OptionsGroup.hpp')
-rw-r--r-- | src/slic3r/GUI/OptionsGroup.hpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/slic3r/GUI/OptionsGroup.hpp b/src/slic3r/GUI/OptionsGroup.hpp index d9ff6a01a..661aadbd7 100644 --- a/src/slic3r/GUI/OptionsGroup.hpp +++ b/src/slic3r/GUI/OptionsGroup.hpp @@ -112,6 +112,10 @@ public: } #endif /* __WXGTK__ */ + wxWindow* ctrl_parent() const { + return this->stb ? (wxWindow*)this->stb : this->parent(); + } + void append_line(const Line& line, wxStaticText** full_Label = nullptr); Line create_single_option_line(const Option& option) const; void append_single_option_line(const Option& option) { append_line(create_single_option_line(option)); } @@ -161,8 +165,10 @@ public: staticbox(title!=""), extra_column(extra_clmn) { if (staticbox) { stb = new wxStaticBox(_parent, wxID_ANY, title); + stb->SetBackgroundStyle(wxBG_STYLE_PAINT); stb->SetFont(wxGetApp().bold_font()); - } + } else + stb = nullptr; sizer = (staticbox ? new wxStaticBoxSizer(stb, wxVERTICAL) : new wxBoxSizer(wxVERTICAL)); auto num_columns = 1U; if (label_width != 0) num_columns++; |