source: branches/start/MagicSoft/Mars/mgui/MGDataCheckMain.h@ 8593

Last change on this file since 8593 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: 2.3 KB
Line 
1#ifndef MGDATACHECKMAIN_H
2#define MGDATACHECKMAIN_H
3
4#ifndef MAGIC_H
5#include "MAGIC.h"
6#endif
7
8#ifndef ROOT_TGFrame
9#include <TGFrame.h>
10#endif
11
12#ifndef MVIEWADCSPECTRA_H
13#include "MViewAdcSpectra.h"
14#endif
15
16class TGMenuBar;
17class TGPopupMenu;
18class TGTab;
19class TGTextButton;
20class TGListBox;
21class TGPictureButton;
22class TGFileContainer;
23class TGListView;
24
25enum CommandDataChecker {
26 M_FILE_CLOSE ,
27 M_BUTTON_PEDADC,
28 M_BUTTON_CRADC,
29 M_BUTTON_PEDTDC,
30 M_BUTTON_CRTDC,
31
32 M_PBUTTON_CDIR_UP,
33 M_PBUTTON_LIST_MODE,
34 M_PBUTTON_DETAIL_MODE
35} ;
36
37
38class MGDataCheckMain : public TGTransientFrame {
39 private:
40
41 //
42 // Create a main frame with a number of different buttons.
43 //
44
45 // some member not connected with Gui
46
47 Char_t fInputFile[256] ;
48 MViewAdcSpectra fViewAdc ;
49
50 // the things for the menu bar
51
52 TGMenuBar *fMenuBar ;
53 TGPopupMenu *fFileMenu ;
54
55 // divide the Window in two different parts
56
57 TGCompositeFrame *fFrameTop ; // top part of the main window
58 TGCompositeFrame *fFrameLow ; // low part of the main window
59 TGTab *fTab ; // different tabs in the low window
60
61 // the horizontal frame in the top part
62
63 TGHorizontalFrame *fTop1, *fTop2, *fTop3 ;
64
65 // the buttons in the Top Part
66
67 TGTextButton *fButPedADC, *fButCrADC ;
68 TGTextButton *fButPedTDC, *fButCrTDC ;
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; //!
87 const TGPicture *fPicList; //!
88 const TGPicture *fPicDetail; //!
89
90 public:
91 MGDataCheckMain(const TGWindow *p, const TGWindow *main, UInt_t w, UInt_t h) ;
92
93 ~MGDataCheckMain();
94
95 void CloseWindow() ;
96
97 Bool_t InputFileSelected() ;
98
99 Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2);
100
101 ClassDef(MGDataCheckMain, 1)
102
103} ;
104
105#endif
106
107
Note: See TracBrowser for help on using the repository browser.