File indexing completed on 2025-01-18 10:11:53
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #ifndef ROOT_TGeoNodeEditor
0013 #define ROOT_TGeoNodeEditor
0014
0015 #include "TGWidget.h"
0016 #include "TGeoGedFrame.h"
0017
0018 class TGeoNode;
0019 class TGeoVolume;
0020 class TGeoMatrix;
0021 class TGTextEntry;
0022 class TGNumberEntry;
0023 class TGTab;
0024 class TGComboBox;
0025 class TGTextButton;
0026 class TGPictureButton;
0027 class TGCheckButton;
0028 class TGeoTabManager;
0029
0030 class TGeoNodeEditor : public TGeoGedFrame {
0031
0032 protected:
0033 TGeoNode *fNode;
0034
0035 Bool_t fIsEditable;
0036 TGTextEntry *fNodeName;
0037 TGNumberEntry *fNodeNumber;
0038 TGeoVolume *fSelectedVolume;
0039 TGLabel *fLSelVolume;
0040 TGPictureButton *fBSelVolume;
0041 TGeoVolume *fSelectedMother;
0042 TGLabel *fLSelMother;
0043 TGPictureButton *fBSelMother;
0044 TGeoMatrix *fSelectedMatrix;
0045 TGLabel *fLSelMatrix;
0046 TGPictureButton *fBSelMatrix;
0047 TGTextButton *fEditMother;
0048 TGTextButton *fEditVolume;
0049 TGTextButton *fEditMatrix;
0050 TGTextButton *fApply;
0051 TGTextButton *fCancel;
0052 TGTextButton *fUndo;
0053
0054 virtual void ConnectSignals2Slots();
0055
0056 public:
0057 TGeoNodeEditor(const TGWindow *p = nullptr, Int_t width = 140, Int_t height = 30, UInt_t options = kChildFrame,
0058 Pixel_t back = GetDefaultFrameBackground());
0059 ~TGeoNodeEditor() override;
0060 void SetModel(TObject *obj) override;
0061
0062 void DoEditMother();
0063 void DoEditVolume();
0064 void DoEditMatrix();
0065 void DoSelectMother();
0066 void DoSelectVolume();
0067 void DoSelectMatrix();
0068 void DoNodeName();
0069 void DoNodeNumber();
0070 void DoApply();
0071 void DoUndo();
0072
0073 ClassDefOverride(TGeoNodeEditor, 0)
0074 };
0075
0076 #endif