-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappframe.h
44 lines (39 loc) · 853 Bytes
/
appframe.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
// example.C
#include <TGClient.h>
#include <TCanvas.h>
#include <TF1.h>
#include <TRandom.h>
#include <TGButton.h>
#include <TGFrame.h>
#include <TRootEmbeddedCanvas.h>
#include <TQObject.h>
#include <RQ_OBJECT.h>
#include <TApplication.h>
class AppFrame {
RQ_OBJECT("AppFrame")
private:
TGMainFrame *fMain;
TRootEmbeddedCanvas *fEcanvas;
bool m_run_state = false;
int m_scale = 512;
int m_xscale = 512;
bool m_enable_ch[8] = {
false, false, false, false,
false, false, false, false};
public:
AppFrame(const TGWindow *p,UInt_t w,UInt_t h);
virtual ~AppFrame();
void DoDraw();
bool ToggleRunState();
bool GetRunState();
int ToggleScale();
int GetScale();
int ToggleXScale();
int GetXScale();
bool *DoEnableCh();
bool *GetEnableCh();
void PrintCanvas();
void Exit();
TCanvas *GetCanvas();
ClassDef(AppFrame, 1);
};