Warning, file /include/root/TStructNodeEditor.h was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #ifndef ROOT_TStructNodeEditor
0013 #define ROOT_TStructNodeEditor
0014
0015 #include <TGedFrame.h>
0016
0017 class TList;
0018 class TStructNode;
0019 class TStructNodeProperty;
0020 class TGNumberEntry;
0021 class TGLabel;
0022 class TGTextEntry;
0023 class TGColorSelect;
0024 class TGCheckButton;
0025
0026 class TStructNodeEditor : public TGedFrame {
0027
0028 protected:
0029 TList *fColors;
0030 TStructNode *fNode;
0031 TGNumberEntry *fMaxObjectsNumberEntry;
0032 TGNumberEntry *fMaxLevelsNumberEntry;
0033 TGLabel *fTypeName;
0034 TGLabel *fNodeNameLabel;
0035 TGTextEntry *fNameEntry;
0036 TGColorSelect *fColorSelect;
0037 TStructNodeProperty *fSelectedPropert;
0038 TGTextButton *fDefaultButton;
0039 TGTextButton *fApplyButton;
0040 TGCheckButton *fAutoRefesh;
0041
0042 TStructNodeProperty* FindNodeProperty(TStructNode* node);
0043 TStructNodeProperty* GetDefaultProperty();
0044 void Init();
0045
0046 public:
0047 TStructNodeEditor(TList* colors, const TGWindow *p = nullptr, Int_t width = 140, Int_t height = 30,
0048 UInt_t options = kChildFrame, Pixel_t back = GetDefaultFrameBackground());
0049 ~TStructNodeEditor() override;
0050
0051 void ApplyButtonSlot();
0052 void AutoRefreshButtonSlot(Bool_t on);
0053 void ColorSelectedSlot(Pixel_t color);
0054 void DefaultButtonSlot();
0055 void MaxLevelsValueSetSlot(Long_t);
0056 void MaxObjectsValueSetSlot(Long_t);
0057 void SetModel(TObject* obj) override;
0058 void Update(Bool_t resetCamera);
0059 void Update() override;
0060
0061 ClassDefOverride(TStructNodeEditor, 0);
0062 };
0063 #endif
0064