File indexing completed on 2025-01-18 10:11:55
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 #ifndef ROOT_TGeoTrd1Editor
0012 #define ROOT_TGeoTrd1Editor
0013
0014 #include "TGWidget.h"
0015 #include "TGeoGedFrame.h"
0016
0017 class TGeoTrd1;
0018 class TGeoTabManager;
0019 class TGTextEntry;
0020 class TGNumberEntry;
0021 class TGTab;
0022 class TGComboBox;
0023 class TGTextButton;
0024 class TGCheckButton;
0025 class TString;
0026
0027 class TGeoTrd1Editor : public TGeoGedFrame {
0028
0029 protected:
0030 Double_t fDxi1;
0031 Double_t fDxi2;
0032 Double_t fDyi;
0033 Double_t fDzi;
0034 TString fNamei;
0035 TGeoTrd1 *fShape;
0036 Bool_t fIsModified;
0037 Bool_t fIsShapeEditable;
0038
0039 TGTextEntry *fShapeName;
0040 TGNumberEntry *fEDx1;
0041 TGNumberEntry *fEDx2;
0042 TGNumberEntry *fEDy;
0043 TGNumberEntry *fEDz;
0044 TGTextButton *fApply;
0045 TGTextButton *fUndo;
0046 TGCheckButton *fDelayed;
0047
0048 virtual void ConnectSignals2Slots();
0049 Bool_t IsDelayed() const;
0050
0051 public:
0052 TGeoTrd1Editor(const TGWindow *p = nullptr, Int_t width = 140, Int_t height = 30, UInt_t options = kChildFrame,
0053 Pixel_t back = GetDefaultFrameBackground());
0054 ~TGeoTrd1Editor() override;
0055 void SetModel(TObject *obj) override;
0056
0057 void DoDx1();
0058 void DoDx2();
0059 void DoDy();
0060 void DoDz();
0061 void DoModified();
0062 void DoName();
0063 void DoApply();
0064 void DoUndo();
0065
0066 ClassDefOverride(TGeoTrd1Editor, 0)
0067 };
0068
0069 #endif