ROOT logo
ROOT » GUI » QTGSI » TQRootCanvas

class TQRootCanvas: public QWidget

Function Members (Methods)

public:
TQRootCanvas(QWidget* parent = 0, const char* name = 0, TCanvas* c = 0)
TQRootCanvas(QWidget* parent, QWidget* tabWin, const char* name = 0, TCanvas* c = 0)
virtual~TQRootCanvas()
virtual voidBrowse(TBrowser* b)
voidcd(Int_t subpadnumber = 0)
static TClass*Class()
voidClear(Option_t* option = "")
voidClose(Option_t* option = "")
virtual voiddragEnterEvent(QDragEnterEvent* e)
virtual voidDraw(Option_t* option = "")
virtual TObject*DrawClone(Option_t* option = "")
virtual TObject*DrawClonePad()
virtual voiddropEvent(QDropEvent* Event)
virtual voidEditorBar()
voidEnterLeave(TPad* prevSelPad, TObject* prevSelObj)
voidFeedbackMode(Bool_t set)
voidFlush()
voidForceUpdate()
Bool_tGetAutoExec()
TCanvas*GetCanvas()
Int_tGetCanvasID()
Bool_tGetCanvasOwner()
virtual voidGetCanvasPar(Int_t& wtopx, Int_t& wtopy, UInt_t& ww, UInt_t& wh)
TContextMenu*GetContextMenu()
const char*GetDISPLAY()
Int_tGetDoubleBuffer()
Int_tGetEvent()
Int_tGetEventX()
Int_tGetEventY()
Color_tGetHighLightColor()
TVirtualPad*GetPadSave()
QWidget*GetParent()
Int_tGetRootWid()
TObject*GetSelected()
Option_t*GetSelectedOpt()
TVirtualPad*GetSelectedPad()
Bool_tGetShowEventStatus()
QWidget*GetTabWin()
UInt_tGetWh()
UInt_tGetWindowHeight()
Int_tGetWindowTopX()
Int_tGetWindowTopY()
UInt_tGetWindowWidth()
UInt_tGetWw()
Size_tGetXsizeReal()
Size_tGetXsizeUser()
Size_tGetYsizeReal()
Size_tGetYsizeUser()
virtual voidHandleInput(EEventType button, Int_t x, Int_t y)
Bool_tHasMenuBar()
voidIconify()
virtual TClass*IsA() const
Bool_tIsBatch()
Bool_tIsRetained()
virtual voidls(Option_t* option = "")
voidMoveOpaque(Int_t set = 1)
Bool_tNeedsResize()
Bool_tOpaqueMoving()
Bool_tOpaqueResizing()
virtual voidPaint(Option_t* option = "")
virtual TPad*Pick(Int_t px, Int_t py, TObjLink*& pickobj)
virtual TPad*Pick(Int_t px, Int_t py, TObject* prevSelObj)
virtual voidResize(Option_t* option = "")
voidResizeOpaque(Int_t set = 1)
voidSaveSource(const char* filename = "", Option_t* option = "")
voidSetBatch(Bool_t batch = kTRUE)
voidSetCanvasSize(UInt_t ww, UInt_t wh)
virtual voidSetCursor(ECursor cursor)
virtual voidSetDoubleBuffer(Int_t mode = 1)
voidSetHighLightColor(Color_t col)
voidSetNeedsResize(Bool_t yes)
voidSetRetained(Bool_t retained = kTRUE)
voidSetSelected(TObject* obj)
voidSetSelectedPad(TPad* pad)
voidSetTitle(const char* title = "")
voidSetWindowPosition(Int_t x, Int_t y)
voidSetWindowSize(UInt_t ww, UInt_t wh)
voidShow()
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidSize(Float_t xsizeuser = 0, Float_t ysizeuser = 0)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
virtual voidToggleAutoExec()
virtual voidToggleEventStatus()
virtual voidUpdate()
voidUseCurrentStyle()
protected:
virtual voidcloseEvent(QCloseEvent* e)
virtual booleventFilter(QObject*, QEvent*)
virtual voidleaveEvent(QEvent* e)
virtual voidmouseDoubleClickEvent(QMouseEvent* e)
virtual voidmouseMoveEvent(QMouseEvent* e)
virtual voidmousePressEvent(QMouseEvent* e)
virtual voidmouseReleaseEvent(QMouseEvent* e)
virtual voidpaintEvent(QPaintEvent* e)
virtual voidresizeEvent(QResizeEvent* e)

Data Members

protected:
TCanvas*fCanvasRoot Canvas
TQCanvasMenu*fContextMenuQt Context menu for this canvas
Bool_tfIsCanvasOwnedOwnership flag
Bool_tfNeedResizeResize flag
QWidget*fParent
QWidget*fTabWinparent widgets
Int_tfWidWindows Id of the Canvas

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TQRootCanvas(QWidget* parent = 0, const char* name = 0, TCanvas* c = 0)
 set defaults
TQRootCanvas(QWidget* parent, QWidget* tabWin, const char* name = 0, TCanvas* c = 0)
 set defaults
void mouseMoveEvent(QMouseEvent* e)
 Handle mouse move event.
void mousePressEvent(QMouseEvent* e)
 Handle mouse button press event.
void mouseReleaseEvent(QMouseEvent* e)
 Handle mouse button release event.
void mouseDoubleClickEvent(QMouseEvent* e)
 Handle mouse double click event.
