89 fBtnGroup->Connect(
"Pressed(Int_t)",
"TGuiBldEditor",
fEditor,
"UpdateBorder(Int_t)");
90 check->
Connect(
"Pressed()",
"TGuiBldEditor",
fEditor,
"UpdateBorder(=4)");
91 check->
Connect(
"Released()",
"TGuiBldEditor",
fEditor,
"UpdateBorder(=5)");
99 "UpdateBackground(Pixel_t)");
128 fBgndFrame->Connect(
"ColorSelected(Pixel_t)",
"TGuiBldEditor",
fEditor,
"UpdateBackground(Pixel_t)");
173 fLayoutButton->Connect(
"Clicked()",
"TGuiBldEditor",
this,
"SwitchLayout()");
174 fLayoutButton->SetToolTipText(
"If layout is on, all the frame \nelements get layouted automatically.");
183 fTab->Connect(
"Selected(Int_t)",
"TGuiBldEditor",
this,
"TabSelected(Int_t)");
223 fTextButton6366->
Resize(20,20);
231 fTextButton6367->
Resize(20,20);
239 fTextButton6364->
Resize(20,20);
247 fTextButton6365->
Resize(20,20);
257 fXpos->Connect(
"ValueSet(Long_t)",
"TGuiBldHintsEditor",
fHintsFrame,
"SetPosition()");
258 fYpos->Connect(
"ValueSet(Long_t)",
"TGuiBldHintsEditor",
fHintsFrame,
"SetPosition()");
260 fTextButton6364->
Connect(
"Clicked()",
"TGNumberEntry",
fXpos,
"IncreaseNumber(TGNumberFormat::EStepSize=0,-1)");
261 fTextButton6364->
Connect(
"Clicked()",
"TGuiBldHintsEditor",
fHintsFrame,
"SetPosition()");
262 fTextButton6365->
Connect(
"Clicked()",
"TGNumberEntry",
fXpos,
"IncreaseNumber()");
263 fTextButton6365->
Connect(
"Clicked()",
"TGuiBldHintsEditor",
fHintsFrame,
"SetPosition()");
264 fTextButton6366->
Connect(
"Clicked()",
"TGNumberEntry",
fYpos,
"IncreaseNumber(TGNumberFormat::EStepSize=0,-1)");
265 fTextButton6366->
Connect(
"Clicked()",
"TGuiBldHintsEditor",
fHintsFrame,
"SetPosition()");
266 fTextButton6367->
Connect(
"Clicked()",
"TGNumberEntry",
fYpos,
"IncreaseNumber()");
267 fTextButton6367->
Connect(
"Clicked()",
"TGuiBldHintsEditor",
fHintsFrame,
"SetPosition()");
519 "Enabling layout will automatically align and resize all the icons. \n Do you really want to layout them?",
527 if (retval ==
kMBOk) {
ULong_t Pixel_t
Pixel value.
int Int_t
Signed integer 4 bytes (int).
long Longptr_t
Integer large enough to hold a pointer (platform-dependent).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
bool Bool_t
Boolean (0=false, 1=true) (bool).
Like a checkbutton but instead of the check mark there is color area with a little down arrow.
virtual void SetLayoutManager(TGLayoutManager *l)
Set the layout manager for the composite frame.
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=nullptr)
Add frame to the composite frame using the specified layout hints.
void MapSubwindows() override
Map all sub windows that are part of the composite frame.
TGCompositeFrame(const TGCompositeFrame &)=delete
void SetCleanup(Int_t mode=kLocalCleanup) override
Turn on automatic cleanup of child frames in dtor.
Bool_t IsLayoutBroken() const override
void SetEditable(Bool_t on=kTRUE) override
Switch ON/OFF edit mode.
void SetEditDisabled(UInt_t on=1) override
Set edit disable flag for this frame and subframes.
A subclasses of TGWindow, and is used as base class for some simple widgets (buttons,...
virtual Bool_t IsLayoutBroken() const
void Resize(UInt_t w=0, UInt_t h=0) override
Resize the frame.
TGFrame(const TGFrame &)=delete
virtual void SetLayoutBroken(Bool_t=kTRUE)
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
void UnmapWindow() override
unmap window
void SetEditable(Bool_t) override
void MapRaised() override
map raised
A composite frame with a border and a title.
void SetFrame(TGFrame *frame, Bool_t above) override
Set frame to be resized.
A horizontal 3D line is a line that typically separates a toolbar from the menubar.
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.
TGClient * fClient
Connection to display server.
Service classes of the tab widget.
virtual void SetEnabled(Bool_t on=kTRUE)
A tab widget contains a set of composite frames each with a little tab with a name (like a set of fol...
This class describes layout hints used by the TGTableLayout class.
A layout manager, which places child frames in a table arranged in rows and columns,...
Yield an action as soon as it is clicked.
static FontStruct_t GetDefaultFontStruct()
Return default font structure.
TGVerticalFrame(const TGWindow *p=nullptr, UInt_t w=1, UInt_t h=1, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
ROOT GUI Window base class.
virtual UInt_t GetEditDisabled() const
@ kEditDisableLayout
window layout cannot be edited
virtual void SetWindowName(const char *name=nullptr)
Set window name.
const TGWindow * GetParent() const
UInt_t fEditDisabled
flags used for "guibuilding"
TGButtonGroup * fBtnGroup
void ChangeSelected(TGFrame *)
Perform actions when selected frame was changed.
TGuiBldBorderFrame(const TGWindow *p, TGuiBldEditor *editor)
Constructor.
~TGuiBldBorderFrame() override
TGColorSelect * fBgndFrame
void SelectFrame(TGFrame *frame, Bool_t add=kFALSE)
Grab/Select frame.
void SetEditable(Bool_t on=kTRUE) override
Grab server.
void ChangeSelected(TGFrame *)
Change selected frame.
TGuiBldHintsEditor * fHintsFrame
TGuiBldNameFrame * fNameFrame
void UpdateSelected(TGFrame *=nullptr)
Update selected frame.
void Reset()
Reset the editor.
void RemoveFrame(TGFrame *) override
Remove a frame.
TGTextButton * fLayoutButton
TGuiBldGeometryFrame * fGeomFrame
void TabSelected(Int_t id)
Handle selected.
TGuiBldEditor(const TGWindow *p=nullptr)
Constructor.
void SwitchLayout()
Popup dialog to set layout of edited frame off.
void UpdateForeground(Pixel_t col)
Update foreground.
TGCompositeFrame * fTablay
TGGroupFrame * fPositionFrame
void UpdateBorder(Int_t)
Update border of selected frame.
void UpdateBackground(Pixel_t col)
Update background.
~TGuiBldEditor() override
Destructor.
TGuiBldBorderFrame * fBorderFrame
Editor of widget's layout hints used by the ROOT GUI builder.
static TGuiBuilder * Instance()
return an instance of TGuiBuilder object
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
void Emit(const char *signal, const T &arg)
Activate signal with single parameter.
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.
Bool_t Disconnect(const char *signal=nullptr, void *receiver=nullptr, const char *slot=nullptr)
Disconnects signal of this object from slot of receiver.
TGuiBldDragManager * GetManager() const