libpappsomspp
Library for mass spectrometry
driftspectraceplotwidget.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 #include <vector>
28 
29 
30 /////////////////////// Qt includes
31 #include <QVector>
32 
33 
34 /////////////////////// Local includes
36 #include "../../pappsoexception.h"
37 
38 
39 namespace pappso
40 {
41 
42 
44  const QString &x_axis_label,
45  const QString &y_axis_label)
46  : BaseTracePlotWidget(parent, x_axis_label, y_axis_label)
47 {
48  // Set the context to be of kind DataKind::dt
49 
51 
52  // qDebug() << "Data kind:" << static_cast<int>(m_context.m_dataKind);
53 }
54 
55 
57 {
58 }
59 
60 
61 //! Set the \c m_pressedKeyCode to the key code in \p event.
62 void
64 {
65  // qDebug() << "ENTER";
66 
68 
69  // qDebug() << "Going to emit keyPressEventSignal(m_context);";
70 
72 }
73 
74 
75 //! Handle specific key codes and trigger respective actions.
76 void
78 {
80 }
81 
82 
83 //! Handle mouse movements, in particular record all the last visited points.
84 /*!
85 
86  This function is reponsible for storing at each time the last visited point
87  in the graph. Here, point is intended as any x/y coordinate in the plot
88  widget viewport, not a graph point.
89 
90  The stored values are then the basis for a large set of calculations
91  throughout all the plot widget.
92 
93  \param pointer to QMouseEvent from which to retrieve the coordinates of the
94  visited viewport points.
95  */
96 void
98 {
100 }
101 
102 
103 void
105 {
107 }
108 
109 
110 void
112 {
114 }
115 
116 
117 //! Record the clicks of the mouse.
118 void
120 {
122 }
123 
124 
125 //! React to the release of the mouse buttons.
126 void
128 {
130 }
131 
132 
133 } // namespace pappso
virtual void mouseMoveHandlerDraggingCursor()
virtual void keyPressEvent(QKeyEvent *event)
KEYBOARD-related EVENTS.
virtual void mouseMoveHandlerNotDraggingCursor()
virtual void mousePressHandler(QMouseEvent *event)
KEYBOARD-related EVENTS.
virtual void mouseReleaseHandler(QMouseEvent *event)
virtual void mouseMoveHandler(QMouseEvent *event)
KEYBOARD-related EVENTS.
virtual void keyReleaseEvent(QKeyEvent *event)
Handle specific key codes and trigger respective actions.
void keyPressEventSignal(const BasePlotContext &context)
BasePlotContext m_context
virtual void mouseMoveHandler(QMouseEvent *event) override
Handle mouse movements, in particular record all the last visited points.
virtual void mousePressHandler(QMouseEvent *event) override
Record the clicks of the mouse.
virtual void mouseMoveHandlerDraggingCursor() override
virtual void keyPressEvent(QKeyEvent *event) override
Set the m_pressedKeyCode to the key code in event.
virtual void mouseReleaseHandler(QMouseEvent *event) override
React to the release of the mouse buttons.
virtual void mouseMoveHandlerNotDraggingCursor() override
DriftSpecTracePlotWidget(QWidget *parent, const QString &x_axis_label, const QString &y_axis_label)
virtual void keyReleaseEvent(QKeyEvent *event) override
Handle specific key codes and trigger respective actions.
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition: aa.cpp:39
@ dt
Drift time.