114 Start/Stop Edit Mode\n\
115 ************************************************\n\
116 o Select File menu / Edit\n\
117 o Select Start Edit button on the toolbar\n\
118 o Ctrl-Double-Click on the project frame\n\
119 o Double-Click to activate quick edit action (defined in root.mimes)\n\
121 Select, Grab, Drop\n\
122 ************************************************\n\
123 It is possible to select & drag any frame and drop it to another frame\n\
125 o Press left mouse button Click or Ctrl-Click to select an object.\n\
126 o Press right mouse button to activate context menu\n\
127 o Multiple selection can be done in two ways (grabbing):\n\
128 - draw lasso and press Return key\n\
129 - press Shift key and draw lasso\n\
131 - select frame and press Ctrl-Return key\n\
132 o Changing layout order of widgets:\n\
133 - set broken layout mode via toolbar button or check button\n\
134 \'Layout subframes\' in tab \'Layout\'\n\
135 - select a widget and use arrow keys to change the layout order\n\
137 - remove the selection (if any) by using the space bar\n\
138 - draw lasso and use the four toolbar buttons for widget alignment\n\
139 - arrow keys align the frames too, if you prefer the keyboard\n\
142 ************************************************\n\
143 o Return - grab selected frames\n\
144 o Ctrl-Return - drop frames\n\
145 o Del - delete selected frame\n\
146 o Shift-Del - crop\n\
149 o Ctrl-V - paste frame into the last clicked position\n\
150 o Ctrl-L - compact frame\n\
151 o Ctrl-B - enable/disable layout\n\
152 o Ctrl-H - switch Horizontal-Vertical layout\n\
153 o Ctrl-G - switch ON/OFF grid\n\
155 o Ctrl-O - open and execute ROOT macro file\n\
156 o Ctrl-N - create new main frame\n\
157 o Ctrl-Z - undo last action (not implemented)\n\
158 o Shift-Ctrl-Z - redo (not implemented)\n\
161 ************************************************\n\
163For more information, please see:\n\
165 https://root.cern.ch/doc/master/group__guibuilder.html\n\
172************************************************************\n\
173* Copyright (C) 1995-2004, Rene Brun and Fons Rademakers. *\n\
174* All rights reserved. *\n\
176* For the licensing terms see $ROOTSYS/LICENSE. *\n\
177* For the list of contributors see $ROOTSYS/README/CREDITS.*\n\
178************************************************************\n\
185 {
"",
"",
kFALSE, -1, 0 },
189 {
"",
"",
kFALSE, -1, 0 },
192 {
"",
"",
kFALSE, -1, 0 },
193 {
"bld_compact.png",
"Compact selected frame (Ctrl-L)",
kFALSE,
kCompactAct, 0 },
195 {
"bld_hbox.png",
"Layout selected frame horizontally (Ctrl-H)",
kFALSE,
kLayoutHAct, 0 },
196 {
"bld_vbox.png",
"Layout selected frame vertically (Ctrl-H)",
kFALSE,
kLayoutVAct, 0 },
198 {
"",
"",
kFALSE, -1, 0 },
199 {
"bld_AlignTop.png",
"Align selected frames to the top line of lasso (Up Arrow)",
kFALSE,
kUpAct, 0 },
200 {
"bld_AlignBtm.png",
"Align selected frames to the down line of lasso (Down Arrow)",
kFALSE,
kDownAct, 0 },
201 {
"bld_AlignLeft.png",
"Align selected frames to the left line of lasso (Left Arrow)",
kFALSE,
kLeftAct, 0 },
202 {
"bld_AlignRight.png",
"Align selected frames to the right line of lasso (Right Arrow)",
kFALSE,
kRightAct, 0 },
203 {
"",
"",
kFALSE, -1, 0 },
206 {
"bld_paste.png",
"Paste frame into the last clicked position (Ctrl-V)",
kFALSE,
kPasteAct, 0 },
275 int x,
y, max_ascent, max_descent;
335 Int_t max_ascent, max_descent;
336 gVirtualX->GetFontProperties(font, max_ascent, max_descent);
343 UInt_t h = max_ascent + max_descent + sep;
345 if (entry->
GetPic() != 0) {
346 picposy = entry->
GetEy() +
h / 2;
381 if (entry->
GetPic() != 0) {
422 if (entry->
GetPic() != 0) {
623 tip->
Connect(
"Reset()",
"TRootGuiBuilder",
this,
"UpdateStatusBar(=0)");
624 tip->
Connect(
"Hide()",
"TRootGuiBuilder",
this,
"EraseStatusBar()");
641 "HandleAction(Int_t)");
665 fMain->
Connect(
"FrameClosed(Int_t)",
"TRootGuiBuilder",
this,
666 "HandleWindowClosed(Int_t)");
669 "MaybeCloseWindow()");
705 act->
fPic =
"bld_mainframe.xpm";
709 act->
fAct =
"horizontal";
710 act->
fPic =
"bld_mainframe.xpm";
714 act->
fAct =
"vertical";
715 act->
fPic =
"bld_mainframe.xpm";
720 act->
fAct =
"new TGTextButton()";
721 act->
fPic =
"bld_textbutton.xpm";
725 act->
fAct =
"new TGCheckButton()";
726 act->
fPic =
"bld_checkbutton.xpm";
730 act->
fAct =
"new TGRadioButton()";
731 act->
fPic =
"bld_radiobutton.xpm";
735 act->
fAct =
"new TGPictureButton()";
736 act->
fPic =
"bld_image.xpm";
740 act->
fAct =
"new TGTextEntry()";
741 act->
fPic =
"bld_entry.xpm";
745 act->
fAct =
"TRootGuiBuilder::BuildTextEdit()";
746 act->
fPic =
"bld_text.xpm";
750 act->
fAct =
"new TGNumberEntry()";
751 act->
fPic =
"bld_numberentry.xpm";
755 act->
fAct =
"TRootGuiBuilder::BuildComboBox()";
756 act->
fPic =
"bld_combobox.xpm";
760 act->
fAct =
"TRootGuiBuilder::BuildListBox()";
761 act->
fPic =
"bld_listbox.xpm";
765 act->
fAct =
"new TGHSlider()";
766 act->
fPic =
"bld_hslider.xpm";
770 act->
fAct =
"new TGVSlider()";
771 act->
fPic =
"bld_vslider.xpm";
775 act->
fAct =
"TRootGuiBuilder::BuildHScrollBar()";
776 act->
fPic =
"bld_hscrollbar.xpm";
780 act->
fAct =
"TRootGuiBuilder::BuildVScrollBar()";
781 act->
fPic =
"bld_vscrollbar.xpm";
785 act->
fAct =
"TRootGuiBuilder::BuildListTree()";
786 act->
fPic =
"bld_listtree.xpm";
790 act->
fAct =
"new TGLabel()";
791 act->
fPic =
"bld_label.xpm";
795 act->
fAct =
"new TGIcon()";
796 act->
fPic =
"bld_image.xpm";
799 act =
new TGuiBldAction(
"TGHorizontal3DLine",
"Horizontal Line",
801 act->
fAct =
"TRootGuiBuilder::BuildH3DLine()";
802 act->
fPic =
"bld_hseparator.xpm";
806 act->
fAct =
"TRootGuiBuilder::BuildV3DLine()";
807 act->
fPic =
"bld_vseparator.xpm";
811 act->
fAct =
"new TGStatusBar()";
812 act->
fPic =
"bld_statusbar.xpm";
817 act->
fAct =
"TRootGuiBuilder::BuildHProgressBar()";
818 act->
fPic =
"bld_hprogressbar.xpm";
822 act->
fAct =
"TRootGuiBuilder::BuildVProgressBar()";
823 act->
fPic =
"bld_vprogressbar.xpm";
827 act->
fAct =
"new TRootEmbeddedCanvas()";
828 act->
fPic =
"bld_embedcanvas.xpm";
832 act =
new TGuiBldAction(
"TGHorizontalFrame",
"Horizontal Frame",
834 act->
fAct =
"new TGHorizontalFrame(0,200,100)";
835 act->
fPic =
"bld_hbox.xpm";
839 act->
fAct =
"new TGVerticalFrame(0,100,200)";
840 act->
fPic =
"bld_vbox.xpm";
844 act->
fAct =
"new TGGroupFrame()";
845 act->
fPic =
"bld_groupframe.xpm";
849 act->
fAct =
"TRootGuiBuilder::BuildTab()";
850 act->
fPic =
"bld_tab.xpm";
854 act->
fAct =
"TRootGuiBuilder::BuildShutter()";
855 act->
fPic =
"bld_shutter.png";
860 act->
fAct =
"TRootGuiBuilder::BuildCanvas()";
861 act->
fPic =
"bld_canvas.xpm";
875 act->
fAct =
"new TGColorSelect()";
876 act->
fPic =
"bld_colorselect.xpm";
906 "HandleMenu(Int_t)");
908 "HandleMenu(Int_t)");
910 "HandleMenu(Int_t)");
972 if (!
name || !sect)
return 0;
1001 if (!act || !sect)
return;
1026 btn->
Connect(
"Clicked()",
"TRootGuiBuilder",
this,
"HandleButtons()");
1050 static int id = 10000;
1054 item->
Connect(
"Selected()",
"TRootGuiBuilder",
this,
"HandleMenu(=3)");
1298 if (btn) btn->
SetState(enable && comp && !fixed && !compact_disable ?
1446 "Macro files",
"*.[C|c]*",
1459 gVirtualX->LookupString(event, str,
sizeof(str), keysym);
1468 }
else if (str[0] == 14) {
1470 }
else if (str[0] == 15) {
1497 if (
type ==
"horizontal") {
1509 else if (
type ==
"vertical") {
1575 TString::Format(
"file (%s) must have source extension (.C, .c, .cxx, .cpp, .cc)",
1603 if (!savfr)
return kFALSE;
1645 main->SaveSource(fname.
Data(),
"keep_names");
1647 main->SetList(list);
1652 main->SetWMSizeHints(
main->GetDefaultWidth(),
main->GetDefaultHeight(),
1653 10000, 10000, 0, 0);
1658 if (
gVirtualX->InheritsFrom(
"TGX11"))
main->SetIconPixmap(
"bld_rgb.xpm");
1667 TString::Format(
"file (%s) must have source extension (.C, .c, .cxx, .cpp, .cc)",
1694 img->
Merge(img,
"overlay");
1919 "Closing project",
"Do you want to save the project before closing?",
1970 const char *
text = 0;
2167 if (gPixel)
return gPixel;
2225 if (gPixel)
return gPixel;
2263 if (gPixel)
return gPixel;
2352 item = shut->
AddPage(
"Histograms");
2358 button->SetToolTipText(
"TH1");
2365 button->SetToolTipText(
"TH2");
2372 button->SetToolTipText(
"TH3");
2379 button->SetToolTipText(
"TProfile");
2384 item = shut->
AddPage(
"Functions");
2390 button->SetToolTipText(
"TF1");
2397 button->SetToolTipText(
"TF2");
2402 item = shut->
AddPage(
"Trees");
2408 button->SetToolTipText(
"TNtuple");
2415 button->SetToolTipText(
"TTree");
2422 button->SetToolTipText(
"TChain");
2437 te->
AddLine(
"all work and no play makes jack a pretty");
2438 te->
AddLine(
"dull boy. all work and no play makes jack");
2439 te->
AddLine(
"a pretty dull boy. all work and no play ");
2440 te->
AddLine(
"makes jack a pretty dull boy. all work");
2441 te->
AddLine(
"and no play makes jack a pretty dull boy.");
2502 int max_ascent, max_descent;
2503 gVirtualX->GetFontProperties(
fs, max_ascent, max_descent);
2538 b->Resize(100,
b->GetDefaultHeight());
2539 b->SetRange(100, 20);
2552 b->Resize(
b->GetDefaultWidth(), 100);
2554 b->SetRange(100, 20);
2566 b->Resize(100,
b->GetDefaultHeight());
2581 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.
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 id
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 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.
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.
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.
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.
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.
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.
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 SetForeground(Pixel_t v)
Set foreground color.
void SetBackground(Pixel_t v)
Set background color.
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.
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).
virtual Bool_t CloseWindow()
Close MDI frame window.
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.
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 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)
virtual TGShutterItem * AddPage(const char *item="Page")
Add new page (shutter item)
Provides a StatusBar widget.
virtual void SetText(TGString *text, Int_t partidx=0)
Set text in partition partidx in status bar.
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 SetBackgroundPixmap(Pixmap_t pixmap)
set background pixmap
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
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.
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.
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.
Mask_t fMask
bit mask specifying which fields are valid
FontH_t fFont
default text font for text operations