GSI Object Oriented Online Offline (Go4)
GO4-5.3.2
|
Graphic Qt Widget based Canvas. More...
#include <QRootCanvas.h>
Public Slots | |
void | cd (Int_t subpadnumber=0) |
virtual void | Browse (TBrowser *b) |
void | Clear (Option_t *option="") |
void | Close (Option_t *option="") |
virtual void | Draw (Option_t *option="") |
virtual TObject * | DrawClone (Option_t *option="") |
virtual TObject * | DrawClonePad () |
virtual void | EditorBar () |
void | EnterLeave (TPad *prevSelPad, TObject *prevSelObj) |
void | FeedbackMode (Bool_t set) |
void | Flush () |
void | UseCurrentStyle () |
void | ForceUpdate () |
const char * | GetDISPLAY () |
TContextMenu * | GetContextMenu () |
Int_t | GetDoubleBuffer () |
Int_t | GetEvent () |
Int_t | GetEventX () |
Int_t | GetEventY () |
Color_t | GetHighLightColor () |
TVirtualPad * | GetPadSave () |
TObject * | GetSelected () |
Option_t * | GetSelectedOpt () |
TVirtualPad * | GetSelectedPad () |
Bool_t | GetShowEventStatus () |
Bool_t | GetAutoExec () |
Size_t | GetXsizeUser () |
Size_t | GetYsizeUser () |
Size_t | GetXsizeReal () |
Size_t | GetYsizeReal () |
Int_t | GetCanvasID () |
Int_t | GetWindowTopX () |
Int_t | GetWindowTopY () |
UInt_t | GetWindowWidth () |
UInt_t | GetWindowHeight () |
UInt_t | GetWw () |
UInt_t | GetWh () |
virtual void | GetCanvasPar (Int_t &wtopx, Int_t &wtopy, UInt_t &ww, UInt_t &wh) |
virtual void | HandleInput (EEventType button, Int_t x, Int_t y) |
Bool_t | HasMenuBar () |
void | Iconify () |
Bool_t | IsBatch () |
Bool_t | IsRetained () |
virtual void | ls (Option_t *option="") |
void | Modified (Bool_t=1) |
void | MoveOpaque (Int_t set=1) |
Bool_t | OpaqueMoving () |
Bool_t | OpaqueResizing () |
virtual void | Paint (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 void | Resize (Option_t *option="") |
void | ResizeOpaque (Int_t set=1) |
void | SaveSource (const char *filename="", Option_t *option="") |
virtual void | SetCursor (ECursor cursor) |
virtual void | SetDoubleBuffer (Int_t mode=1) |
void | SetWindowPosition (Int_t x, Int_t y) |
void | SetWindowSize (UInt_t ww, UInt_t wh) |
void | SetCanvasSize (UInt_t ww, UInt_t wh) |
void | SetHighLightColor (Color_t col) |
void | SetSelected (TObject *obj) |
void | SetSelectedPad (TPad *pad) |
void | Show () |
virtual void | Size (Float_t xsizeuser=0, Float_t ysizeuser=0) |
void | SetBatch (Bool_t batch=kTRUE) |
void | SetRetained (Bool_t retained=kTRUE) |
void | SetTitle (const char *title="") |
virtual void | ToggleEventStatus () |
virtual void | ToggleAutoExec () |
virtual void | Update () |
void | executeMenu (int id) |
void | processRepaintTimer () |
Signals | |
void | SelectedPadChanged (TPad *) |
void | PadClicked (TPad *) |
void | PadDoubleClicked (TPad *) |
void | MenuCommandExecuted (TObject *, const char *) |
void | CanvasStatusEvent (const char *) |
void | CanvasDropEvent (QDropEvent *, TPad *) |
void | CanvasLeaveEvent () |
void | CanvasUpdated () |
Public Member Functions | |
QRootCanvas (QWidget *parent=0) | |
virtual | ~QRootCanvas () |
TCanvas * | getCanvas () |
int | getRootWid () |
void | setMaskDoubleClick (bool on=true) |
bool | showEventStatus () const |
void | setShowEventStatus (bool s) |
Protected Member Functions | |
virtual void | dropEvent (QDropEvent *Event) |
virtual void | dragEnterEvent (QDragEnterEvent *e) |
virtual void | mousePressEvent (QMouseEvent *e) |
virtual void | mouseReleaseEvent (QMouseEvent *e) |
virtual void | resizeEvent (QResizeEvent *e) |
virtual void | paintEvent (QPaintEvent *e) |
virtual void | mouseDoubleClickEvent (QMouseEvent *e) |
virtual void | mouseMoveEvent (QMouseEvent *e) |
virtual void | wheelEvent (QWheelEvent *e) |
virtual void | leaveEvent (QEvent *e) |
virtual void | closeEvent (QCloseEvent *e) |
double | scaledPosition (int p) |
virtual QPaintEngine * | paintEngine () const |
void | methodDialog (TObject *object, TMethod *method) |
QAction * | addMenuAction (QMenu *menu, QSignalMapper *map, const QString &text, int id) |
void | activateRepaint (int act) |
Protected Attributes | |
TCanvas * | fCanvas |
Int_t | fRootWindowId |
WId | fQtWindowId |
QTimer * | fRepaintTimer |
int | fRepaintMode |
Private Types | |
enum | { act_Update = 1, act_Resize = 2 } |
Private Attributes | |
bool | fMaskDoubleClick |
double | fMousePosX |
double | fMousePosY |
TObject * | fMenuObj |
TList * | fMenuMethods |
bool | fxShowEventStatus |
double | fQtScalingfactor |
Graphic Qt Widget based Canvas.
This canvas uses Qt eventloop to handle user input
Definition at line 68 of file QRootCanvas.h.
|
private |
Enumerator | |
---|---|
act_Update | |
act_Resize |
Definition at line 72 of file QRootCanvas.h.
QRootCanvas::QRootCanvas | ( | QWidget * | parent = 0 | ) |
Definition at line 68 of file QRootCanvas.cpp.
References fCanvas, fMenuMethods, fMenuObj, fMousePosX, fMousePosY, fQtScalingfactor, fQtWindowId, fRepaintMode, fRepaintTimer, fRootWindowId, and processRepaintTimer().
|
virtual |
Definition at line 117 of file QRootCanvas.cpp.
References fCanvas, fMenuMethods, and fRepaintTimer.
|
protected |
Definition at line 363 of file QRootCanvas.cpp.
References fRepaintMode, and fRepaintTimer.
Referenced by paintEvent(), resizeEvent(), and Update().
|
protected |
Definition at line 977 of file QRootCanvas.cpp.
References QRootApplication::IsRootCanvasMenuEnabled().
Referenced by mousePressEvent().
|
virtualslot |
Definition at line 465 of file QRootCanvas.cpp.
References fCanvas.
|
signal |
Referenced by dropEvent().
|
signal |
Referenced by leaveEvent().
|
signal |
Referenced by mouseMoveEvent().
|
signal |
Referenced by processRepaintTimer().
|
slot |
Definition at line 460 of file QRootCanvas.cpp.
References fCanvas.
|
slot |
Definition at line 470 of file QRootCanvas.cpp.
References fCanvas.
|
slot |
Definition at line 475 of file QRootCanvas.cpp.
References fCanvas.
|
protectedvirtual |
Definition at line 811 of file QRootCanvas.cpp.
References fCanvas.
|
protectedvirtual |
Definition at line 442 of file QRootCanvas.cpp.
|
virtualslot |
Definition at line 480 of file QRootCanvas.cpp.
References fCanvas.
|
virtualslot |
Definition at line 485 of file QRootCanvas.cpp.
References fCanvas.
|
virtualslot |
Definition at line 490 of file QRootCanvas.cpp.
References fCanvas.
|
protectedvirtual |
Definition at line 448 of file QRootCanvas.cpp.
References CanvasDropEvent(), Pick(), and scaledPosition().
|
virtualslot |
Definition at line 495 of file QRootCanvas.cpp.
References fCanvas.
|
slot |
Definition at line 500 of file QRootCanvas.cpp.
References fCanvas.
|
slot |
test: do this in any case!
Definition at line 1001 of file QRootCanvas.cpp.
References fCanvas, fMenuMethods, fMenuObj, fMousePosX, fMousePosY, MenuCommandExecuted(), and methodDialog().
Referenced by mousePressEvent().
|
slot |
Definition at line 505 of file QRootCanvas.cpp.
References fCanvas.
|
slot |
Definition at line 510 of file QRootCanvas.cpp.
References fCanvas.
|
slot |
Definition at line 520 of file QRootCanvas.cpp.
References fCanvas.
|
slot |
Definition at line 585 of file QRootCanvas.cpp.
References fCanvas.
|
inline |
Definition at line 78 of file QRootCanvas.h.
|
slot |
Definition at line 610 of file QRootCanvas.cpp.
References fCanvas.
|
virtualslot |
Definition at line 645 of file QRootCanvas.cpp.
References fCanvas.
|
slot |
Definition at line 530 of file QRootCanvas.cpp.
References fCanvas.
|
slot |
Definition at line 525 of file QRootCanvas.cpp.
References fCanvas.
|
slot |
Definition at line 535 of file QRootCanvas.cpp.
References fCanvas.
|
slot |
Definition at line 540 of file QRootCanvas.cpp.
References fCanvas.
|
slot |
Definition at line 545 of file QRootCanvas.cpp.
References fCanvas.
|
slot |
Definition at line 550 of file QRootCanvas.cpp.
References fCanvas.
|
slot |
Definition at line 555 of file QRootCanvas.cpp.
References fCanvas.
|
slot |
Definition at line 560 of file QRootCanvas.cpp.
References fCanvas.
|
inline |
Definition at line 79 of file QRootCanvas.h.
|
slot |
Definition at line 565 of file QRootCanvas.cpp.
References fCanvas.
|
slot |
Definition at line 570 of file QRootCanvas.cpp.
References fCanvas.
|
slot |
Definition at line 575 of file QRootCanvas.cpp.
References fCanvas.
|
slot |
Definition at line 580 of file QRootCanvas.cpp.
References fCanvas.
|
slot |
Definition at line 640 of file QRootCanvas.cpp.
References fCanvas.
|
slot |
Definition at line 630 of file QRootCanvas.cpp.
References fCanvas.
|
slot |
Definition at line 615 of file QRootCanvas.cpp.
References fCanvas.
|
slot |
Definition at line 620 of file QRootCanvas.cpp.
References fCanvas.
|
slot |
Definition at line 625 of file QRootCanvas.cpp.
References fCanvas.
|
slot |
Definition at line 635 of file QRootCanvas.cpp.
References fCanvas.
|
slot |
Definition at line 600 of file QRootCanvas.cpp.
References fCanvas.
|
slot |
Definition at line 590 of file QRootCanvas.cpp.
References fCanvas.
|
slot |
Definition at line 605 of file QRootCanvas.cpp.
References fCanvas.
|
slot |
Definition at line 595 of file QRootCanvas.cpp.
References fCanvas.
|
virtualslot |
Definition at line 650 of file QRootCanvas.cpp.
References fCanvas, and scaledPosition().
|
slot |
Definition at line 655 of file QRootCanvas.cpp.
References fCanvas.
|
slot |
Definition at line 660 of file QRootCanvas.cpp.
References fCanvas.
|
slot |
Definition at line 665 of file QRootCanvas.cpp.
References fCanvas.
|
slot |
Definition at line 670 of file QRootCanvas.cpp.
References fCanvas.
|
protectedvirtual |
Definition at line 419 of file QRootCanvas.cpp.
References CanvasLeaveEvent(), and fCanvas.
|
virtualslot |
Definition at line 675 of file QRootCanvas.cpp.
References fCanvas.
|
signal |
Referenced by executeMenu(), and methodDialog().
|
protected |
Definition at line 821 of file QRootCanvas.cpp.
References QRootDialog::addArg(), fCanvas, QRootDialog::getArg(), and MenuCommandExecuted().
Referenced by executeMenu().
|
slot |
Definition at line 680 of file QRootCanvas.cpp.
References fCanvas.
Referenced by TGo4ViewPanel::OptionsMenuItemActivated().
|
protectedvirtual |
Definition at line 334 of file QRootCanvas.cpp.
References fCanvas, fMaskDoubleClick, PadDoubleClicked(), and scaledPosition().
|
protectedvirtual |
Definition at line 132 of file QRootCanvas.cpp.
References CanvasStatusEvent(), fCanvas, fxShowEventStatus, and scaledPosition().
|
protectedvirtual |
Definition at line 198 of file QRootCanvas.cpp.
References addMenuAction(), executeMenu(), fCanvas, fMenuMethods, fMenuObj, fMousePosX, fMousePosY, PadClicked(), scaledPosition(), and SelectedPadChanged().
|
protectedvirtual |
Definition at line 312 of file QRootCanvas.cpp.
References fCanvas, and scaledPosition().
|
slot |
Definition at line 685 of file QRootCanvas.cpp.
References fCanvas.
|
slot |
Definition at line 690 of file QRootCanvas.cpp.
References fCanvas.
|
slot |
Definition at line 695 of file QRootCanvas.cpp.
References fCanvas.
|
signal |
signal emitted when mouse clicks on pad
Referenced by mousePressEvent().
|
signal |
signal emitted when user produce left mouse double-click on pad
Referenced by mouseDoubleClickEvent().
|
virtualslot |
Definition at line 700 of file QRootCanvas.cpp.
References fCanvas.
|
inlineprotectedvirtual |
Definition at line 203 of file QRootCanvas.h.
|
protectedvirtual |
Definition at line 377 of file QRootCanvas.cpp.
References act_Update, activateRepaint(), and fRepaintMode.
|
virtualslot |
|
virtualslot |
Definition at line 710 of file QRootCanvas.cpp.
References fCanvas.
|
slot |
Definition at line 390 of file QRootCanvas.cpp.
References act_Resize, CanvasUpdated(), fCanvas, fQtWindowId, fRepaintMode, and fRootWindowId.
Referenced by QRootCanvas().
|
virtualslot |
Definition at line 715 of file QRootCanvas.cpp.
References fCanvas.
Referenced by TGo4ViewPanel::CompleteInitialization().
|
protectedvirtual |
Definition at line 371 of file QRootCanvas.cpp.
References act_Resize, and activateRepaint().
|
slot |
Definition at line 720 of file QRootCanvas.cpp.
References fCanvas.
|
slot |
Definition at line 725 of file QRootCanvas.cpp.
References fCanvas.
|
inlineprotected |
returns scaled point coordinate, for high dpi case
Definition at line 198 of file QRootCanvas.h.
Referenced by dropEvent(), HandleInput(), mouseDoubleClickEvent(), mouseMoveEvent(), mousePressEvent(), mouseReleaseEvent(), and wheelEvent().
|
signal |
signal which will be emitted when root selected pad is changed via clicking the mid-mouse button (M. al-Turany)
Referenced by mousePressEvent().
|
slot |
Definition at line 780 of file QRootCanvas.cpp.
References fCanvas.
|
slot |
Definition at line 750 of file QRootCanvas.cpp.
References fCanvas.
|
virtualslot |
Definition at line 730 of file QRootCanvas.cpp.
References fCanvas.
|
virtualslot |
Definition at line 735 of file QRootCanvas.cpp.
References fCanvas.
|
slot |
Definition at line 755 of file QRootCanvas.cpp.
References fCanvas.
|
inline |
Definition at line 80 of file QRootCanvas.h.
|
slot |
Definition at line 785 of file QRootCanvas.cpp.
References fCanvas.
|
slot |
Definition at line 760 of file QRootCanvas.cpp.
References fCanvas.
|
slot |
Definition at line 765 of file QRootCanvas.cpp.
References fCanvas.
void QRootCanvas::setShowEventStatus | ( | bool | s | ) |
Definition at line 430 of file QRootCanvas.cpp.
References fxShowEventStatus.
|
slot |
Definition at line 790 of file QRootCanvas.cpp.
References fCanvas.
|
slot |
Definition at line 740 of file QRootCanvas.cpp.
References fCanvas.
|
slot |
Definition at line 745 of file QRootCanvas.cpp.
References fCanvas.
|
slot |
Definition at line 770 of file QRootCanvas.cpp.
References fCanvas.
bool QRootCanvas::showEventStatus | ( | ) | const |
Definition at line 435 of file QRootCanvas.cpp.
References fxShowEventStatus.
|
virtualslot |
Definition at line 775 of file QRootCanvas.cpp.
References fCanvas.
|
virtualslot |
Definition at line 800 of file QRootCanvas.cpp.
References fCanvas.
|
virtualslot |
Definition at line 795 of file QRootCanvas.cpp.
References fCanvas.
|
virtualslot |
Definition at line 805 of file QRootCanvas.cpp.
References act_Update, and activateRepaint().
Referenced by TGo4ViewPanel::OptionsMenuItemActivated(), TGo4ViewPanel::RedrawPanel(), and TGo4ViewPanel::SetActivePad().
|
slot |
Definition at line 515 of file QRootCanvas.cpp.
References fCanvas.
|
protectedvirtual |
Definition at line 182 of file QRootCanvas.cpp.
References fCanvas, and scaledPosition().
|
protected |
Definition at line 210 of file QRootCanvas.h.
Referenced by Browse(), cd(), Clear(), Close(), closeEvent(), Draw(), DrawClone(), DrawClonePad(), EditorBar(), EnterLeave(), executeMenu(), FeedbackMode(), Flush(), ForceUpdate(), GetAutoExec(), GetCanvasID(), GetCanvasPar(), GetContextMenu(), GetDISPLAY(), GetDoubleBuffer(), GetEvent(), GetEventX(), GetEventY(), GetHighLightColor(), GetPadSave(), GetSelected(), GetSelectedOpt(), GetSelectedPad(), GetShowEventStatus(), GetWh(), GetWindowHeight(), GetWindowTopX(), GetWindowTopY(), GetWindowWidth(), GetWw(), GetXsizeReal(), GetXsizeUser(), GetYsizeReal(), GetYsizeUser(), HandleInput(), HasMenuBar(), Iconify(), IsBatch(), IsRetained(), leaveEvent(), ls(), methodDialog(), Modified(), mouseDoubleClickEvent(), mouseMoveEvent(), mousePressEvent(), mouseReleaseEvent(), MoveOpaque(), OpaqueMoving(), OpaqueResizing(), Paint(), Pick(), processRepaintTimer(), QRootCanvas(), Resize(), ResizeOpaque(), SaveSource(), SetBatch(), SetCanvasSize(), SetCursor(), SetDoubleBuffer(), SetHighLightColor(), SetRetained(), SetSelected(), SetSelectedPad(), SetTitle(), SetWindowPosition(), SetWindowSize(), Show(), Size(), ToggleAutoExec(), ToggleEventStatus(), UseCurrentStyle(), wheelEvent(), and ~QRootCanvas().
|
private |
Definition at line 217 of file QRootCanvas.h.
Referenced by mouseDoubleClickEvent().
|
private |
Definition at line 222 of file QRootCanvas.h.
Referenced by executeMenu(), mousePressEvent(), QRootCanvas(), and ~QRootCanvas().
|
private |
Definition at line 221 of file QRootCanvas.h.
Referenced by executeMenu(), mousePressEvent(), and QRootCanvas().
|
private |
Definition at line 218 of file QRootCanvas.h.
Referenced by executeMenu(), mousePressEvent(), and QRootCanvas().
|
private |
Definition at line 219 of file QRootCanvas.h.
Referenced by executeMenu(), mousePressEvent(), and QRootCanvas().
|
private |
Definition at line 225 of file QRootCanvas.h.
Referenced by QRootCanvas().
|
protected |
Definition at line 212 of file QRootCanvas.h.
Referenced by processRepaintTimer(), and QRootCanvas().
|
protected |
Definition at line 214 of file QRootCanvas.h.
Referenced by activateRepaint(), paintEvent(), processRepaintTimer(), and QRootCanvas().
|
protected |
Definition at line 213 of file QRootCanvas.h.
Referenced by activateRepaint(), QRootCanvas(), and ~QRootCanvas().
|
protected |
Definition at line 211 of file QRootCanvas.h.
Referenced by processRepaintTimer(), and QRootCanvas().
|
private |
Definition at line 223 of file QRootCanvas.h.
Referenced by mouseMoveEvent(), setShowEventStatus(), and showEventStatus().