forked from mhernando/Apolo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
designWidget.h
46 lines (34 loc) · 1016 Bytes
/
designWidget.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
#ifndef __APOLO__DESIGN_WIDGET__H
#define __APOLO__DESIGN_WIDGET__H
#include "nodeTree.h"
#include "simulatedWorld.h"
#include "genericSlider.h"
#include "canvas.h"
class DesignWidget: public wxPanel
{
public:
DesignWidget(wxWindow *window,NodeTree *pose,const wxString label,const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,bool sliders = true,bool orient=false);
void SetSpecificValues(bool def=false);
void OnValueChanged(wxCommandEvent& event){SetSpecificValues();}
void CreatePanel(bool sliders,bool orientation);
void GetDefaultValues();
private:
GenericSlider *c_radio;
GenericSlider *c_height;
GenericSlider *c_vertex;
Canvas *base;
TypeNode type;
double defRadio,defHeight,defVertex;
bool slider,orientation;
double r,h,v;
NodeTree *nodeW;
wxStaticText *r_text;
wxTextCtrl *r_box;
wxStaticText *h_text;
wxTextCtrl *h_box;
wxStaticText *v_text;
wxTextCtrl *v_box;
DECLARE_EVENT_TABLE();
};
#endif // __APOLO__DESIGN_WIDGET__H