mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-12 11:37:42 +00:00
ENH: update humidity display for AMS-1
JIRA: [STUDIO-13195] Change-Id: I7abcdf821b7ead2cf4a8605ecd95011e74f5dc6b (cherry picked from commit 1c1d34ff7e3fea4492ba07e238ca171e28eb0a3b)
This commit is contained in:
@@ -324,25 +324,18 @@ public:
|
||||
AmsHumidityLevelList(wxWindow* parent);
|
||||
~AmsHumidityLevelList() {};
|
||||
|
||||
ScalableBitmap background_img;
|
||||
ScalableBitmap hum_level1_img;
|
||||
ScalableBitmap hum_level2_img;
|
||||
ScalableBitmap hum_level3_img;
|
||||
ScalableBitmap hum_level4_img;
|
||||
|
||||
std::vector<ScalableBitmap> hum_level_img_light;
|
||||
std::vector<ScalableBitmap> hum_level_img_dark;
|
||||
|
||||
wxStaticBitmap* hum_level1_bitmap;
|
||||
wxStaticBitmap* hum_level2_bitmap;
|
||||
wxStaticBitmap* hum_level3_bitmap;
|
||||
wxStaticBitmap* hum_level4_bitmap;
|
||||
wxStaticBitmap* hum_level5_bitmap;
|
||||
|
||||
public:
|
||||
void msw_rescale();
|
||||
|
||||
private:
|
||||
void paintEvent(wxPaintEvent& evt);
|
||||
void render(wxDC& dc);
|
||||
void doRender(wxDC& dc);
|
||||
|
||||
private:
|
||||
ScalableBitmap background_img;
|
||||
std::vector<ScalableBitmap> hum_level_img_light;
|
||||
std::vector<ScalableBitmap> hum_level_img_dark;
|
||||
};
|
||||
|
||||
class AmsHumidityTipPopup : public PopupWindow
|
||||
@@ -350,24 +343,31 @@ class AmsHumidityTipPopup : public PopupWindow
|
||||
public:
|
||||
AmsHumidityTipPopup(wxWindow* parent);
|
||||
~AmsHumidityTipPopup() {};
|
||||
void paintEvent(wxPaintEvent& evt);
|
||||
|
||||
virtual void OnDismiss() wxOVERRIDE;
|
||||
virtual bool ProcessLeftDown(wxMouseEvent& event) wxOVERRIDE;
|
||||
|
||||
public:
|
||||
void set_humidity_level(int level);
|
||||
void msw_rescale();
|
||||
|
||||
private:
|
||||
virtual void OnDismiss() wxOVERRIDE {};
|
||||
virtual bool ProcessLeftDown(wxMouseEvent& event) wxOVERRIDE { return PopupWindow::ProcessLeftDown(event); };
|
||||
|
||||
void paintEvent(wxPaintEvent& evt);
|
||||
void render(wxDC& dc);
|
||||
void doRender(wxDC& dc);
|
||||
|
||||
public:
|
||||
private:
|
||||
int current_humidity_level = 0;
|
||||
|
||||
ScalableBitmap close_img;
|
||||
|
||||
wxStaticBitmap* curr_humidity_img;
|
||||
AmsHumidityLevelList* humidity_level_list{nullptr};
|
||||
wxStaticBitmap* m_img;
|
||||
|
||||
Label* m_staticText;;
|
||||
Label* m_staticText_note;
|
||||
|
||||
AmsHumidityLevelList* humidity_level_list{nullptr};
|
||||
};
|
||||
|
||||
class AmsTutorialPopup : public PopupWindow
|
||||
|
||||
Reference in New Issue
Block a user