Application Scaling for MSW: Next big step

- Added rescale() function for the most of controls
 - Created PrusaBitmap and PrusaButton classes like a wrap to wxBitmap and wxButton accordingly
This commit is contained in:
YuSanka 2019-04-13 23:46:52 +02:00
parent a74c608c7a
commit f7ddddcff5
22 changed files with 737 additions and 250 deletions

View file

@ -14,6 +14,7 @@
#include "GLTexture.hpp"
class wxButton;
class PrusaButton;
class wxBoxSizer;
class wxGLCanvas;
class wxScrolledWindow;
@ -46,7 +47,7 @@ public:
PresetComboBox(wxWindow *parent, Preset::Type preset_type);
~PresetComboBox();
wxButton* edit_btn { nullptr };
/*wxButton*/PrusaButton* edit_btn { nullptr };
enum LabelItemType {
LABEL_ITEM_MARKER = 0x4d,
@ -58,6 +59,8 @@ public:
int get_extruder_idx() const { return extruder_idx; }
void check_selection();
void rescale();
private:
typedef std::size_t Marker;
@ -83,6 +86,7 @@ public:
void update_presets(Slic3r::Preset::Type preset_type);
void update_mode_sizer() const;
void update_reslice_btn_tooltip() const;
void rescale();
ObjectManipulation* obj_manipul();
ObjectList* obj_list();