]>
Commit | Line | Data |
---|---|---|
4b1d6659 | 1 | // $Id$ |
2 | // Category: interfaces | |
3 | // | |
4 | // Author: D. Adamova | |
5 | // | |
6 | //====================================================== | |
7 | // | |
8 | //------------TG4VolumesFrames.h--------------------------------// | |
9 | //---------Frames for the the display of volumes properties---// | |
10 | // | |
11 | //======================================================= | |
12 | ||
13 | #ifndef TG4_VOLUMESFRAMES_H | |
14 | #define TG4_VOLUMESFRAMES_H | |
15 | ||
16 | #include <TObject.h> | |
17 | #include <TGFrame.h> | |
39dd4871 | 18 | #include <TGButton.h> |
19 | #include "TG4MainFrame.h" | |
4b1d6659 | 20 | |
21 | class TGLabel; | |
f9ea40e1 | 22 | class TGTab; |
4b1d6659 | 23 | class TGTextBuffer; |
24 | class TGTextEntry; | |
25 | class TGComboBox; | |
39dd4871 | 26 | class G4UserLimits; |
4b1d6659 | 27 | |
28 | class TG4VolumesFrames : public TObject { | |
29 | ||
30 | public: | |
31 | ||
f9ea40e1 | 32 | TG4VolumesFrames( TGTab* Tab, TGMainFrame* actionFrame); |
4b1d6659 | 33 | virtual ~TG4VolumesFrames(); |
34 | ||
35 | void SetVolumesComboEntries(); | |
36 | void DisplayVolumeCharacteristics(); | |
39dd4871 | 37 | void DisplayUserLimits(); |
38 | void SetPanel(TGMainFrame* ActionFrame); | |
4b1d6659 | 39 | |
40 | protected: | |
41 | ||
42 | TG4VolumesFrames(const TG4VolumesFrames& vf) ; | |
43 | TG4VolumesFrames& operator=(const TG4VolumesFrames& vf) ; | |
44 | ||
45 | private: | |
39dd4871 | 46 | TString GetDisplay(G4UserLimits* limits) const; |
4b1d6659 | 47 | |
48 | TGCompositeFrame* fCapFrame; // the top frame for volumes properties display | |
49 | TGCompositeFrame* fVolSubframe1; // frame for the combo box | |
50 | TGCompositeFrame* fVolSubframe2; // frame for the text entries | |
39dd4871 | 51 | TGGroupFrame* fGrFrame; // frame for user's limits |
52 | TGHorizontalFrame* fGrHFrame; // frame to hold text buttons | |
53 | TGTextButton* fbtsumm; // button to invoke user's limits display | |
54 | TGTextButton* fbtcuts; // button to invoke cuts display | |
55 | TGTextButton* fbtcontrols; // button to invoke controls display | |
4b1d6659 | 56 | TGLayoutHints* fVolFrameLayout; // layout hints for SubFrames |
57 | TGHorizontalFrame* fHframe[3]; // horizontal frames for text entries | |
58 | TGLabel* fLabel[3]; // labels for text entries | |
39dd4871 | 59 | TGTextBuffer* fVolTextBuff[3]; // text buffs for vols propertie |
60 | TGTextEntry* fVolTextEntry[3]; // text entries for vols properties | |
4b1d6659 | 61 | TGComboBox* fVolumesCombo; // volumes combo box |
62 | TGLabel* fComboLabel; // label for combo box | |
39dd4871 | 63 | |
64 | TGTextBuffer* fDisplBuff; //buffer containing text for user limits display | |
65 | TG4MainFrame* fPanel; //main frame | |
66 | ||
67 | ||
4b1d6659 | 68 | |
69 | ||
70 | void AddLogicalVolumeName( const char* name, Int_t index) const; | |
71 | ||
72 | ClassDef(TG4VolumesFrames,0) | |
73 | // class for the composition of the volumes display frame | |
74 | }; | |
75 | ||
76 | #endif | |
77 | ||
78 | ||
79 | ||
80 | ||
81 | ||
82 |