]>
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> |
4b1d6659 | 19 | |
20 | class TGLabel; | |
f9ea40e1 | 21 | class TGTab; |
4b1d6659 | 22 | class TGTextBuffer; |
23 | class TGTextEntry; | |
24 | class TGComboBox; | |
39dd4871 | 25 | class G4UserLimits; |
65b5af58 | 26 | class TG4MainFrame; |
4b1d6659 | 27 | |
28 | class TG4VolumesFrames : public TObject { | |
29 | ||
30 | public: | |
31 | ||
65b5af58 | 32 | TG4VolumesFrames( TGTab* Tab, TG4MainFrame* actionFrame); |
4b1d6659 | 33 | virtual ~TG4VolumesFrames(); |
34 | ||
35 | void SetVolumesComboEntries(); | |
36 | void DisplayVolumeCharacteristics(); | |
39dd4871 | 37 | void DisplayUserLimits(); |
65b5af58 | 38 | void DisplayCuts(); |
39 | void DisplayControls(); | |
4b1d6659 | 40 | |
41 | protected: | |
42 | ||
43 | TG4VolumesFrames(const TG4VolumesFrames& vf) ; | |
44 | TG4VolumesFrames& operator=(const TG4VolumesFrames& vf) ; | |
45 | ||
46 | private: | |
65b5af58 | 47 | TString GetLimitsDisplay(G4UserLimits* limits) const; |
48 | TString GetCutsDisplay(G4UserLimits* limits) const; | |
49 | TString GetControlsDisplay(G4UserLimits* limits) const; | |
50 | ||
51 | TG4MainFrame* fPanel; //main frame | |
4b1d6659 | 52 | TGCompositeFrame* fCapFrame; // the top frame for volumes properties display |
53 | TGCompositeFrame* fVolSubframe1; // frame for the combo box | |
54 | TGCompositeFrame* fVolSubframe2; // frame for the text entries | |
39dd4871 | 55 | TGGroupFrame* fGrFrame; // frame for user's limits |
56 | TGHorizontalFrame* fGrHFrame; // frame to hold text buttons | |
57 | TGTextButton* fbtsumm; // button to invoke user's limits display | |
58 | TGTextButton* fbtcuts; // button to invoke cuts display | |
59 | TGTextButton* fbtcontrols; // button to invoke controls display | |
4b1d6659 | 60 | TGLayoutHints* fVolFrameLayout; // layout hints for SubFrames |
61 | TGHorizontalFrame* fHframe[3]; // horizontal frames for text entries | |
62 | TGLabel* fLabel[3]; // labels for text entries | |
39dd4871 | 63 | TGTextBuffer* fVolTextBuff[3]; // text buffs for vols propertie |
64 | TGTextEntry* fVolTextEntry[3]; // text entries for vols properties | |
4b1d6659 | 65 | TGComboBox* fVolumesCombo; // volumes combo box |
66 | TGLabel* fComboLabel; // label for combo box | |
65b5af58 | 67 | TGTextBuffer* fDisplBuffLimits; //buffer containing text for user limits display |
68 | TGTextBuffer* fDisplBuffCuts; //buffer containing text for cuts display | |
69 | TGTextBuffer* fDisplBuffControls; //buffer containing text for controls display | |
39dd4871 | 70 | |
4b1d6659 | 71 | void AddLogicalVolumeName( const char* name, Int_t index) const; |
72 | ||
73 | ClassDef(TG4VolumesFrames,0) | |
74 | // class for the composition of the volumes display frame | |
75 | }; | |
76 | ||
77 | #endif | |
78 |