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 },
334 if (
entry->GetShortcut())
336 entry->GetShortcut()->Length());
342 if (
entry->GetPic() != 0) {
347 switch (
entry->GetType()) {
378 if (
entry->GetPic() != 0) {
385 if (
entry->GetShortcut())
419 if (
entry->GetPic() != 0) {
425 if (
entry->GetShortcut())
430 if (
entry->GetShortcut()) {
620 tip->Connect(
"Reset()",
"TRootGuiBuilder",
this,
"UpdateStatusBar(=0)");
621 tip->Connect(
"Hide()",
"TRootGuiBuilder",
this,
"EraseStatusBar()");
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";
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";
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";
903 "HandleMenu(Int_t)");
905 "HandleMenu(Int_t)");
907 "HandleMenu(Int_t)");
986 if (*(
lb->GetText()) ==
name) {
1008 if (!
act->fPicture) {
1021 btn->SetToolTipText(
act->GetTitle(), 200);
1022 btn->SetUserData((
void*)
act);
1023 btn->Connect(
"Clicked()",
"TRootGuiBuilder",
this,
"HandleButtons()");
1029 lb->SetBackgroundColor(
cont->GetBackground());
1031 hf->SetBackgroundColor(
cont->GetBackground());
1038 cont->MapSubwindows();
1047 static int id = 10000;
1051 item->Connect(
"Selected()",
"TRootGuiBuilder",
this,
"HandleMenu(=3)");
1418 return btn->IsDown();
1430 return btn->IsDown();
1443 "Macro files",
"*.[C|c]*",
1465 }
else if (str[0] == 14) {
1467 }
else if (str[0] == 15) {
1494 if (
type ==
"horizontal") {
1506 else if (
type ==
"vertical") {
1556 if (!
fi.fFilename) {
1566 fname.EndsWith(
".cpp") ||
fname.EndsWith(
".cc")) {
1572 TString::Format(
"file (%s) must have source extension (.C, .c, .cxx, .cpp, .cc)",
1607 img->FromWindow(
savfr->GetParent()->GetId());
1622 if (!
fi.fFilename) {
1633 fname.EndsWith(
".cpp") ||
fname.EndsWith(
".cc")) {
1636 savfr->GetHeight());
1641 main->SetLayoutBroken(
savfr->IsLayoutBroken());
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)",
1682 if (!
img || !
img->GetWidth() || !
img->GetHeight()) {
1691 img->Merge(
img,
"overlay");
1696 img->GetPixmap(),
img->GetMask());
1885 hd->SetEditDisabled();
1893 hd->SetEditDisabled();
1916 "Closing project",
"Do you want to save the project before closing?",
1967 const char *
text = 0;
1974 text =
tip->GetText()->Data();
2112 ret->MapSubwindows();
2141 ret->MapSubwindows();
2186 fgBgnd->SetBackground(back);
2187 fgBgnd->SetForeground(back);
2304 lt->AddItem(0,
"Entry 1");
2305 lt->AddItem(0,
"Entry 2");
2306 lt->AddItem(0,
"Entry 3");
2307 lt->AddItem(0,
"Entry 4");
2308 lt->AddItem(0,
"Entry 5");
2349 item =
shut->AddPage(
"Histograms");
2355 button->SetToolTipText(
"TH1");
2362 button->SetToolTipText(
"TH2");
2369 button->SetToolTipText(
"TH3");
2376 button->SetToolTipText(
"TProfile");
2387 button->SetToolTipText(
"TF1");
2394 button->SetToolTipText(
"TF2");
2405 button->SetToolTipText(
"TNtuple");
2412 button->SetToolTipText(
"TTree");
2419 button->SetToolTipText(
"TChain");
2423 shut->MapSubwindows();
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.");
2440 te->MapSubwindows();
2442 te->Resize(100, 60);
2454 tab->AddTab(
"Tab1");
2455 tab->AddTab(
"Tab2");
2456 tab->MapSubwindows();
2468 lb->AddEntry(
"Entry 1", 0);
2469 lb->AddEntry(
"Entry 2", 1);
2470 lb->AddEntry(
"Entry 3", 2);
2471 lb->AddEntry(
"Entry 4", 3);
2472 lb->AddEntry(
"Entry 5", 4);
2473 lb->AddEntry(
"Entry 6", 5);
2474 lb->AddEntry(
"Entry 7", 6);
2475 lb->MapSubwindows();
2477 lb->Resize(100,100);
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
ULong_t Pixel_t
Pixel value.
Handle_t FontStruct_t
Pointer to font structure.
bool Bool_t
Boolean (0=false, 1=true) (bool)
unsigned long ULong_t
Unsigned long integer 4 bytes (unsigned long). Size depends on architecture.
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int)
float Float_t
Float 4 bytes (float)
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.
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.