13 #ifndef ROOT_TRootCanvas
14 #define ROOT_TRootCanvas
25 #ifndef ROOT_TCanvasImp
TGLayoutHints * fMenuBarLayout
TGLayoutHints * fEditorLayout
void CreateEditor()
Create embedded editor.
ABC describing GUI independent main window (with menubar, scrollbars and a drawing area)...
void ShowStatusBar(Bool_t show=kTRUE)
Show or hide statusbar.
Bool_t HandleContainerConfigure(Event_t *ev)
Handle configure (i.e. resize) event.
TGLayoutHints * fVertical2Layout
Bool_t HandleContainerCrossing(Event_t *ev)
Handle enter/leave events. Only leave is activated at the moment.
void ShowToolBar(Bool_t show=kTRUE)
Show or hide toolbar.
Bool_t HandleContainerMotion(Event_t *ev)
Handle mouse motion event in the canvas container.
TGHorizontal3DLine * fHorizontal1
UInt_t GetCwidth() const
Return width of canvas container.
Bool_t HasStatusBar() const
Returns kTRUE if the status bar is shown.
TGHorizontal3DLine * fToolBarSep
virtual void Layout()
Layout the elements of the composite frame.
Bool_t HasToolBar() const
Returns kTRUE if the tool bar is shown.
TGLayoutHints * fHorizontal1Layout
UInt_t GetWindowGeometry(Int_t &x, Int_t &y, UInt_t &w, UInt_t &h)
Gets the size and position of the window containing the canvas.
#define ClassDef(name, id)
TGPopupMenu * fEditClearMenu
TGDockableFrame * fToolDock
Atom_t HandleDNDPosition(Int_t x, Int_t y, Atom_t action, Int_t xroot, Int_t yroot)
Handle dragging position events.
TGLayoutHints * fDockLayout
TGPopupMenu * fFileSaveMenu
TGVertical3DLine * fVertical1
void ReallyDelete()
Really delete the canvas and this GUI.
void AdjustSize()
Keep the same canvas size while docking/undocking toolbar.
Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2)
Handle menu and other command generated by the user.
TGPopupMenu * fViewWithMenu
TGLayoutHints * fMenuBarItemLayout
void RaiseWindow()
Put canvas window on top of the window stack.
friend class TRootContainer
Bool_t HasEditor() const
Returns kTRUE if the editor is shown.
TGCompositeFrame * fMainFrame
TRootCanvas(const TRootCanvas &)
void ShowEditor(Bool_t show=kTRUE)
Show or hide side frame.
void CreateCanvas(const char *name)
Create the actual canvas.
void ShowMenuBar(Bool_t show=kTRUE)
Show or hide menubar.
Bool_t HasMenuBar() const
Returns kTRUE if the menu bar is shown.
Int_t InitWindow()
Called by TCanvas ctor to get window indetifier.
Bool_t HandleContainerButton(Event_t *ev)
Handle mouse button events in the canvas container.
Bool_t HandleContainerExpose(Event_t *ev)
Handle expose events.
void ShowToolTips(Bool_t show=kTRUE)
Enable or disable tooltip info.
TVirtualPadEditor * fEditor
void SetWindowPosition(Int_t x, Int_t y)
Set canvas position (units in pixels).
TGLayoutHints * GetMenuBarItemLayout() const
Bool_t HandleDNDLeave()
Handle drag leave events.
Bool_t HandleDNDDrop(TDNDData *data)
Handle drop events.
virtual void IconifyWindow()
TGDockableFrame * GetToolDock() const
Bool_t HandleContainerKey(Event_t *ev)
Handle keyboard events in the canvas container.
TGLayoutHints * fVertical1Layout
TGVertical3DLine * fVertical2
UInt_t GetCheight() const
Return height of canvas container.
TGLayoutHints * fStatusBarLayout
Abstract base class used by ROOT graphics editor.
TGMenuBar * GetMenuBar() const
const TGPicture * fIconPic
Mother of all ROOT objects.
Atom_t HandleDNDEnter(Atom_t *typelist)
Handle drag enter events.
TGPopupMenu * fOptionMenu
void Activated(Int_t id)
Slot handling tab switching in the browser, to properly set the canvas and the model to the editor...
void SetStatusText(const char *txt=0, Int_t partidx=0)
Set text in status bar.
void Close()
Called via TCanvasImp interface by TCanvas.
void FitCanvas()
Fit canvas container to current window size.
TRootCanvas & operator=(const TRootCanvas &)
void SetWindowSize(UInt_t w, UInt_t h)
Set size of canvas (units in pixels).
void PrintCanvas()
Print the canvas.
void EventInfo(Int_t event, Int_t px, Int_t py, TObject *selected)
Display a tooltip with infos about the primitive below the cursor.
TGLayoutHints * fMainFrameLayout
TGLayoutHints * fMenuBarHelpLayout
Bool_t HasToolTips() const
Returns kTRUE if the tooltips are enabled.
Bool_t HandleContainerDoubleClick(Event_t *ev)
Handle mouse button double click events in the canvas container.
TGCompositeFrame * fEditorFrame
TRootContainer * fCanvasContainer
TGLayoutHints * fToolBarLayout
void SetCanvasSize(UInt_t w, UInt_t h)
Set size of canvas container. Units in pixels.
TGStatusBar * GetStatusBar() const
void CloseWindow()
In case window is closed via WM we get here.
virtual ~TRootCanvas()
Delete ROOT basic canvas.
void SetWindowTitle(const char *newTitle)
Change title on window.
TGLayoutHints * fCanvasLayout