-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmainframe.h
More file actions
85 lines (57 loc) · 1.74 KB
/
mainframe.h
File metadata and controls
85 lines (57 loc) · 1.74 KB
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#ifndef __MAINFRAME_H__
#define __MAINFRAME_H__
#include "app.h"
#include "gui_class.h"
#define TIMEDIV_MAX 100000
class ScopeChannel;
class MainFrameInstance : public MainFrame {
friend class ScopeChannel;
private:
enum {
ID_TRIGGERSOURCE = 2000
};
int timedivValue = 50;
int triggerlevelValue = 0;
int triggeroffsetValue = 0;
int triggerDrawDelay = 0;
void frameLoad();
void timedivtextSet();
void timedivscrollSet();
void triggerleveltextSet();
void triggerlevelscrollSet();
void triggeroffsettextSet();
void triggeroffsetscrollSet();
void triggerDrawDelaySet();
protected:
wxChoice *m_triggersource;
public:
typedef enum {
TRIGGER_FREE = 0,
TRIGGER_RISING,
TRIGGER_FALLING
} triggerEvent_t;
triggerEvent_t triggerEvent;
ScopeChannel **channels;
MainFrameInstance();
void timerFire(wxTimerEvent &);
void funcgenFire(wxTimerEvent &);
void timedivtextChange(wxCommandEvent &);
void timedivscrollChange(wxScrollEvent &);
void triggerleveltextChange(wxCommandEvent &);
void triggerlevelscrollChange(wxScrollEvent &);
void triggeroffsettextChange(wxCommandEvent &);
void triggeroffsetscrollChange(wxScrollEvent &);
void triggereventChange(wxCommandEvent &);
void ch1vscaletextChange(wxCommandEvent &);
void ch1vscalescrollChange(wxScrollEvent &);
void ch1offsettextChange(wxCommandEvent &);
void ch1offsetscrollChange(wxScrollEvent &);
void ch2vscaletextChange(wxCommandEvent &);
void ch2vscalescrollChange(wxScrollEvent &);
void ch2offsettextChange(wxCommandEvent &);
void ch2offsetscrollChange(wxScrollEvent &);
void onClose(wxCloseEvent &);
void drawCanvas(wxDC &);
DECLARE_EVENT_TABLE()
};
#endif