source: branches/Mars_McMismatchStudy/mmain/MBrowser.h@ 19690

Last change on this file since 19690 was 1668, checked in by tbretz, 22 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 MGList;
13class TGTab;
14class TGListView;
15class TGTextEntry;
16class TGFSComboBox;
17class TGProgressBar;
18class TGPictureButton;
19class TGFileContainer;
20
21class MBrowser : public TGMainFrame/*TGTransientFrame*/
22{
23private:
24 TGTab *fTabs;
25
26 TGTextEntry *fEntry;
27
28 TGFileContainer *fFileCont;
29 TGListView *fFileView;
30
31 void CreateMenuBar();
32 void CreateTab1();
33 void CreateUpperFrame(TGCompositeFrame *frameup);
34 void CreateLowerFrame(TGCompositeFrame *framelow);
35 void CreateDirListMenu(TGCompositeFrame *frame);
36 void CreateDirListBox(TGCompositeFrame *frame);
37
38 void SetFileName(TString name);
39
40 void SetFilter();
41 void SetDir();
42 void SetViewMode(const Int_t mode);
43
44protected:
45 MGList *fList;
46 TString fInputFile;
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 TGProgressBar *CreateProgressBar(TGHorizontalFrame *frame);
57 void DestroyProgressBar(TGProgressBar *bar);
58
59 TGHorizontalFrame *fTop1;
60 TGHorizontalFrame *fTop2;
61 TGHorizontalFrame *fTop3;
62
63 public:
64 MBrowser(/*const TGWindow *main=NULL,*/ const TGWindow *p=NULL,
65 const UInt_t w=500, const UInt_t h=500) ;
66
67 virtual ~MBrowser();
68
69 void CloseWindow();
70
71 Bool_t InputFileSelected();
72
73 virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2);
74
75 ClassDef(MBrowser, 0) // Base class for the Gui-Browsers
76} ;
77
78#endif
79
80
Note: See TracBrowser for help on using the repository browser.