52 TGLabel* fMaxObjectslabel =
new TGLabel(maxObjectsFrame,
"Max objects:");
53 maxObjectsFrame->
AddFrame(fMaxObjectslabel);
59 fMaxObjectsNumberEntry->Connect(
"ValueSet(Long_t)",
"TStructNodeEditor",
this,
"MaxObjectsValueSetSlot(Long_t)");
61 this->
AddFrame(maxObjectsFrame, expandX);
64 TGLabel* fMaxLevelsLabel =
new TGLabel(maxLevelFrame,
"Max levels:");
65 maxLevelFrame->
AddFrame(fMaxLevelsLabel);
70 fMaxLevelsNumberEntry->Connect(
"ValueSet(Long_t)",
"TStructNodeEditor",
this,
"MaxLevelsValueSetSlot(Long_t)");
72 this->
AddFrame(maxLevelFrame, expandX);
79 fColorSelect->Connect(
"ColorSelected(Pixel_t)",
"TStructNodeEditor",
this,
"ColorSelectedSlot(Pixel_t)");
85 fAutoRefesh->Connect(
"Toggled(Bool_t)",
"TStructNodeEditor",
this,
"AutoRefreshButtonSlot(Bool_t)");
90 fDefaultButton->Connect(
"Clicked()",
"TStructNodeEditor",
this,
"DefaultButtonSlot()");
96 fApplyButton->Connect(
"Clicked()",
"TStructNodeEditor",
this,
"ApplyButtonSlot()");
194 if (cl->InheritsFrom(propName.
Data())) {
295 Emit(
"Update(Bool_t)",
false);
304 Emit(
"Update(Bool_t)", resetCamera);
ULong_t Pixel_t
Pixel value.
int Int_t
Signed integer 4 bytes (int).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
long Long_t
Signed long integer 4 bytes (long). Size depends on architecture.
bool Bool_t
Boolean (0=false, 1=true) (bool).
TClass instances represent classes, structs and namespaces in the ROOT type system.
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.
Like a checkbutton but instead of the check mark there is color area with a little down arrow.
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=nullptr)
Add frame to the composite frame using the specified layout hints.
A composite frame that layout their children in horizontal way.
This class handles GUI labels.
This class describes layout hints used by the layout classes.
TGNumberEntry is a number entry input widget with up/down buttons.
Yield an action as soon as it is clicked.
A TGTextEntry is a one line text input widget.
ROOT GUI Window base class.
TString fName
name of the window used in SavePrimitive()
TGedFrame(const TGedFrame &)=delete
Bool_t fInit
init flag for setting signals/slots
virtual void MakeTitle(const char *title)
Create attribute frame title.
Bool_t fAvoidSignal
flag for executing slots
const char * GetName() const override
Returns name of object.
Mother of all ROOT objects.
void Emit(const char *signal, const T &arg)
Activate signal with single parameter.
Bool_t EndsWith(const char *pat, ECaseCompare cmp=kExact) const
Return true if string ends with the specified string.
const char * Data() const
TString & Remove(Ssiz_t pos)
TGColorSelect * fColorSelect
void MaxLevelsValueSetSlot(Long_t)
Emmited when user changes maximum number of levels.
TStructNodeProperty * GetDefaultProperty()
Returns property with default color.
void MaxObjectsValueSetSlot(Long_t)
Emmited when user changes maximum number of objects.
void DefaultButtonSlot()
Slot for Defaulf button. Sets color of class to default.
~TStructNodeEditor() override
Destructor of node editor.
TGNumberEntry * fMaxLevelsNumberEntry
void AutoRefreshButtonSlot(Bool_t on)
Activated when user chage condition.
void ColorSelectedSlot(Pixel_t color)
Slot connected to the fill area color.
void SetModel(TObject *obj) override
Pick up the used node attributes.
TGNumberEntry * fMaxObjectsNumberEntry
TStructNodeProperty * fSelectedPropert
TGCheckButton * fAutoRefesh
TStructNodeEditor(TList *colors, const TGWindow *p=nullptr, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor of node attributes GUI.
TGTextButton * fApplyButton
TGTextButton * fDefaultButton
void Update() override
Signal emmited when color or other property like number of level is changed without camera reset.
TStructNodeProperty * FindNodeProperty(TStructNode *node)
Retruns property associated to the class of given node "node".
void Init()
Enables button and fields.
void ApplyButtonSlot()
ApplyButton Slot. Activated when user press Apply button. Sets properties of a node.
void SetColor(const TColor &color)
Sets the color to "color".
TString GetTypeName() const
Returns name of class.