]> rtime.felk.cvut.cz Git - CanFestival-3.git/blob - examples/DS401_Slave_Gui/main.h
Cleaned DS-401GUI (definitively removed graph) added options to open directly on...
[CanFestival-3.git] / examples / DS401_Slave_Gui / main.h
1 #ifndef MAIN_H_
2 #define MAIN_H_
3
4 #include <wx/tglbtn.h>
5 #include <wx/slider.h>
6 #include <wx/brush.h>
7 #include <wx/dynarray.h>
8 #include <wx/listbox.h>
9 #include <wx/gauge.h>
10 #include <wx/spinctrl.h>
11 #include <wx/notebook.h>
12
13 class MyApp:public wxApp
14 {
15 public:
16   virtual bool OnInit ();
17 };
18
19 class MyFrame:public wxFrame
20 {
21 public:
22
23   wxNotebook * book;
24   wxButton *stop;
25   wxButton *start;
26   wxTextCtrl *busname;
27   wxSpinCtrl *inst1;
28   wxSpinCtrl *inst2;
29   wxSpinCtrl *inst3;
30   wxSpinCtrl *inst4;
31   wxSpinCtrl *inst5;
32   wxSpinCtrl *inst6;
33   wxSpinCtrl *inst7;
34   wxSpinCtrl *inst8;
35   wxTextCtrl *drivername;
36   wxSpinCtrl *node_id;
37   wxToggleButton *inbt1;
38   wxToggleButton *inbt2;
39   wxToggleButton *inbt3;
40   wxToggleButton *inbt4;
41   wxToggleButton *inbt5;
42   wxToggleButton *inbt6;
43   wxToggleButton *inbt7;
44   wxToggleButton *inbt8;
45   wxSlider *ins1;
46   wxSlider *ins2;
47   wxSlider *ins3;
48   wxSlider *ins4;
49   wxSlider *ins5;
50   wxSlider *ins6;
51   wxSlider *ins7;
52   wxSlider *ins8;
53   wxToggleButton *outbt1;
54   wxToggleButton *outbt2;
55   wxToggleButton *outbt3;
56   wxToggleButton *outbt4;
57   wxToggleButton *outbt5;
58   wxToggleButton *outbt6;
59   wxToggleButton *outbt7;
60   wxToggleButton *outbt8;
61   wxGauge *outs1;
62   wxGauge *outs2;
63   wxGauge *outs3;
64   wxGauge *outs4;
65   wxStaticText *outst1;
66   wxStaticText *outst2;
67   wxStaticText *outst3;
68   wxStaticText *outst4;
69   wxSlider *echelle;
70   wxPanel *mygraphpan;
71   wxPanel *mylegpan;
72   wxListBox *inlist;
73   wxArrayInt in;
74   wxTimer m_timer;
75
76     MyFrame (const wxString & title);
77
78   void OnListBoxDoubleClick (wxCommandEvent & event);
79   void OnInbt1 (wxCommandEvent & event);
80   void OnInbt2 (wxCommandEvent & event);
81   void OnInbt3 (wxCommandEvent & event);
82   void OnInbt4 (wxCommandEvent & event);
83   void OnInbt5 (wxCommandEvent & event);
84   void OnInbt6 (wxCommandEvent & event);
85   void OnInbt7 (wxCommandEvent & event);
86   void OnInbt8 (wxCommandEvent & event);
87   void OnQuit (wxCommandEvent & event);
88   void OnAdd (wxCommandEvent & event);
89   void OnRemove (wxCommandEvent & event);
90   void OnAbout (wxCommandEvent & event);
91   void OnStart (wxCommandEvent & WXUNUSED (event));
92   void Start ();
93   void OnStop (wxCommandEvent & WXUNUSED (event));
94   void OnFreqBoxClick (wxCommandEvent & WXUNUSED (event));
95   void OnLoad (wxCommandEvent & WXUNUSED (event));
96   void OnPaint (wxPaintEvent & WXUNUSED (event));
97   void OnIns1 (wxScrollEvent & event);
98   void OnIns2 (wxScrollEvent & event);
99   void OnIns3 (wxScrollEvent & event);
100   void OnIns4 (wxScrollEvent & event);
101   void OnIns5 (wxScrollEvent & event);
102   void OnIns6 (wxScrollEvent & event);
103   void OnIns7 (wxScrollEvent & event);
104   void OnIns8 (wxScrollEvent & event);
105   void OnInst1 (wxSpinEvent & ev);
106   void OnInst2 (wxSpinEvent & ev);
107   void OnInst3 (wxSpinEvent & ev);
108   void OnInst4 (wxSpinEvent & ev);
109   void OnInst5 (wxSpinEvent & ev);
110   void OnInst6 (wxSpinEvent & ev);
111   void OnInst7 (wxSpinEvent & ev);
112   void OnInst8 (wxSpinEvent & ev);
113   void Paint ();
114   void OnTimer (wxTimerEvent & event);
115 private:
116   DECLARE_EVENT_TABLE ()};
117
118 void actu (void);
119 void actu_output (void);
120
121
122 #endif /*MAIN_H_ */