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

Last change on this file since 761 was 719, checked in by tbretz, 24 years ago
*** empty log message ***
File size: 2.2 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 TGMenuBar;
13class TGPopupMenu;
14class TGTab;
15class TGComboBox;
16class TGTextButton;
17class TGListBox;
18class TGPictureButton;
19class TGFileContainer;
20class TGListView;
21
22class MBrowser : public TGTransientFrame
23{
24private:
25
26 //
27 // Create a main frame with a number of different buttons.
28 //
29
30 // some member not connected with Gui
31
32 // the things for the menu bar
33
34 TGMenuBar *fMenuBar ;
35 TGPopupMenu *fFileMenu ;
36
37 //
38 // divide the Window in two different parts
39 //
40 TGCompositeFrame *fFrameTop; // top part of the main window
41 TGCompositeFrame *fFrameLow; // low part of the main window
42 TGTab *fTab; // different tabs in the low window
43
44 //
45 // the things in the file selector
46 //
47 TGCompositeFrame *fTabF1; // first tab of low part
48 TGCompositeFrame *fTabF1a; // subpart of the file selector in low window
49 TGCompositeFrame *fTabF1b; // subpart of the file selector in low window
50 TGComboBox *fDir;
51 TGPictureButton *fCdup;
52 TGPictureButton *fListMode;
53 TGPictureButton *fDetail;
54 TGFileContainer *fFileCont;
55 TGListView *fFileView;
56
57 // Layout hints for different uses
58
59 TGLayoutHints *fLayMenuBar;
60 TGLayoutHints *fLayMenuItem;
61 TGLayoutHints *fLayTab;
62
63 // some icons and pictures often used
64
65 const TGPicture *fPicCdup;
66 const TGPicture *fPicList;
67 const TGPicture *fPicDetail;
68
69protected:
70 Char_t fInputFile[256];
71
72 void DisplError(const char *txt);
73 void DisplWarning(const char *txt);
74 void DisplInfo(const char *txt);
75
76 void ChangeDir(const char *txt=NULL);
77
78 TGHorizontalFrame *fTop1;
79 TGHorizontalFrame *fTop2;
80 TGHorizontalFrame *fTop3;
81
82 public:
83 MBrowser(const TGWindow *main=NULL, const TGWindow *p=NULL,
84 const UInt_t w=500, const UInt_t h=500) ;
85
86 ~MBrowser();
87
88 void CloseWindow();
89
90 Bool_t InputFileSelected();
91
92 virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2);
93} ;
94
95#endif
96
97
Note: See TracBrowser for help on using the repository browser.