flistTreeFrame attribute added; fCanvasWindow removed
[u/mrichter/AliRoot.git] / TGeant4 / TG4MainFrame.h
CommitLineData
c26cc566 1// $Id$
2// Category: interfaces
3//
4// Author: D. Adamova
5//
6//======================================================
7//
8//------------TG4MainFrame.h--------------------------------//
9//---------Main Window for the AG4 Geometry Browser---//
10//
11//=======================================================
12
13#ifndef TG4_MAIN_FRAME_H
14#define TG4_MAIN_FRAME_H
15
16#include <TGFrame.h>
17
da7b0245 18class TG4ListTreeFrame;
c26cc566 19class TG4VolumesFrames;
20class TG4MaterialsFrames;
21class TObject;
22class TGListTreeItem;
23class TGPicture;
24class TGListTree;
25class TGTab;
26class TGMenuBar;
27class TGPopupMenu;
c26cc566 28
29
30class TG4MainFrame : public TGMainFrame {
31
32public:
33
34 TG4MainFrame(const TGWindow *p, UInt_t w, UInt_t h);
35 ~TG4MainFrame();
36
37 TGListTreeItem*
38 AddItem(TObject* obj, TGListTreeItem* parent,const char* name,
39 const TGPicture* open, const TGPicture* closed);
40
41 TG4VolumesFrames* GetVolumesFrames() const;
42 TG4MaterialsFrames* GetMaterialsFrames() const;
43 void CloseWindow();
44 Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2);
45//---------------------------------------------------------------------------
46
47protected:
48
49 TG4MainFrame& operator=(const TG4MainFrame& mf);
50 TG4MainFrame(const TG4MainFrame& mf);
51//----------------------------------------------------
52
53private:
54
55 TGMenuBar* fMenuBar; // main menu bar
56
57 TGPopupMenu* fPopupMenu; // popup for window manipulations
58 TGPopupMenu* fPopupMenuTest; // popup for test messages
59 TGPopupMenu* fPopupMenuHelp; // popup for help messages
60
61 TGLayoutHints* fMenuBarItemLayout;// layout left
62 TGLayoutHints* fMenuBarHelpLayout;// layout right
63 TGLayoutHints* fMenuBarLayout; // main bar layout
64
65 TGTab* fTab; // tab widget
c26cc566 66
67 TGListTree* fVolumesListTree; // volumes list tree
68
da7b0245 69 TG4VolumesFrames* fvolumesFrames; // service class for adding vols subframes
70 TG4MaterialsFrames* fmaterialsFrames; // service class for adding mats subframes
71 TG4ListTreeFrame* flistTreeFrame; // service class for volumes list tree
72
c26cc566 73 ClassDef(TG4MainFrame,0) // the main frame for the TG4 Browser
74 };
75
76//
77
78#endif