mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-08-01 07:12:07 +00:00
FIX: Aix and temp control
jira: none Change-Id: I7a9db8178a77727c85ad2b727771179fc5e8050a (cherry picked from commit e6b14bdefb949d3a61479e54b7b27450b344de18)
This commit is contained in:
@@ -5,6 +5,8 @@
|
||||
#include "StateColor.hpp"
|
||||
|
||||
#include <wx/tglbtn.h>
|
||||
#include "Label.hpp"
|
||||
#include "Button.hpp"
|
||||
|
||||
class SwitchButton : public wxBitmapToggleButton
|
||||
{
|
||||
@@ -40,4 +42,23 @@ private:
|
||||
StateColor thumb_color;
|
||||
};
|
||||
|
||||
class SwitchBoard : public wxWindow
|
||||
{
|
||||
public:
|
||||
SwitchBoard(wxWindow *parent = NULL, wxString leftL = "", wxString right = "", wxSize size = wxDefaultSize);
|
||||
wxString leftLabel;
|
||||
wxString rightLabel;
|
||||
|
||||
void updateState(wxString target);
|
||||
|
||||
bool switch_left{false};
|
||||
bool switch_right{false};
|
||||
|
||||
public:
|
||||
void paintEvent(wxPaintEvent &evt);
|
||||
void render(wxDC &dc);
|
||||
void doRender(wxDC &dc);
|
||||
void on_left_down(wxMouseEvent &evt);
|
||||
};
|
||||
|
||||
#endif // !slic3r_GUI_SwitchButton_hpp_
|
||||
|
||||
Reference in New Issue
Block a user