void resizeEvent(QResizeEvent* e)
 Call QWidget resize and inform the ROOT Canvas.
void paintEvent(QPaintEvent* e)
 Handle paint event of Qt.
void leaveEvent(QEvent* e)
 Handle leave event.
void dragEnterEvent(QDragEnterEvent* e)
 Entering a drag event.
void dropEvent(QDropEvent* Event)
 Start a drop, for now only histogram objects can be drwon by droping.
void cd(Int_t subpadnumber = 0)
 Just a wrapper
void Browse(TBrowser* b)
 Just a wrapper.
void Clear(Option_t* option = "")
 Just a wrapper.
void Close(Option_t* option = "")
 Just a wrapper.
void Draw(Option_t* option = "")
 Just a wrapper.
TObject * DrawClone(Option_t* option = "")
 Just a wrapper.
TObject * DrawClonePad()
 Just a wrapper.
void EditorBar()
 Just a wrapper.
void EnterLeave(TPad* prevSelPad, TObject* prevSelObj)
 just a wrapper
void FeedbackMode(Bool_t set)
 just a wrapper
void Flush()
 just a wrapper
void UseCurrentStyle()
 just a wrapper
void ForceUpdate()
 just a wrapper
const char * GetDISPLAY()
 just a wrapper
TContextMenu * GetContextMenu()
 just a wrapper
Int_t GetDoubleBuffer()
 just a wrapper
Int_t GetEvent()
 just a wrapper
Int_t GetEventX()
 just a wrapper
Int_t GetEventY()
 just a wrapper
Color_t GetHighLightColor()
 just a wrapper
TVirtualPad * GetPadSave()
 just a wrapper
TObject * GetSelected()
 just a wrapper
Option_t * GetSelectedOpt()
 just a wrapper
TVirtualPad * GetSelectedPad()
 just a wrapper
Bool_t GetShowEventStatus()
 just a wrapper
Bool_t GetAutoExec()
 just a wrapper
Size_t GetXsizeUser()
 just a wrapper
Size_t GetYsizeUser()
 just a wrapper
Size_t GetXsizeReal()
 just a wrapper
Size_t GetYsizeReal()
 just a wrapper
Int_t GetCanvasID()
 just a wrapper
Int_t GetWindowTopX()
 just a wrapper
Int_t GetWindowTopY()
 just a wrapper
UInt_t GetWindowWidth()
 just a wrapper
UInt_t GetWindowHeight()
 just a wrapper
UInt_t GetWw()
 just a wrapper
UInt_t GetWh()
 just a wrapper
void GetCanvasPar(Int_t& wtopx, Int_t& wtopy, UInt_t& ww, UInt_t& wh)
 just a wrapper
void HandleInput(EEventType button, Int_t x, Int_t y)
 just a wrapper
Bool_t HasMenuBar()
 just a wrapper
void Iconify()
 just a wrapper
Bool_t IsBatch()
 just a wrapper
Bool_t IsRetained()
 just a wrapper
void ls(Option_t* option = "")
 just a wrapper
void MoveOpaque(Int_t set = 1)
 just a wrapper
Bool_t OpaqueMoving()
 just a wrapper
Bool_t OpaqueResizing()
 just a wrapper
void Paint(Option_t* option = "")
 just a wrapper
TPad * Pick(Int_t px, Int_t py, TObjLink *&pickobj)
 just a wrapper
TPad * Pick(Int_t px, Int_t py, TObject *prevSelObj)
 just a wrapper
void Resize(Option_t* option = "")
 just a wrapper
void ResizeOpaque(Int_t set = 1)
 just a wrapper
void SaveSource(const char* filename = "", Option_t* option = "")
 just a wrapper
void SetCursor(ECursor cursor)
 just a wrapper
void SetDoubleBuffer(Int_t mode = 1)
 just a wrapper
void SetWindowPosition(Int_t x, Int_t y)
 just a wrapper
void SetWindowSize(UInt_t ww, UInt_t wh)
 just a wrapper
void SetCanvasSize(UInt_t ww, UInt_t wh)
 just a wrapper
void SetHighLightColor(Color_t col)
 just a wrapper
void SetSelected(TObject* obj)
 just a wrapper
void SetSelectedPad(TPad* pad)
 just a wrapper
void Show()
 just a wrapper
void Size(Float_t xsizeuser = 0, Float_t ysizeuser = 0)
 just a wrapper
void SetBatch(Bool_t batch = kTRUE)
 just a wrapper
void SetRetained(Bool_t retained = kTRUE)
 just a wrapper
void SetTitle(const char* title = "")
 just a wrapper
void ToggleEventStatus()
 just a wrapper
void ToggleAutoExec()
 just a wrapper
void Update()
 just a wrapper
void closeEvent(QCloseEvent* e)
~TQRootCanvas()
 dtor
TQRootCanvas(const TQRootCanvas& )
TQRootCanvas& operator=(const TQRootCanvas& )
TCanvas* GetCanvas()
{ return fCanvas;}
Int_t GetRootWid()
{ return fWid;}
Bool_t GetCanvasOwner()
{ return fIsCanvasOwned; }
QWidget* GetParent()
{ return fParent;}
QWidget* GetTabWin()
{ return fTabWin;}
Bool_t NeedsResize()
{return fNeedResize;}
void SetNeedsResize(Bool_t yes)
bool eventFilter(QObject* , QEvent* )