112 Start/Stop Edit Mode\n\
113 ************************************************\n\
114 o Select File menu / Edit\n\
115 o Select Start Edit button on the toolbar\n\
116 o Ctrl-Double-Click on the project frame\n\
117 o Double-Click to activate quick edit action (defined in root.mimes)\n\
119 Select, Grab, Drop\n\
120 ************************************************\n\
121 It is possible to select & drag any frame and drop it to another frame\n\
123 o Press left mouse button Click or Ctrl-Click to select an object.\n\
124 o Press right mouse button to activate context menu\n\
125 o Multiple selection can be done in two ways (grabbing):\n\
126 - draw lasso and press Return key\n\
127 - press Shift key and draw lasso\n\
129 - select frame and press Ctrl-Return key\n\
130 o Changing layout order of widgets:\n\
131 - set broken layout mode via toolbar button or check button\n\
132 \'Layout subframes\' in tab \'Layout\'\n\
133 - select a widget and use arrow keys to change the layout order\n\
135 - remove the selection (if any) by using the space bar\n\
136 - draw lasso and use the four toolbar buttons for widget alignment\n\
137 - arrow keys align the frames too, if you prefer the keyboard\n\
140 ************************************************\n\
141 o Return - grab selected frames\n\
142 o Ctrl-Return - drop frames\n\
143 o Del - delete selected frame\n\
144 o Shift-Del - crop\n\
147 o Ctrl-V - paste frame into the last clicked position\n\
148 o Ctrl-L - compact frame\n\
149 o Ctrl-B - enable/disable layout\n\
150 o Ctrl-H - switch Horizontal-Vertical layout\n\
151 o Ctrl-G - switch ON/OFF grid\n\
153 o Ctrl-O - open and execute ROOT macro file\n\
154 o Ctrl-N - create new main frame\n\
155 o Ctrl-Z - undo last action (not implemented)\n\
156 o Shift-Ctrl-Z - redo (not implemented)\n\
159 ************************************************\n\
161For more information, please see:\n\
163 https://root.cern.ch/doc/master/group__guibuilder.html\n\
170************************************************************\n\
171* Copyright (C) 1995-2004, Rene Brun and Fons Rademakers. *\n\
172* All rights reserved. *\n\
174* For the licensing terms see $ROOTSYS/LICENSE. *\n\
175* For the list of contributors see $ROOTSYS/README/CREDITS.*\n\
176************************************************************\n\
183 {
"",
"",
kFALSE, -1, 0 },
187 {
"",
"",
kFALSE, -1, 0 },
190 {
"",
"",
kFALSE, -1, 0 },
191 {
"bld_compact.png",
"Compact selected frame (Ctrl-L)",
kFALSE,
kCompactAct, 0 },
193 {
"bld_hbox.png",
"Layout selected frame horizontally (Ctrl-H)",
kFALSE,
kLayoutHAct, 0 },
194 {
"bld_vbox.png",
"Layout selected frame vertically (Ctrl-H)",
kFALSE,
kLayoutVAct, 0 },
196 {
"",
"",
kFALSE, -1, 0 },
197 {
"bld_AlignTop.png",
"Align selected frames to the top line of lasso (Up Arrow)",
kFALSE,
kUpAct, 0 },
198 {
"bld_AlignBtm.png",
"Align selected frames to the down line of lasso (Down Arrow)",
kFALSE,
kDownAct, 0 },
199 {
"bld_AlignLeft.png",
"Align selected frames to the left line of lasso (Left Arrow)",
kFALSE,
kLeftAct, 0 },
200 {
"bld_AlignRight.png",
"Align selected frames to the right line of lasso (Right Arrow)",
kFALSE,
kRightAct, 0 },
201 {
"",
"",
kFALSE, -1, 0 },
204 {
"bld_paste.png",
"Paste frame into the last clicked position (Ctrl-V)",
kFALSE,
kPasteAct, 0 },
335 if (
entry->GetShortcut())
337 entry->GetShortcut()->Length());
343 if (
entry->GetPic() != 0) {
348 switch (
entry->GetType()) {
379 if (
entry->GetPic() != 0) {
386 if (
entry->GetShortcut())
420 if (
entry->GetPic() != 0) {
426 if (
entry->GetShortcut())
431 if (
entry->GetShortcut()) {
621 tip->Connect(
"Reset()",
"TRootGuiBuilder",
this,
"UpdateStatusBar(=0)");
622 tip->Connect(
"Hide()",
"TRootGuiBuilder",
this,
"EraseStatusBar()");
639 "HandleAction(Int_t)");
663 fMain->
Connect(
"FrameClosed(Int_t)",
"TRootGuiBuilder",
this,
664 "HandleWindowClosed(Int_t)");
667 "MaybeCloseWindow()");
703 act->fPic =
"bld_mainframe.xpm";
707 act->fAct =
"horizontal";
708 act->fPic =
"bld_mainframe.xpm";
712 act->fAct =
"vertical";
713 act->fPic =
"bld_mainframe.xpm";
718 act->fAct =
"new TGTextButton()";
719 act->fPic =
"bld_textbutton.xpm";
723 act->fAct =
"new TGCheckButton()";
724 act->fPic =
"bld_checkbutton.xpm";
728 act->fAct =
"new TGRadioButton()";
729 act->fPic =
"bld_radiobutton.xpm";
733 act->fAct =
"new TGPictureButton()";
734 act->fPic =
"bld_image.xpm";
738 act->fAct =
"new TGTextEntry()";
739 act->fPic =
"bld_entry.xpm";
743 act->fAct =
"TRootGuiBuilder::BuildTextEdit()";
744 act->fPic =
"bld_text.xpm";
748 act->fAct =
"new TGNumberEntry()";
749 act->fPic =
"bld_numberentry.xpm";
753 act->fAct =
"TRootGuiBuilder::BuildComboBox()";
754 act->fPic =
"bld_combobox.xpm";
758 act->fAct =
"TRootGuiBuilder::BuildListBox()";
759 act->fPic =
"bld_listbox.xpm";
763 act->fAct =
"new TGHSlider()";
764 act->fPic =
"bld_hslider.xpm";
768 act->fAct =
"new TGVSlider()";
769 act->fPic =
"bld_vslider.xpm";
773 act->fAct =
"TRootGuiBuilder::BuildHScrollBar()";
774 act->fPic =
"bld_hscrollbar.xpm";
778 act->fAct =
"TRootGuiBuilder::BuildVScrollBar()";
779 act->fPic =
"bld_vscrollbar.xpm";
783 act->fAct =
"TRootGuiBuilder::BuildListTree()";
784 act->fPic =
"bld_listtree.xpm";
788 act->fAct =
"new TGLabel()";
789 act->fPic =
"bld_label.xpm";
793 act->fAct =
"new TGIcon()";
794 act->fPic =
"bld_image.xpm";
799 act->fAct =
"TRootGuiBuilder::BuildH3DLine()";
800 act->fPic =
"bld_hseparator.xpm";
804 act->fAct =
"TRootGuiBuilder::BuildV3DLine()";
805 act->fPic =
"bld_vseparator.xpm";
809 act->fAct =
"new TGStatusBar()";
810 act->fPic =
"bld_statusbar.xpm";
815 act->fAct =
"TRootGuiBuilder::BuildHProgressBar()";
816 act->fPic =
"bld_hprogressbar.xpm";
820 act->fAct =
"TRootGuiBuilder::BuildVProgressBar()";
821 act->fPic =
"bld_vprogressbar.xpm";
825 act->fAct =
"new TRootEmbeddedCanvas()";
826 act->fPic =
"bld_embedcanvas.xpm";
832 act->fAct =
"new TGHorizontalFrame(0,200,100)";
833 act->fPic =
"bld_hbox.xpm";
837 act->fAct =
"new TGVerticalFrame(0,100,200)";
838 act->fPic =
"bld_vbox.xpm";
842 act->fAct =
"new TGGroupFrame()";
843 act->fPic =
"bld_groupframe.xpm";
847 act->fAct =
"TRootGuiBuilder::BuildTab()";
848 act->fPic =
"bld_tab.xpm";
852 act->fAct =
"TRootGuiBuilder::BuildShutter()";
853 act->fPic =
"bld_shutter.png";
858 act->fAct =
"TRootGuiBuilder::BuildCanvas()";
859 act->fPic =
"bld_canvas.xpm";
873 act->fAct =
"new TGColorSelect()";
874 act->fPic =
"bld_colorselect.xpm";
904 "HandleMenu(Int_t)");
906 "HandleMenu(Int_t)");
908 "HandleMenu(Int_t)");
987 if (*(
lb->GetText()) ==
name) {
1009 if (!
act->fPicture) {
1022 btn->SetToolTipText(
act->GetTitle(), 200);
1023 btn->SetUserData((
void*)
act);
1024 btn->Connect(
"Clicked()",
"TRootGuiBuilder",
this,
"HandleButtons()");
1030 lb->SetBackgroundColor(
cont->GetBackground());
1032 hf->SetBackgroundColor(
cont->GetBackground());
1039 cont->MapSubwindows();
1048 static int id = 10000;
1052 item->
Connect(
"Selected()",
"TRootGuiBuilder",
this,
"HandleMenu(=3)");
1419 return btn->IsDown();
1431 return btn->IsDown();
1444 "Macro files",
"*.[C|c]*",
1466 }
else if (str[0] == 14) {
1468 }
else if (str[0] == 15) {
1495 if (
type ==
"horizontal") {
1507 else if (
type ==
"vertical") {
1557 if (!
fi.fFilename) {
1567 fname.EndsWith(
".cpp") ||
fname.EndsWith(
".cc")) {
1573 TString::Format(
"file (%s) must have source extension (.C, .c, .cxx, .cpp, .cc)",
1608 img->FromWindow(
savfr->GetParent()->GetId());
1623 if (!
fi.fFilename) {
1634 fname.EndsWith(
".cpp") ||
fname.EndsWith(
".cc")) {
1637 savfr->GetHeight());
1642 main->SetLayoutBroken(
savfr->IsLayoutBroken());
1643 main->SaveSource(
fname.Data(),
"keep_names");
1645 main->SetList(list);
1650 main->SetWMSizeHints(
main->GetDefaultWidth(),
main->GetDefaultHeight(),
1651 10000, 10000, 0, 0);
1656 if (
gVirtualX->InheritsFrom(
"TGX11"))
main->SetIconPixmap(
"bld_rgb.xpm");
1665 TString::Format(
"file (%s) must have source extension (.C, .c, .cxx, .cpp, .cc)",
1683 if (!
img || !
img->GetWidth() || !
img->GetHeight()) {
1692 img->Merge(
img,
"overlay");
1697 img->GetPixmap(),
img->GetMask());
1886 hd->SetEditDisabled();
1894 hd->SetEditDisabled();
1917 "Closing project",
"Do you want to save the project before closing?",
1968 const char *
text = 0;
1975 text =
tip->GetText()->Data();
2113 ret->MapSubwindows();
2142 ret->MapSubwindows();
2187 fgBgnd->SetBackground(back);
2188 fgBgnd->SetForeground(back);
2305 lt->AddItem(0,
"Entry 1");
2306 lt->AddItem(0,
"Entry 2");
2307 lt->AddItem(0,
"Entry 3");
2308 lt->AddItem(0,
"Entry 4");
2309 lt->AddItem(0,
"Entry 5");
2350 item =
shut->AddPage(
"Histograms");
2356 button->SetToolTipText(
"TH1");
2363 button->SetToolTipText(
"TH2");
2370 button->SetToolTipText(
"TH3");
2377 button->SetToolTipText(
"TProfile");
2382 item =
shut->AddPage(
"Functions");
2388 button->SetToolTipText(
"TF1");
2395 button->SetToolTipText(
"TF2");
2400 item =
shut->AddPage(
"Trees");
2406 button->SetToolTipText(
"TNtuple");
2413 button->SetToolTipText(
"TTree");
2420 button->SetToolTipText(
"TChain");
2424 shut->MapSubwindows();
2435 te->AddLine(
"all work and no play makes jack a pretty");
2436 te->AddLine(
"dull boy. all work and no play makes jack");
2437 te->AddLine(
"a pretty dull boy. all work and no play ");
2438 te->AddLine(
"makes jack a pretty dull boy. all work");
2439 te->AddLine(
"and no play makes jack a pretty dull boy.");
2441 te->MapSubwindows();
2443 te->Resize(100, 60);
2455 tab->AddTab(
"Tab1");
2456 tab->AddTab(
"Tab2");
2457 tab->MapSubwindows();
2469 lb->AddEntry(
"Entry 1", 0);
2470 lb->AddEntry(
"Entry 2", 1);
2471 lb->AddEntry(
"Entry 3", 2);
2472 lb->AddEntry(
"Entry 4", 3);
2473 lb->AddEntry(
"Entry 5", 4);
2474 lb->AddEntry(
"Entry 6", 5);
2475 lb->AddEntry(
"Entry 7", 6);
2476 lb->MapSubwindows();
2478 lb->Resize(100,100);
2536 b->Resize(100,
b->GetDefaultHeight());
2537 b->SetRange(100, 20);
2550 b->Resize(
b->GetDefaultWidth(), 100);
2552 b->SetRange(100, 20);
2564 b->Resize(100,
b->GetDefaultHeight());
2579 b->Resize(
b->GetDefaultWidth(), 100);
const Mask_t kButtonPressMask
const Mask_t kKeyPressMask
const Mask_t kKeyShiftMask
const Mask_t kKeyControlMask
const Mask_t kLeaveWindowMask
const Mask_t kEnterWindowMask
ULong_t Pixel_t
Pixel value.
Handle_t FontStruct_t
Pointer to font structure.
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
static const char * gSaveMacroTypes[]
@ kMWMInputFullApplicationModal
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void SetIconPixmap
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void on
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t win
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void SetWMPosition
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize fs
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t type
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t button
Option_t Option_t TPoint TPoint const char text
R__EXTERN TGuiBuilder * gGuiBuilder
R__EXTERN void * gTQSender
static ToolBarData_t gToolBarData[]
const char gHelpAboutBuilder[]
static const char * gSaveMacroTypes[]
static ToolBarData_t gToolBarData[]
const char gHelpBuilder[]
R__EXTERN TSystem * gSystem
R__EXTERN TVirtualDragManager * gDragManager
static ULong_t RGB2Pixel(Int_t r, Int_t g, Int_t b)
Convert r,g,b to graphics system dependent pixel value.
static ULong_t Number2Pixel(Int_t ci)
Static method that given a color index number, returns the corresponding pixel value.
A frame containing two scrollbars (a horizontal and a vertical) and a viewport.
virtual void SetContainer(TGFrame *f)
TGViewPort * GetViewPort() const
void MapSubwindows() override
Map all canvas sub windows.
const TGWindow * GetDefaultRoot() const
Returns the root (i.e.
Bool_t IsEditable() const
const TGWindow * GetRoot() const
Returns current root (i.e.
const TGPicture * GetPicture(const char *name)
Get picture from the picture pool.
void NeedRedraw(TGWindow *w, Bool_t force=kFALSE)
Set redraw flags.
TGPicturePool * GetPicturePool() const
void FreePicture(const TGPicture *pic)
Free picture resource.
A combobox (also known as a drop down listbox) allows the selection of one item out of a list of item...
virtual void AddEntry(TGString *s, Int_t id)
virtual TGListBox * GetListBox() const
The base class for composite widgets (menu bars, list boxes, etc.).
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=nullptr)
Add frame to the composite frame using the specified layout hints.
virtual TList * GetList() const
void MapSubwindows() override
Map all sub windows that are part of the composite frame.
TGCompositeFrame(const TGCompositeFrame &)=delete
void Layout() override
Layout the elements of the composite frame.
TList * fList
container of frame elements
void SetCleanup(Int_t mode=kLocalCleanup) override
Turn on automatic cleanup of child frames in dtor.
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.
void ChangeOptions(UInt_t options) override
Change composite frame options. Options is an OR of the EFrameTypes.
void SetLayoutBroken(Bool_t on=kTRUE) override
Set broken layout. No Layout method is called.
A frame with handles that allow it to be undocked (i.e.
void AddFrame(TGFrame *f, TGLayoutHints *hints) override
Add frame to dockable frame container. Frame and hints are NOT adopted.
void SetWindowName(const char *name) override
Set window name so it appear as title of the undock window.
This class creates a file selection dialog.
A subclasses of TGWindow, and is used as base class for some simple widgets (buttons,...
virtual void ChangeOptions(UInt_t options)
Change frame options. Options is an OR of the EFrameTypes.
static Pixel_t GetDefaultSelectedBackground()
Get default selected frame background.
void AddInput(UInt_t emask)
Add events specified in the emask to the events the frame should handle.
void MoveResize(Int_t x, Int_t y, UInt_t w=0, UInt_t h=0) override
Move and/or resize the frame.
static const TGGC & GetBlackGC()
Get black graphics context.
UInt_t fOptions
frame options
void Resize(UInt_t w=0, UInt_t h=0) override
Resize the frame.
static Pixel_t GetWhitePixel()
Get white pixel value.
UInt_t fHeight
frame height
void SetBackgroundColor(Pixel_t back) override
Set background color (override from TGWindow base class).
void DoRedraw() override
Redraw the frame.
void MapWindow() override
map window
virtual Pixel_t GetForeground() const
Return frame foreground color.
static const TGGC & GetHilightGC()
Get highlight color graphics context.
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
virtual UInt_t GetOptions() const
void UnmapWindow() override
unmap window
static const TGGC & GetShadowGC()
Get shadow color graphics context.
static const TGGC & GetBckgndGC()
Get background color graphics context.
void MapRaised() override
map raised
Encapsulate a graphics context used in the low level graphics.
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.
TGHotString is a string with a "hot" character underlined.
void Draw(Drawable_t id, GContext_t gc, Int_t x, Int_t y) override
Draw a hot string and underline the hot character.
This class handles GUI labels.
This class describes layout hints used by the layout classes.
A listbox is a box, possibly with scrollbar, containing entries.
A list tree is a widget that can contain a number of items arranged in a tree structure.
Defines top level windows that interact with the system Window Manager.
void SetClassHints(const char *className, const char *resourceName)
Set the windows class and resource name.
void SetIconName(const char *name)
Set window icon name. This is typically done via the window manager.
void SetWindowName(const char *name=nullptr) override
Set window name. This is typically done via the window manager.
Bool_t HandleKey(Event_t *event) override
Handle keyboard events.
This file contains the TGMdiFrame class.
virtual void SetMdiHints(ULong_t mdihints)
Set MDI hints, also used to identify titlebar buttons.
void SetWindowName(const char *name) override
Set MDI window name (set titlebar title).
void DontCallClose()
Typically call this method in the slot connected to the CloseWindow() signal to prevent the calling o...
This file contains the TGMdiMainFrame class.
Bool_t SetCurrent(TGMdiFrameList *newcurrent)
Set current (active) MDI child window (by frame list).
void SetResizeMode(Int_t mode=kMdiDefaultResizeMode)
Set MDI windows resize mode (opaque or transparent).
Long_t GetNumberOfFrames() const
virtual void CloseAll()
Close all MDI child windows.
TGMdiFrame * GetCurrent() const
Return pointer on current (active) MDI child window.
virtual void ArrangeMinimized()
This is an attempt to an "smart" minimized window re-arrangement.
virtual void TileHorizontal()
virtual void TileVertical()
virtual Int_t Close(TGMdiFrame *frame)
Close MDI child window mdiframe.
TGFrame * GetContainer() const
TGClient * fClient
Connection to display server.
Handle_t fId
X11/Win32 Window identifier.
const TGPicture * GetPicture(const char *name)
Get a picture from the picture pool.
The TGPicture class implements pictures and icons used in the different GUI elements and widgets.
TGFrame * GetContainer() const
A shutter widget contains a set of shutter items that can be open and closed like a shutter.
virtual void AddItem(TGShutterItem *item)
Add shutter item to shutter frame.
TGShutterItem * GetItem(const char *name)
returns a shutter item by name (name is hot string of shutter item)
Provides a StatusBar widget.
virtual void SetText(TGString *text, Int_t partidx=0)
Set text in partition partidx in status bar.
A tab widget contains a set of composite frames each with a little tab with a name (like a set of fol...
Yield an action as soon as it is clicked.
A TGTextEdit is a specialization of TGTextView.
static FontStruct_t GetDefaultFontStruct()
Return default font structure in use for a text listbox entry.
This is a layout manager for the TGListView widget.
A vertical 3D line is a line that can be used to separate groups of widgets.
A composite frame that layout their children in vertical way.
ROOT GUI Window base class.
virtual void SetBackgroundPixmap(Pixmap_t pixmap)
set background pixmap
virtual void SetEditDisabled(UInt_t on=kEditDisable)
virtual void SetEditable(Bool_t on=kTRUE)
@ kEditDisableLayout
window layout cannot be edited
@ kEditDisableBtnEnable
window can handle mouse button events
@ kEditDisable
disable edit of this window
const TGWindow * GetParent() const
const char * GetName() const override
Return unique name, used in SavePrimitive methods.
UInt_t fEditDisabled
flags used for "guibuilding"
Drag and drop manager used by the ROOT GUI Builder.
Bool_t IsLassoDrawn() const
void SetBuilder(TRootGuiBuilder *b)
void SetEditable(Bool_t on=kTRUE) override
Grab server.
Bool_t CanCompact(TGWindow *w) const
kTRUE is frame could be compacted/"laid out"
void SetPropertyEditor(TGuiBldEditor *e)
Helper method.
Bool_t CanChangeLayout(TGWindow *w) const
kTRUE - if it's possible to switch disable/enable layout
Bool_t IsPasteFrameExist()
Return kTRUE if paste frame exist.
void UngrabFrame()
Ungrab/Unselect selected/grabbed frame.
Bool_t HandleKey(Event_t *) override
Handle key event.
TGFrame * GetSelected() const
Return the current grabbed/selected frame.
void Reset()
Reset the editor.
void RemoveFrame(TGFrame *) override
Remove a frame.
void SetEmbedded(Bool_t e=kTRUE)
void SwitchLayout()
Popup dialog to set layout of edited frame off.
TGuiBldSaveFrame(const TGWindow *p, UInt_t w, UInt_t h)
An abstract interface to image processing library.
static TImage * Create()
Create an image.
Mother of all ROOT objects.
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
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.
void Hide() override
Hide builder.
virtual Bool_t SaveProject(Event_t *event=nullptr)
Save selected project.
static TGGC * GetBgndGC()
Return background GC.
virtual void AddMacro(const char *macro, TImage *img)
Add macro to "User's Macros" section Input img must be static - do not delete it.
virtual Bool_t IsGrabButtonDown() const
Return the status of the grab mode.
Bool_t HandleKey(Event_t *event) override
Handle keys.
virtual Bool_t IsSelectMode() const
Return the status of the selected mode.
static TGGC * fgBgndPopup
static TGFrame * BuildTextEdit()
Helper method to create TGTextEdit widget.
void BindKeys()
Keyboard key binding.
virtual void HandleButtons()
Handle buttons in the GUI builder's widget palette.
TGButton * FindActionButton(const char *name, const char *section)
Find action by name.
static TGGC * fgBgndPopupHlght
TGMdiFrame * FindEditableMdiFrame(const TGWindow *win)
Find the editable frame.
static ULong_t GetBgnd()
Return default background color.
static TGGC * GetPopupBgndGC()
Return background GC for popup menus.
void EnableSelectedButtons(Bool_t on=kTRUE)
Enable/disable toolbar buttons according to the selected frame.
static TGFrame * BuildHProgressBar()
Helper method to create TGHProgressBar.
virtual void SwitchToolbarButton()
Switch image of toolbar edit button according to the current state.
static TGFrame * BuildTab()
Helper method to create TGTab widget.
virtual void UpdateStatusBar(const char *text=nullptr)
Update information shown on the status bar.
friend class TGuiBldDragManager
static TGFrame * VSplitter()
Create new vertical splitter (TGVSplitter).
TGDockableFrame * fToolDock
static TGGC * GetPopupHlghtGC()
Return background GC for highlighted popup menu entry.
void EnableEditButtons(Bool_t on=kTRUE)
Enable/disable toolbar buttons according to the selected frame.
static ULong_t GetPopupHlght()
Return highlighted color for popup menu entry.
static TGPopupMenu * CreatePopup()
Return style popup menu.
virtual void ChangeSelected(TGFrame *f)
Set selected frame.
static TGFrame * BuildVProgressBar()
Helper method to create TGVProgressBar.
static TGFrame * BuildShutter()
Helper method used in guibuilding to create TGShutter widget.
static TGFrame * BuildVScrollBar()
Helper method to create TGVScrollBar.
static TGFrame * BuildH3DLine()
Helper method to create TGHorizontal3DLine widget.
static ULong_t GetPopupBgnd()
Return background color for popup menus.
void EnableLassoButtons(Bool_t on=kTRUE)
Enable toolbar buttons for alignment.
TGuiBldDragManager * fManager
TGFrame * ExecuteAction() override
Execute an action.
virtual void EraseStatusBar()
Clear information shown in the status bar.
static TGFrame * BuildHScrollBar()
Helper method to create TGHScrollBar.
void CloseWindow() override
Close GUI builder via window manager "Close" button.
TGPictureButton * fStartButton
void InitMenu()
Inititiate GUI Builder menus.
static TGFrame * BuildListTree()
Helper method used in guibuilding.
static TGFrame * BuildV3DLine()
Helper method to create TGVertical3DLine widget.
virtual void HandleMenu(Int_t id)
Handle menu items.
static TGFrame * BuildCanvas()
Helper method used in guibuilding to create TGCanvas widget.
const TGPicture * fIconPic
static TGFrame * BuildListBox()
Helper method to create TGListBox widget.
static void PropagateBgndColor(TGFrame *frame, Pixel_t color)
Set a background color to frame and all its subframes.
static TGFrame * BuildComboBox()
Helper method to create TGComboBox widget.
~TRootGuiBuilder() override
Destructor.
TRootGuiBuilder(const TGWindow *p=nullptr)
Create GUI builder application.
virtual void Update()
Update gui builder.
virtual Bool_t NewProject(TString type="")
Create a new project.
void AddAction(TGuiBldAction *act, const char *sect) override
Add new action to widget palette.
virtual void HandleWindowClosed(Int_t id)
Handler for closed MDI frame.
virtual Bool_t OpenProject(Event_t *event=nullptr)
Open new gui builder project.
virtual void MaybeCloseWindow()
Handler before closing MDI frame.
static TGFrame * HSplitter()
Creates new horizontal splitter (TGHSplitter).
TGPopupMenu * fMenuWindow
void AddSection(const char *sect) override
Add new shutter item.
A TRootHelpDialog is used to display help text (or any text in a dialog window).
const char * Data() const
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.
virtual const char * UnixPathName(const char *unixpathname)
Convert from a local pathname to a Unix pathname.
virtual const char * BaseName(const char *pathname)
Base name of a file name. Base name of /user/root is root.
EGEventType fType
of event (see EGEventType)
UInt_t fState
key or button mask
Graphics context structure.