mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-14 00:52:04 +00:00
fix up some more todos in wxExtensions
This commit is contained in:
@@ -827,7 +827,6 @@ void ModeSizer::set_items_border(int border)
|
||||
|
||||
void ModeSizer::sys_color_changed()
|
||||
{
|
||||
// this->SetHGap(std::lround(m_hgap_unscaled * em_unit(m_parent))); //OcraftyoneTODO: LEGACY (PS removed)
|
||||
for (size_t m = 0; m < m_mode_btns.size(); m++)
|
||||
m_mode_btns[m]->msw_rescale();
|
||||
}
|
||||
@@ -1006,13 +1005,6 @@ BlinkingBitmap::BlinkingBitmap(wxWindow* parent, const std::string& icon_name) :
|
||||
bmp = ScalableBitmap(parent, icon_name);
|
||||
}
|
||||
|
||||
void BlinkingBitmap::msw_rescale() //OcraftyoneTODO: removed by ps
|
||||
{
|
||||
bmp.sys_color_changed();
|
||||
this->SetSize(bmp.GetSize());
|
||||
this->SetMinSize(bmp.GetSize());
|
||||
}
|
||||
|
||||
void BlinkingBitmap::invalidate()
|
||||
{
|
||||
this->SetBitmap(wxNullBitmap);
|
||||
|
||||
@@ -55,7 +55,6 @@ void msw_buttons_rescale(wxDialog* dlg, const int em_unit, const std::vector<
|
||||
int em_unit(wxWindow* win);
|
||||
int mode_icon_px_size();
|
||||
|
||||
wxBitmap create_menu_bitmap(const std::string& bmp_name); //OcraftyoneTODO: LEGACY (PS deleted)
|
||||
wxBitmapBundle* get_bmp_bundle(const std::string& bmp_name, int px_cnt = 16);
|
||||
wxBitmapBundle* get_empty_bmp_bundle(int width, int height);
|
||||
wxBitmapBundle* get_solid_bmp_bundle(int width, int height, const std::string& color);
|
||||
@@ -403,7 +402,6 @@ public:
|
||||
|
||||
~BlinkingBitmap() {}
|
||||
|
||||
void msw_rescale(); //OcraftyoneTODO: LEGACY (PS deleted)
|
||||
void invalidate();
|
||||
void activate();
|
||||
void blink();
|
||||
|
||||
Reference in New Issue
Block a user