22#include "RConfigure.h"
166 "PostScript",
"*.ps",
167 "Encapsulated PostScript",
"*.eps",
171 "ROOT macros",
"*.C",
172 "ROOT files",
"*.root",
188 {
"",
"",
kFALSE, -1, 0 },
191 {
"",
"",
kFALSE, -1, 0 },
446 if (
gROOT->GetEditHistograms())
539 else if (
gVirtualX->InheritsFrom(
"TGCocoa"))
544 if (
ph &&
ph->LoadPlugin() != -1) {
545 if (!
ph->ExecPlugin(0))
546 Error(
"CreateCanvas",
"GL manager plugin failed");
559 Error(
"CreateCanvas",
"GL context creation failed.");
561 Error(
"CreateCanvas",
"GL window creation failed\n");
581 "EventInfo(Int_t, Int_t, Int_t, TObject*)");
584 int parts[] = { 33, 10, 10, 47 };
701 this,
"EventInfo(Int_t, Int_t, Int_t, TObject*)");
778 gROOT->SetEditorMode();
781 gROOT->SetEditorMode(
"Arc");
784 gROOT->SetEditorMode(
"Line");
787 gROOT->SetEditorMode(
"Arrow");
790 gROOT->SetEditorMode(
"Diamond");
793 gROOT->SetEditorMode(
"Ellipse");
796 gROOT->SetEditorMode(
"Pad");
799 gROOT->SetEditorMode(
"Pave");
802 gROOT->SetEditorMode(
"PaveLabel");
805 gROOT->SetEditorMode(
"PaveText");
808 gROOT->SetEditorMode(
"PavesText");
811 gROOT->SetEditorMode(
"PolyLine");
814 gROOT->SetEditorMode(
"CurlyLine");
817 gROOT->SetEditorMode(
"CurlyArc");
820 gROOT->SetEditorMode(
"Text");
823 gROOT->SetEditorMode(
"Marker");
826 gROOT->SetEditorMode(
"CutG");
831 gROOT->MakeDefCanvas();
840 if (!
fi.fFilename)
return kTRUE;
842 new TFile(
fi.fFilename,
"update");
868 if (!
fi.fFilename)
return kTRUE;
876 if (
fn.EndsWith(
".root") ||
877 fn.EndsWith(
".ps") ||
878 fn.EndsWith(
".eps") ||
879 fn.EndsWith(
".pdf") ||
880 fn.EndsWith(
".svg") ||
881 fn.EndsWith(
".tex") ||
882 fn.EndsWith(
".gif") ||
883 fn.EndsWith(
".xml") ||
884 fn.EndsWith(
".xpm") ||
885 fn.EndsWith(
".jpg") ||
886 fn.EndsWith(
".png") ||
887 fn.EndsWith(
".xcf") ||
888 fn.EndsWith(
".tiff")) {
890 }
else if (
fn.EndsWith(
".C"))
895 fn +=
ft(
ft.Index(
"."),
ft.Length());
900 Warning(
"ProcessMessage",
"file %s cannot be saved with this extension",
fi.fFilename);
905 if (
fn.EndsWith(ftype.
Data())) {
954 gROOT->ProcessLine(
"TStyleManager::Terminate()");
962 gROOT->ProcessLine(
"TStyleManager::Show()");
1037 gPad->GetViewer3D(
"x3d");
1040 gPad->GetViewer3D(
"ogl");
1093 gROOT->SetInterrupt();
1102 delete gPad->FindObject(
"stats");
1114 delete gPad->FindObject(
"title");
1135 if (
gROOT->GetEditHistograms()) {
1157 gROOT->ProcessLine(
"new TGRecorder()");
1165 if (
lc->FindObject(
"ClassTree")) {
1179 if (handler && handler->
LoadPlugin() != -1) {
1181 Error(
"FitPanel",
"Unable to crate the FitPanel");
1184 Error(
"FitPanel",
"Unable to find the FitPanel plug-in");
1385 if (cmd.Contains(
"%p"))
1388 cmd +=
" "; cmd +=
sprinter; cmd +=
" ";
1391 if (cmd.Contains(
"%f"))
1394 cmd +=
" "; cmd +=
fn; cmd +=
" ";
1417 if (
objInfo.BeginsWith(
"-")) {
1423 const char *title =
selected->GetTitle();
1426 if (title &&
strlen(title))
1460 if (
dh - ch >= sh)
h =
h + sh;
1465 if (
dh - ch < sh)
h = ch;
1515 if (
main &&
main->InheritsFrom(
"TRootBrowser")) {
1518 browser->GetTabRight()->Connect(
"Selected(Int_t)",
"TRootCanvas",
1519 this,
"Activated(Int_t)");
1522 if (!
browser->GetTabLeft()->GetTabTab(
"Pad Editor")) {
1533 browser->StopEmbedding(
"Pad Editor");
1545 if (
show)
browser->GetTabLeft()->SetTab(
"Pad Editor");
1832 if (str[0] ==
kESC){
1840 gROOT->SetInterrupt();
1945 if (event->
fCount == 0) {
1980 if (!obj)
return kTRUE;
1984 if (!
object)
return kTRUE;
1985 if (
object->InheritsFrom(
"TGraph"))
1987 else if (
object->InheritsFrom(
"TImage"))
1989 else if (
object->IsA()->GetMethodAllAny(
"Draw"))
1994 else if (obj->
IsA()->GetMethodAllAny(
"Draw"))
2002 if (
sfname.Length() > 7) {
2003 sfname.ReplaceAll(
"\r\n",
"");
2005 if (
sfname.EndsWith(
".bmp") ||
2006 sfname.EndsWith(
".gif") ||
2007 sfname.EndsWith(
".jpg") ||
2008 sfname.EndsWith(
".png") ||
2009 sfname.EndsWith(
".ps") ||
2010 sfname.EndsWith(
".eps") ||
2011 sfname.EndsWith(
".pdf") ||
2012 sfname.EndsWith(
".tiff") ||
2013 sfname.EndsWith(
".xpm")) {
2095 out << std::endl <<
" // canvas container" << std::endl;
2096 out <<
" Int_t canvasID = gVirtualX->InitWindow((ULongptr_t)"
2097 <<
GetParent()->GetParent()->GetName() <<
"->GetId());" << std::endl;
2098 out <<
" Window_t winC = gVirtualX->GetWindowID(canvasID);" << std::endl;
2099 out <<
" TGCompositeFrame *";
2100 out <<
GetName() <<
" = new TGCompositeFrame(gClient,winC"
2101 <<
"," <<
GetParent()->GetName() <<
");" << std::endl;
const Mask_t kButtonPressMask
const Mask_t kExposureMask
Handle_t Window_t
Window handle.
const Mask_t kKeyReleaseMask
const Mask_t kAnyModifier
const Mask_t kKeyPressMask
const Mask_t kPointerMotionMask
const Mask_t kKeyShiftMask
const Mask_t kLeaveWindowMask
const Mask_t kStructureNotifyMask
const Mask_t kButtonReleaseMask
R__EXTERN const char gHelpObjects[]
R__EXTERN const char gHelpPullDownMenus[]
R__EXTERN const char gHelpAbout[]
R__EXTERN const char gHelpGraphicsEditor[]
R__EXTERN const char gHelpCanvas[]
R__EXTERN const char gHelpBrowser[]
R__EXTERN const char gHelpPostscript[]
R__EXTERN TApplication * gApplication
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
void Error(const char *location, const char *msgfmt,...)
Use this function in case an error occurred.
Int_t gErrorIgnoreLevel
Error handling routines.
void Warning(const char *location, const char *msgfmt,...)
Use this function in warning situations.
winID h TVirtualViewer3D TVirtualGLPainter p
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 mask
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 wid
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void data
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 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 UChar_t Atom_t typelist
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t height
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 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 mx
R__EXTERN void * gTQSender
static ToolBarData_t gToolBarData[]
static const char * gOpenTypes[]
static const char * gSaveAsTypes[]
static ToolBarData_t gToolBarData1[]
static ToolBarData_t gToolBarData[]
static const char * gOpenTypes[]
char * Form(const char *fmt,...)
Formats a string in a circular formatting buffer.
char * StrDup(const char *str)
Duplicate the string str.
R__EXTERN TStyle * gStyle
R__EXTERN TSystem * gSystem
R__EXTERN Int_t(* gThreadXAR)(const char *xact, Int_t nb, void **ar, Int_t *iret)
Bool_t ReturnFromRun() const
virtual void Terminate(Int_t status=0)
Terminate the application by call TSystem::Exit() unless application has been told to return from Run...
Using a TBrowser one can browse all ROOT objects.
The concrete implementation of TBuffer for writing/reading to/from a ROOT file or socket.
void * ReadObjectAny(const TClass *cast) override
Read object from I/O buffer.
void SetReadMode()
Set buffer in read mode.
ABC describing GUI independent main window (with menubar, scrollbars and a drawing area).
UInt_t GetWindowHeight() const
virtual void ToggleAutoExec()
Toggle pad auto execution of list of TExecs.
virtual void ToggleToolTips()
Toggle tooltip display.
void Clear(Option_t *option="") override
Remove all primitives from the canvas.
virtual void ToggleEventStatus()
Toggle event statusbar.
void SetSupportGL(Bool_t support)
TPad * Pick(Int_t px, Int_t py, TObjLink *&pickobj) override
Search for an object at pixel position px,py.
virtual void Resize(Option_t *option="")
Recompute canvas parameters following a X11 Resize.
void SaveSource(const char *filename="", Option_t *option="")
Save primitives in this canvas as a C++ macro file.
void SetCanvasImp(TCanvasImp *i)
virtual void HandleInput(EEventType button, Int_t x, Int_t y)
Handle Input Events.
TVirtualPad * cd(Int_t subpadnumber=0) override
Set current canvas & pad.
Bool_t GetShowEditor() const
Bool_t GetAutoExec() const
virtual void ToggleEditor()
Toggle editor.
Bool_t GetShowToolTips() const
void SetName(const char *name="") override
Set canvas name. In case name is an empty string, a default name is set.
void Paint(Option_t *option="") override
Paint canvas.
void Update() override
Update canvas pad buffers.
Bool_t OpaqueMoving() const override
void Flush()
Flush canvas buffers.
void MoveOpaque(Int_t set=1)
Set option to move objects/pads in a canvas.
void ResizeOpaque(Int_t set=1)
Set option to resize objects/pads in a canvas.
virtual void ToggleToolBar()
Toggle toolbar.
Bool_t OpaqueResizing() const override
Draw inheritance tree and their relations for a list of classes.
static TClass * GetClass(const char *name, Bool_t load=kTRUE, Bool_t silent=kFALSE)
Static method returning pointer to TClass of the specified class name.
Draw the ROOT Color Wheel.
Drag and drop data container.
virtual Int_t GetValue(const char *name, Int_t dflt) const
Returns the integer value for a resource.
virtual void SetValue(const char *name, const char *value, EEnvLevel level=kEnvChange, const char *type=nullptr)
Set the value of a resource or create a new resource.
A ROOT file is an on-disk file, usually with extension .root, that stores objects in a file-system-li...
A frame containing two scrollbars (a horizontal and a vertical) and a viewport.
virtual void SetContainer(TGFrame *f)
virtual void SetVsbPosition(Int_t newPos)
Set position of vertical scrollbar.
virtual Int_t GetVsbPosition() const
Get position of vertical scrollbar.
TGViewPort * GetViewPort() const
const TGWindow * GetDefaultRoot() const
Returns the root (i.e.
const TGWindow * GetRoot() const
Returns current root (i.e.
UInt_t GetDisplayHeight() const
Get display height.
The base class for composite widgets (menu bars, list boxes, etc.).
TGDimension GetDefaultSize() const override
std::cout << fWidth << "x" << fHeight << std::endl;
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=nullptr)
Add frame to the composite frame using the specified layout hints.
Int_t MustCleanup() const override
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.
virtual void ShowFrame(TGFrame *f)
Show sub frame.
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.
virtual void HideFrame(TGFrame *f)
Hide sub frame.
A frame with handles that allow it to be undocked (i.e.
void DockContainer(Int_t del=kTRUE)
Dock container back to TGDockableFrame.
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.
void EnableHide(Bool_t onoff)
Enable hiding.
Bool_t IsUndocked() const
This class creates a file selection dialog.
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.
virtual Bool_t HandleConfigureNotify(Event_t *event)
This event is generated when the frame is resized.
void Resize(UInt_t w=0, UInt_t h=0) override
Resize the frame.
void Move(Int_t x, Int_t y) override
Move frame.
virtual void DeleteWindow()
Delete window.
virtual UInt_t GetOptions() const
virtual void SetWidth(UInt_t w)
void SetDNDTarget(Bool_t onoff)
virtual void SetHeight(UInt_t h)
A horizontal 3D line is a line that typically separates a toolbar from the menubar.
This class describes layout hints used by the layout classes.
Defines top level windows that interact with the system Window Manager.
Atom_t * fDNDTypeList
handles DND types
virtual void SendCloseMessage()
Send close message to self.
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.
const char * GetWindowName() const
TGClient * fClient
Connection to display server.
Handle_t fId
X11/Win32 Window identifier.
Provides a StatusBar widget.
virtual void SetText(TGString *text, Int_t partidx=0)
Set text in partition partidx in status bar.
virtual void SetParts(Int_t npart)
Divide the status bar in npart equal sized parts.
A tab widget contains a set of composite frames each with a little tab with a name (like a set of fol...
A vertical 3D line is a line that can be used to separate groups of widgets.
ROOT GUI Window base class.
virtual const TGWindow * GetMainFrame() const
Returns top level main frame.
const TGWindow * fParent
Parent window.
@ kEditEnable
allow edit of this window
@ kEditDisable
disable edit of this window
const TGWindow * GetParent() const
virtual Bool_t IsMapped()
Returns kTRUE if window is mapped on screen, kFALSE otherwise.
const char * GetName() const override
Return unique name, used in SavePrimitive methods.
UInt_t fEditDisabled
flags used for "guibuilding"
static TGuiBuilder * Instance()
return an instance of TGuiBuilder object
An abstract interface to image processing library.
static TImage * Open(const char *file, EImageFileTypes type=kUnknown)
Open a specified image file.
static TImage * Create()
Create an image.
static void DisplayMarkerTypes()
Display the table of markers with their numbers.
Mother of all ROOT objects.
virtual void Inspect() const
Dump contents of this object in a graphics canvas.
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
virtual TClass * IsA() const
virtual void Draw(Option_t *option="")
Default Draw method for all objects.
The most important graphics class in the ROOT system.
Double_t GetAspectRatio() const override
void Modified(Bool_t flag=true) override
Mark pad modified Will be repainted when TCanvas::Update() will be called next time.
Bool_t HasFixedAspectRatio() const override
virtual void SetGLDevice(Int_t dev)
void SaveAs(const char *filename="", Option_t *option="") const override
Save the pad content in a file.
void Print(const char *filename="") const override
This method is equivalent to SaveAs("filename"). See TPad::SaveAs for details.
Longptr_t ExecPlugin(int nargs)
Int_t LoadPlugin()
Load the plugin library for this handler.
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.
Bool_t Disconnect(const char *signal=nullptr, void *receiver=nullptr, const char *slot=nullptr)
Disconnects signal of this object from slot of receiver.
static const TString & GetBinDir()
Get the binary directory in the installation. Static utility function.
This class creates a ROOT object browser, constituted by three main tabs.
This class creates a main window with menubar, scrollbars and a drawing area.
TGToolBar * fToolBar
icon button toolbar
UInt_t GetCwidth() const
Return width of canvas container.
void AdjustSize()
Keep the same canvas size while docking/undocking toolbar.
Bool_t fAutoFit
when true canvas container keeps same size as canvas
TGPopupMenu * fEditMenu
edit menu
friend class TRootContainer
void CreateEditor()
Create embedded editor.
Bool_t HasEditor() const override
Returns kTRUE if the editor is shown.
Bool_t HandleContainerKey(Event_t *ev)
Handle keyboard events in the canvas container.
UInt_t GetWindowGeometry(Int_t &x, Int_t &y, UInt_t &w, UInt_t &h) override
Gets the size and position of the window containing the canvas.
void Close() override
Called via TCanvasImp interface by TCanvas.
Bool_t HandleDNDDrop(TDNDData *data) override
Handle drop events.
void SetStatusText(const char *txt=nullptr, Int_t partidx=0) override
Set text in status bar.
TGLayoutHints * fMainFrameLayout
layout for main frame
Bool_t HandleContainerButton(Event_t *ev)
Handle mouse button events in the canvas container.
Bool_t HandleContainerCrossing(Event_t *ev)
Handle enter/leave events. Only leave is activated at the moment.
UInt_t GetCheight() const
Return height of canvas container.
TGDockableFrame * fToolDock
dockable frame holding the toolbar
void RaiseWindow() override
Put canvas window on top of the window stack.
void ShowEditor(Bool_t show=kTRUE) override
Show or hide side frame.
Bool_t ProcessMessage(Longptr_t msg, Longptr_t parm1, Longptr_t parm2) override
Handle menu and other command generated by the user.
void ReallyDelete() override
Really delete the canvas and this GUI.
void ShowMenuBar(Bool_t show=kTRUE) override
Show or hide menubar.
Atom_t HandleDNDEnter(Atom_t *typelist) override
Handle drag enter events.
void ShowStatusBar(Bool_t show=kTRUE) override
Show or hide statusbar.
TGHorizontal3DLine * fHorizontal1
toolbar separator
TGLayoutHints * fEditorLayout
layout for editor frame
TGPopupMenu * fToolsMenu
tools menu
TGLayoutHints * fMenuBarItemLayout
layout hints for menu in menubar
Int_t fCanvasID
index in fWindows array of TGX11
const TGPicture * fIconPic
icon picture
void SetCanvasSize(UInt_t w, UInt_t h) override
Set size of canvas container.
void SetWindowSize(UInt_t w, UInt_t h) override
Set size of canvas (units in pixels).
void PrintCanvas()
Print the canvas.
TRootCanvas(const TRootCanvas &)=delete
void ShowToolBar(Bool_t show=kTRUE) override
Show or hide toolbar.
Bool_t HasToolBar() const override
Returns kTRUE if the tool bar is shown.
void Activated(Int_t id)
Slot handling tab switching in the browser, to properly set the canvas and the model to the editor.
TGHorizontal3DLine * fToolBarSep
toolbar separator
TGPopupMenu * fViewWithMenu
view with... cascade submenu
TGPopupMenu * fEditClearMenu
clear cascade submenu
void ShowToolTips(Bool_t show=kTRUE) override
Enable or disable tooltip info.
Bool_t HasToolTips() const override
Returns kTRUE if the tooltips are enabled.
TRootContainer * fCanvasContainer
container in canvas widget
Bool_t fEmbedded
true if embedded in any other frame (e.g. in the browser)
Bool_t HandleContainerDoubleClick(Event_t *ev)
Handle mouse button double click events in the canvas container.
TGLayoutHints * fHorizontal1Layout
layout hints for separator
TGVertical3DLine * fVertical2
toolbar vertical separator
TGLayoutHints * fMenuBarLayout
menubar layout hints
void FitCanvas()
Fit canvas container to current window size.
Bool_t HandleContainerMotion(Event_t *ev)
Handle mouse motion event in the canvas container.
TGCanvas * fCanvasWindow
canvas widget
TGLayoutHints * fMenuBarHelpLayout
layout hint for help menu in menubar
TGPopupMenu * fViewMenu
view menu
TGStatusBar * fStatusBar
statusbar widget
TGPopupMenu * fOptionMenu
option menu
TGLayoutHints * fDockLayout
layout hints for dockable frame widget
TGPopupMenu * fHelpMenu
help menu
void EventInfo(Int_t event, Int_t px, Int_t py, TObject *selected)
Display a tooltip with infos about the primitive below the cursor.
void CreateCanvas(const char *name)
Create the actual canvas.
TGLayoutHints * fVertical1Layout
layout hints for separator
Bool_t HasStatusBar() const override
Returns kTRUE if the status bar is shown.
Bool_t HandleContainerConfigure(Event_t *ev)
Handle configure (i.e. resize) event.
Bool_t HasMenuBar() const override
Returns kTRUE if the menu bar is shown.
TGCompositeFrame * fMainFrame
main frame containing canvas and side frame
Int_t InitWindow() override
Called by TCanvas ctor to get window indetifier.
TGLayoutHints * fVertical2Layout
layout hints for separator
TVirtualPadEditor * fEditor
pointer to currently loaded pad editor
TGMenuBar * fMenuBar
menubar
void SetWindowPosition(Int_t x, Int_t y) override
Set canvas position (units in pixels).
Bool_t HandleContainerExpose(Event_t *ev)
Handle expose events.
TGLayoutHints * fCanvasLayout
layout for canvas widget
TGLayoutHints * fToolBarLayout
layout for toolbar widget
Bool_t HandleDNDLeave() override
Handle drag leave events.
TGCompositeFrame * fEditorFrame
side frame for current pad editor
~TRootCanvas() override
Delete ROOT basic canvas.
TGToolTip * fToolTip
tooltip for object info
TGPopupMenu * fFileMenu
file menu
TGPopupMenu * fFileSaveMenu
save cascade submenu
Atom_t HandleDNDPosition(Int_t x, Int_t y, Atom_t action, Int_t xroot, Int_t yroot) override
Handle dragging position events.
void SetWindowTitle(const char *newTitle) override
Change title on window.
void CloseWindow() override
In case window is closed via WM we get here.
Int_t fButton
currently pressed button
TGLayoutHints * fStatusBarLayout
layout hints for statusbar
TGVertical3DLine * fVertical1
toolbar vertical separator
Bool_t HandleCrossing(Event_t *ev) override
void SetEditable(Bool_t) override
Switch ON/OFF edit mode.
Bool_t HandleDoubleClick(Event_t *ev) override
TRootContainer(TRootCanvas *c, Window_t id, const TGWindow *parent)
Create a canvas container.
Bool_t HandleMotion(Event_t *ev) override
Bool_t HandleKey(Event_t *ev) override
Bool_t HandleConfigureNotify(Event_t *ev) override
This event is generated when the frame is resized.
Bool_t HandleExpose(Event_t *ev) override
void SavePrimitive(std::ostream &out, Option_t *="") override
Save a canvas container as a C++ statement(s) on output stream out.
Bool_t HandleButton(Event_t *ev) override
Directly handle scroll mouse buttons (4 and 5), only pass buttons 1, 2 and 3 on to the TCanvas.
A TRootHelpDialog is used to display help text (or any text in a dialog window).
Bool_t EndsWith(const char *pat, ECaseCompare cmp=kExact) const
Return true if string ends with the specified string.
const char * Data() const
TString & ReplaceAll(const TString &s1, const TString &s2)
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.
void SetOptTitle(Int_t tit=1)
void SetOptStat(Int_t stat=1)
The type of information printed in the histogram statistics box can be selected via the parameter mod...
Int_t GetOptTitle() const
void SetOptFit(Int_t fit=1)
The type of information about fit parameters printed in the histogram statistics box can be selected ...
virtual FILE * TempFileName(TString &base, const char *dir=nullptr, const char *suffix=nullptr)
Create a secure temporary file by appending a unique 6 letter string to base.
virtual Int_t Exec(const char *shellcmd)
Execute a command.
virtual int Load(const char *module, const char *entry="", Bool_t system=kFALSE)
Load a shared library.
virtual Bool_t ChangeDirectory(const char *path)
Change directory.
virtual void Sleep(UInt_t milliSec)
Sleep milliSec milli seconds.
virtual const char * WorkingDirectory()
Return working directory.
virtual Bool_t ProcessEvents()
Process pending events (GUI, timers, sockets).
virtual int Unlink(const char *name)
Unlink, i.e.
virtual const char * TempDirectory() const
Return a user configured or systemwide directory to create temporary files in.
static void SingleShot(Int_t milliSec, const char *receiver_class, void *receiver, const char *method)
This static function calls a slot after a given time interval.
This class represents a WWW compatible URL.
const char * GetFile() const
Abstract base class used by ROOT graphics editor.
static TVirtualPadEditor * LoadEditor()
Static function returning a pointer to a new pad editor.
static TVirtualPadEditor * GetPadEditor(Bool_t load=kTRUE)
Returns the pad editor dialog. Static method.
virtual void SetGlobal(Bool_t)
static void Terminate()
Close the global pad editor. Static method.
small helper class to store/restore gPad context in TPad methods
TVirtualPad is an abstract base class for the Pad and Canvas classes.
Int_t Nint(T x)
Round to nearest integer. Rounds half integers to the nearest even integer.
EGEventType fType
of event (see EGEventType)
Int_t fCount
if non-zero, at least this many more exposes
UInt_t fState
key or button mask
UInt_t fCode
key or button code