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 },
272 int x,
y, max_ascent, max_descent;
332 Int_t max_ascent, max_descent;
333 gVirtualX->GetFontProperties(font, max_ascent, max_descent);
340 UInt_t h = max_ascent + max_descent + sep;
342 if (entry->
GetPic() != 0) {
343 picposy = entry->
GetEy() +
h / 2;
378 if (entry->
GetPic() != 0) {
419 if (entry->
GetPic() != 0) {
596 fToolDock->SetWindowName(
"GuiBuilder ToolBar");
620 tip->
Connect(
"Reset()",
"TRootGuiBuilder",
this,
"UpdateStatusBar(=0)");
621 tip->
Connect(
"Hide()",
"TRootGuiBuilder",
this,
"EraseStatusBar()");
623 fToolBar->AddButton(
this, pb, spacing);
638 "HandleAction(Int_t)");
662 fMain->Connect(
"FrameClosed(Int_t)",
"TRootGuiBuilder",
this,
663 "HandleWindowClosed(Int_t)");
666 "MaybeCloseWindow()");
702 act->
fPic =
"bld_mainframe.xpm";
706 act->
fAct =
"horizontal";
707 act->
fPic =
"bld_mainframe.xpm";
711 act->
fAct =
"vertical";
712 act->
fPic =
"bld_mainframe.xpm";
717 act->
fAct =
"new TGTextButton()";
718 act->
fPic =
"bld_textbutton.xpm";
722 act->
fAct =
"new TGCheckButton()";
723 act->
fPic =
"bld_checkbutton.xpm";
727 act->
fAct =
"new TGRadioButton()";
728 act->
fPic =
"bld_radiobutton.xpm";
732 act->
fAct =
"new TGPictureButton()";
733 act->
fPic =
"bld_image.xpm";
737 act->
fAct =
"new TGTextEntry()";
738 act->
fPic =
"bld_entry.xpm";
742 act->
fAct =
"TRootGuiBuilder::BuildTextEdit()";
743 act->
fPic =
"bld_text.xpm";
747 act->
fAct =
"new TGNumberEntry()";
748 act->
fPic =
"bld_numberentry.xpm";
752 act->
fAct =
"TRootGuiBuilder::BuildComboBox()";
753 act->
fPic =
"bld_combobox.xpm";
757 act->
fAct =
"TRootGuiBuilder::BuildListBox()";
758 act->
fPic =
"bld_listbox.xpm";
762 act->
fAct =
"new TGHSlider()";
763 act->
fPic =
"bld_hslider.xpm";
767 act->
fAct =
"new TGVSlider()";
768 act->
fPic =
"bld_vslider.xpm";
772 act->
fAct =
"TRootGuiBuilder::BuildHScrollBar()";
773 act->
fPic =
"bld_hscrollbar.xpm";
777 act->
fAct =
"TRootGuiBuilder::BuildVScrollBar()";
778 act->
fPic =
"bld_vscrollbar.xpm";
782 act->
fAct =
"TRootGuiBuilder::BuildListTree()";
783 act->
fPic =
"bld_listtree.xpm";
787 act->
fAct =
"new TGLabel()";
788 act->
fPic =
"bld_label.xpm";
792 act->
fAct =
"new TGIcon()";
793 act->
fPic =
"bld_image.xpm";
796 act =
new TGuiBldAction(
"TGHorizontal3DLine",
"Horizontal Line",
798 act->
fAct =
"TRootGuiBuilder::BuildH3DLine()";
799 act->
fPic =
"bld_hseparator.xpm";
803 act->
fAct =
"TRootGuiBuilder::BuildV3DLine()";
804 act->
fPic =
"bld_vseparator.xpm";
808 act->
fAct =
"new TGStatusBar()";
809 act->
fPic =
"bld_statusbar.xpm";
814 act->
fAct =
"TRootGuiBuilder::BuildHProgressBar()";
815 act->
fPic =
"bld_hprogressbar.xpm";
819 act->
fAct =
"TRootGuiBuilder::BuildVProgressBar()";
820 act->
fPic =
"bld_vprogressbar.xpm";
824 act->
fAct =
"new TRootEmbeddedCanvas()";
825 act->
fPic =
"bld_embedcanvas.xpm";
829 act =
new TGuiBldAction(
"TGHorizontalFrame",
"Horizontal Frame",
831 act->
fAct =
"new TGHorizontalFrame(0,200,100)";
832 act->
fPic =
"bld_hbox.xpm";
836 act->
fAct =
"new TGVerticalFrame(0,100,200)";
837 act->
fPic =
"bld_vbox.xpm";
841 act->
fAct =
"new TGGroupFrame()";
842 act->
fPic =
"bld_groupframe.xpm";
846 act->
fAct =
"TRootGuiBuilder::BuildTab()";
847 act->
fPic =
"bld_tab.xpm";
851 act->
fAct =
"TRootGuiBuilder::BuildShutter()";
852 act->
fPic =
"bld_shutter.png";
857 act->
fAct =
"TRootGuiBuilder::BuildCanvas()";
858 act->
fPic =
"bld_canvas.xpm";
872 act->
fAct =
"new TGColorSelect()";
873 act->
fPic =
"bld_colorselect.xpm";
902 fMenuFile->Connect(
"Activated(Int_t)",
"TRootGuiBuilder",
this,
903 "HandleMenu(Int_t)");
904 fMenuWindow->Connect(
"Activated(Int_t)",
"TRootGuiBuilder",
this,
905 "HandleMenu(Int_t)");
906 fMenuHelp->Connect(
"Activated(Int_t)",
"TRootGuiBuilder",
this,
907 "HandleMenu(Int_t)");
940 if (
fMain->GetNumberOfFrames() == 0) {
969 if (!
name || !sect)
return 0;
998 if (!act || !sect)
return;
1023 btn->
Connect(
"Clicked()",
"TRootGuiBuilder",
this,
"HandleButtons()");
1047 static int id = 10000;
1051 item->
Connect(
"Selected()",
"TRootGuiBuilder",
this,
"HandleMenu(=3)");
1134 fClient->GetPicture(
"bld_edit.png"));
1137 fClient->GetPicture(
"bld_stop.png"));
1142 0,
fClient->GetPicture(
"bld_new.png"));
1144 0,
fClient->GetPicture(
"bld_open.png"));
1146 0,
fClient->GetPicture(
"bld_delete.png"));
1148 0,
fClient->GetPicture(
"bld_save.png"));
1152 0,
fClient->GetPicture(
"bld_exit.png"));
1295 if (btn) btn->
SetState(enable && comp && !fixed && !compact_disable ?
1443 "Macro files",
"*.[C|c]*",
1456 gVirtualX->LookupString(event, str,
sizeof(str), keysym);
1460 if (
fMain->GetCurrent()) {
1465 }
else if (str[0] == 14) {
1467 }
else if (str[0] == 15) {
1494 if (type ==
"horizontal") {
1506 else if (type ==
"vertical") {
1572 TString::Format(
"file (%s) must have source extension (.C, .c, .cxx, .cpp, .cc)",
1600 if (!savfr)
return kFALSE;
1642 main->SaveSource(fname.
Data(),
"keep_names");
1644 main->SetList(list);
1649 main->SetWMSizeHints(
main->GetDefaultWidth(),
main->GetDefaultHeight(),
1650 10000, 10000, 0, 0);
1655 if (
gVirtualX->InheritsFrom(
"TGX11"))
main->SetIconPixmap(
"bld_rgb.xpm");
1664 TString::Format(
"file (%s) must have source extension (.C, .c, .cxx, .cpp, .cc)",
1691 img->
Merge(img,
"overlay");
1732 while (parent && (parent !=
fClient->GetDefaultRoot())) {
1754 fStartButton->SetToolTipText(
"Stop Edit (Ctrl-Dbl-Click)");
1756 if (
fMain->GetNumberOfFrames() < 1) {
1762 fStartButton->SetToolTipText(
"Start Edit (Ctrl-Dbl-Click)");
1826 if (
fMain->GetNumberOfFrames() <= 1) {
1857 fMain->TileHorizontal();
1861 fMain->TileVertical();
1869 fMain->ArrangeMinimized();
1900 fMain->SetCurrent(
id);
1916 "Closing project",
"Do you want to save the project before closing?",
1929 fEditor->RemoveFrame(mdiframe);
1951 if (
fMain->GetNumberOfFrames() == 0) {
1967 const char *
text = 0;
2112 ret->MapSubwindows();
2141 ret->MapSubwindows();
2164 if (gPixel)
return gPixel;
2186 fgBgnd->SetBackground(back);
2187 fgBgnd->SetForeground(back);
2222 if (gPixel)
return gPixel;
2260 if (gPixel)
return gPixel;
2349 item = shut->
AddPage(
"Histograms");
2351 buttonpic =
gClient->GetPicture(
"h1_s.xpm");
2358 buttonpic =
gClient->GetPicture(
"h2_s.xpm");
2365 buttonpic =
gClient->GetPicture(
"h3_s.xpm");
2372 buttonpic =
gClient->GetPicture(
"profile_s.xpm");
2381 item = shut->
AddPage(
"Functions");
2383 buttonpic =
gClient->GetPicture(
"f1_s.xpm");
2390 buttonpic =
gClient->GetPicture(
"f2_s.xpm");
2399 item = shut->
AddPage(
"Trees");
2401 buttonpic =
gClient->GetPicture(
"ntuple_s.xpm");
2408 buttonpic =
gClient->GetPicture(
"tree_s.xpm");
2415 buttonpic =
gClient->GetPicture(
"chain_s.xpm");
2434 te->
AddLine(
"all work and no play makes jack a pretty");
2435 te->
AddLine(
"dull boy. all work and no play makes jack");
2436 te->
AddLine(
"a pretty dull boy. all work and no play ");
2437 te->
AddLine(
"makes jack a pretty dull boy. all work");
2438 te->
AddLine(
"and no play makes jack a pretty dull boy.");
2499 int max_ascent, max_descent;
2500 gVirtualX->GetFontProperties(fs, max_ascent, max_descent);
2535 b->Resize(100,
b->GetDefaultHeight());
2536 b->SetRange(100, 20);
2549 b->Resize(
b->GetDefaultWidth(), 100);
2551 b->SetRange(100, 20);
2563 b->Resize(100,
b->GetDefaultHeight());
2578 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
Handle_t FontStruct_t
Pointer to font structure.
ULong_t Pixel_t
Pixel value.
int Int_t
Signed integer 4 bytes (int).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
unsigned long ULong_t
Unsigned long integer 4 bytes (unsigned long). Size depends on architecture.
bool Bool_t
Boolean (0=false, 1=true) (bool).
float Float_t
Float 4 bytes (float).
static const char * gSaveMacroTypes[]
@ kMWMInputFullApplicationModal
externTGuiBuilder * gGuiBuilder
static ToolBarData_t gToolBarData[]
const char gHelpAboutBuilder[]
const char gHelpBuilder[]
externTVirtualDragManager * gDragManager
static ULong_t RGB2Pixel(Int_t r, Int_t g, Int_t b)
static ULong_t Number2Pixel(Int_t ci)
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.
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
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.
virtual TList * GetList() const
UInt_t GetDefaultWidth() const override
void MapSubwindows() override
Map all sub windows that are part of the composite frame.
TGCompositeFrame(const TGCompositeFrame &)=delete
TList * fList
container of frame elements
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 frame with handles that allow it to be undocked (i.e.
This class creates a file selection dialog.
char * fFilename
selected file name
const char ** fFileTypes
file types used to filter selectable files
char * fIniDir
on input: initial directory, on output: new directory
Bool_t fOverwrite
if true overwrite the file with existing name on save
void SetIniDir(const char *inidir)
Set directory name.
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.
TGFrame(const TGFrame &)=delete
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.
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.
virtual Pixel_t GetBackground() const
static const TGGC & GetBckgndGC()
Get background color graphics context.
void MapRaised() override
map raised
Encapsulate a graphics context used in the low level graphics.
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.
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.
const TGString * GetText() const
This class describes layout hints used by the layout classes.
A listbox is a box, possibly with scrollbar, containing entries.
void Resize(UInt_t w, UInt_t h) override
Resize the listbox widget.
virtual void AddEntry(TGString *s, Int_t id)
Add entry with specified string and id to listbox.
A list tree is a widget that can contain a number of items arranged in a tree structure.
void AddItem(TGListTreeItem *parent, TGListTreeItem *item)
Add given item to list tree.
TGMainFrame(const TGMainFrame &)=delete
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 SetWMPosition(Int_t x, Int_t y)
Give the window manager a window position hint.
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.
const TGPicture * SetIconPixmap(const char *iconName)
Set window icon pixmap by name.
This file contains the TGMdiFrame class.
void SetWindowName(const char *name) override
Set MDI window name (set titlebar title).
virtual Bool_t CloseWindow()
Close MDI frame window.
This file contains the TGMdiMainFrame class.
TGClient * fClient
Connection to display server.
Handle_t fId
X11/Win32 Window identifier.
The TGPicture class implements pictures and icons used in the different GUI elements and widgets.
void Draw(Option_t *="") override
Default Draw method for all objects.
Pixmap_t GetPicture() const
TGFrame * GetContainer() const
A shutter widget contains a set of shutter items that can be open and closed like a shutter.
virtual TGShutterItem * AddPage(const char *item="Page")
Add new page (shutter item).
Provides a StatusBar widget.
virtual void Draw(Drawable_t id, GContext_t gc, Int_t x, Int_t y)
Draw string.
A tab widget contains a set of composite frames each with a little tab with a name (like a set of fol...
virtual TGCompositeFrame * AddTab(TGString *text)
Add a tab to the tab widget.
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.
void Layout() override
Layout the components of view.
virtual void AddLine(const char *string)
Add a line of text to the view widget.
This is a layout manager for the TGListView widget.
void SetFrame(TGFrame *frame, Bool_t left) override
Set frame to be resized.
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 SetEditDisabled(UInt_t on=kEditDisable)
virtual void SetName(const char *name)
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"
const TGPicture * fPicture
TGuiBldSaveFrame(const TGWindow *p, UInt_t w, UInt_t h)
An abstract interface to image processing library.
virtual UInt_t GetWidth() const
static TImage * Create()
Create an image.
virtual void FromWindow(Drawable_t, Int_t=0, Int_t=0, UInt_t=0, UInt_t=0)
virtual void Scale(UInt_t, UInt_t)
virtual void Merge(const TImage *, const char *="alphablend", Int_t=0, Int_t=0)
virtual Pixmap_t GetPixmap()
virtual Pixmap_t GetMask()
virtual UInt_t GetHeight() const
TObject * Last() const override
Return the last object in the list. Returns 0 when list is empty.
TObject * First() const override
Return the first object in the list. Returns 0 when list is empty.
const char * GetName() const override
Returns name of object.
const char * GetTitle() const override
Returns title of object.
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).
void SetText(const char *helpText)
Set help text from helpText buffer in TGTextView.
void Popup()
Show help dialog.
Bool_t EndsWith(const char *pat, ECaseCompare cmp=kExact) const
Return true if string ends with the specified string.
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.
int main(int argc, char **argv)
EGEventType fType
of event (see EGEventType)
UInt_t fState
key or button mask
Graphics context structure.
Mask_t fMask
bit mask specifying which fields are valid
FontH_t fFont
default text font for text operations