source: trunk/MagicSoft/Mars/mmain/MBrowser.h@ 949

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