13 {Qt::NoButton,
"NoButton"},
14 {Qt::LeftButton,
"LeftButton"},
15 {Qt::RightButton,
"RightButton"},
16 {Qt::MiddleButton,
"MiddleButton"}};
19 {Qt::NoButton,
"NoButton"},
20 {Qt::AllButtons,
"AllButtons"},
21 {Qt::LeftButton,
"LeftButton"},
22 {Qt::RightButton,
"RightButton"},
23 {Qt::MiddleButton,
"MiddleButton"},
24 {Qt::LeftButton | Qt::RightButton,
"LeftRightButtons"},
25 {Qt::LeftButton | Qt::MiddleButton,
"LeftMiddleButtons"},
26 {Qt::RightButton | Qt::MiddleButton,
"RightMiddleButtons"},
30 {Qt::NoModifier,
"No modifier"},
31 {Qt::ShiftModifier,
"A Shift key"},
32 {Qt::ControlModifier,
"A Ctrl key"},
33 {Qt::AltModifier,
"An Alt key"},
34 {Qt::MetaModifier,
"A Meta key"},
35 {Qt::KeypadModifier,
"A keypad button"},
36 {Qt::GroupSwitchModifier,
"A Mode_switch key"}};
218 QPointF point(x_range_start, y_position);
219 double width = x_range_end - x_range_start;
385 "The m_integrationScopeRhombWidth of the fixed rhomboid side cannot be "
389 std::vector<QPointF> points;
397 points.push_back(point);
408 points.push_back(point);
414 points.push_back(point);
420 points.push_back(point);
432 points.push_back(point);
438 points.push_back(point);
444 points.push_back(point);
456 points.push_back(point);
462 points.push_back(point);
468 points.push_back(point);
480 points.push_back(point);
486 points.push_back(point);
492 points.push_back(point);
549 qFatal(
"The height of the fixed rhomboid side cannot be 0.");
552 std::vector<QPointF> points;
561 points.push_back(point);
572 points.push_back(point);
578 points.push_back(point);
584 points.push_back(point);
596 points.push_back(point);
602 points.push_back(point);
608 points.push_back(point);
620 points.push_back(point);
626 points.push_back(point);
632 points.push_back(point);
644 points.push_back(point);
650 points.push_back(point);
656 points.push_back(point);
746 "Both m_integrationScopeRhombWidth and m_integrationScopeRhombHeight of "
747 "rhomboid integration scope cannot be 0.");
851 QString text(
"Context:");
853 text += QString(
" data kind: %1").arg(
static_cast<int>(
m_dataKind));
855 text += QString(
" -- isMouseDragging: %1 -- wasMouseDragging: %2")
859 text += QString(
" -- startDragPoint : (%1, %2)")
863 text += QString(
" -- currentDragPoint : (%1, %2)")
867 text += QString(
" -- lastCursorHoveredPoint : (%1, %2)")
876 text +=
" -- Integration scope: ";
881 text += QString(
" -- xRange: (%1, %2)").arg(
m_xRange.lower).arg(
m_xRange.upper);
886 text += QString(
" -- wasClickOnXAxis: %1")
888 text += QString(
" -- wasClickOnYAxis: %1")
890 text += QString(
" -- isMeasuringDistance: %1")
893 text += QString(
" -- xRegionRangeStart: %1 -- xRegionRangeEnd: %2")
897 text += QString(
" -- yRegionRangeStart: %1 -- yRegionRangeEnd: %2")
901 text += QString(
" -- xDelta: %1 -- yDelta: %2").arg(
m_xDelta).arg(
m_yDelta);
908 text += QString(
" -- pressedKeyCodes key: %1").arg(key);
916 text += QString(
" -- releasedKeyCodes key: %1").arg(key);
930 text += QString(
" -- keyboardModifiers: ");
954 text += QString(
" -- lastPressedMouseButton: %1")
957 text += QString(
" -- lastReleasedMouseButton: %1")
960 text += QString(
" -- pressedMouseButtons: %1")
963 text += QString(
" -- mouseButtonsAtMousePress: %1")
966 text += QString(
" -- mouseButtonsAtMouseRelease: %1")
982 text +=
" -- dragging from left to right";
985 text +=
" -- dragging from right to left";
988 text +=
" -- dragging from top to bottom";
991 text +=
" -- dragging from bottom to top";
double m_xRegionRangeStart
Qt::MouseButtons m_mouseButtonsAtMousePress
SelectionPolygon m_selectionPolygon
virtual ~BasePlotContext()
QString dragDirectionsToString() const
double m_yRegionRangeStop
DragDirections recordDragDirections()
Enums::DataKind m_dataKind
Qt::KeyboardModifiers m_keyboardModifiers
double m_xRegionRangeStop
void updateIntegrationScope()
Qt::MouseButtons m_lastPressedMouseButton
QSet< int > m_releasedKeyCodes
void updateIntegrationScopeRhombVertical()
void updateIntegrationScopeRhombHorizontal()
bool m_isMeasuringDistance
DragDirections m_dragDirections
double m_integrationScopeRhombHeight
QPointF m_lastCursorHoveredPoint
QPointF m_currentDragPoint
void initialize(const BasePlotContext &other)
QString m_releasedKeyText
QSet< int > m_pressedKeyCodes
void updateIntegrationScopeRect()
IntegrationScopeBase * mpa_integrationScope
double m_yRegionRangeStart
void updateIntegrationScopeRhomb()
bool m_isRightPseudoButtonKeyPressed
Qt::MouseButtons m_pressedMouseButtons
Qt::MouseButtons m_mouseButtonsAtMouseRelease
bool m_isLeftPseudoButtonKeyPressed
BasePlotContext & operator=(const BasePlotContext &other)
double m_integrationScopeRhombWidth
Qt::MouseButtons m_lastReleasedMouseButton
bool m_wasKeyBoardDragging
BasePlotContext * clone()
bool m_isKeyBoardDragging
virtual IntegrationScopeBase * clone() const
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
std::map< Qt::KeyboardModifier, QString > qtKeyboardModifierMap