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