source: trunk/MagicSoft/MarsOctober/mocttest/MGOctMain.h@ 1151

Last change on this file since 1151 was 450, checked in by harald, 24 years ago
added a few for functionalities. Also some spectras for TDCs are implemented.
File size: 2.4 KB
Line 
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
28enum CommandIdentifiers {
29 M_FILE_EXIT ,
30 M_FILE_ABOUT ,
31
32 M_BUTTON_EVTDISP ,
33 M_BUTTON_PEDADC,
34 M_BUTTON_CRADC,
35 M_BUTTON_PEDTDC,
36 M_BUTTON_CRTDC,
37
38 M_PBUTTON_CDIR_UP,
39 M_PBUTTON_LIST_MODE,
40 M_PBUTTON_DETAIL_MODE
41} ;
42
43
44class MGOctMain : public TGMainFrame {
45 private:
46
47 //
48 // Create a main frame with a number of different buttons.
49 //
50
51 // some member not connected with Gui
52
53 Char_t fInputFile[200] ;
54 MOctTest fOctober ;
55
56 // the things for the menu bar
57
58 TGMenuBar *fMenuBar ;
59 TGPopupMenu *fFileMenu ;
60
61 // divide the Window in two different parts
62
63 TGCompositeFrame *fFrameTop ; // top part of the main window
64 TGCompositeFrame *fFrameLow ; // low part of the main window
65 TGTab *fTab ; // different tabs in the low window
66
67 // the horizontal frame in the top part
68
69 TGHorizontalFrame *fTop1, *fTop2, *fTop3 ;
70
71 // the buttons in the Top Part
72
73 TGTextButton *fButEvtDisp ;
74 TGTextButton *fButPedADC, *fButCrADC ;
75 TGTextButton *fButPedTDC, *fButCrTDC ;
76
77 // the things in the file selector
78
79 TGCompositeFrame *fTabF1 ; // first tab of low part
80 TGCompositeFrame *fTabF1a, *fTabF1b ; // subpart of the file selector in low window
81 TGListBox *fDir ;
82 TGPictureButton *fCdup, *fListMode, *fDetail ;
83 TGFileContainer *fFileCont ;
84 TGListView *fFileView ;
85
86 // Layout hints for different uses
87
88 TGLayoutHints *fLayMenuBar, *fLayMenuItem ;
89 TGLayoutHints *fLayTab ;
90
91 // some icons and pictures often used
92
93 const TGPicture *fPicCdup, *fPicList, *fPicDetail ;
94
95 public:
96 MGOctMain(const TGWindow *p, UInt_t w, UInt_t h) ;
97
98 ~MGOctMain();
99
100 void CloseWindow() ;
101
102 Bool_t InputFileSelected() ;
103
104 Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2);
105
106} ;
107
108#endif
109
110
Note: See TracBrowser for help on using the repository browser.