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\ 172 For 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() {}
280 void TGuiBldMenuTitle::DoRedraw()
284 int x,
y, max_ascent, max_descent;
287 gVirtualX->GetFontProperties(fFontStruct, max_ascent, max_descent);
291 gVirtualX->FillRectangle(fId,fNormGC, 0, 0, fWidth, fHeight);
293 fLabel->
Draw(fId, fSelGC, x, y + max_ascent);
295 gVirtualX->SetForeground(fNormGC, fBgndColor);
296 gVirtualX->FillRectangle(fId,fNormGC, 0, 0, fWidth, fHeight);
298 fLabel->
Draw(fId, fNormGC, x, y + max_ascent);
311 virtual ~TGuiBldPopupMenu() { }
314 fEditDisabled = kEditDisable;
324 void 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() { }
496 void 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) {
574 if (emit) EmitSignals(was);
616 for (
int i = 0; gToolBarData[i].
fPixmap; i++) {
617 if (strlen(gToolBarData[i].fPixmap) == 0) {
623 TGuiBldToolButton *pb =
new TGuiBldToolButton(
fToolBar, pic,
624 gToolBarData[i].
fId);
625 pb->SetStyle(
gClient->GetStyle());
627 pb->SetToolTipText(gToolBarData[i].fTipText);
632 tip->
Connect(
"Reset()",
"TRootGuiBuilder",
this,
"UpdateStatusBar(=0)");
633 tip->
Connect(
"Hide()",
"TRootGuiBuilder",
this,
"EraseStatusBar()");
643 if ((gToolBarData[i].fId ==
kUndoAct) ||
644 (gToolBarData[i].fId ==
kRedoAct)) {
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;
998 if (*(lb->GetText()) == name) {
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;
1649 TList *list = main->GetList();
1651 savfr->
SetName(main->GetName());
1652 main->SetList(savfr->
GetList());
1654 main->SaveSource(fname.
Data(),
"keep_names");
1656 main->SetList(list);
1660 main->SetWMSize(main->GetWidth(), main->GetHeight());
1661 main->SetWMSizeHints(main->GetDefaultWidth(), main->GetDefaultHeight(),
1662 10000, 10000, 0, 0);
1663 main->SetWindowName(fname.
Data());
1664 main->SetIconName(fname.
Data());
1665 main->SetClassHints(fname.
Data(), fname.
Data());
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();
2316 lt->AddItem(0,
"Entry 1");
2317 lt->AddItem(0,
"Entry 2");
2318 lt->AddItem(0,
"Entry 3");
2319 lt->AddItem(0,
"Entry 4");
2320 lt->AddItem(0,
"Entry 5");
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);
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 const char * BaseName(const char *pathname)
Base name of a file name. Base name of /user/root is root.
virtual const char * GetName() const
Returns name of object.
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
virtual void AddFrame(TGFrame *f, TGLayoutHints *hints)
Add frame to dockable frame container. Frame and hints are NOT adopted.
TGuiBldDragManager * fManager
virtual void CloseAll()
Close all MDI child windows.
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.
virtual UInt_t GetOptions() 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 UInt_t GetHeight() const
virtual void TileVertical()
virtual void TileHorizontal()
TGFrame * GetSelected() const
Return the current grabbed/selected frame.
TGDockableFrame * fToolDock
virtual Int_t Close(TGMdiFrame *frame)
Close MDI child window mdiframe.
const char gHelpBuilder[]
virtual void MaybeCloseWindow()
Handler before closing MDI frame.
static TGFrame * BuildHProgressBar()
Helper method to create TGHProgressBar.
void AddInput(UInt_t emask)
Add events specified in the emask to the events the frame should handle.
void UngrabFrame()
Ungrab/Unselect selected/grabbed frame.
const Mask_t kKeyShiftMask
virtual Bool_t HandleKey(Event_t *event)
Handle keyboard events.
void SetWindowName(const char *name=0)
Set window name. This is typically done via the window manager.
R__EXTERN void * gTQSender
virtual UInt_t GetWidth() const
const TGWindow * GetRoot() const
Returns current root (i.e.
static TGGC * GetBgndGC()
Return background GC.
static TGFrame * BuildListBox()
Helper method to create TGListBox widget.
void SetForeground(Pixel_t v)
Set foreground color.
static const TGGC & GetHilightGC()
Get highlight color graphics context.
static Pixel_t GetWhitePixel()
Get white pixel value.
static TGFrame * BuildV3DLine()
Helper method to create TGVertical3DLine widget.
virtual Bool_t IsSelectMode() const
Return the status of the selected mode.
const Mask_t kLeaveWindowMask
virtual void SetFrame(TGFrame *frame, Bool_t left)
Set frame to be resized.
virtual TObject * Last() const
Return the last object in the list. Returns 0 when list is empty.
static TGFrame * HSplitter()
Creates new horizontal splitter (TGHSplitter).
virtual void SetContainer(TGFrame *f)
virtual Bool_t IsGrabButtonDown() const
Return the status of the grab mode.
const TGPicture * SetIconPixmap(const char *iconName)
Set window icon pixmap by name.
static ULong_t GetBgnd()
Return default background color.
static constexpr double bar
TGMainFrame(const TGMainFrame &)
virtual ~TRootGuiBuilder()
Destructor.
static const char * gSaveMacroTypes[]
An abstract interface to image processing library.
virtual void Merge(const TImage *, const char *="alphablend", Int_t=0, Int_t=0)
virtual TGFrame * ExecuteAction()
Execute an action.
void SetIconName(const char *name)
Set window icon name. This is typically done via the window manager.
virtual void HandleWindowClosed(Int_t id)
Handler for closed MDI frame.
virtual void ArrangeMinimized()
This is an attempt to an "smart" minimized window re-arrangement.
virtual void HandleButtons()
Handle buttons in the GUI builder's widget palette.
virtual void Layout()
Layout the elements of the composite frame.
R__EXTERN TVirtualDragManager * gDragManager
static ULong_t GetPopupBgnd()
Return background color for popup menus.
virtual Pixmap_t GetPixmap()
virtual const char * UnixPathName(const char *unixpathname)
Convert from a Unix pathname to a local pathname.
virtual void Scale(UInt_t, UInt_t)
void Draw(Option_t *="")
Default Draw method for all objects.
void RemoveFrame(TGFrame *)
Remove a frame.
void SetPropertyEditor(TGuiBldEditor *e)
Helper method.
virtual void DoRedraw()
Redraw the frame.
virtual Bool_t HandleCrossing(Event_t *)
virtual void AddItem(TGShutterItem *item)
Add shutter item to shutter frame.
void SetText(const char *helpText)
Set help text from helpText buffer in TGTextView.
void SetBackground(Pixel_t v)
Set background color.
const TGPicture * fPicture
TGFrame * GetContainer() const
static TGFrame * VSplitter()
Create new vertical splitter (TGVSplitter).
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString...
TGPicturePool * GetPicturePool() const
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
static TGFrame * BuildCanvas()
Helper method used in guibuilding to create TGCanvas widget.
void FreePicture(const TGPicture *pic)
Free picture resource.
virtual Bool_t IsLayoutBroken() const
virtual void FromWindow(Drawable_t, Int_t=0, Int_t=0, UInt_t=0, UInt_t=0)
virtual void Format(const char *format="%.2f")
Set format for displaying a value.
virtual void AddLine(const char *string)
Add a line of text to the view widget.
TGCompositeFrame(const TGCompositeFrame &)
virtual Pixel_t GetForeground() const
Return frame foreground color.
virtual void SetName(const char *name)
TRootGuiBuilder(const TGWindow *p=0)
Create GUI builder application.
Bool_t EndsWith(const char *pat, ECaseCompare cmp=kExact) const
Return true if string ends with the specified string.
int main(int argc, char **argv)
static TGGC * fgBgndPopupHlght
TGShutterItem * GetItem(const char *name)
returns a shutter item by name (name is hot string of shutter item)
virtual void SetBackgroundColor(Pixel_t back)
Set background color (override from TGWindow base class).
virtual TList * GetList() const
void SetClassHints(const char *className, const char *resourceName)
Set the windows class and resource name.
void EnableLassoButtons(Bool_t on=kTRUE)
Enable toolbar buttons for alignment.
virtual void SetText(TGString *text, Int_t partidx=0)
Set text in partition partidx in status bar.
static ULong_t GetPopupHlght()
Return highlighted color for popup menu entry.
virtual void EraseStatusBar()
Clear information shown in the status bar.
static ULong_t RGB2Pixel(Int_t r, Int_t g, Int_t b)
Convert r,g,b to graphics system dependent pixel value.
TGViewPort * GetViewPort() const
static TGFrame * BuildComboBox()
Helper method to create TGComboBox widget.
virtual Bool_t SaveProject(Event_t *event=0)
Save selected project.
static TGGC * GetPopupBgndGC()
Return background GC for popup menus.
virtual TGShutterItem * AddPage(const char *item="Page")
Add new page (shutter item)
Long_t GetNumberOfFrames() const
virtual void UpdateStatusBar(const char *text=0)
Update information shown on the status bar.
void Reset()
Reset the editor.
virtual TGListBox * GetListBox() const
const Mask_t kButtonPressMask
Pixmap_t GetPicture() const
virtual void AddSection(const char *sect)
Add new shutter item.
static TGGC * fgBgndPopup
const Mask_t kKeyPressMask
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...
friend class TGuiBldDragManager
virtual void SetLayoutBroken(Bool_t on=kTRUE)
Set broken layout. No Layout method is called.
virtual TObject * First() const
Return the first object in the list. Returns 0 when list is empty.
virtual void Layout()
Layout the components of view.
static TGFrame * BuildHScrollBar()
Helper method to create TGHScrollBar.
TGMdiFrame * GetCurrent() const
Return pointer on current (active) MDI child window.
virtual UInt_t GetDefaultWidth() const
Bool_t SetCurrent(TGMdiFrameList *newcurrent)
Set current (active) MDI child window (by frame list).
R__EXTERN TSystem * gSystem
Bool_t IsEditable() const
void Popup()
Show help dialog.
static TGFrame * BuildTextEdit()
Helper method to create TGTextEdit widget.
virtual void MapSubwindows()
Map all canvas sub windows.
Bool_t HandleKey(Event_t *)
Handle key event.
void EnableSelectedButtons(Bool_t on=kTRUE)
Enable/disable toolbar buttons according to the selected frame.
void SetWindowName(const char *name)
Set MDI window name (set titlebar title).
TGButton * FindActionButton(const char *name, const char *section)
Find action by name.
virtual TGCompositeFrame * AddTab(TGString *text)
Add a tab to the tab widget.
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
static TGFrame * BuildH3DLine()
Helper method to create TGHorizontal3DLine widget.
virtual const char * GetName() const
Return unique name, used in SavePrimitive methods.
static TGFrame * BuildVProgressBar()
Helper method to create TGVProgressBar.
Bool_t IsPasteFrameExist()
Return kTRUE if paste frame exist.
virtual void CloseWindow()
Close GUI builder via window manager "Close" button.
Bool_t CanCompact(TGWindow *w) const
kTRUE is frame could be compacted/"layouted"
void SetEditable(Bool_t on=kTRUE)
Grab server.
void InitMenu()
Inititiate GUI Builder menus.
virtual void SetFrame(TGFrame *frame, Bool_t above)
Set frame to be resized.
TGPopupMenu * fMenuWindow
const TGPicture * GetPicture(const char *name)
Get a picture from the picture pool.
virtual void ChangeOptions(UInt_t options)
Change composite frame options. Options is an OR of the EFrameTypes.
virtual void Draw(Drawable_t id, GContext_t gc, Int_t x, Int_t y)
Draw a hot string and underline the hot character.
virtual UInt_t GetDefaultWidth() const
void BindKeys()
Keyborad key binding.
virtual Pixel_t GetBackground() const
static ToolBarData_t gToolBarData[]
virtual void SetBackgroundPixmap(Pixmap_t pixmap)
static const TGGC & GetBlackGC()
Get black graphics context.
void EnableEditButtons(Bool_t on=kTRUE)
Enable/disable toolbar buttons according to the selected frame.
static void PropagateBgndColor(TGFrame *frame, Pixel_t color)
Set a background color to frame and all its subframes.
TGPictureButton * fStartButton
virtual Bool_t HandleKey(Event_t *event)
Handle keys.
virtual void AddAction(TGuiBldAction *act, const char *sect)
Add new action to widget palette.
void SetBuilder(TRootGuiBuilder *b)
char * StrDup(const char *str)
Duplicate the string str.
virtual void SetMdiHints(ULong_t mdihints)
Set MDI hints, also used to identify titlebar buttons.
R__EXTERN TGuiBuilder * gGuiBuilder
static ULong_t Number2Pixel(Int_t ci)
Static method that given a color index number, returns the corresponding pixel value.
const Mask_t kEnterWindowMask
virtual UInt_t GetDefaultHeight() const
static TGFrame * BuildTab()
Helper method to create TGTab widget.
virtual void Update()
Update gui builder.
virtual void SetEditDisabled(UInt_t on=1)
Set edit disable flag for this frame and subframes.
void SwitchLayout()
Popup dialog to set layout of editted frame off.
virtual Bool_t CloseWindow()
Close MDI frame window.
virtual Pixmap_t GetMask()
virtual void SetCleanup(Int_t mode=kLocalCleanup)
Turn on automatic cleanup of child frames in dtor.
virtual void AddEntry(TGString *s, Int_t id)
virtual void HandleMenu(Int_t id)
Handle menu items.
TGMdiFrame * FindEditableMdiFrame(const TGWindow *win)
Find the editable frame.
virtual void SwitchToolbarButton()
Switch image of toolbar edit button according to the current state.
const TGPicture * GetPicture(const char *name)
Get picture from the picture pool.
void SetPosition(Float_t pos)
Set progress position between [min,max].
virtual void Hide()
Hide builder.
static TGFrame * BuildListTree()
Helper method used in guibuilding.
static constexpr double s
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
void SetResizeMode(Int_t mode=kMdiDefaultResizeMode)
Set MDI windows resize mode (opaque or transparent).
static TGFrame * BuildVScrollBar()
Helper method to create TGVScrollBar.
const TGWindow * GetParent() const
virtual void MapSubwindows()
Map all sub windows that are part of the composite frame.
TGFrame * GetContainer() const
Mother of all ROOT objects.
virtual void UnmapWindow()
Bool_t IsLassoDrawn() const
virtual void SetEditDisabled(UInt_t on=kEditDisable)
void SetWMPosition(Int_t x, Int_t y)
Give the window manager a window position hint.
static TGPopupMenu * CreatePopup()
Return style popup menu.
virtual Bool_t NewProject(TString type="")
Create a new project.
const TGPicture * fIconPic
const TGWindow * GetDefaultRoot() const
Returns the root (i.e.
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t Double_t b
void DontCallClose()
Typically call this method in the slot connected to the CloseWindow() signal to prevent the calling o...
virtual Bool_t OpenProject(Event_t *event=0)
Open new gui builder project.
void NeedRedraw(TGWindow *w, Bool_t force=kFALSE)
Set redraw flags.
Bool_t CanChangeLayout(TGWindow *w) const
kTRUE - if it's possible to switch disable/enable layout
const char gHelpAboutBuilder[]
void SetWindowName(const char *name)
Set window name so it appear as title of the undock window.
const Mask_t kKeyControlMask
static TImage * Create()
Create an image.
virtual void SetEditable(Bool_t on=kTRUE)
Switch ON/OFF edit mode.
static TGGC * GetPopupHlghtGC()
Return background GC for highlighted popup menu entry.
static TGFrame * BuildShutter()
Helper method used in guibuilding to create TGShutter widget.
static FontStruct_t GetDefaultFontStruct()
Return default font structure in use for a text listbox entry.
virtual void ChangeSelected(TGFrame *f)
Set selected frame.
virtual void ChangeOptions(UInt_t options)
Change frame options. Options is an OR of the EFrameTypes.
void SetFillType(EFillType type)
Set fill type.
virtual void SetEditable(Bool_t on=kTRUE)
void SetEmbedded(Bool_t e=kTRUE)
static const TGGC & GetBckgndGC()
Get background color graphics context.
static Pixel_t GetDefaultSelectedBackground()
Get default selected frame background.
virtual void Draw(Drawable_t id, GContext_t gc, Int_t x, Int_t y)
Draw string.
virtual const char * GetTitle() const
Returns title of object.
const char * Data() const