124 Start/Stop Edit Mode\n\
125 ************************************************\n\
126 o Select File menu / Edit\n\
127 o Select Start Edit button on the toolbar\n\
128 o Ctrl-Double-Click on the project frame\n\
129 o Double-Click to activate quick edit action (defined in root.mimes)\n\
131 Select, Grab, Drop\n\
132 ************************************************\n\
133 It is possible to select & drag any frame and drop it to another frame\n\
135 o Press left mouse button Click or Ctrl-Click to select an object.\n\
136 o Press right mouse button to activate context menu\n\
137 o Multiple selection can be done in two ways (grabbing):\n\
138 - draw lasso and press Return key\n\
139 - press Shift key and draw lasso\n\
141 - select frame and press Ctrl-Return key\n\
142 o Changing layout order of widgets:\n\
143 - set broken layout mode via toolbar button or check button\n\
144 \'Layout subframes\' in tab \'Layout\'\n\
145 - select a widget and use arrow keys to change the layout order\n\
147 - remove the selection (if any) by using the space bar\n\
148 - draw lasso and use the four toolbar buttons for widget alignment\n\
149 - arrow keys align the frames too, if you prefer the keyboard\n\
152 ************************************************\n\
153 o Return - grab selected frames\n\
154 o Ctrl-Return - drop frames\n\
155 o Del - delete selected frame\n\
156 o Shift-Del - crop\n\
159 o Ctrl-V - paste frame into the last clicked position\n\
160 o Ctrl-L - compact frame\n\
161 o Ctrl-B - enable/disable layout\n\
162 o Ctrl-H - switch Horizontal-Vertical layout\n\
163 o Ctrl-G - switch ON/OFF grid\n\
165 o Ctrl-O - open and execute ROOT macro file\n\
166 o Ctrl-N - create new main frame\n\
167 o Ctrl-Z - undo last action (not implemented)\n\
168 o Shift-Ctrl-Z - redo (not implemented)\n\
171 ************************************************\n\
173For more information, please see the GuiBuilder Howto page at:\n\
175 http://root.cern.ch/root/HowtoGuiBuilder.html\n\
182************************************************************\n\
183* Copyright (C) 1995-2004, Rene Brun and Fons Rademakers. *\n\
184* All rights reserved. *\n\
186* For the licensing terms see $ROOTSYS/LICENSE. *\n\
187* For the list of contributors see $ROOTSYS/README/CREDITS.*\n\
188************************************************************\n\
195 {
"",
"",
kFALSE, -1, 0 },
199 {
"",
"",
kFALSE, -1, 0 },
202 {
"",
"",
kFALSE, -1, 0 },
203 {
"bld_compact.png",
"Compact selected frame (Ctrl-L)",
kFALSE,
kCompactAct, 0 },
205 {
"bld_hbox.png",
"Layout selected frame horizontally (Ctrl-H)",
kFALSE,
kLayoutHAct, 0 },
206 {
"bld_vbox.png",
"Layout selected frame vertically (Ctrl-H)",
kFALSE,
kLayoutVAct, 0 },
208 {
"",
"",
kFALSE, -1, 0 },
209 {
"bld_AlignTop.png",
"Align selected frames to the top line of lasso (Up Arrow)",
kFALSE,
kUpAct, 0 },
210 {
"bld_AlignBtm.png",
"Align selected frames to the down line of lasso (Down Arrow)",
kFALSE,
kDownAct, 0 },
211 {
"bld_AlignLeft.png",
"Align selected frames to the left line of lasso (Left Arrow)",
kFALSE,
kLeftAct, 0 },
212 {
"bld_AlignRight.png",
"Align selected frames to the right line of lasso (Right Arrow)",
kFALSE,
kRightAct, 0 },
213 {
"",
"",
kFALSE, -1, 0 },
216 {
"bld_paste.png",
"Paste frame into the last clicked position (Ctrl-V)",
kFALSE,
kPasteAct, 0 },
252 virtual ~TGuiBldMenuTitle() {}
281void TGuiBldMenuTitle::DoRedraw()
285 int x,
y, max_ascent, max_descent;
288 gVirtualX->GetFontProperties(fFontStruct, max_ascent, max_descent);
291 gVirtualX->SetForeground(fNormGC, GetDefaultSelectedBackground());
292 gVirtualX->FillRectangle(fId,fNormGC, 0, 0, fWidth, fHeight);
293 gVirtualX->SetForeground(fNormGC, GetForeground());
294 fLabel->Draw(fId, fSelGC,
x,
y + max_ascent);
296 gVirtualX->SetForeground(fNormGC, fBgndColor);
297 gVirtualX->FillRectangle(fId,fNormGC, 0, 0, fWidth, fHeight);
298 gVirtualX->SetForeground(fNormGC, GetForeground());
299 fLabel->Draw(fId, fNormGC,
x,
y + max_ascent);
303 0, 0, GetWidth()-1, GetHeight()-1);
312 virtual ~TGuiBldPopupMenu() { }
325void TGuiBldPopupMenu::DrawEntry(
TGMenuEntry *entry)
334 font = fHifontStruct;
345 Int_t max_ascent, max_descent;
346 gVirtualX->GetFontProperties(font, max_ascent, max_descent);
355 if (entry->
GetPic() != 0) {
356 picposy = entry->
GetEy() +
h / 2;
370 fMenuWidth-6,
h - 1);
373 fMenuWidth - entry->
GetEx()- 6,
h - 1);
377 DrawTrianglePattern(fSelGC, fMenuWidth-10, entry->
GetEy() + 3,
378 fMenuWidth-6, entry->
GetEy() + 11);
382 DrawCheckMark(fSelGC, 6, entry->
GetEy()+
sep, 14,
387 DrawRCheckMark(fSelGC, 6, entry->
GetEy()+
sep, 14,
391 if (entry->
GetPic() != 0) {
392 entry->
GetPic()->
Draw(fId, fSelGC, 8, picposy);
397 GetShadowGC()(), tx, ty);
401 GetShadowGC()(), fMenuWidth - tw, ty);
410 tx-1, entry->
GetEy()-1, fMenuWidth-tx-1,
h);
414 fMenuWidth - entry->
GetEx()- 3,
h);
418 DrawTrianglePattern(fNormGC, fMenuWidth-10, entry->
GetEy() + 3,
419 fMenuWidth-6, entry->
GetEy() + 11);
423 DrawCheckMark(fNormGC, 6, entry->
GetEy()+
sep, 14,
428 DrawRCheckMark(fNormGC, 6, entry->
GetEy()+
sep, 14,
432 if (entry->
GetPic() != 0) {
433 entry->
GetPic()->
Draw(fId, fNormGC, 8, picposy);
441 entry->
GetLabel()->
Draw(fId, GetHilightGC()(), tx+1, ty+1);
445 fMenuWidth - tw+1, ty+1);
447 fMenuWidth - tw, ty);
481 virtual ~TGuiBldToolButton() { }
497void TGuiBldToolButton::DoRedraw()
499 int x = (fWidth - fTWidth) >> 1;
500 int y = (fHeight - fTHeight) >> 1;
501 UInt_t w = GetWidth() - 1;
514 if (!fPicD) CreateDisabledPicture();
515 pic = fPicD ? fPicD : fPic;
521 pic->
Draw(fId, fNormGC,
x,
y);
560 if (state != fState) {
564 fOptions &= ~kRaisedFrame;
569 fOptions &= ~kRaisedFrame;
570 fOptions &= ~kSunkenFrame;
575 if (emit) EmitSignals(was);
624 TGuiBldToolButton *pb =
new TGuiBldToolButton(
fToolBar, pic,
626 pb->SetStyle(
gClient->GetStyle());
633 tip->
Connect(
"Reset()",
"TRootGuiBuilder",
this,
"UpdateStatusBar(=0)");
634 tip->
Connect(
"Hide()",
"TRootGuiBuilder",
this,
"EraseStatusBar()");
651 "HandleAction(Int_t)");
675 fMain->
Connect(
"FrameClosed(Int_t)",
"TRootGuiBuilder",
this,
676 "HandleWindowClosed(Int_t)");
679 "MaybeCloseWindow()");
715 act->
fPic =
"bld_mainframe.xpm";
719 act->
fAct =
"horizontal";
720 act->
fPic =
"bld_mainframe.xpm";
724 act->
fAct =
"vertical";
725 act->
fPic =
"bld_mainframe.xpm";
730 act->
fAct =
"new TGTextButton()";
731 act->
fPic =
"bld_textbutton.xpm";
735 act->
fAct =
"new TGCheckButton()";
736 act->
fPic =
"bld_checkbutton.xpm";
740 act->
fAct =
"new TGRadioButton()";
741 act->
fPic =
"bld_radiobutton.xpm";
745 act->
fAct =
"new TGPictureButton()";
746 act->
fPic =
"bld_image.xpm";
750 act->
fAct =
"new TGTextEntry()";
751 act->
fPic =
"bld_entry.xpm";
755 act->
fAct =
"TRootGuiBuilder::BuildTextEdit()";
756 act->
fPic =
"bld_text.xpm";
760 act->
fAct =
"new TGNumberEntry()";
761 act->
fPic =
"bld_numberentry.xpm";
765 act->
fAct =
"TRootGuiBuilder::BuildComboBox()";
766 act->
fPic =
"bld_combobox.xpm";
770 act->
fAct =
"TRootGuiBuilder::BuildListBox()";
771 act->
fPic =
"bld_listbox.xpm";
775 act->
fAct =
"new TGHSlider()";
776 act->
fPic =
"bld_hslider.xpm";
780 act->
fAct =
"new TGVSlider()";
781 act->
fPic =
"bld_vslider.xpm";
785 act->
fAct =
"TRootGuiBuilder::BuildHScrollBar()";
786 act->
fPic =
"bld_hscrollbar.xpm";
790 act->
fAct =
"TRootGuiBuilder::BuildVScrollBar()";
791 act->
fPic =
"bld_vscrollbar.xpm";
795 act->
fAct =
"TRootGuiBuilder::BuildListTree()";
796 act->
fPic =
"bld_listtree.xpm";
800 act->
fAct =
"new TGLabel()";
801 act->
fPic =
"bld_label.xpm";
805 act->
fAct =
"new TGIcon()";
806 act->
fPic =
"bld_image.xpm";
809 act =
new TGuiBldAction(
"TGHorizontal3DLine",
"Horizontal Line",
811 act->
fAct =
"TRootGuiBuilder::BuildH3DLine()";
812 act->
fPic =
"bld_hseparator.xpm";
816 act->
fAct =
"TRootGuiBuilder::BuildV3DLine()";
817 act->
fPic =
"bld_vseparator.xpm";
821 act->
fAct =
"new TGStatusBar()";
822 act->
fPic =
"bld_statusbar.xpm";
827 act->
fAct =
"TRootGuiBuilder::BuildHProgressBar()";
828 act->
fPic =
"bld_hprogressbar.xpm";
832 act->
fAct =
"TRootGuiBuilder::BuildVProgressBar()";
833 act->
fPic =
"bld_vprogressbar.xpm";
837 act->
fAct =
"new TRootEmbeddedCanvas()";
838 act->
fPic =
"bld_embedcanvas.xpm";
842 act =
new TGuiBldAction(
"TGHorizontalFrame",
"Horizontal Frame",
844 act->
fAct =
"new TGHorizontalFrame(0,200,100)";
845 act->
fPic =
"bld_hbox.xpm";
849 act->
fAct =
"new TGVerticalFrame(0,100,200)";
850 act->
fPic =
"bld_vbox.xpm";
854 act->
fAct =
"new TGGroupFrame()";
855 act->
fPic =
"bld_groupframe.xpm";
859 act->
fAct =
"TRootGuiBuilder::BuildTab()";
860 act->
fPic =
"bld_tab.xpm";
864 act->
fAct =
"TRootGuiBuilder::BuildShutter()";
865 act->
fPic =
"bld_shutter.png";
870 act->
fAct =
"TRootGuiBuilder::BuildCanvas()";
871 act->
fPic =
"bld_canvas.xpm";
885 act->
fAct =
"new TGColorSelect()";
886 act->
fPic =
"bld_colorselect.xpm";
916 "HandleMenu(Int_t)");
918 "HandleMenu(Int_t)");
920 "HandleMenu(Int_t)");
982 if (!
name || !sect)
return 0;
1011 if (!act || !sect)
return;
1036 btn->
Connect(
"Clicked()",
"TRootGuiBuilder",
this,
"HandleButtons()");
1060 static int id = 10000;
1064 item->
Connect(
"Selected()",
"TRootGuiBuilder",
this,
"HandleMenu(=3)");
1196 TGuiBldMenuTitle *title;
1308 if (btn) btn->
SetState(enable && comp && !fixed && !compact_disable ?
1456 "Macro files",
"*.[C|c]*",
1469 gVirtualX->LookupString(event, str,
sizeof(str), keysym);
1478 }
else if (str[0] == 14) {
1480 }
else if (str[0] == 15) {
1507 if (
type ==
"horizontal") {
1519 else if (
type ==
"vertical") {
1585 TString::Format(
"file (%s) must have source extension (.C, .c, .cxx, .cpp, .cc)",
1613 if (!savfr)
return kFALSE;
1655 main->SaveSource(fname.
Data(),
"keep_names");
1657 main->SetList(list);
1662 main->SetWMSizeHints(
main->GetDefaultWidth(),
main->GetDefaultHeight(),
1663 10000, 10000, 0, 0);
1668 if (
gVirtualX->InheritsFrom(
"TGX11"))
main->SetIconPixmap(
"bld_rgb.xpm");
1677 TString::Format(
"file (%s) must have source extension (.C, .c, .cxx, .cpp, .cc)",
1704 img->
Merge(img,
"overlay");
1929 "Closing project",
"Do you want to save the project before closing?",
1980 const char *
text = 0;
2177 if (gPixel)
return gPixel;
2235 if (gPixel)
return gPixel;
2273 if (gPixel)
return gPixel;
2307 return new TGuiBldPopupMenu();
2362 item = shut->
AddPage(
"Histograms");
2364 buttonpic =
gClient->GetPicture(
"h1_s.xpm");
2371 buttonpic =
gClient->GetPicture(
"h2_s.xpm");
2378 buttonpic =
gClient->GetPicture(
"h3_s.xpm");
2385 buttonpic =
gClient->GetPicture(
"profile_s.xpm");
2394 item = shut->
AddPage(
"Functions");
2396 buttonpic =
gClient->GetPicture(
"f1_s.xpm");
2403 buttonpic =
gClient->GetPicture(
"f2_s.xpm");
2412 item = shut->
AddPage(
"Trees");
2414 buttonpic =
gClient->GetPicture(
"ntuple_s.xpm");
2421 buttonpic =
gClient->GetPicture(
"tree_s.xpm");
2428 buttonpic =
gClient->GetPicture(
"chain_s.xpm");
2447 te->
AddLine(
"all work and no play makes jack a pretty");
2448 te->
AddLine(
"dull boy. all work and no play makes jack");
2449 te->
AddLine(
"a pretty dull boy. all work and no play ");
2450 te->
AddLine(
"makes jack a pretty dull boy. all work");
2451 te->
AddLine(
"and no play makes jack a pretty dull boy.");
2512 int max_ascent, max_descent;
2513 gVirtualX->GetFontProperties(fs, max_ascent, max_descent);
2548 b->Resize(100,
b->GetDefaultHeight());
2549 b->SetRange(100, 20);
2562 b->Resize(
b->GetDefaultWidth(), 100);
2564 b->SetRange(100, 20);
2576 b->Resize(100,
b->GetDefaultHeight());
2591 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
@ kMWMInputFullApplicationModal
R__EXTERN TGuiBuilder * gGuiBuilder
R__EXTERN void * gTQSender
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.
virtual void SetContainer(TGFrame *f)
virtual void MapSubwindows()
Map all canvas sub windows.
TGViewPort * GetViewPort() const
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.
virtual void AddEntry(TGString *s, Int_t id)
virtual TGListBox * GetListBox() const
virtual void SetLayoutBroken(Bool_t on=kTRUE)
Set broken layout. No Layout method is called.
virtual void SetLayoutManager(TGLayoutManager *l)
Set the layout manager for the composite frame.
virtual TList * GetList() const
TGCompositeFrame(const TGCompositeFrame &)
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
virtual UInt_t GetDefaultWidth() const
virtual void SetEditable(Bool_t on=kTRUE)
Switch ON/OFF edit mode.
virtual void Layout()
Layout the elements of the composite frame.
virtual Bool_t IsLayoutBroken() const
virtual void ChangeOptions(UInt_t options)
Change composite frame options. Options is an OR of the EFrameTypes.
virtual void SetCleanup(Int_t mode=kLocalCleanup)
Turn on automatic cleanup of child frames in dtor.
virtual void MapSubwindows()
Map all sub windows that are part of the composite frame.
virtual void SetEditDisabled(UInt_t on=1)
Set edit disable flag for this frame and subframes.
virtual void AddFrame(TGFrame *f, TGLayoutHints *hints)
Add frame to dockable frame container. Frame and hints are NOT adopted.
void SetWindowName(const char *name)
Set window name so it appear as title of the undock window.
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.
virtual void DoRedraw()
Redraw the frame.
static const TGGC & GetBlackGC()
Get black graphics context.
virtual void MapRaised()
map raised
static Pixel_t GetWhitePixel()
Get white pixel value.
static const TGGC & GetHilightGC()
Get highlight color graphics context.
virtual void SetBackgroundColor(Pixel_t back)
Set background color (override from TGWindow base class).
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
virtual UInt_t GetOptions() const
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
virtual Pixel_t GetBackground() const
virtual void MoveResize(Int_t x, Int_t y, UInt_t w=0, UInt_t h=0)
Move and/or resize the frame.
virtual Bool_t HandleCrossing(Event_t *)
virtual void MapWindow()
map window
static const TGGC & GetBckgndGC()
Get background color graphics context.
virtual void UnmapWindow()
unmap window
void SetForeground(Pixel_t v)
Set foreground color.
void SetBackground(Pixel_t v)
Set background color.
virtual void Draw(Drawable_t id, GContext_t gc, Int_t x, Int_t y)
Draw a hot string and underline the hot character.
const TGString * GetText() const
virtual void Resize(UInt_t w, UInt_t h)
Resize the listbox widget.
virtual void AddEntry(TGString *s, Int_t id)
Add entry with specified string and id to listbox.
void AddItem(TGListTreeItem *parent, TGListTreeItem *item)
Add given item to list tree.
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.
virtual Bool_t HandleKey(Event_t *event)
Handle keyboard events.
void SetWMPosition(Int_t x, Int_t y)
Give the window manager a window position hint.
void SetWindowName(const char *name=0)
Set window name. This is typically done via the window manager.
const TGPicture * SetIconPixmap(const char *iconName)
Set window icon pixmap by name.
virtual void SetMdiHints(ULong_t mdihints)
Set MDI hints, also used to identify titlebar buttons.
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...
void SetWindowName(const char *name)
Set MDI window name (set titlebar title).
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
const TGPicture * GetPicture(const char *name)
Get a picture from the picture pool.
void Draw(Option_t *="")
Default Draw method for all objects.
Pixmap_t GetPicture() const
TGFrame * GetContainer() const
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)
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.
virtual TGCompositeFrame * AddTab(TGString *text)
Add a tab to the tab widget.
static FontStruct_t GetDefaultFontStruct()
Return default font structure in use for a text listbox entry.
virtual void AddLine(const char *string)
Add a line of text to the view widget.
virtual void Layout()
Layout the components of view.
virtual const char * GetName() const
Return unique name, used in SavePrimitive methods.
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)
const TGWindow * GetParent() const
const TGPicture * fPicture
Bool_t IsLassoDrawn() const
void SetBuilder(TRootGuiBuilder *b)
Bool_t HandleKey(Event_t *)
Handle key event.
Bool_t CanCompact(TGWindow *w) const
kTRUE is frame could be compacted/"layouted"
void SetPropertyEditor(TGuiBldEditor *e)
Helper method.
void SetEditable(Bool_t on=kTRUE)
Grab server.
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.
TGFrame * GetSelected() const
Return the current grabbed/selected frame.
void RemoveFrame(TGFrame *)
Remove a frame.
void Reset()
Reset the editor.
void SetEmbedded(Bool_t e=kTRUE)
void SwitchLayout()
Popup dialog to set layout of editted frame off.
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
virtual TObject * Last() const
Return the last object in the list. Returns 0 when list is empty.
virtual TObject * First() const
Return the first object in the list. Returns 0 when list is empty.
virtual const char * GetTitle() const
Returns title of object.
virtual const char * GetName() const
Returns name 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.
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.
virtual void AddAction(TGuiBldAction *act, const char *sect)
Add new action to widget palette.
TRootGuiBuilder(const TGWindow *p=0)
Create GUI builder application.
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()
Keyborad key binding.
virtual void HandleButtons()
Handle buttons in the GUI builder's widget palette.
virtual void AddSection(const char *sect)
Add new shutter item.
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=0)
Update information shown on the status bar.
friend class TGuiBldDragManager
virtual void Hide()
Hide builder.
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.
virtual void CloseWindow()
Close GUI builder via window manager "Close" button.
virtual Bool_t HandleKey(Event_t *event)
Handle keys.
void EnableLassoButtons(Bool_t on=kTRUE)
Enable toolbar buttons for alignment.
TGuiBldDragManager * fManager
virtual void EraseStatusBar()
Clear information shown in the status bar.
static TGFrame * BuildHScrollBar()
Helper method to create TGHScrollBar.
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.
virtual Bool_t OpenProject(Event_t *event=0)
Open new gui builder project.
virtual void Update()
Update gui builder.
virtual Bool_t SaveProject(Event_t *event=0)
Save selected project.
virtual TGFrame * ExecuteAction()
Execute an action.
virtual Bool_t NewProject(TString type="")
Create a new project.
virtual void HandleWindowClosed(Int_t id)
Handler for closed MDI frame.
virtual ~TRootGuiBuilder()
Destructor.
virtual void MaybeCloseWindow()
Handler before closing MDI frame.
static TGFrame * HSplitter()
Creates new horizontal splitter (TGHSplitter).
TGPopupMenu * fMenuWindow
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.
int main(int argc, char **argv)
static constexpr double bar
static constexpr double s