JKQTPlotter
an extensive Qt4/Qt5 Plotter framework (including a fast variant and a LaTeX equation renderer!), written fully in C/C++ and without external dependencies
TestUserInteraction Class Reference

#include <test_user_interaction.h>

Inheritance diagram for TestUserInteraction:
Collaboration diagram for TestUserInteraction:

Public Slots

void contextMenuOpened (double x, double y, QMenu *contextMenu)
 
void plotMouseClicked (double x, double y, Qt::KeyboardModifiers modifiers, Qt::MouseButton button)
 
void plotMouseDoubleClicked (double x, double y, Qt::KeyboardModifiers modifiers, Qt::MouseButton button)
 
void plotMouseMove (double x, double y)
 
void plotMouseWheelOperated (double x, double y, Qt::KeyboardModifiers modifiers, int deltaAngleX, int deltaAngleY)
 
void plotNewZoomRectangle (double mouseDragRectXStart, double mouseDragRectXEnd, double mouseDragRectYStart, double mouseDragRectYEnd, Qt::KeyboardModifiers modifiers)
 
void rulerDisplayed (double x1, double y1, double x2, double y2, Qt::KeyboardModifiers modifiers)
 
void setContextMenuMode (int index)
 
void setLeftCtrlMouseAction (int index)
 
void setLeftDoubleClickMouseAction (int index)
 
void setLeftMouseAction (int index)
 
void setMouseWheelNoModAction (int index)
 
void setPlotMagnification (int index)
 
void setRightDoubleClickMouseAction (int index)
 
void setRightMouseAction (int index)
 
void setUserActionMarkerColor (int index)
 
void setUserActionMarkerType (int index)
 
void setUserActionOpaqueColor (int index)
 
void setUserActionOpaqueFillColor (int index)
 
void setUserActionOverlayColor (int index)
 
void setUserActionOverlayFillColor (int index)
 
void tooltipDisplayed (double x, double y, const QStringList &entries, const QList< JKQTPPlotElement * > &graphs)
 
void userCircleFinished (double x, double y, double radius, Qt::KeyboardModifiers modifiers)
 
void userEllipseFinished (double x, double y, double radiusX, double radiusY, Qt::KeyboardModifiers modifiers)
 
void userLineFinished (double x1, double y1, double x2, double y2, Qt::KeyboardModifiers modifiers)
 
void userRectangleFinished (double x, double y, double width, double height, Qt::KeyboardModifiers modifiers)
 
void userScribbleClick (double x, double y, Qt::KeyboardModifiers modifiers, bool first, bool last)
 
void zoomChangedLocally (double newxmin, double newxmax, double newymin, double newymax, JKQTPlotter *sender)
 

Public Member Functions

 TestUserInteraction (QWidget *parent=nullptr)
 

Protected Member Functions

void initPlot ()
 

Static Protected Member Functions

static QString KeyboradMod2String (Qt::KeyboardModifiers modifiers)
 
static QString MouseButton2String (Qt::MouseButton button)
 

Protected Attributes

QCheckBox * chkGrid
 
QCheckBox * chkLogX
 
QCheckBox * chkLogY
 
QCheckBox * chkPositionDisplay
 
QCheckBox * chkShowToolbar
 
QCheckBox * chkToolbarAlwaysOn
 
QComboBox * cmbLeftCtrlModMouseAction
 
QComboBox * cmbLeftDoubleClickMouseAction
 
QComboBox * cmbLeftNoModMouseAction
 
QComboBox * cmbMagnification
 
QComboBox * cmbMouseWheelAction
 
QComboBox * cmbRightClickContextMenu
 
QComboBox * cmbRightDoubleClickMouseAction
 
QComboBox * cmbRightNoModMouseAction
 
QComboBox * cmbUserActionMarkerColor
 
QComboBox * cmbUserActionMarkerType
 
QComboBox * cmbUserActionOpaqueColor
 
QComboBox * cmbUserActionOpaqueFillColor
 
QComboBox * cmbUserActionOverlayColor
 
QComboBox * cmbUserActionOverlayFillColor
 
JKQTPXYLineGraphgraph1
 
JKQTPXYLineGraphgraph2
 
QLabel * labMouseAction
 
QLabel * labMouseClicked
 
QLabel * labMouseMoved
 
QHBoxLayout * layChk
 
