source: branches/start/MagicSoft/Mars/mgui/MGMarsMain.h@ 9492

Last change on this file since 9492 was 461, checked in by harald, 24 years ago
Starting the subdir for the gui Graphical user interfaces.
  • Property svn:executable set to *
File size: 1.5 KB
Line 
1#ifndef MGMARSMAIN_H
2#define MGMARSMAIN_H
3
4#ifndef MAGIC_H
5#include "MAGIC.h"
6#endif
7
8#ifndef ROOT_TGFrame
9#include <TGFrame.h>
10#endif
11
12class TGTab;
13class TGMenuBar;
14class TGPopupMenu;
15class TGTextButton;
16class TGPictureButton;
17class TGHorizontal3DLine;
18
19enum CommandIdentifiers {
20 M_FILE_EXIT ,
21 M_FILE_ABOUT ,
22
23 M_PICTURE_MAGIC ,
24 M_PICTURE_MARS ,
25
26 M_BUTTON_EVTDISP ,
27 M_BUTTON_DATACHECK ,
28 M_BUTTON_ANALYSE ,
29 M_BUTTON_MONTECARLO
30} ;
31
32
33class MGMarsMain : public TGMainFrame {
34 private:
35
36 //
37 // Create a main frame with a number of different buttons.
38 //
39
40 // the things for the menu bar
41
42 TGMenuBar *fMenuBar ;
43 TGPopupMenu *fFileMenu ;
44 TGLayoutHints *fLayMenuBar, *fLayMenuItem ;
45 TGHorizontal3DLine *fLineSep ;
46
47 // divide the Window in two different parts
48
49 TGHorizontalFrame *fTop ; // top part of the main window
50 TGHorizontal3DLine *fLineSep2 ;
51 TGHorizontalFrame *fLow ; // low part of the main window
52 TGTab *fTab ; // different tabs in the low window
53
54 // the object in the top part of the frame
55
56 TGPictureButton *fPicMagic, *fPicMars ;
57
58 // the object in the low part of the frame
59
60 TGVerticalFrame *fTabF1, *fTabF2 ;
61
62 TGTextButton *fButEvtDisp, *fButDataCheck, *fButAnalys, *fButMonteCarlo ;
63 TGLayoutHints *fButLayout ;
64
65 public:
66 MGMarsMain(const TGWindow *p, UInt_t w, UInt_t h) ;
67
68 ~MGMarsMain();
69
70 void CloseWindow() ;
71
72 Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2);
73
74 ClassDef(MGMarsMain, 1)
75} ;
76
77#endif
78
79
Note: See TracBrowser for help on using the repository browser.