Mantid
|
Controller for picking detectors. More...
#include <InputController.h>
Signals | |
void | finishSelection () |
void | pickPointAt (int, int) |
void | setSelection (const QRect &) |
void | touchPointAt (int, int) |
Signals inherited from MantidQt::MantidWidgets::InputController | |
void | disabled () |
void | enabled () |
void | touchPointAt (int, int) |
Public Member Functions | |
InputControllerPick (QObject *parent) | |
Constructor. More... | |
void | mouseMoveEvent (QMouseEvent *) override |
Process the mouse move event. More... | |
void | mousePressEvent (QMouseEvent *) override |
Process the mouse press event. More... | |
void | mouseReleaseEvent (QMouseEvent *) override |
Process the mouse release event. More... | |
Public Member Functions inherited from MantidQt::MantidWidgets::InputController | |
bool | canShowContextMenu () const |
Returns true if a surface using this controller can show a context menu on right-click. More... | |
virtual void | enterEvent (QEvent *) |
virtual void | freezeRotation (bool) |
InputController (QObject *parent, bool contextAllowed=true) | |
virtual void | keyPressEvent (QKeyEvent *) |
virtual void | leaveEvent (QEvent *) |
virtual void | mouseMoveEvent (QMouseEvent *event) |
virtual void | mousePressEvent (QMouseEvent *) |
virtual void | mouseReleaseEvent (QMouseEvent *) |
virtual void | onDisabled () |
To be called when this controller looses control. More... | |
virtual void | onEnabled () |
To be called when this controller takes control of the input. More... | |
virtual void | onPaint (QPainter &) |
To be called after the owner widget has drawn its content. More... | |
virtual void | wheelEvent (QWheelEvent *) |
~InputController () override=default | |
Private Attributes | |
bool | m_isButtonPressed |
QRect | m_rect |
Controller for picking detectors.
Definition at line 116 of file InputController.h.
MantidQt::MantidWidgets::InputControllerPick::InputControllerPick | ( | QObject * | parent | ) |
Constructor.
parent | :: The parent object. |
Definition at line 91 of file InputController.cpp.
|
signal |
Referenced by mouseReleaseEvent().
|
overridevirtual |
Process the mouse move event.
Reimplemented from MantidQt::MantidWidgets::InputController.
Definition at line 107 of file InputController.cpp.
References m_isButtonPressed, m_rect, setSelection(), and touchPointAt().
|
overridevirtual |
Process the mouse press event.
Reimplemented from MantidQt::MantidWidgets::InputController.
Definition at line 96 of file InputController.cpp.
References m_isButtonPressed, m_rect, and pickPointAt().
|
overridevirtual |
Process the mouse release event.
Reimplemented from MantidQt::MantidWidgets::InputController.
Definition at line 119 of file InputController.cpp.
References finishSelection(), and m_isButtonPressed.
|
signal |
Referenced by mousePressEvent().
|
signal |
Referenced by mouseMoveEvent().
|
signal |
Referenced by mouseMoveEvent().
|
private |
Definition at line 132 of file InputController.h.
Referenced by mouseMoveEvent(), mousePressEvent(), and mouseReleaseEvent().
|
private |
Definition at line 133 of file InputController.h.
Referenced by mouseMoveEvent(), and mousePressEvent().