GSI Object Oriented Online Offline (Go4) GO4-6.4.0
|
This canvas uses Qt eventloop to handle user input. More...
#include <QRootCanvas.h>
Public Slots | |
virtual void | Browse (TBrowser *b) |
void | buildEditorWindow () |
void | cd (Int_t subpadnumber=0) |
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 | executeMenu (int id) |
void | FeedbackMode (Bool_t set) |
void | Flush () |
void | ForceUpdate () |
Bool_t | GetAutoExec () |
Int_t | GetCanvasID () |
virtual void | GetCanvasPar (Int_t &wtopx, Int_t &wtopy, UInt_t &ww, UInt_t &wh) |
TContextMenu * | GetContextMenu () |
const char * | GetDISPLAY () |
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 () |
UInt_t | GetWh () |
UInt_t | GetWindowHeight () |
Int_t | GetWindowTopX () |
Int_t | GetWindowTopY () |
UInt_t | GetWindowWidth () |
UInt_t | GetWw () |
Size_t | GetXsizeReal () |
Size_t | GetXsizeUser () |
Size_t | GetYsizeReal () |
Size_t | GetYsizeUser () |
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, TObject *prevSelObj) |
virtual TPad * | Pick (Int_t px, Int_t py, TObjLink *&pickobj) |
void | processRepaintTimer () |
virtual void | Resize (Option_t *option="") |
void | ResizeOpaque (Int_t set=1) |
void | SaveSource (const char *filename="", Option_t *option="") |
void | SetBatch (Bool_t batch=kTRUE) |
void | SetCanvasSize (UInt_t ww, UInt_t wh) |
virtual void | SetCursor (ECursor cursor) |
virtual void | SetDoubleBuffer (Int_t mode=1) |
void | SetHighLightColor (Color_t col) |
void | SetRetained (Bool_t retained=kTRUE) |
void | SetSelected (TObject *obj) |
void | SetSelectedPad (TPad *pad) |
void | SetTitle (const char *title="") |
void | SetWindowPosition (Int_t x, Int_t y) |
void | SetWindowSize (UInt_t ww, UInt_t wh) |
void | Show () |
virtual void | Size (Float_t xsizeuser=0, Float_t ysizeuser=0) |
virtual void | ToggleAutoExec () |
virtual void | ToggleEventStatus () |
virtual void | Update () |
void | UseCurrentStyle () |
Signals | |
void | CanvasDropEvent (QDropEvent *, TPad *) |
void | CanvasLeaveEvent () |
void | CanvasStatusEvent (const char *) |
void | CanvasUpdated () |
void | MenuCommandExecuted (TObject *, const char *) |
void | PadClicked (TPad *, int, int) |
signal emitted when mouse clicks on pad | |
void | PadDoubleClicked (TPad *, int, int) |
signal emitted when user produce left mouse double-click on pad | |
void | SelectedPadChanged (TPad *) |
signal which will be emitted when root selected pad is changed via clicking the mid-mouse button (M. | |
Public Member Functions | |
QRootCanvas (QWidget *parent=nullptr) | |
virtual | ~QRootCanvas () |
void | activateEditor (TPad *pad, TObject *obj) |
void | cleanupEditor () |
TCanvas * | getCanvas () |
int | getRootWid () |
bool | isEditorAllowed () |
bool | isEditorVisible () |
bool | isStatusBarVisible () |
void | resizeEditor () |
void | setEditorFrame (QFrame *fr) |
void | setMaskDoubleClick (bool on=true) |
void | setShowEventStatus (bool s) |
void | setStatusBar (QStatusBar *bar) |
void | setStatusBarVisible (bool flag) |
bool | showEventStatus () const |
void | showStatusMessage (const char *msg) |
void | toggleEditor () |
Protected Member Functions | |
void | activateRepaint (int act) |
QAction * | addMenuAction (QMenu *menu, QSignalMapper *map, const QString &text, int id) |
void | closeEvent (QCloseEvent *e) override |
void | dragEnterEvent (QDragEnterEvent *e) override |
void | dropEvent (QDropEvent *Event) override |
void | leaveEvent (QEvent *e) override |
void | methodDialog (TObject *object, TMethod *method) |
void | mouseDoubleClickEvent (QMouseEvent *e) override |
void | mouseMoveEvent (QMouseEvent *e) override |
void | mousePressEvent (QMouseEvent *e) override |
void | mouseReleaseEvent (QMouseEvent *e) override |
QPaintEngine * | paintEngine () const override |
void | paintEvent (QPaintEvent *e) override |
void | resizeEvent (QResizeEvent *e) override |
QPoint | scaledMousePoint (QMouseEvent *ev) |
double | scaledPosition (int p) |
returns scaled point coordinate, for high dpi case | |
void | wheelEvent (QWheelEvent *e) override |
Protected Attributes | |
TCanvas * | fCanvas {nullptr} |
TH1 * | fDummyHisto {nullptr} |
QFrame * | fEditorFrame {nullptr} |
WId | fQtWindowId |
int | fRepaintMode {0} |
QTimer * | fRepaintTimer {nullptr} |
Int_t | fRootWindowId {0} |
QStatusBar * | fStatusBar {nullptr} |
TVirtualPadEditor * | fxPeditor {nullptr} |
QRootWindow * | fxRooteditor {nullptr} |
Private Types | |
enum | { act_Update = 1 , act_Resize = 2 } |
Private Attributes | |
bool | fMaskDoubleClick {false} |
TList * | fMenuMethods {nullptr} |
TObject * | fMenuObj {nullptr} |
double | fMousePosX {0} |
double | fMousePosY {0} |
double | fQtScalingfactor {0} |
bool | fxShowEventStatus {false} |
This canvas uses Qt eventloop to handle user input.
Graphic Qt Widget based Canvas
Definition at line 57 of file QRootCanvas.h.
|
private |
Enumerator | |
---|---|
act_Update | |
act_Resize |
Definition at line 61 of file QRootCanvas.h.
QRootCanvas::QRootCanvas | ( | QWidget * | parent = nullptr | ) |
Definition at line 66 of file QRootCanvas.cpp.
References fCanvas, fDummyHisto, fEditorFrame, fMaskDoubleClick, fMenuMethods, fMenuObj, fMousePosX, fMousePosY, fQtScalingfactor, fQtWindowId, fRepaintMode, fRepaintTimer, fRootWindowId, fStatusBar, fxPeditor, fxRooteditor, fxShowEventStatus, processRepaintTimer(), and TGo4LockGuard.
|
virtual |
Definition at line 120 of file QRootCanvas.cpp.
References fCanvas, fDummyHisto, fMenuMethods, fRepaintTimer, fxPeditor, and getCanvas().
void QRootCanvas::activateEditor | ( | TPad * | pad, |
TObject * | obj ) |
Definition at line 1226 of file QRootCanvas.cpp.
References fxPeditor, getCanvas(), and isEditorVisible().
|
protected |
Definition at line 420 of file QRootCanvas.cpp.
References fRepaintMode, and fRepaintTimer.
Referenced by paintEvent(), resizeEvent(), and Update().
|
protected |
Definition at line 1037 of file QRootCanvas.cpp.
References QRootApplication::IsRootCanvasMenuEnabled().
Referenced by mousePressEvent().
|
virtualslot |
|
slot |
Definition at line 1275 of file QRootCanvas.cpp.
References fEditorFrame, and fxRooteditor.
Referenced by CanvasUpdated().
|
signal |
Referenced by QUserPanel::QUserPanel(), TGo4ViewPanel::TGo4ViewPanel(), and dropEvent().
|
signal |
Referenced by TGo4ViewPanel::TGo4ViewPanel(), and leaveEvent().
|
signal |
Referenced by mouseMoveEvent().
|
signal |
References Browse(), buildEditorWindow(), cd(), Clear(), Close(), closeEvent(), dragEnterEvent(), Draw(), DrawClone(), DrawClonePad(), dropEvent(), 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(), Modified(), mouseDoubleClickEvent(), mouseMoveEvent(), mousePressEvent(), mouseReleaseEvent(), MoveOpaque(), OpaqueMoving(), OpaqueResizing(), Paint(), paintEvent(), Pick(), processRepaintTimer(), Resize(), resizeEvent(), ResizeOpaque(), SaveSource(), SetBatch(), SetCanvasSize(), SetCursor(), SetDoubleBuffer(), SetHighLightColor(), SetRetained(), SetSelected(), SetSelectedPad(), SetTitle(), SetWindowPosition(), SetWindowSize(), Show(), Size(), ToggleAutoExec(), ToggleEventStatus(), Update(), UseCurrentStyle(), and wheelEvent().
Referenced by TGo4ViewPanel::TGo4ViewPanel(), and processRepaintTimer().
|
slot |
void QRootCanvas::cleanupEditor | ( | ) |
Definition at line 1237 of file QRootCanvas.cpp.
References fDummyHisto, fxPeditor, and getCanvas().
|
slot |
|
slot |
|
overrideprotected |
|
overrideprotected |
Definition at line 498 of file QRootCanvas.cpp.
Referenced by CanvasUpdated().
|
virtualslot |
|
virtualslot |
|
virtualslot |
|
overrideprotected |
Definition at line 504 of file QRootCanvas.cpp.
References CanvasDropEvent(), Pick(), and scaledPosition().
Referenced by CanvasUpdated().
|
virtualslot |
|
slot |
|
slot |
test: do this in any case!
Definition at line 1063 of file QRootCanvas.cpp.
References fCanvas, fMenuMethods, fMenuObj, fMousePosX, fMousePosY, MenuCommandExecuted(), methodDialog(), and TGo4LockGuard.
Referenced by CanvasUpdated(), and mousePressEvent().
|
slot |
|
slot |
|
slot |
|
slot |
|
inline |
Definition at line 67 of file QRootCanvas.h.
References fCanvas.
Referenced by ~QRootCanvas(), activateEditor(), and cleanupEditor().
|
slot |
|
virtualslot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
inline |
Definition at line 68 of file QRootCanvas.h.
References fRootWindowId.
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
virtualslot |
Definition at line 712 of file QRootCanvas.cpp.
References fCanvas, and scaledPosition().
Referenced by CanvasUpdated().
|
slot |
|
slot |
|
slot |
bool QRootCanvas::isEditorAllowed | ( | ) |
Definition at line 1174 of file QRootCanvas.cpp.
References QRootApplication::IsRootCanvasMenuEnabled().
bool QRootCanvas::isEditorVisible | ( | ) |
Definition at line 1168 of file QRootCanvas.cpp.
References fEditorFrame.
Referenced by activateEditor(), resizeEditor(), and toggleEditor().
|
slot |
bool QRootCanvas::isStatusBarVisible | ( | ) |
Definition at line 1260 of file QRootCanvas.cpp.
References fStatusBar.
|
overrideprotected |
Definition at line 473 of file QRootCanvas.cpp.
References CanvasLeaveEvent(), fCanvas, and TGo4LockGuard.
Referenced by CanvasUpdated().
|
virtualslot |
|
signal |
Referenced by TGo4ViewPanel::TGo4ViewPanel(), executeMenu(), and methodDialog().
|
protected |
Definition at line 883 of file QRootCanvas.cpp.
References QRootDialog::addArg(), fCanvas, QRootDialog::getArg(), MenuCommandExecuted(), and TGo4LockGuard.
Referenced by executeMenu().
|
slot |
|
overrideprotected |
Definition at line 387 of file QRootCanvas.cpp.
References fCanvas, fMaskDoubleClick, PadDoubleClicked(), scaledMousePoint(), and TGo4LockGuard.
Referenced by CanvasUpdated().
|
overrideprotected |
Definition at line 167 of file QRootCanvas.cpp.
References CanvasStatusEvent(), fCanvas, fStatusBar, fxShowEventStatus, scaledMousePoint(), and TGo4LockGuard.
Referenced by CanvasUpdated().
|
overrideprotected |
Definition at line 237 of file QRootCanvas.cpp.
References addMenuAction(), executeMenu(), fCanvas, fMenuMethods, fMenuObj, fMousePosX, fMousePosY, PadClicked(), scaledMousePoint(), SelectedPadChanged(), and TGo4LockGuard.
Referenced by CanvasUpdated().
|
overrideprotected |
Definition at line 362 of file QRootCanvas.cpp.
References fCanvas, scaledMousePoint(), and TGo4LockGuard.
Referenced by CanvasUpdated().
|
slot |
|
slot |
|
slot |
|
signal |
signal emitted when mouse clicks on pad
Referenced by TGo4ViewPanel::TGo4ViewPanel(), and mousePressEvent().
|
signal |
signal emitted when user produce left mouse double-click on pad
Referenced by TGo4ViewPanel::TGo4ViewPanel(), and mouseDoubleClickEvent().
|
virtualslot |
|
inlineoverrideprotected |
Definition at line 205 of file QRootCanvas.h.
|
overrideprotected |
Definition at line 433 of file QRootCanvas.cpp.
References act_Update, activateRepaint(), and fRepaintMode.
Referenced by CanvasUpdated().
|
virtualslot |
Definition at line 772 of file QRootCanvas.cpp.
References fCanvas.
|
virtualslot |
Definition at line 767 of file QRootCanvas.cpp.
References fCanvas.
Referenced by CanvasUpdated(), and dropEvent().
|
slot |
Definition at line 446 of file QRootCanvas.cpp.
References act_Resize, CanvasUpdated(), fCanvas, fQtWindowId, fRepaintMode, fRootWindowId, and TGo4LockGuard.
Referenced by QRootCanvas(), and CanvasUpdated().
|
virtualslot |
void QRootCanvas::resizeEditor | ( | ) |
Definition at line 1216 of file QRootCanvas.cpp.
References fxPeditor, fxRooteditor, and isEditorVisible().
|
overrideprotected |
Definition at line 428 of file QRootCanvas.cpp.
References act_Resize, and activateRepaint().
Referenced by CanvasUpdated().
|
slot |
|
slot |
|
protected |
Definition at line 155 of file QRootCanvas.cpp.
References scaledPosition().
Referenced by mouseDoubleClickEvent(), mouseMoveEvent(), mousePressEvent(), and mouseReleaseEvent().
|
inlineprotected |
returns scaled point coordinate, for high dpi case
Definition at line 201 of file QRootCanvas.h.
References fQtScalingfactor.
Referenced by dropEvent(), HandleInput(), scaledMousePoint(), 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 TGo4ViewPanel::TGo4ViewPanel(), and mousePressEvent().
|
slot |
|
slot |
|
virtualslot |
|
virtualslot |
|
inline |
Definition at line 74 of file QRootCanvas.h.
References fEditorFrame.
|
slot |
|
inline |
Definition at line 69 of file QRootCanvas.h.
References fMaskDoubleClick.
|
slot |
|
slot |
|
slot |
void QRootCanvas::setShowEventStatus | ( | bool | s | ) |
Definition at line 486 of file QRootCanvas.cpp.
References fxShowEventStatus.
Referenced by setStatusBarVisible().
|
inline |
Definition at line 82 of file QRootCanvas.h.
References fStatusBar.
void QRootCanvas::setStatusBarVisible | ( | bool | flag | ) |
Definition at line 1265 of file QRootCanvas.cpp.
References fStatusBar, and setShowEventStatus().
|
slot |
|
slot |
|
slot |
|
slot |
bool QRootCanvas::showEventStatus | ( | ) | const |
Definition at line 491 of file QRootCanvas.cpp.
References fxShowEventStatus.
void QRootCanvas::showStatusMessage | ( | const char * | msg | ) |
Definition at line 1255 of file QRootCanvas.cpp.
References fStatusBar.
|
virtualslot |
|
virtualslot |
void QRootCanvas::toggleEditor | ( | ) |
Definition at line 1183 of file QRootCanvas.cpp.
References fEditorFrame, fxPeditor, fxRooteditor, isEditorVisible(), and TGo4LockGuard.
|
virtualslot |
|
virtualslot |
Definition at line 867 of file QRootCanvas.cpp.
References act_Update, and activateRepaint().
Referenced by CanvasUpdated().
|
slot |
|
overrideprotected |
Definition at line 215 of file QRootCanvas.cpp.
References fCanvas, scaledPosition(), and TGo4LockGuard.
Referenced by CanvasUpdated().
|
protected |
Definition at line 212 of file QRootCanvas.h.
Referenced by QRootCanvas(), ~QRootCanvas(), Browse(), cd(), Clear(), Close(), closeEvent(), Draw(), DrawClone(), DrawClonePad(), EditorBar(), EnterLeave(), executeMenu(), FeedbackMode(), Flush(), ForceUpdate(), GetAutoExec(), getCanvas(), 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(), Pick(), processRepaintTimer(), Resize(), ResizeOpaque(), SaveSource(), SetBatch(), SetCanvasSize(), SetCursor(), SetDoubleBuffer(), SetHighLightColor(), SetRetained(), SetSelected(), SetSelectedPad(), SetTitle(), SetWindowPosition(), SetWindowSize(), Show(), Size(), ToggleAutoExec(), ToggleEventStatus(), UseCurrentStyle(), and wheelEvent().
|
protected |
Definition at line 221 of file QRootCanvas.h.
Referenced by QRootCanvas(), ~QRootCanvas(), and cleanupEditor().
|
protected |
Definition at line 218 of file QRootCanvas.h.
Referenced by QRootCanvas(), buildEditorWindow(), isEditorVisible(), setEditorFrame(), and toggleEditor().
|
private |
Definition at line 226 of file QRootCanvas.h.
Referenced by QRootCanvas(), mouseDoubleClickEvent(), and setMaskDoubleClick().
|
private |
Definition at line 231 of file QRootCanvas.h.
Referenced by QRootCanvas(), ~QRootCanvas(), executeMenu(), and mousePressEvent().
|
private |
Definition at line 230 of file QRootCanvas.h.
Referenced by QRootCanvas(), executeMenu(), and mousePressEvent().
|
private |
Definition at line 227 of file QRootCanvas.h.
Referenced by QRootCanvas(), executeMenu(), and mousePressEvent().
|
private |
Definition at line 228 of file QRootCanvas.h.
Referenced by QRootCanvas(), executeMenu(), and mousePressEvent().
|
private |
Definition at line 234 of file QRootCanvas.h.
Referenced by QRootCanvas(), and scaledPosition().
|
protected |
Definition at line 214 of file QRootCanvas.h.
Referenced by QRootCanvas(), and processRepaintTimer().
|
protected |
Definition at line 216 of file QRootCanvas.h.
Referenced by QRootCanvas(), activateRepaint(), paintEvent(), and processRepaintTimer().
|
protected |
Definition at line 215 of file QRootCanvas.h.
Referenced by QRootCanvas(), ~QRootCanvas(), and activateRepaint().
|
protected |
Definition at line 213 of file QRootCanvas.h.
Referenced by QRootCanvas(), getRootWid(), and processRepaintTimer().
|
protected |
Definition at line 223 of file QRootCanvas.h.
Referenced by QRootCanvas(), isStatusBarVisible(), mouseMoveEvent(), setStatusBar(), setStatusBarVisible(), and showStatusMessage().
|
protected |
Definition at line 219 of file QRootCanvas.h.
Referenced by QRootCanvas(), ~QRootCanvas(), activateEditor(), cleanupEditor(), resizeEditor(), and toggleEditor().
|
protected |
Definition at line 220 of file QRootCanvas.h.
Referenced by QRootCanvas(), buildEditorWindow(), resizeEditor(), and toggleEditor().
|
private |
Definition at line 232 of file QRootCanvas.h.
Referenced by QRootCanvas(), mouseMoveEvent(), setShowEventStatus(), and showEventStatus().