1 | #ifndef MGOCTMAIN_H
|
---|
2 | #define MGOCTMAIN_H
|
---|
3 |
|
---|
4 | #include <TROOT.h>
|
---|
5 | #include <TApplication.h>
|
---|
6 | #include <TSystem.h>
|
---|
7 | #include <TGClient.h>
|
---|
8 | #include <TGButton.h>
|
---|
9 | #include <TGMenu.h>
|
---|
10 | #include <TGTab.h>
|
---|
11 | #include <TGListBox.h>
|
---|
12 | #include <TGPicture.h>
|
---|
13 | #include <TGFSContainer.h>
|
---|
14 | #include <TGMsgBox.h>
|
---|
15 |
|
---|
16 | #include <TVirtualX.h>
|
---|
17 | #include <TGClient.h>
|
---|
18 |
|
---|
19 | /* #include <TGTextEntry.h> */
|
---|
20 | /* #include <TGLabel.h> */
|
---|
21 | /* #include <TRootEmbeddedCanvas.h> */
|
---|
22 | /* #include <TNtuple.h> */
|
---|
23 | /* #include <TFile.h> */
|
---|
24 | /* #include <TCanvas.h> */
|
---|
25 |
|
---|
26 | #include "MOctTest.h"
|
---|
27 |
|
---|
28 | enum CommandIdentifiers {
|
---|
29 | M_FILE_EXIT ,
|
---|
30 | M_FILE_ABOUT ,
|
---|
31 |
|
---|
32 | M_BUTTON_EVTDISP ,
|
---|
33 | M_BUTTON_PEDADC,
|
---|
34 | M_BUTTON_CRADC,
|
---|
35 |
|
---|
36 | M_PBUTTON_CDIR_UP,
|
---|
37 | M_PBUTTON_LIST_MODE,
|
---|
38 | M_PBUTTON_DETAIL_MODE
|
---|
39 | } ;
|
---|
40 |
|
---|
41 |
|
---|
42 | class MGOctMain : public TGMainFrame {
|
---|
43 | private:
|
---|
44 |
|
---|
45 | //
|
---|
46 | // Create a main frame with a number of different buttons.
|
---|
47 | //
|
---|
48 |
|
---|
49 | // some member not connected with Gui
|
---|
50 |
|
---|
51 | Char_t fInputFile[200] ;
|
---|
52 | MOctTest fOctober ;
|
---|
53 |
|
---|
54 | // the things for the menu bar
|
---|
55 |
|
---|
56 | TGMenuBar *fMenuBar ;
|
---|
57 | TGPopupMenu *fFileMenu ;
|
---|
58 |
|
---|
59 | // divide the Window in two different parts
|
---|
60 |
|
---|
61 | TGCompositeFrame *fFrameTop ; // top part of the main window
|
---|
62 | TGCompositeFrame *fFrameLow ; // low part of the main window
|
---|
63 | TGTab *fTab ; // different tabs in the low window
|
---|
64 |
|
---|
65 | // the buttons in the Top Part
|
---|
66 |
|
---|
67 | TGTextButton *fButEvtDisp ;
|
---|
68 | TGTextButton *fButPedADC, *fButCrADC ;
|
---|
69 |
|
---|
70 | // the things in the file selector
|
---|
71 |
|
---|
72 | TGCompositeFrame *fTabF1 ; // first tab of low part
|
---|
73 | TGCompositeFrame *fTabF1a, *fTabF1b ; // subpart of the file selector in low window
|
---|
74 | TGListBox *fDir ;
|
---|
75 | TGPictureButton *fCdup, *fListMode, *fDetail ;
|
---|
76 | TGFileContainer *fFileCont ;
|
---|
77 | TGListView *fFileView ;
|
---|
78 |
|
---|
79 | // Layout hints for different uses
|
---|
80 |
|
---|
81 | TGLayoutHints *fLayMenuBar, *fLayMenuItem ;
|
---|
82 | TGLayoutHints *fLayTab ;
|
---|
83 |
|
---|
84 | // some icons and pictures often used
|
---|
85 |
|
---|
86 | const TGPicture *fPicCdup, *fPicList, *fPicDetail ;
|
---|
87 |
|
---|
88 | public:
|
---|
89 | MGOctMain(const TGWindow *p, UInt_t w, UInt_t h) ;
|
---|
90 |
|
---|
91 | ~MGOctMain();
|
---|
92 |
|
---|
93 | void CloseWindow() ;
|
---|
94 |
|
---|
95 | Bool_t InputFileSelected() ;
|
---|
96 |
|
---|
97 | Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2);
|
---|
98 |
|
---|
99 | } ;
|
---|
100 |
|
---|
101 | #endif
|
---|
102 |
|
---|
103 |
|
---|