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>2019-04-25 02:45:00 +0300
committerYuSanka <yusanka@gmail.com>2019-04-25 02:45:00 +0300
commit065448e9e5f63f412ac59c8fbbea560f2cccf77e (patch)
tree03dc97265e1f4f750f12e0f6b7cf1e5b37399ed7 /src/slic3r/GUI/Field.hpp
parentbe60f0a53c6da7121d99a5a2bfaa58519ebf4c8d (diff)
Big Refactoring: - deleted/renamed all _Prusa_ prefixes,
- cleaned code from commented parts - rescale() -> msw_rescale()
Diffstat (limited to 'src/slic3r/GUI/Field.hpp')
-rw-r--r--src/slic3r/GUI/Field.hpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/slic3r/GUI/Field.hpp b/src/slic3r/GUI/Field.hpp
index c776cadea..516570ea8 100644
--- a/src/slic3r/GUI/Field.hpp
+++ b/src/slic3r/GUI/Field.hpp
@@ -37,7 +37,7 @@ using t_back_to_init = std::function<void(const std::string&)>;
wxString double_to_string(double const value, const int max_precision = 4);
-class RevertButton : public /*wxButton*/PrusaButton
+class RevertButton : public ScalableButton
{
bool hidden = false; // never show button if it's hidden ones
public:
@@ -54,7 +54,7 @@ public:
wxWindow *parent,
const std::string& icon_name = ""
) :
- PrusaButton(parent, wxID_ANY, icon_name) {}
+ ScalableButton(parent, wxID_ANY, icon_name) {}
// overridden from wxWindow base class
virtual bool
@@ -160,7 +160,7 @@ public:
return std::move(p); //!p;
}
- bool set_undo_bitmap(const /*wxBitmap*/PrusaBitmap *bmp) {
+ bool set_undo_bitmap(const ScalableBitmap *bmp) {
if (m_undo_bitmap != bmp) {
m_undo_bitmap = bmp;
m_Undo_btn->SetBitmap_(*bmp);
@@ -169,7 +169,7 @@ public:
return false;
}
- bool set_undo_to_sys_bitmap(const /*wxBitmap*/PrusaBitmap *bmp) {
+ bool set_undo_to_sys_bitmap(const ScalableBitmap *bmp) {
if (m_undo_to_sys_bitmap != bmp) {
m_undo_to_sys_bitmap = bmp;
m_Undo_to_sys_btn->SetBitmap_(*bmp);
@@ -217,9 +217,9 @@ public:
m_side_text = side_text;
}
- virtual void rescale() {
- m_Undo_to_sys_btn->rescale();
- m_Undo_btn->rescale();
+ virtual void msw_rescale() {
+ m_Undo_to_sys_btn->msw_rescale();
+ m_Undo_btn->msw_rescale();
// update em_unit value
m_em_unit = em_unit(m_parent);
@@ -228,12 +228,12 @@ public:
protected:
RevertButton* m_Undo_btn = nullptr;
// Bitmap and Tooltip text for m_Undo_btn. The wxButton will be updated only if the new wxBitmap pointer differs from the currently rendered one.
- const /*wxBitmap*/PrusaBitmap* m_undo_bitmap = nullptr;
- const wxString* m_undo_tooltip = nullptr;
+ const ScalableBitmap* m_undo_bitmap = nullptr;
+ const wxString* m_undo_tooltip = nullptr;
RevertButton* m_Undo_to_sys_btn = nullptr;
// Bitmap and Tooltip text for m_Undo_to_sys_btn. The wxButton will be updated only if the new wxBitmap pointer differs from the currently rendered one.
- const /*wxBitmap*/PrusaBitmap* m_undo_to_sys_bitmap = nullptr;
- const wxString* m_undo_to_sys_tooltip = nullptr;
+ const ScalableBitmap* m_undo_to_sys_bitmap = nullptr;
+ const wxString* m_undo_to_sys_tooltip = nullptr;
wxStaticText* m_Label = nullptr;
// Color for Label. The wxColour will be updated only if the new wxColour pointer differs from the currently rendered one.
@@ -290,7 +290,7 @@ public:
boost::any& get_value() override;
- void rescale() override;
+ void msw_rescale() override;
virtual void enable();
virtual void disable();
@@ -355,7 +355,7 @@ public:
return m_value = tmp_value;
}
- void rescale() override;
+ void msw_rescale() override;
void enable() override { dynamic_cast<wxSpinCtrl*>(window)->Enable(); }
void disable() override { dynamic_cast<wxSpinCtrl*>(window)->Disable(); }
@@ -384,7 +384,7 @@ public:
void set_values(const std::vector<std::string> &values);
boost::any& get_value() override;
- void rescale() override;
+ void msw_rescale() override;
void enable() override { dynamic_cast<wxBitmapComboBox*>(window)->Enable(); };
void disable() override{ dynamic_cast<wxBitmapComboBox*>(window)->Disable(); };
@@ -437,7 +437,7 @@ public:
void set_value(const boost::any& value, bool change_event = false);
boost::any& get_value() override;
- void rescale() override;
+ void msw_rescale() override;
void enable() override {
x_textctrl->Enable();
@@ -471,7 +471,7 @@ public:
boost::any& get_value()override { return m_value; }
- void rescale() override;
+ void msw_rescale() override;
void enable() override { dynamic_cast<wxStaticText*>(window)->Enable(); };
void disable() override{ dynamic_cast<wxStaticText*>(window)->Disable(); };