]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TGeant4/TG4GUI.h
Corrected bug in constructor (fIshunt has to be =1)
[u/mrichter/AliRoot.git] / TGeant4 / TG4GUI.h
1 // $Id$
2 // Category: interfaces
3 //
4 // Author: D. Adamova
5 //
6 //======================================================
7 //
8 //------------TG4GUI.h--------------------------------//
9 //---------Main Window for the AG4 Geometry Browser---//
10 //
11 //=======================================================
12
13 #ifndef TG4_GUI_H
14 #define TG4_GUI_H
15
16 #include <TGFrame.h>
17
18 class TObject;
19 class TGListTreeItem;
20 class TGPicture;
21 class TGListTree;
22 class TGTab;
23 class TGMenuBar;
24 class TGPopupMenu;
25 class TGCanvas;
26
27 class TG4GUI : public TGMainFrame {
28
29 public:   
30     
31     TG4GUI(const TGWindow *p, UInt_t w, UInt_t h);
32     virtual ~TG4GUI();
33  
34     virtual TGListTreeItem*
35         AddItem(TObject* obj, TGListTreeItem* parent,const char* name,
36                 const TGPicture* open, const TGPicture* closed);    
37  
38      virtual void CloseWindow();
39  
40      virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2);    
41       
42 private:
43     TGTab*      fTab;           // Contains Tab entries
44     TGCanvas*   fCanvasWindow;  // Canvas window for the list tree
45     TGListTree* fLt;            // Volumes list tree 
46    
47     TGMenuBar*          fMenuBar;          // main menu bar   
48     TGPopupMenu*        fMenuFile;         // popup for window manipulations
49     TGPopupMenu*        fMenuTest;         // popup for test messages
50     TGPopupMenu*        fMenuHelp;         // popup for help messages
51     TGLayoutHints*      fMenuBarItemLayout;// layout left
52     TGLayoutHints*      fMenuBarHelpLayout;// layout right
53     TGLayoutHints*      fMenuBarLayout;    // main bar layout 
54   
55    TG4GUI(const TG4GUI& gm) 
56     : TGMainFrame( (const TGMainFrame&) gm) {}
57   virtual TG4GUI& operator=(const TG4GUI& gm) {return *this;}
58     
59
60     ClassDef(TG4GUI,0)    
61   };
62   
63 #endif