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

Last change on this file since 1041 was 1030, checked in by tbretz, 24 years ago
*** empty log message ***
File size: 1.7 KB
Line 
1#ifndef MARS_MBrowser
2#define MARS_MBrowser
3
4#ifndef MARS_MAGIC
5#include "MAGIC.h"
6#endif
7
8#ifndef ROOT_TGFrame
9#include <TGFrame.h>
10#endif
11
12class TList;
13class TGTab;
14class TGListView;
15class TGComboBox;
16class TGProgressBar;
17class TGPictureButton;
18class TGFileContainer;
19
20class MBrowser : public TGTransientFrame
21{
22private:
23 TGTab *fTabs;
24
25 TGComboBox *fDir;
26
27 TGPictureButton *fCdup;
28 TGPictureButton *fListMode;
29 TGPictureButton *fDetail;
30
31 TGFileContainer *fFileCont;
32 TGListView *fFileView;
33
34 const TGPicture *fPic1;
35 const TGPicture *fPic2;
36 const TGPicture *fPic3;
37
38 void CreateMenuBar();
39 void CreateTab1();
40 void CreateUpperFrame(TGCompositeFrame *frameup);
41 void CreateLowerFrame(TGCompositeFrame *framelow);
42 void CreateDirListMenu(TGCompositeFrame *frame);
43 void CreateDirListBox(TGCompositeFrame *frame);
44
45protected:
46 TList *fList;
47 Char_t fInputFile[256];
48
49 TGCompositeFrame *CreateNewTab(const char *name);
50
51 void DisplError(const char *txt);
52 void DisplWarning(const char *txt);
53 void DisplInfo(const char *txt);
54
55 void ChangeDir(const char *txt=NULL);
56
57 TGProgressBar *CreateProgressBar(TGHorizontalFrame *frame);
58 void DestroyProgressBar(TGProgressBar *bar);
59
60 TGHorizontalFrame *fTop1;
61 TGHorizontalFrame *fTop2;
62 TGHorizontalFrame *fTop3;
63
64 public:
65 MBrowser(const TGWindow *main=NULL, const TGWindow *p=NULL,
66 const UInt_t w=500, const UInt_t h=500) ;
67
68 virtual ~MBrowser();
69
70 void CloseWindow();
71
72 Bool_t InputFileSelected();
73
74 virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2);
75
76 ClassDef(MBrowser, 0) // Base class for the Gui-Browsers
77} ;
78
79#endif
80
81
Note: See TracBrowser for help on using the repository browser.