forked from mhernando/Apolo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
genericSliderProperties.h
60 lines (54 loc) · 1.39 KB
/
genericSliderProperties.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#ifndef __APOLO__GENERIC_SLIDER_PROPERTIES__H
#define __APOLO__GENERIC_SLIDER_PROPERTIES__H
#include "definitions.h"
#include <wx/wx.h>
#include <wx/slider.h>
#include <wx/button.h>
#include <wx/sizer.h>
#include <wx/spinctrl.h>
#include <wx/colordlg.h>
#include <wx/checkbox.h>
#include "bitmaps/colour.xpm"
#include "bitmaps/cursorDown.xpm"
#include "bitmaps/cursorUp.xpm"
class GenericSlider;
class GenericSliderProperties: public wxDialog
{
public:
GenericSliderProperties(wxPanel *parent,wxWindowID id,const wxString& title);
void OnEnter(wxCommandEvent& event);
void OnCheck(wxCommandEvent& event);
void OnButton(wxCommandEvent& event);
void UpDateProperties();
void setMin(double val);
void setMax(double val);
void setTick(double val);
private:
GenericSlider* winSlider;
bool isDecimal;
double val;
double incr;
double min,max,minOld,maxOld;
int tick,tickOld;
wxColour colorPanel,colorPanelOld;
wxCheckBox* box;
wxButton* accept;
wxButton* cancel;
wxButton* apply;
wxStaticText* min_text;
wxStaticText* max_text;
wxStaticText* tick_text;
wxStaticText* color_text;
wxTextCtrl* min_box;
wxTextCtrl* max_box;
wxTextCtrl* tick_box;
wxBitmapButton* min_up;
wxBitmapButton* min_down;
wxBitmapButton* max_up;
wxBitmapButton* max_down;
wxBitmapButton* tick_up;
wxBitmapButton* tick_down;
wxBitmapButton* color_box;
DECLARE_EVENT_TABLE();
};
#endif //__APOLO__GENERIC_SLIDER_PROPERTIES__H