5#include "../../processing/combiners/integrationscope.h"
6#include "../../processing/combiners/integrationscoperect.h"
7#include "../../processing/combiners/integrationscoperhomb.h"
13 {Qt::LeftButton,
"LeftButton"},
14 {Qt::RightButton,
"RightButton"},
15 {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"},
119 QPointF point(x_range_start, y_position);
120 double width = x_range_end - x_range_start;
267 "The m_integrationScopeRhombWidth of the fixed rhomboid side cannot be "
271 std::vector<QPointF> points;
279 points.push_back(point);
288 points.push_back(point);
294 points.push_back(point);
300 points.push_back(point);
310 points.push_back(point);
316 points.push_back(point);
322 points.push_back(point);
332 points.push_back(point);
338 points.push_back(point);
344 points.push_back(point);
354 points.push_back(point);
360 points.push_back(point);
366 points.push_back(point);
420 qFatal(
"The height of the fixed rhomboid side cannot be 0.");
423 std::vector<QPointF> points;
432 points.push_back(point);
433 qDebug() <<
"Start point:" << point;
441 points.push_back(point);
447 points.push_back(point);
453 points.push_back(point);
463 points.push_back(point);
469 points.push_back(point);
475 points.push_back(point);
485 points.push_back(point);
491 points.push_back(point);
497 points.push_back(point);
507 points.push_back(point);
513 points.push_back(point);
519 points.push_back(point);
605 "Both m_integrationScopeRhombWidth and m_integrationScopeRhombHeight of "
606 "rhomboid integration scope cannot be 0.");
709 QString text(
"Context:");
711 text += QString(
"data kind: %1").arg(
static_cast<int>(
m_dataKind));
713 text += QString(
" isMouseDragging: %1 -- wasMouseDragging: %2")
720 text += QString(
" -- currentDragPoint : (%1, %2)")
724 text += QString(
" -- lastCursorHoveredPoint : (%1, %2)")
732 text +=
" -- dragging from left to right";
734 text +=
" -- dragging from right to left";
736 text +=
" -- dragging from top to bottom";
738 text +=
" -- dragging from bottom to top";
745 text += QString(
" -- xRange: (%1, %2)").arg(
m_xRange.lower).arg(
m_xRange.upper);
747 text += QString(
" -- yRange: (%1, %2)").arg(
m_yRange.lower).arg(
m_yRange.upper);
749 text += QString(
" -- wasClickOnXAxis: %1").arg(
m_wasClickOnXAxis ?
"true" :
"false");
750 text += QString(
" -- wasClickOnYAxis: %1").arg(
m_wasClickOnYAxis ?
"true" :
"false");
753 text += QString(
" -- xRegionRangeStart: %1 -- xRegionRangeEnd: %2")
757 text += QString(
" -- yRegionRangeStart: %1 -- yRegionRangeEnd: %2")
761 text += QString(
" -- xDelta: %1 -- yDelta: %2").arg(
m_xDelta).arg(
m_yDelta);
double m_xRegionRangeStart
Qt::MouseButtons m_mouseButtonsAtMousePress
SelectionPolygon m_selectionPolygon
virtual ~BasePlotContext()
IntegrationScopeBaseCstSPtr msp_integrationScope
DragDirections recordDragDirections()
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
void updateIntegrationScopeRect()
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_wassKeyBoardDragging
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