35 kNODE_NAME, kNODE_ID, kNODE_VOLSEL, kNODE_MVOLSEL,
36 kNODE_MATRIX, kNODE_EDIT_VOL, kNODE_EDIT_MATRIX
73 gClient->GetColorByName(
"#0000ff", color);
91 gClient->GetColorByName(
"#0000ff", color);
109 gClient->GetColorByName(
"#0000ff", color);
156 fApply->
Connect(
"Clicked()",
"TGeoNodeEditor",
this,
"DoApply()");
157 fUndo->
Connect(
"Clicked()",
"TGeoNodeEditor",
this,
"DoUndo()");
161 fNodeName->
Connect(
"TextChanged(const char *)",
"TGeoNodeEditor",
this,
"DoNodeName()");
204 else fSelectedMother = vol;
216 else fSelectedVolume = vol;
228 else fSelectedMatrix = matrix;
276 if (!name[0] || !strcmp(name,
fNode->
GetName()))
return;
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
TGPictureButton * fBSelMatrix
TGeoVolume * fSelectedMother
TGTextButton * fEditVolume
virtual const char * GetName() const
Return unique name, used in SavePrimitive methods.
void SetTab()
Set a given tab element as active one.
TGPictureButton * fBSelMother
TGeoVolume * GetVolume() const
TGeoVolume * fSelectedVolume
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
ClassImp(TSeqCollection) Int_t TSeqCollection TIter next(this)
Return index of object in collection.
virtual Bool_t IsComposite() const
virtual void SetTextColor(Pixel_t color, Bool_t global=kFALSE)
Changes text color.
TGeoMatrix * fSelectedMatrix
virtual void SetToolTipText(const char *text, Long_t delayms=500)
Set tool tip text associated with this text entry.
virtual void SetName(const char *name)
Change (i.e.
virtual void SetNumber(Double_t val)
virtual void Draw(Option_t *option="")
draw top volume according to option
void DoEditMother()
Edit the mother volume.
void DoNodeNumber()
Change node copy number.
virtual TList * GetList() const
TGTextButton * fEditMother
virtual void SetModel(TObject *obj)
Connect to a editable object.
void SetVolTabEnabled(Bool_t flag=kTRUE)
Enable/disable tabs.
static void Cleanup(TGCompositeFrame *frame)
Static method to cleanup hirarchically all daughters of a composite frame.
void DoSelectMother()
Select the mother volume.
TGNumberEntryField * GetNumberEntry() const
virtual void SetText(TGString *newText)
Set new text in label.
TGTextButton * fEditMatrix
const char * GetText() const
virtual void SetActive(Bool_t active=kTRUE)
Set active GUI attribute frames related to the selected object.
void DoEditMatrix()
Edit selected material.
TGCompositeFrame(const TGCompositeFrame &)
virtual TGeoMatrix * GetMatrix() const =0
void DoSelectMatrix()
Select the matrix.
virtual void ConnectSignals2Slots()
Connect signals to slots.
TGPictureButton * fBSelVolume
Bool_t Connect(const char *signal, const char *receiver_class, void *receiver, const char *slot)
Non-static method is used to connect from the signal of this object to the receiver slot...
virtual void Associate(const TGWindow *w)
Make w the window that will receive the generated messages.
virtual void SetSize(const TGDimension &s)
virtual ~TGeoNodeEditor()
Destructor.
ClassImp(TGeoNodeEditor) enum ETGeoNodeWid
void GetVolumeEditor(TGeoVolume *vol)
Get editor for a volume.
virtual const char * GetName() const
Returns name of object.
void DoUndo()
Slot for undoing last operation.
TGDimension GetSize() const
const TGPicture * GetPicture(const char *name)
Get picture from the picture pool.
static TObject * GetSelected()
void DoSelectVolume()
Select the volume.
TGeoNodeEditor(const TGWindow *p=0, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor for node editor.
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
Mother of all ROOT objects.
virtual UInt_t GetDefaultHeight() const
void DoEditVolume()
Edit selected volume.
TGeoVolume * GetMotherVolume() const
virtual void SetText(const char *text, Bool_t emit=kTRUE)
Sets text entry to text, clears the selection and moves the cursor to the end of the line...
void DoNodeName()
Change node name.
virtual void Cleanup()
Cleanup and delete all objects contained in this composite frame.
TGNumberEntry * fNodeNumber
virtual void MakeTitle(const char *title)
Create attribute frame title.
void GetMatrixEditor(TGeoMatrix *matrix)
Get editor for a matrix.
virtual void ChangeOptions(UInt_t options)
Change frame options. Options is an OR of the EFrameTypes.
void DoApply()
Slot for applying modifications.