libpappsomspp
Library for mass spectrometry
Loading...
Searching...
No Matches
driftspecmassspeccolormapplotwidget.h
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
#pragma once
27
28
/////////////////////// StdLib includes
29
30
31
/////////////////////// Qt includes
32
#include <QObject>
33
#include <QString>
34
#include <QWidget>
35
#include <QBrush>
36
#include <QColor>
37
#include <QVector>
38
39
40
/////////////////////// QCustomPlot
41
#include <qcustomplot.h>
42
43
44
/////////////////////// Local includes
45
#include "
pappsomspp/export-import-config.h
"
46
#include "
basecolormapplotwidget.h
"
47
48
49
namespace
pappso
50
{
51
52
53
class
PMSPP_LIB_DECL
DriftSpecMassSpecColorMapPlotWidget
54
:
public
BaseColorMapPlotWidget
55
{
56
Q_OBJECT;
57
58
public
:
59
explicit
DriftSpecMassSpecColorMapPlotWidget
(QWidget *parent,
60
const
QString &x_axis_label,
61
const
QString &y_axis_label);
62
63
virtual
~DriftSpecMassSpecColorMapPlotWidget
();
64
65
virtual
void
keyPressEvent
(QKeyEvent *event)
override
;
66
virtual
void
keyReleaseEvent
(QKeyEvent *event)
override
;
67
68
virtual
void
mouseMoveHandler
(QMouseEvent *event)
override
;
69
70
virtual
void
mousePressHandler
(QMouseEvent *event)
override
;
71
virtual
void
mouseReleaseHandler
(QMouseEvent *event)
override
;
72
73
virtual
void
mouseMoveHandlerNotDraggingCursor
()
override
;
74
virtual
void
mouseMoveHandlerDraggingCursor
()
override
;
75
76
signals:
77
78
// Here we have signals that are specific of the mass spectrum-oriented
79
// version of the plot widget.
80
81
protected
:
82
};
83
84
85
}
// namespace pappso
basecolormapplotwidget.h
pappso::BaseColorMapPlotWidget::BaseColorMapPlotWidget
BaseColorMapPlotWidget(QWidget *parent)
Definition
basecolormapplotwidget.cpp:71
pappso::DriftSpecMassSpecColorMapPlotWidget::keyPressEvent
virtual void keyPressEvent(QKeyEvent *event) override
Set the m_pressedKeyCode to the key code in event.
Definition
driftspecmassspeccolormapplotwidget.cpp:57
pappso::DriftSpecMassSpecColorMapPlotWidget::mouseMoveHandler
virtual void mouseMoveHandler(QMouseEvent *event) override
Handle mouse movements, in particular record all the last visited points.
Definition
driftspecmassspeccolormapplotwidget.cpp:85
pappso::DriftSpecMassSpecColorMapPlotWidget::mouseReleaseHandler
virtual void mouseReleaseHandler(QMouseEvent *event) override
React to the release of the mouse buttons.
Definition
driftspecmassspeccolormapplotwidget.cpp:115
pappso::DriftSpecMassSpecColorMapPlotWidget::keyReleaseEvent
virtual void keyReleaseEvent(QKeyEvent *event) override
Handle specific key codes and trigger respective actions.
Definition
driftspecmassspeccolormapplotwidget.cpp:65
pappso::DriftSpecMassSpecColorMapPlotWidget::mouseMoveHandlerDraggingCursor
virtual void mouseMoveHandlerDraggingCursor() override
Definition
driftspecmassspeccolormapplotwidget.cpp:99
pappso::DriftSpecMassSpecColorMapPlotWidget::mouseMoveHandlerNotDraggingCursor
virtual void mouseMoveHandlerNotDraggingCursor() override
Definition
driftspecmassspeccolormapplotwidget.cpp:92
pappso::DriftSpecMassSpecColorMapPlotWidget::DriftSpecMassSpecColorMapPlotWidget
DriftSpecMassSpecColorMapPlotWidget(QWidget *parent, const QString &x_axis_label, const QString &y_axis_label)
Definition
driftspecmassspeccolormapplotwidget.cpp:43
pappso::DriftSpecMassSpecColorMapPlotWidget::mousePressHandler
virtual void mousePressHandler(QMouseEvent *event) override
Record the clicks of the mouse.
Definition
driftspecmassspeccolormapplotwidget.cpp:107
export-import-config.h
PMSPP_LIB_DECL
#define PMSPP_LIB_DECL
Definition
export-import-config.h:14
pappso
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition
aa.cpp:39
pappsomspp
gui
plotwidget
driftspecmassspeccolormapplotwidget.h
Generated on Tue Sep 23 2025 09:36:37 for libpappsomspp by
1.13.2