QHBoxLayout * layChk2
 
QFormLayout * layForm
 
QFormLayout * layForm2
 
QFormLayout * layLab
 
QGridLayout * layout
 
JKQTPlotterplot
 

Constructor & Destructor Documentation

◆ TestUserInteraction()

TestUserInteraction::TestUserInteraction ( QWidget *  parent = nullptr)
explicit

Member Function Documentation

◆ contextMenuOpened

void TestUserInteraction::contextMenuOpened ( double  x,
double  y,
QMenu *  contextMenu 
)
slot

◆ initPlot()

void TestUserInteraction::initPlot ( )
protected

◆ KeyboradMod2String()

static QString TestUserInteraction::KeyboradMod2String ( Qt::KeyboardModifiers  modifiers)
staticprotected

◆ MouseButton2String()

static QString TestUserInteraction::MouseButton2String ( Qt::MouseButton  button)
staticprotected

◆ plotMouseClicked

void TestUserInteraction::plotMouseClicked ( double  x,
double  y,
Qt::KeyboardModifiers  modifiers,
Qt::MouseButton  button 
)
slot

◆ plotMouseDoubleClicked

void TestUserInteraction::plotMouseDoubleClicked ( double  x,
double  y,
Qt::KeyboardModifiers  modifiers,
Qt::MouseButton  button 
)
slot

◆ plotMouseMove

void TestUserInteraction::plotMouseMove ( double  x,
double  y 
)
slot

◆ plotMouseWheelOperated

void TestUserInteraction::plotMouseWheelOperated ( double  x,
double  y,
Qt::KeyboardModifiers  modifiers,
int  deltaAngleX,
int  deltaAngleY 
)
slot

◆ plotNewZoomRectangle

void TestUserInteraction::plotNewZoomRectangle ( double  mouseDragRectXStart,
double  mouseDragRectXEnd,
double  mouseDragRectYStart,
double  mouseDragRectYEnd,
Qt::KeyboardModifiers  modifiers 
)
slot

◆ rulerDisplayed

void TestUserInteraction::rulerDisplayed ( double  x1,
double  y1,
double  x2,
double  y2,
Qt::KeyboardModifiers  modifiers 
)
slot

◆ setContextMenuMode

void TestUserInteraction::setContextMenuMode ( int  index)
slot

◆ setLeftCtrlMouseAction

void TestUserInteraction::setLeftCtrlMouseAction ( int  index)
slot

◆ setLeftDoubleClickMouseAction

void TestUserInteraction::setLeftDoubleClickMouseAction ( int  index)
slot

◆ setLeftMouseAction

void TestUserInteraction::setLeftMouseAction ( int  index)
slot

◆ setMouseWheelNoModAction

void TestUserInteraction::setMouseWheelNoModAction ( int  index)
slot

◆ setPlotMagnification

void TestUserInteraction::setPlotMagnification ( int  index)
slot

◆ setRightDoubleClickMouseAction

void TestUserInteraction::setRightDoubleClickMouseAction ( int  index)
slot

◆ setRightMouseAction

void TestUserInteraction::setRightMouseAction ( int  index)
slot

◆ setUserActionMarkerColor

void TestUserInteraction::setUserActionMarkerColor ( int  index)
slot

◆ setUserActionMarkerType

void TestUserInteraction::setUserActionMarkerType ( int  index)
slot

◆ setUserActionOpaqueColor

void TestUserInteraction::setUserActionOpaqueColor ( int  index)
slot

◆ setUserActionOpaqueFillColor

void TestUserInteraction::setUserActionOpaqueFillColor ( int  index)
slot

◆ setUserActionOverlayColor

void TestUserInteraction::setUserActionOverlayColor ( int  index)
slot

◆ setUserActionOverlayFillColor

void TestUserInteraction::setUserActionOverlayFillColor ( int  index)
slot

◆ tooltipDisplayed

void TestUserInteraction::tooltipDisplayed ( double  x,
double  y,
const QStringList &  entries,
const QList< JKQTPPlotElement * > &  graphs 
)
slot

◆ userCircleFinished

void TestUserInteraction::userCircleFinished ( double  x,
double  y,
double  radius,
Qt::KeyboardModifiers  modifiers 
)
slot

◆ userEllipseFinished

