2 // Category: interfaces
6 //======================================================
8 //------------TG4VolumesFrames.h--------------------------------//
9 //---------Frames for the the display of volumes properties---//
11 //=======================================================
13 #ifndef TG4_VOLUMESFRAMES_H
14 #define TG4_VOLUMESFRAMES_H
28 class TG4VolumesFrames : public TObject {
32 TG4VolumesFrames( TGTab* Tab, TG4MainFrame* actionFrame);
33 virtual ~TG4VolumesFrames();
35 void SetVolumesComboEntries();
36 void DisplayVolumeCharacteristics();
37 void DisplayUserLimits();
39 void DisplayControls();
43 TG4VolumesFrames(const TG4VolumesFrames& vf) ;
44 TG4VolumesFrames& operator=(const TG4VolumesFrames& vf) ;
47 TString GetLimitsDisplay(G4UserLimits* limits) const;
48 TString GetCutsDisplay(G4UserLimits* limits) const;
49 TString GetControlsDisplay(G4UserLimits* limits) const;
51 TG4MainFrame* fPanel; //main frame
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
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
60 TGLayoutHints* fVolFrameLayout; // layout hints for SubFrames
61 TGHorizontalFrame* fHframe[3]; // horizontal frames for text entries
62 TGLabel* fLabel[3]; // labels for text entries
63 TGTextBuffer* fVolTextBuff[3]; // text buffs for vols propertie
64 TGTextEntry* fVolTextEntry[3]; // text entries for vols properties
65 TGComboBox* fVolumesCombo; // volumes combo box
66 TGLabel* fComboLabel; // label for combo box
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
71 void AddLogicalVolumeName( const char* name, Int_t index) const;
73 ClassDef(TG4VolumesFrames,0)
74 // class for the composition of the volumes display frame