Line | |
---|
1 | #ifndef MBROWSER_H
|
---|
2 | #define MBROWSER_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 TList;
|
---|
13 | class TGTab;
|
---|
14 | class TGListView;
|
---|
15 | class TGComboBox;
|
---|
16 | class TGPictureButton;
|
---|
17 | class TGFileContainer;
|
---|
18 |
|
---|
19 | class MBrowser : public TGTransientFrame
|
---|
20 | {
|
---|
21 | private:
|
---|
22 | TGTab *fTabs;
|
---|
23 |
|
---|
24 | TGComboBox *fDir;
|
---|
25 |
|
---|
26 | TGPictureButton *fCdup;
|
---|
27 | TGPictureButton *fListMode;
|
---|
28 | TGPictureButton *fDetail;
|
---|
29 |
|
---|
30 | TGFileContainer *fFileCont;
|
---|
31 | TGListView *fFileView;
|
---|
32 |
|
---|
33 | const TGPicture *fPic1;
|
---|
34 | const TGPicture *fPic2;
|
---|
35 | const TGPicture *fPic3;
|
---|
36 |
|
---|
37 | void CreateMenuBar();
|
---|
38 | void CreateTab1();
|
---|
39 | void CreateUpperFrame(TGCompositeFrame *frameup);
|
---|
40 | void CreateLowerFrame(TGCompositeFrame *framelow);
|
---|
41 | void CreateDirListMenu(TGCompositeFrame *frame);
|
---|
42 | void CreateDirListBox(TGCompositeFrame *frame);
|
---|
43 |
|
---|
44 | protected:
|
---|
45 | TList *fList;
|
---|
46 | Char_t fInputFile[256];
|
---|
47 |
|
---|
48 | TGCompositeFrame *CreateNewTab(const char *name);
|
---|
49 |
|
---|
50 | void DisplError(const char *txt);
|
---|
51 | void DisplWarning(const char *txt);
|
---|
52 | void DisplInfo(const char *txt);
|
---|
53 |
|
---|
54 | void ChangeDir(const char *txt=NULL);
|
---|
55 |
|
---|
56 | TGHorizontalFrame *fTop1;
|
---|
57 | TGHorizontalFrame *fTop2;
|
---|
58 | TGHorizontalFrame *fTop3;
|
---|
59 |
|
---|
60 | public:
|
---|
61 | MBrowser(const TGWindow *main=NULL, const TGWindow *p=NULL,
|
---|
62 | const UInt_t w=500, const UInt_t h=500) ;
|
---|
63 |
|
---|
64 | virtual ~MBrowser();
|
---|
65 |
|
---|
66 | void CloseWindow();
|
---|
67 |
|
---|
68 | Bool_t InputFileSelected();
|
---|
69 |
|
---|
70 | virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2);
|
---|
71 |
|
---|
72 | ClassDef(MBrowser, 0) // Base class for the gui
|
---|
73 | } ;
|
---|
74 |
|
---|
75 | #endif
|
---|
76 |
|
---|
77 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.