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-31 14:56:08 +0300
committerYuSanka <yusanka@gmail.com>2018-10-31 14:58:35 +0300
commit7f08f460f10c3a83c795f22c7022c1492297d5c2 (patch)
tree56b060543f2baddd2251810463e2edbe7a5cb208 /src/slic3r/GUI/OptionsGroup.hpp
parentd2844bc39d2a67522ff8c26c2b2de788ba03325b (diff)
Some code review
Diffstat (limited to 'src/slic3r/GUI/OptionsGroup.hpp')
-rw-r--r--src/slic3r/GUI/OptionsGroup.hpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/slic3r/GUI/OptionsGroup.hpp b/src/slic3r/GUI/OptionsGroup.hpp
index 656ae1d72..f6b38d624 100644
--- a/src/slic3r/GUI/OptionsGroup.hpp
+++ b/src/slic3r/GUI/OptionsGroup.hpp
@@ -156,7 +156,7 @@ public:
column_t extra_clmn = nullptr) :
m_parent(_parent), title(title),
m_show_modified_btns(is_tab_opt),
- staticbox(title!=""), extra_column(extra_clmn){
+ staticbox(title!=""), extra_column(extra_clmn) {
if (staticbox) {
stb = new wxStaticBox(_parent, wxID_ANY, title);
stb->SetFont(wxGetApp().bold_font());
@@ -177,7 +177,7 @@ public:
#endif /* __WXGTK__ */
}
- wxGridSizer* get_grid_sizer(){ return m_grid_sizer; }
+ wxGridSizer* get_grid_sizer() { return m_grid_sizer; }
protected:
std::map<t_config_option_key, Option> m_options;
@@ -208,10 +208,10 @@ protected:
const t_field& build_field(const Option& opt, wxStaticText* label = nullptr);
void add_undo_buttuns_to_sizer(wxSizer* sizer, const t_field& field);
- virtual void on_kill_focus (){};
+ virtual void on_kill_focus () {};
virtual void on_change_OG(const t_config_option_key& opt_id, const boost::any& value);
- virtual void back_to_initial_value(const std::string& opt_key){}
- virtual void back_to_sys_value(const std::string& opt_key){}
+ virtual void back_to_initial_value(const std::string& opt_key) {}
+ virtual void back_to_sys_value(const std::string& opt_key) {}
};
class ConfigOptionsGroup: public OptionsGroup {
@@ -225,7 +225,7 @@ public:
bool m_full_labels {0};
t_opt_map m_opt_map;
- void set_config(DynamicPrintConfig* config){ m_config = config; }
+ void set_config(DynamicPrintConfig* config) { m_config = config; }
Option get_option(const std::string& opt_key, int opt_index = -1);
Line create_single_option_line(const std::string& title, int idx = -1) /*const*/{
Option option = get_option(title, idx);
@@ -258,8 +258,8 @@ public:
class ogStaticText :public wxStaticText{
public:
ogStaticText() {}
- ogStaticText(wxWindow* parent, const char *text) : wxStaticText(parent, wxID_ANY, text, wxDefaultPosition, wxDefaultSize){}
- ~ogStaticText(){}
+ ogStaticText(wxWindow* parent, const char *text) : wxStaticText(parent, wxID_ANY, text, wxDefaultPosition, wxDefaultSize) {}
+ ~ogStaticText() {}
void SetText(const wxString& value, bool wrap = true);
};