1 | #ifndef MGPROTOTYP_H
|
---|
2 | #define MGPROTOTYP_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 | class TGMenuBar;
|
---|
13 | class TGPopupMenu;
|
---|
14 | class TGTab;
|
---|
15 | class TGTextButton;
|
---|
16 | class TGListBox;
|
---|
17 | class TGPictureButton;
|
---|
18 | class TGFileContainer;
|
---|
19 | class TGListView;
|
---|
20 | class TGHorizontal3DLine;
|
---|
21 | class TGLabel ;
|
---|
22 | class TGTextEntry ;
|
---|
23 | class TGTextBuffer;
|
---|
24 |
|
---|
25 | class MGPrototyp : public TGTransientFrame {
|
---|
26 | private:
|
---|
27 |
|
---|
28 | //
|
---|
29 | // Create a main frame with a number of different buttons.
|
---|
30 | //
|
---|
31 |
|
---|
32 | // some member not connected with Gui
|
---|
33 |
|
---|
34 | Char_t fInputFile[256] ;
|
---|
35 |
|
---|
36 | // the things for the menu bar
|
---|
37 |
|
---|
38 | TGMenuBar *fMenuBar ;
|
---|
39 | TGPopupMenu *fFileMenu ;
|
---|
40 | TGHorizontal3DLine *fLineSep1, *fLineSep2 ;
|
---|
41 |
|
---|
42 |
|
---|
43 | // divide the Window in two different parts
|
---|
44 |
|
---|
45 | TGCompositeFrame *fFrameTop ; // top part of the main window
|
---|
46 | TGCompositeFrame *fFrameLow ; // low part of the main window
|
---|
47 | TGTab *fTab ; // different tabs in the low window
|
---|
48 |
|
---|
49 | // the horizontal frame in the top part
|
---|
50 |
|
---|
51 | TGHorizontalFrame *fTop1 ;
|
---|
52 |
|
---|
53 | // the buttons in the Top Part
|
---|
54 |
|
---|
55 | TGTextButton *fButAction ;
|
---|
56 |
|
---|
57 | // the things in the file selector
|
---|
58 |
|
---|
59 | TGCompositeFrame *fTabF1 ; // first tab of low part
|
---|
60 | TGCompositeFrame *fTabF1a, *fTabF1b, *fTabF1c ; // subpart of the file selector in low window
|
---|
61 |
|
---|
62 | TGLabel *fLabFileName ;
|
---|
63 | TGTextEntry *fTxtFileName ;
|
---|
64 | TGTextBuffer *fTxtBufFileName ; //!
|
---|
65 | TGTextButton *fButFileReset ;
|
---|
66 |
|
---|
67 | TGLabel *fLabDir ;
|
---|
68 | TGListBox *fDir ;
|
---|
69 | TGPictureButton *fCdup, *fListMode, *fDetail ;
|
---|
70 | TGFileContainer *fFileCont ;
|
---|
71 | TGListView *fFileView ;
|
---|
72 |
|
---|
73 | // Layout hints for different uses
|
---|
74 |
|
---|
75 | TGLayoutHints *fLayMenuBar, *fLayMenuItem ;
|
---|
76 | TGLayoutHints *fLayTab ;
|
---|
77 |
|
---|
78 | // some icons and pictures often used
|
---|
79 |
|
---|
80 | const TGPicture *fPicCdup; //!
|
---|
81 | const TGPicture *fPicList; //!
|
---|
82 | const TGPicture *fPicDetail; //!
|
---|
83 |
|
---|
84 | public:
|
---|
85 | MGPrototyp(const TGWindow *p, const TGWindow *main, UInt_t w, UInt_t h) ;
|
---|
86 |
|
---|
87 | ~MGPrototyp();
|
---|
88 |
|
---|
89 | void CloseWindow() ;
|
---|
90 |
|
---|
91 | Bool_t InputFileSelected() ;
|
---|
92 |
|
---|
93 | Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2);
|
---|
94 |
|
---|
95 | ClassDef(MGPrototyp, 0)
|
---|
96 |
|
---|
97 | } ;
|
---|
98 |
|
---|
99 | #endif
|
---|
100 |
|
---|
101 |
|
---|