void TestUserInteraction::userEllipseFinished ( double  x,
double  y,
double  radiusX,
double  radiusY,
Qt::KeyboardModifiers  modifiers 
)
slot

◆ userLineFinished

void TestUserInteraction::userLineFinished ( double  x1,
double  y1,
double  x2,
double  y2,
Qt::KeyboardModifiers  modifiers 
)
slot

◆ userRectangleFinished

void TestUserInteraction::userRectangleFinished ( double  x,
double  y,
double  width,
double  height,
Qt::KeyboardModifiers  modifiers 
)
slot

◆ userScribbleClick

void TestUserInteraction::userScribbleClick ( double  x,
double  y,
Qt::KeyboardModifiers  modifiers,
bool  first,
bool  last 
)
slot

◆ zoomChangedLocally

void TestUserInteraction::zoomChangedLocally ( double  newxmin,
double  newxmax,
double  newymin,
double  newymax,
JKQTPlotter sender 
)
slot

Member Data Documentation

◆ chkGrid

QCheckBox* TestUserInteraction::chkGrid
protected

◆ chkLogX

QCheckBox* TestUserInteraction::chkLogX
protected

◆ chkLogY

QCheckBox* TestUserInteraction::chkLogY
protected

◆ chkPositionDisplay

QCheckBox* TestUserInteraction::chkPositionDisplay
protected

◆ chkShowToolbar

QCheckBox* TestUserInteraction::chkShowToolbar
protected

◆ chkToolbarAlwaysOn

QCheckBox* TestUserInteraction::chkToolbarAlwaysOn
protected

◆ cmbLeftCtrlModMouseAction

QComboBox* TestUserInteraction::cmbLeftCtrlModMouseAction
protected

◆ cmbLeftDoubleClickMouseAction

QComboBox* TestUserInteraction::cmbLeftDoubleClickMouseAction
protected

◆ cmbLeftNoModMouseAction

QComboBox* TestUserInteraction::cmbLeftNoModMouseAction
protected

◆ cmbMagnification

QComboBox* TestUserInteraction::cmbMagnification
protected

◆ cmbMouseWheelAction

QComboBox* TestUserInteraction::cmbMouseWheelAction
protected

◆ cmbRightClickContextMenu

QComboBox* TestUserInteraction::cmbRightClickContextMenu
protected

◆ cmbRightDoubleClickMouseAction

QComboBox* TestUserInteraction::cmbRightDoubleClickMouseAction
protected

◆ cmbRightNoModMouseAction

QComboBox* TestUserInteraction::cmbRightNoModMouseAction
protected

◆ cmbUserActionMarkerColor

QComboBox* TestUserInteraction::cmbUserActionMarkerColor
protected

◆ cmbUserActionMarkerType

QComboBox* TestUserInteraction::cmbUserActionMarkerType
protected

◆ cmbUserActionOpaqueColor

QComboBox* TestUserInteraction::cmbUserActionOpaqueColor
protected

◆ cmbUserActionOpaqueFillColor

QComboBox* TestUserInteraction::cmbUserActionOpaqueFillColor
protected

◆ cmbUserActionOverlayColor

QComboBox* TestUserInteraction::cmbUserActionOverlayColor
protected

◆ cmbUserActionOverlayFillColor

QComboBox* TestUserInteraction::cmbUserActionOverlayFillColor
protected

◆ graph1

JKQTPXYLineGraph* TestUserInteraction::graph1
protected

◆ graph2

JKQTPXYLineGraph* TestUserInteraction::graph2
protected

◆ labMouseAction

QLabel* TestUserInteraction::labMouseAction
protected

◆ labMouseClicked

QLabel* TestUserInteraction::labMouseClicked
protected

◆ labMouseMoved

QLabel* TestUserInteraction::labMouseMoved
protected

◆ layChk

QHBoxLayout* TestUserInteraction::layChk
protected

◆ layChk2

QHBoxLayout* TestUserInteraction::layChk2
protected

◆ layForm

QFormLayout* TestUserInteraction::layForm
protected

◆ layForm2

QFormLayout* TestUserInteraction::layForm2
protected

◆ layLab

QFormLayout* TestUserInteraction::layLab
protected

◆ layout

QGridLayout* TestUserInteraction::layout
protected

◆ plot

JKQTPlotter* TestUserInteraction::plot
protected

The documentation for this class was generated from the following file: