mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-20 23:31:13 -06:00
FIX: use StaticBox for background
Change-Id: I2bba259c53eaf987662a97dd93eac4fb8f73d47b
This commit is contained in:
parent
c4ec127b3a
commit
a35ecc4fba
8 changed files with 54 additions and 154 deletions
|
@ -2,22 +2,15 @@
|
|||
#define slic3r_GUI_SpinInput_hpp_
|
||||
|
||||
#include <wx/textctrl.h>
|
||||
#include "../wxExtensions.hpp"
|
||||
#include "StateHandler.hpp"
|
||||
#include "StaticBox.hpp"
|
||||
|
||||
class Button;
|
||||
|
||||
class SpinInput : public wxNavigationEnabled<wxWindow>
|
||||
class SpinInput : public wxNavigationEnabled<StaticBox>
|
||||
{
|
||||
|
||||
bool hover;
|
||||
wxSize labelSize;
|
||||
double radius;
|
||||
StateHandler state_handler;
|
||||
StateColor label_color;
|
||||
StateColor text_color;
|
||||
StateColor border_color;
|
||||
StateColor background_color;
|
||||
wxTextCtrl * text_ctrl;
|
||||
Button * button_inc;
|
||||
Button * button_dec;
|
||||
|
@ -60,8 +53,6 @@ public:
|
|||
|
||||
void SetTextColor(StateColor const &color);
|
||||
|
||||
void SetBackgroundColor(StateColor const & color);
|
||||
|
||||
void SetSize(wxSize const &size);
|
||||
|
||||
void Rescale();
|
||||
|
@ -91,12 +82,8 @@ private:
|
|||
Button *createButton(bool inc);
|
||||
|
||||
// some useful events
|
||||
void mouseMoved(wxMouseEvent& event);
|
||||
void mouseWheelMoved(wxMouseEvent& event);
|
||||
void mouseEnterWindow(wxMouseEvent& event);
|
||||
void mouseLeaveWindow(wxMouseEvent& event);
|
||||
void keyPressed(wxKeyEvent& event);
|
||||
void keyReleased(wxKeyEvent& event);
|
||||
void onTimer(wxTimerEvent &evnet);
|
||||
void onTextLostFocus(wxEvent &event);
|
||||
void onTextEnter(wxCommandEvent &event);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue