46 fNodeNameLabel =
new TGLabel(
this,
"No node selected");
47 this->AddFrame(fNodeNameLabel, expandX);
51 this->AddFrame(fTypeName, expandX);
54 TGLabel* fMaxObjectslabel =
new TGLabel(maxObjectsFrame,
"Max objects:");
55 maxObjectsFrame->
AddFrame(fMaxObjectslabel);
57 fMaxObjectsNumberEntry =
new TGNumberEntry(maxObjectsFrame, 0);
60 fMaxObjectsNumberEntry->SetState(
kFALSE);
61 fMaxObjectsNumberEntry->Connect(
"ValueSet(Long_t)",
"TStructNodeEditor",
this,
"MaxObjectsValueSetSlot(Long_t)");
62 maxObjectsFrame->
AddFrame(fMaxObjectsNumberEntry);
63 this->AddFrame(maxObjectsFrame, expandX);
66 TGLabel* fMaxLevelsLabel =
new TGLabel(maxLevelFrame,
"Max levels:");
67 maxLevelFrame->
AddFrame(fMaxLevelsLabel);
71 fMaxLevelsNumberEntry->SetState(
kFALSE);
72 fMaxLevelsNumberEntry->Connect(
"ValueSet(Long_t)",
"TStructNodeEditor",
this,
"MaxLevelsValueSetSlot(Long_t)");
73 maxLevelFrame->
AddFrame(fMaxLevelsNumberEntry);
74 this->AddFrame(maxLevelFrame, expandX);
77 this->AddFrame(fNameEntry, expandX);
78 fNameEntry->SetState(
kFALSE);
81 fColorSelect->Connect(
"ColorSelected(Pixel_t)",
"TStructNodeEditor",
this,
"ColorSelectedSlot(Pixel_t)");
82 this->AddFrame(fColorSelect, expandX);
83 fColorSelect->SetEnabled(
kFALSE);
87 fAutoRefesh->Connect(
"Toggled(Bool_t)",
"TStructNodeEditor",
this,
"AutoRefreshButtonSlot(Bool_t)");
88 fAutoRefesh->SetEnabled(
kFALSE);
89 this->AddFrame(fAutoRefesh, expandX);
91 fDefaultButton =
new TGTextButton(
this,
"Default color");
92 fDefaultButton->Connect(
"Clicked()",
"TStructNodeEditor",
this,
"DefaultButtonSlot()");
93 this->AddFrame(fDefaultButton, expandX);
94 fDefaultButton->SetEnabled(
kFALSE);
98 fApplyButton->Connect(
"Clicked()",
"TStructNodeEditor",
this,
"ApplyButtonSlot()");
99 fApplyButton->SetEnabled(
kFALSE);
100 this->AddFrame(fApplyButton, expandX);
192 if (propName.EndsWith(
"+")) {
195 propName.
Remove(propName.Length()-1, 1);
196 if (cl->InheritsFrom(propName.Data())) {
297 Emit(
"Update(Bool_t)",
false);
306 Emit(
"Update(Bool_t)", resetCamera);
virtual const char * GetName() const
Returns name of object.
TGNumberEntry * fMaxLevelsNumberEntry
UInt_t GetMaxLevel() const
Returns maximum number of leves displayed when the node is top node on scene.
virtual void SetName(const char *name)
Set the name of the TNamed.
void SetColor(Pixel_t color, Bool_t emit=kTRUE)
Set color.
void SetEnabled(Bool_t e=kTRUE)
Set enabled or disabled state of button.
virtual TObject * Last() const
Return the last object in the list. Returns 0 when list is empty.
TStructNodeProperty * FindNodeProperty(TStructNode *node)
Retruns property associated to the class of given node "node".
void MaxLevelsValueSetSlot(Long_t)
Emmited when user changes maximum number of levels.
virtual void SetState(Bool_t enable=kTRUE)
Set the active state.
UInt_t GetMaxObjects() const
Returns maximum number of objects displayed when the node is top node on scene.
void MaxObjectsValueSetSlot(Long_t)
Emmited when user changes maximum number of objects.
TGTextButton * fApplyButton
TStructNodeProperty * GetDefaultProperty()
Returns property with default color.
virtual void Sort(Bool_t order=kSortAscending)
Sort linked list.
virtual void SetState(Bool_t state)
Set state of widget. If kTRUE=enabled, kFALSE=disabled.
virtual Long_t GetIntNumber() const
virtual void SetText(TGString *newText)
Set new text in label.
TGTextButton * fDefaultButton
TGNumberEntry * fMaxObjectsNumberEntry
~TStructNodeEditor()
Destructor of node editor.
TString GetTypeName() const
Returns name of class.
const char * GetName() const
Returns name of object.
TStructNodeProperty * fSelectedPropert
virtual TObject * Remove(TObject *obj)
Remove object from the list.
void SetMaxObjects(UInt_t max)
Sets maximum number of objects displayed when the node is top node on scene.
TGCheckButton * fAutoRefesh
The ROOT global object gROOT contains a list of all defined classes.
virtual void SetIntNumber(Long_t val)
const char * GetText() const
TString & Remove(Ssiz_t pos)
void ColorSelectedSlot(Pixel_t color)
Slot connected to the fill area color.
void Update()
Signal emmited when color or other property like number of level is changed without camera reset...
void AutoRefreshButtonSlot(Bool_t on)
Activated when user chage condition.
TGColorSelect * fColorSelect
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
static TClass * GetClass(const char *name, Bool_t load=kTRUE, Bool_t silent=kFALSE)
Static method returning pointer to TClass of the specified class name.
void SetColor(const TColor &color)
Sets the color to "color".
std::string MakeTitle(std::string_view version, std::string_view histname, std::string_view title, std::string_view axis)
Mother of all ROOT objects.
void ApplyButtonSlot()
ApplyButton Slot. Activated when user press Apply button. Sets properties of a node.
void SetMaxLevel(UInt_t level)
Sets maximum number of leves displayed when the node is top node on scene.
virtual void Add(TObject *obj)
void DefaultButtonSlot()
Slot for Defaulf button. Sets color of class to default.
void Init()
Enables button and fields.
Pixel_t GetPixel() const
Return color in Pixel_t format.
void Emit(const char *signal, const T &arg)
Activate signal with single parameter.
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 SetModel(TObject *obj)
Pick up the used node attributes.