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