libpappsomspp
Library for mass spectrometry
Loading...
Searching...
No Matches
ticxicchromdriftspeccolormapplotwidget.cpp
Go to the documentation of this file.
1
/* This code comes right from the msXpertSuite software project.
2
*
3
* msXpertSuite - mass spectrometry software suite
4
* -----------------------------------------------
5
* Copyright(C) 2009,...,2018 Filippo Rusconi
6
*
7
* http://www.msxpertsuite.org
8
*
9
* This program is free software: you can redistribute it and/or modify
10
* it under the terms of the GNU General Public License as published by
11
* the Free Software Foundation, either version 3 of the License, or
12
* (at your option) any later version.
13
*
14
* This program is distributed in the hope that it will be useful,
15
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
* GNU General Public License for more details.
18
*
19
* You should have received a copy of the GNU General Public License
20
* along with this program. If not, see <http://www.gnu.org/licenses/>.
21
*
22
* END software license
23
*/
24
25
26
/////////////////////// StdLib includes
27
28
29
/////////////////////// Qt includes
30
#include <QVector>
31
32
33
/////////////////////// Local includes
34
#include "
ticxicchromdriftspeccolormapplotwidget.h
"
35
36
37
namespace
pappso
38
{
39
40
41
TicXicChromDriftSpecColorMapPlotWidget::TicXicChromDriftSpecColorMapPlotWidget
(
42
QWidget *parent,
const
QString &x_axis_label,
const
QString &y_axis_label)
43
:
BaseColorMapPlotWidget
(parent, x_axis_label, y_axis_label)
44
{
45
}
46
47
48
TicXicChromDriftSpecColorMapPlotWidget::~TicXicChromDriftSpecColorMapPlotWidget
()
49
{
50
}
51
52
53
//! Set the \c m_pressedKeyCode to the key code in \p event.
54
void
55
TicXicChromDriftSpecColorMapPlotWidget::keyPressEvent
(QKeyEvent *event)
56
{
57
BasePlotWidget::keyPressEvent
(event);
58
}
59
60
61
//! Handle specific key codes and trigger respective actions.
62
void
63
TicXicChromDriftSpecColorMapPlotWidget::keyReleaseEvent
(QKeyEvent *event)
64
{
65
BasePlotWidget::keyReleaseEvent
(event);
66
}
67
68
69
//! Handle mouse movements, in particular record all the last visited points.
70
/*!
71
72
This function is reponsible for storing at each time the last visited point
73
in the graph. Here, point is intended as any x/y coordinate in the plot
74
widget viewport, not a graph point.
75
76
The stored values are then the basis for a large set of calculations
77
throughout all the plot widget.
78
79
\param pointer to QMouseEvent from which to retrieve the coordinates of the
80
visited viewport points.
81
*/
82
void
83
TicXicChromDriftSpecColorMapPlotWidget::mouseMoveHandler
(QMouseEvent *event)
84
{
85
BasePlotWidget::mouseMoveHandler
(event);
86
}
87
88
89
void
90
TicXicChromDriftSpecColorMapPlotWidget::mouseMoveHandlerNotDraggingCursor
(QMouseEvent *event)
91
{
92
BasePlotWidget::mouseMoveHandlerNotDraggingCursor
(event);
93
}
94
95
void
96
TicXicChromDriftSpecColorMapPlotWidget::mouseMoveHandlerDraggingCursor
(QMouseEvent *event)
97
{
98
BasePlotWidget::mouseMoveHandlerDraggingCursor
(event);
99
}
100
101
102
//! Record the clicks of the mouse.
103
void
104
TicXicChromDriftSpecColorMapPlotWidget::mousePressHandler
(QMouseEvent *event)
105
{
106
BasePlotWidget::mousePressHandler
(event);
107
}
108
109
110
//! React to the release of the mouse buttons.
111
void
112
TicXicChromDriftSpecColorMapPlotWidget::mouseReleaseHandler
(QMouseEvent *event)
113
{
114
BasePlotWidget::mouseReleaseHandler
(event);
115
}
116
117
118
}
// namespace pappso
pappso::BaseColorMapPlotWidget::BaseColorMapPlotWidget
BaseColorMapPlotWidget(QWidget *parent)
Definition
basecolormapplotwidget.cpp:71
pappso::BasePlotWidget::keyPressEvent
virtual void keyPressEvent(QKeyEvent *event)
KEYBOARD-related EVENTS.
Definition
baseplotwidget.cpp:607
pappso::BasePlotWidget::mouseMoveHandlerDraggingCursor
virtual void mouseMoveHandlerDraggingCursor(QMouseEvent *event)
Definition
baseplotwidget.cpp:1033
pappso::BasePlotWidget::mouseMoveHandlerNotDraggingCursor
virtual void mouseMoveHandlerNotDraggingCursor(QMouseEvent *event)
Definition
baseplotwidget.cpp:969
pappso::BasePlotWidget::mousePressHandler
virtual void mousePressHandler(QMouseEvent *event)
KEYBOARD-related EVENTS.
Definition
baseplotwidget.cpp:1305
pappso::BasePlotWidget::mouseReleaseHandler
virtual void mouseReleaseHandler(QMouseEvent *event)
Definition
baseplotwidget.cpp:1420
pappso::BasePlotWidget::mouseMoveHandler
virtual void mouseMoveHandler(QMouseEvent *event)
KEYBOARD-related EVENTS.
Definition
baseplotwidget.cpp:926
pappso::BasePlotWidget::keyReleaseEvent
virtual void keyReleaseEvent(QKeyEvent *event)
Handle specific key codes and trigger respective actions.
Definition
baseplotwidget.cpp:635
pappso::TicXicChromDriftSpecColorMapPlotWidget::mouseMoveHandlerDraggingCursor
virtual void mouseMoveHandlerDraggingCursor(QMouseEvent *event) override
Definition
ticxicchromdriftspeccolormapplotwidget.cpp:96
pappso::TicXicChromDriftSpecColorMapPlotWidget::keyReleaseEvent
virtual void keyReleaseEvent(QKeyEvent *event) override
Handle specific key codes and trigger respective actions.
Definition
ticxicchromdriftspeccolormapplotwidget.cpp:63
pappso::TicXicChromDriftSpecColorMapPlotWidget::mouseReleaseHandler
virtual void mouseReleaseHandler(QMouseEvent *event) override
React to the release of the mouse buttons.
Definition
ticxicchromdriftspeccolormapplotwidget.cpp:112
pappso::TicXicChromDriftSpecColorMapPlotWidget::keyPressEvent
virtual void keyPressEvent(QKeyEvent *event) override
Set the m_pressedKeyCode to the key code in event.
Definition
ticxicchromdriftspeccolormapplotwidget.cpp:55
pappso::TicXicChromDriftSpecColorMapPlotWidget::mouseMoveHandlerNotDraggingCursor
virtual void mouseMoveHandlerNotDraggingCursor(QMouseEvent *event) override
Definition
ticxicchromdriftspeccolormapplotwidget.cpp:90
pappso::TicXicChromDriftSpecColorMapPlotWidget::mouseMoveHandler
virtual void mouseMoveHandler(QMouseEvent *event) override
Handle mouse movements, in particular record all the last visited points.
Definition
ticxicchromdriftspeccolormapplotwidget.cpp:83
pappso::TicXicChromDriftSpecColorMapPlotWidget::~TicXicChromDriftSpecColorMapPlotWidget
virtual ~TicXicChromDriftSpecColorMapPlotWidget()
Definition
ticxicchromdriftspeccolormapplotwidget.cpp:48
pappso::TicXicChromDriftSpecColorMapPlotWidget::TicXicChromDriftSpecColorMapPlotWidget
TicXicChromDriftSpecColorMapPlotWidget(QWidget *parent, const QString &x_axis_label, const QString &y_axis_label)
Definition
ticxicchromdriftspeccolormapplotwidget.cpp:41
pappso::TicXicChromDriftSpecColorMapPlotWidget::mousePressHandler
virtual void mousePressHandler(QMouseEvent *event) override
Record the clicks of the mouse.
Definition
ticxicchromdriftspeccolormapplotwidget.cpp:104
pappso
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition
aa.cpp:39
ticxicchromdriftspeccolormapplotwidget.h
pappsomspp
gui
plotwidget
ticxicchromdriftspeccolormapplotwidget.cpp
Generated on
for libpappsomspp by
1.15.0