123 Start/Stop Edit Mode\n\
124 ************************************************\n\
125 o Select File menu / Edit\n\
126 o Select Start Edit button on the toolbar\n\
127 o Ctrl-Double-Click on the project frame\n\
128 o Double-Click to activate quick edit action (defined in root.mimes)\n\
130 Select, Grab, Drop\n\
131 ************************************************\n\
132 It is possible to select & drag any frame and drop it to another frame\n\
134 o Press left mouse button Click or Ctrl-Click to select an object.\n\
135 o Press right mouse button to activate context menu\n\
136 o Multiple selection can be done in two ways (grabbing):\n\
137 - draw lasso and press Return key\n\
138 - press Shift key and draw lasso\n\
140 - select frame and press Ctrl-Return key\n\
141 o Changing layout order of widgets:\n\
142 - set broken layout mode via toolbar button or check button\n\
143 \'Layout subframes\' in tab \'Layout\'\n\
144 - select a widget and use arrow keys to change the layout order\n\
146 - remove the selection (if any) by using the space bar\n\
147 - draw lasso and use the four toolbar buttons for widget alignment\n\
148 - arrow keys align the frames too, if you prefer the keyboard\n\
151 ************************************************\n\
152 o Return - grab selected frames\n\
153 o Ctrl-Return - drop frames\n\
154 o Del - delete selected frame\n\
155 o Shift-Del - crop\n\
158 o Ctrl-V - paste frame into the last clicked position\n\
159 o Ctrl-L - compact frame\n\
160 o Ctrl-B - enable/disable layout\n\
161 o Ctrl-H - switch Horizontal-Vertical layout\n\
162 o Ctrl-G - switch ON/OFF grid\n\
164 o Ctrl-O - open and execute ROOT macro file\n\
165 o Ctrl-N - create new main frame\n\
166 o Ctrl-Z - undo last action (not implemented)\n\
167 o Shift-Ctrl-Z - redo (not implemented)\n\
170 ************************************************\n\
172For more information, please see the GuiBuilder Howto page at:\n\
174 http://root.cern.ch/root/HowtoGuiBuilder.html\n\
181************************************************************\n\
182* Copyright (C) 1995-2004, Rene Brun and Fons Rademakers. *\n\
183* All rights reserved. *\n\
185* For the licensing terms see $ROOTSYS/LICENSE. *\n\
186* For the list of contributors see $ROOTSYS/README/CREDITS.*\n\
187************************************************************\n\
194 {
"",
"",
kFALSE, -1, 0 },
198 {
"",
"",
kFALSE, -1, 0 },
201 {
"",
"",
kFALSE, -1, 0 },
202 {
"bld_compact.png",
"Compact selected frame (Ctrl-L)",
kFALSE,
kCompactAct, 0 },
204 {
"bld_hbox.png",
"Layout selected frame horizontally (Ctrl-H)",
kFALSE,
kLayoutHAct, 0 },
205 {
"bld_vbox.png",
"Layout selected frame vertically (Ctrl-H)",
kFALSE,
kLayoutVAct, 0 },
207 {
"",
"",
kFALSE, -1, 0 },
208 {
"bld_AlignTop.png",
"Align selected frames to the top line of lasso (Up Arrow)",
kFALSE,
kUpAct, 0 },
209 {
"bld_AlignBtm.png",
"Align selected frames to the down line of lasso (Down Arrow)",
kFALSE,
kDownAct, 0 },
210 {
"bld_AlignLeft.png",
"Align selected frames to the left line of lasso (Left Arrow)",
kFALSE,
kLeftAct, 0 },
211 {
"bld_AlignRight.png",
"Align selected frames to the right line of lasso (Right Arrow)",
kFALSE,
kRightAct, 0 },
212 {
"",
"",
kFALSE, -1, 0 },
215 {
"bld_paste.png",
"Paste frame into the last clicked position (Ctrl-V)",
kFALSE,
kPasteAct, 0 },
251 virtual ~TGuiBldMenuTitle() {}
280void TGuiBldMenuTitle::DoRedraw()
284 int x,
y, max_ascent, max_descent;
287 gVirtualX->GetFontProperties(fFontStruct, max_ascent, max_descent);
290 gVirtualX->SetForeground(fNormGC, GetDefaultSelectedBackground());
291 gVirtualX->FillRectangle(fId,fNormGC, 0, 0, fWidth, fHeight);
292 gVirtualX->SetForeground(fNormGC, GetForeground());
293 fLabel->Draw(fId, fSelGC,
x,
y + max_ascent);
295 gVirtualX->SetForeground(fNormGC, fBgndColor);
296 gVirtualX->FillRectangle(fId,fNormGC, 0, 0, fWidth, fHeight);
297 gVirtualX->SetForeground(fNormGC, GetForeground());
298 fLabel->Draw(fId, fNormGC,
x,
y + max_ascent);
302 0, 0, GetWidth()-1, GetHeight()-1);
311 virtual ~TGuiBldPopupMenu() { }
324void TGuiBldPopupMenu::DrawEntry(
TGMenuEntry *entry)
333 font = fHifontStruct;
344 Int_t max_ascent, max_descent;
345 gVirtualX->GetFontProperties(font, max_ascent, max_descent);
354 if (entry->
GetPic() != 0) {
355 picposy = entry->
GetEy() +
h / 2;
369 fMenuWidth-6,
h - 1);
372 fMenuWidth - entry->
GetEx()- 6,
h - 1);
376 DrawTrianglePattern(fSelGC, fMenuWidth-10, entry->
GetEy() + 3,
377 fMenuWidth-6, entry->
GetEy() + 11);
381 DrawCheckMark(fSelGC, 6, entry->
GetEy()+
sep, 14,
386 DrawRCheckMark(fSelGC, 6, entry->
GetEy()+
sep, 14,
390 if (entry->
GetPic() != 0) {
391 entry->
GetPic()->
Draw(fId, fSelGC, 8, picposy);
396 GetShadowGC()(), tx, ty);
400 GetShadowGC()(), fMenuWidth - tw, ty);
409 tx-1, entry->
GetEy()-1, fMenuWidth-tx-1,
h);
413 fMenuWidth - entry->
GetEx()- 3,
h);
417 DrawTrianglePattern(fNormGC, fMenuWidth-10, entry->
GetEy() + 3,
418 fMenuWidth-6, entry->
GetEy() + 11);
422 DrawCheckMark(fNormGC, 6, entry->
GetEy()+
sep, 14,
427 DrawRCheckMark(fNormGC, 6, entry->
GetEy()+
sep, 14,
431 if (entry->
GetPic() != 0) {
432 entry->
GetPic()->
Draw(fId, fNormGC, 8, picposy);
440 entry->
GetLabel()->
Draw(fId, GetHilightGC()(), tx+1, ty+1);
444 fMenuWidth - tw+1, ty+1);
446 fMenuWidth - tw, ty);
480 virtual ~TGuiBldToolButton() { }
496void TGuiBldToolButton::DoRedraw()
498 int x = (fWidth - fTWidth) >> 1;
499 int y = (fHeight - fTHeight) >> 1;
500 UInt_t w = GetWidth() - 1;
513 if (!fPicD) CreateDisabledPicture();
514 pic = fPicD ? fPicD : fPic;
520 pic->
Draw(fId, fNormGC,
x,
y);
559 if (state != fState) {
563 fOptions &= ~kRaisedFrame;
568 fOptions &= ~kRaisedFrame;
569 fOptions &= ~kSunkenFrame;
574 if (emit) EmitSignals(was);
623 TGuiBldToolButton *pb =
new TGuiBldToolButton(
fToolBar, pic,
625 pb->SetStyle(
gClient->GetStyle());
632 tip->
Connect(
"Reset()",
"TRootGuiBuilder",
this,
"UpdateStatusBar(=0)");
633 tip->
Connect(
"Hide()",
"TRootGuiBuilder",
this,
"EraseStatusBar()");
650 "HandleAction(Int_t)");
674 fMain->
Connect(
"FrameClosed(Int_t)",
"TRootGuiBuilder",
this,
675 "HandleWindowClosed(Int_t)");
678 "MaybeCloseWindow()");
714 act->
fPic =
"bld_mainframe.xpm";
718 act->
fAct =
"horizontal";
719 act->
fPic =
"bld_mainframe.xpm";
723 act->
fAct =
"vertical";
724 act->
fPic =
"bld_mainframe.xpm";
729 act->
fAct =
"new TGTextButton()";
730 act->
fPic =
"bld_textbutton.xpm";
734 act->
fAct =
"new TGCheckButton()";
735 act->
fPic =
"bld_checkbutton.xpm";
739 act->
fAct =
"new TGRadioButton()";
740 act->
fPic =
"bld_radiobutton.xpm";
744 act->
fAct =
"new TGPictureButton()";
745 act->
fPic =
"bld_image.xpm";
749 act->
fAct =
"new TGTextEntry()";
750 act->
fPic =
"bld_entry.xpm";
754 act->
fAct =
"TRootGuiBuilder::BuildTextEdit()";
755 act->
fPic =
"bld_text.xpm";
759 act->
fAct =
"new TGNumberEntry()";
760 act->
fPic =
"bld_numberentry.xpm";
764 act->
fAct =
"TRootGuiBuilder::BuildComboBox()";
765 act->
fPic =
"bld_combobox.xpm";
769 act->
fAct =
"TRootGuiBuilder::BuildListBox()";
770 act->
fPic =
"bld_listbox.xpm";
774 act->
fAct =
"new TGHSlider()";
775 act->
fPic =
"bld_hslider.xpm";
779 act->
fAct =
"new TGVSlider()";
780 act->
fPic =
"bld_vslider.xpm";
784 act->
fAct =
"TRootGuiBuilder::BuildHScrollBar()";
785 act->
fPic =
"bld_hscrollbar.xpm";
789 act->
fAct =
"TRootGuiBuilder::BuildVScrollBar()";
790 act->
fPic =
"bld_vscrollbar.xpm";
794 act->
fAct =
"TRootGuiBuilder::BuildListTree()";
795 act->
fPic =
"bld_listtree.xpm";
799 act->
fAct =
"new TGLabel()";
800 act->
fPic =
"bld_label.xpm";
804 act->
fAct =
"new TGIcon()";
805 act->
fPic =
"bld_image.xpm";
808 act =
new TGuiBldAction(
"TGHorizontal3DLine",
"Horizontal Line",
810 act->
fAct =
"TRootGuiBuilder::BuildH3DLine()";
811 act->
fPic =
"bld_hseparator.xpm";
815 act->
fAct =
"TRootGuiBuilder::BuildV3DLine()";
816 act->
fPic =
"bld_vseparator.xpm";
820 act->
fAct =
"new TGStatusBar()";
821 act->
fPic =
"bld_statusbar.xpm";
826 act->
fAct =
"TRootGuiBuilder::BuildHProgressBar()";
827 act->
fPic =
"bld_hprogressbar.xpm";
831 act->
fAct =
"TRootGuiBuilder::BuildVProgressBar()";
832 act->
fPic =
"bld_vprogressbar.xpm";
836 act->
fAct =
"new TRootEmbeddedCanvas()";
837 act->
fPic =
"bld_embedcanvas.xpm";
841 act =
new TGuiBldAction(
"TGHorizontalFrame",
"Horizontal Frame",
843 act->
fAct =
"new TGHorizontalFrame(0,200,100)";
844 act->
fPic =
"bld_hbox.xpm";
848 act->
fAct =
"new TGVerticalFrame(0,100,200)";
849 act->
fPic =
"bld_vbox.xpm";
853 act->
fAct =
"new TGGroupFrame()";
854 act->
fPic =
"bld_groupframe.xpm";
858 act->
fAct =
"TRootGuiBuilder::BuildTab()";
859 act->
fPic =
"bld_tab.xpm";
863 act->
fAct =
"TRootGuiBuilder::BuildShutter()";
864 act->
fPic =
"bld_shutter.png";
869 act->
fAct =
"TRootGuiBuilder::BuildCanvas()";
870 act->
fPic =
"bld_canvas.xpm";
884 act->
fAct =
"new TGColorSelect()";
885 act->
fPic =
"bld_colorselect.xpm";
915 "HandleMenu(Int_t)");
917 "HandleMenu(Int_t)");
919 "HandleMenu(Int_t)");
981 if (!
name || !sect)
return 0;
1010 if (!act || !sect)
return;
1035 btn->
Connect(
"Clicked()",
"TRootGuiBuilder",
this,
"HandleButtons()");
1059 static int id = 10000;
1063 item->
Connect(
"Selected()",
"TRootGuiBuilder",
this,
"HandleMenu(=3)");
1195 TGuiBldMenuTitle *title;
1307 if (btn) btn->
SetState(enable && comp && !fixed && !compact_disable ?
1455 "Macro files",
"*.[C|c]*",
1468 gVirtualX->LookupString(event, str,
sizeof(str), keysym);
1477 }
else if (str[0] == 14) {
1479 }
else if (str[0] == 15) {
1506 if (
type ==
"horizontal") {
1518 else if (
type ==
"vertical") {
1584 TString::Format(
"file (%s) must have source extension (.C, .c, .cxx, .cpp, .cc)",
1612 if (!savfr)
return kFALSE;
1654 main->SaveSource(fname.
Data(),
"keep_names");
1656 main->SetList(list);
1661 main->SetWMSizeHints(
main->GetDefaultWidth(),
main->GetDefaultHeight(),
1662 10000, 10000, 0, 0);
1667 if (
gVirtualX->InheritsFrom(
"TGX11"))
main->SetIconPixmap(
"bld_rgb.xpm");
1676 TString::Format(
"file (%s) must have source extension (.C, .c, .cxx, .cpp, .cc)",
1703 img->
Merge(img,
"overlay");
1928 "Closing project",
"Do you want to save the project before closing?",
1979 const char *
text = 0;
2176 if (gPixel)
return gPixel;
2234 if (gPixel)
return gPixel;
2272 if (gPixel)
return gPixel;
2306 return new TGuiBldPopupMenu();
2361 item = shut->
AddPage(
"Histograms");
2363 buttonpic =
gClient->GetPicture(
"h1_s.xpm");
2370 buttonpic =
gClient->GetPicture(
"h2_s.xpm");
2377 buttonpic =
gClient->GetPicture(
"h3_s.xpm");
2384 buttonpic =
gClient->GetPicture(
"profile_s.xpm");
2393 item = shut->
AddPage(
"Functions");
2395 buttonpic =
gClient->GetPicture(
"f1_s.xpm");
2402 buttonpic =
gClient->GetPicture(
"f2_s.xpm");
2411 item = shut->
AddPage(
"Trees");
2413 buttonpic =
gClient->GetPicture(
"ntuple_s.xpm");
2420 buttonpic =
gClient->GetPicture(
"tree_s.xpm");
2427 buttonpic =
gClient->GetPicture(
"chain_s.xpm");
2446 te->
AddLine(
"all work and no play makes jack a pretty");
2447 te->
AddLine(
"dull boy. all work and no play makes jack");
2448 te->
AddLine(
"a pretty dull boy. all work and no play ");
2449 te->
AddLine(
"makes jack a pretty dull boy. all work");
2450 te->
AddLine(
"and no play makes jack a pretty dull boy.");
2511 int max_ascent, max_descent;
2512 gVirtualX->GetFontProperties(fs, max_ascent, max_descent);
2547 b->Resize(100,
b->GetDefaultHeight());
2548 b->SetRange(100, 20);
2561 b->Resize(
b->GetDefaultWidth(), 100);
2563 b->SetRange(100, 20);
2575 b->Resize(100,
b->GetDefaultHeight());
2590 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[]
char * StrDup(const char *str)
Duplicate the string str.
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.
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.
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 *)
static const TGGC & GetBckgndGC()
Get background color graphics context.
virtual void UnmapWindow()
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 SetEditDisabled(UInt_t on=kEditDisable)
virtual void SetName(const char *name)
virtual void SetEditable(Bool_t on=kTRUE)
const TGWindow * GetParent() const
virtual void SetBackgroundPixmap(Pixmap_t pixmap)
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 Unix pathname to a local 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