14                                                    {Qt::LeftButton, 
"LeftButton"},
 
   15                                                    {Qt::RightButton, 
"RightButton"},
 
   16                                                    {Qt::MiddleButton, 
"MiddleButton"}};
 
 
   20  {Qt::NoButton, 
"NoButton"},
 
   21  {Qt::AllButtons, 
"AllButtons"},
 
   22  {Qt::LeftButton, 
"LeftButton"},
 
   23  {Qt::RightButton, 
"RightButton"},
 
   24  {Qt::MiddleButton, 
"MiddleButton"},
 
   25  {Qt::LeftButton | Qt::RightButton, 
"LeftRightButtons"},
 
   26  {Qt::LeftButton | Qt::MiddleButton, 
"LeftMiddleButtons"},
 
   27  {Qt::RightButton | Qt::MiddleButton, 
"RightMiddleButtons"},
 
 
  253  QPointF point(x_range_start, y_position);
 
  254  double width = x_range_end - x_range_start;
 
 
  402      "The m_integrationScopeRhombWidth of the fixed rhomboid side cannot be " 
  406  std::vector<QPointF> points;
 
  414  points.push_back(point);
 
  423      points.push_back(point);
 
  429      points.push_back(point);
 
  435      points.push_back(point);
 
  445      points.push_back(point);
 
  451      points.push_back(point);
 
  457      points.push_back(point);
 
  467      points.push_back(point);
 
  473      points.push_back(point);
 
  479      points.push_back(point);
 
  489      points.push_back(point);
 
  495      points.push_back(point);
 
  501      points.push_back(point);
 
 
  555    qFatal(
"The height of the fixed rhomboid side cannot be 0.");
 
  558  std::vector<QPointF> points;
 
  567  points.push_back(point);
 
  568  qDebug() << 
"Start point:" << point;
 
  576      points.push_back(point);
 
  582      points.push_back(point);
 
  588      points.push_back(point);
 
  598      points.push_back(point);
 
  604      points.push_back(point);
 
  610      points.push_back(point);
 
  620      points.push_back(point);
 
  626      points.push_back(point);
 
  632      points.push_back(point);
 
  642      points.push_back(point);
 
  648      points.push_back(point);
 
  654      points.push_back(point);
 
 
  740      "Both m_integrationScopeRhombWidth and m_integrationScopeRhombHeight of " 
  741      "rhomboid integration scope cannot be 0.");
 
 
  844  QString text(
"Context:");
 
  846  text += QString(
"data kind: %1").arg(
static_cast<int>(
m_dataKind));
 
  848  text += QString(
" isMouseDragging: %1 -- wasMouseDragging: %2")
 
  855  text += QString(
" -- currentDragPoint : (%1, %2)")
 
  859  text += QString(
" -- lastCursorHoveredPoint : (%1, %2)")
 
  867        text += 
" -- dragging from left to right";
 
  869        text += 
" -- dragging from right to left";
 
  871        text += 
" -- dragging from top to bottom";
 
  873        text += 
" -- dragging from bottom to top";
 
  877  text += 
" -- Integration scope: ";
 
  881  text += QString(
" -- xRange: (%1, %2)").arg(
m_xRange.lower).arg(
m_xRange.upper);
 
  883  text += QString(
" -- yRange: (%1, %2)").arg(
m_yRange.lower).arg(
m_yRange.upper);
 
  885  text += QString(
" -- wasClickOnXAxis: %1").arg(
m_wasClickOnXAxis ? 
"true" : 
"false");
 
  886  text += QString(
" -- wasClickOnYAxis: %1").arg(
m_wasClickOnYAxis ? 
"true" : 
"false");
 
  889  text += QString(
" -- xRegionRangeStart: %1 -- xRegionRangeEnd: %2")
 
  893  text += QString(
" -- yRegionRangeStart: %1 -- yRegionRangeEnd: %2")
 
  897  text += QString(
" -- xDelta: %1 -- yDelta: %2").arg(
m_xDelta).arg(
m_yDelta);
 
  914  text += QString(
" -- mouseButtonsAtMouseRelease: %1")
 
 
  925      qWarning() << 
"Cannot register class: engine is null";
 
  930  QJSValue jsMetaObject = engine->newQMetaObject(&BasePlotContext::staticMetaObject);
 
  931  engine->globalObject().setProperty(
"BasePlotContext", jsMetaObject);
 
  933  QJSValue enumObject = engine->newObject();
 
  941  engine->globalObject().setProperty(
"DragDirections", enumObject);
 
 
double m_xRegionRangeStart
 
static void registerJsConstructor(QJSEngine *engine)
 
Qt::MouseButtons m_mouseButtonsAtMousePress
 
SelectionPolygon m_selectionPolygon
 
Q_INVOKABLE BasePlotContext(QObject *parent=nullptr)
 
virtual ~BasePlotContext()
 
IntegrationScopeBaseCstSPtr msp_integrationScope
 
DragDirections recordDragDirections()
 
Enums::DataKind m_dataKind
 
Q_INVOKABLE BasePlotContext * clone(QObject *parent=nullptr)
 
Qt::KeyboardModifiers m_keyboardModifiers
 
void updateIntegrationScope()
 
Qt::MouseButtons m_lastPressedMouseButton
 
void updateIntegrationScopeRhombVertical()
 
void updateIntegrationScopeRhombHorizontal()
 
bool m_isMeasuringDistance
 
DragDirections m_dragDirections
 
double m_integrationScopeRhombHeight
 
QPointF m_lastCursorHoveredPoint
 
QPointF m_currentDragPoint
 
Q_INVOKABLE void initialize(const BasePlotContext &other)
 
void updateIntegrationScopeRect()
 
double m_yRegionRangeStart
 
void updateIntegrationScopeRhomb()
 
bool m_isRightPseudoButtonKeyPressed
 
Qt::MouseButtons m_pressedMouseButtons
 
Qt::MouseButtons m_mouseButtonsAtMouseRelease
 
bool m_isLeftPseudoButtonKeyPressed
 
double m_integrationScopeRhombWidth
 
Qt::MouseButtons m_lastReleasedMouseButton
 
Q_INVOKABLE QString toString() const
 
bool m_wasKeyBoardDragging
 
bool m_isKeyBoardDragging
 
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
 
std::map< Qt::MouseButton, QString > qtMouseButtonMap
 
std::map< Qt::MouseButtons, QString > qtMouseButtonsMap