libpappsomspp
Library for mass spectrometry
Loading...
Searching...
No Matches
ticxicchromtraceplotwidget.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 "
basetraceplotwidget.h
"
47
48
49
namespace
pappso
50
{
51
52
53
class
PMSPP_LIB_DECL
TicXicChromTracePlotWidget
:
public
BaseTracePlotWidget
54
{
55
Q_OBJECT;
56
57
public
:
58
explicit
TicXicChromTracePlotWidget
(QWidget *parent,
59
const
QString &x_axis_label,
60
const
QString &y_axis_label);
61
62
virtual
~TicXicChromTracePlotWidget
();
63
64
/******* Mouse and keyboard event handlers *******/
65
/******* Mouse and keyboard event handlers *******/
66
virtual
void
keyPressEvent
(QKeyEvent *event)
override
;
67
virtual
void
keyReleaseEvent
(QKeyEvent *event)
override
;
68
69
virtual
void
mouseMoveHandler
(QMouseEvent *event)
override
;
70
71
virtual
void
mousePressHandler
(QMouseEvent *event)
override
;
72
virtual
void
mouseReleaseHandler
(QMouseEvent *event)
override
;
73
74
virtual
void
mouseMoveHandlerNotDraggingCursor
()
override
;
75
virtual
void
mouseMoveHandlerDraggingCursor
()
override
;
76
/******* Mouse and keyboard event handlers *******/
77
78
signals:
79
80
void
mousePressEventSignal
(
const
BasePlotContext
&context);
81
void
mouseReleaseEventSignal
(
const
BasePlotContext
&context);
82
};
83
84
85
}
// namespace pappso
basetraceplotwidget.h
pappso::BasePlotContext
Definition
baseplotcontext.h:53
pappso::BaseTracePlotWidget::BaseTracePlotWidget
BaseTracePlotWidget(QWidget *parent=0)
Definition
basetraceplotwidget.cpp:44
pappso::TicXicChromTracePlotWidget::mousePressHandler
virtual void mousePressHandler(QMouseEvent *event) override
Record the clicks of the mouse.
Definition
ticxicchromtraceplotwidget.cpp:118
pappso::TicXicChromTracePlotWidget::mouseMoveHandlerDraggingCursor
virtual void mouseMoveHandlerDraggingCursor() override
Definition
ticxicchromtraceplotwidget.cpp:110
pappso::TicXicChromTracePlotWidget::keyReleaseEvent
virtual void keyReleaseEvent(QKeyEvent *event) override
Handle specific key codes and trigger respective actions.
Definition
ticxicchromtraceplotwidget.cpp:76
pappso::TicXicChromTracePlotWidget::mouseReleaseEventSignal
void mouseReleaseEventSignal(const BasePlotContext &context)
pappso::TicXicChromTracePlotWidget::mouseMoveHandlerNotDraggingCursor
virtual void mouseMoveHandlerNotDraggingCursor() override
Definition
ticxicchromtraceplotwidget.cpp:103
pappso::TicXicChromTracePlotWidget::TicXicChromTracePlotWidget
TicXicChromTracePlotWidget(QWidget *parent, const QString &x_axis_label, const QString &y_axis_label)
Definition
ticxicchromtraceplotwidget.cpp:43
pappso::TicXicChromTracePlotWidget::mousePressEventSignal
void mousePressEventSignal(const BasePlotContext &context)
pappso::TicXicChromTracePlotWidget::keyPressEvent
virtual void keyPressEvent(QKeyEvent *event) override
Set the m_pressedKeyCode to the key code in event.
Definition
ticxicchromtraceplotwidget.cpp:62
pappso::TicXicChromTracePlotWidget::mouseMoveHandler
virtual void mouseMoveHandler(QMouseEvent *event) override
Handle mouse movements, in particular record all the last visited points.
Definition
ticxicchromtraceplotwidget.cpp:96
pappso::TicXicChromTracePlotWidget::mouseReleaseHandler
virtual void mouseReleaseHandler(QMouseEvent *event) override
React to the release of the mouse buttons.
Definition
ticxicchromtraceplotwidget.cpp:128
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
ticxicchromtraceplotwidget.h
Generated on Tue Sep 23 2025 09:36:37 for libpappsomspp by
1.13.2