Loading...
Searching...
No Matches
ticxicchromtraceplotwidget.h
Go to the documentation of this file.
/* This code comes right from the msXpertSuite software project.
*
* msXpertSuite - mass spectrometry software suite
* -----------------------------------------------
* Copyright(C) 2009,...,2018 Filippo Rusconi
*
* http://www.msxpertsuite.org
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* END software license
*/
#pragma once
/////////////////////// StdLib includes
/////////////////////// Qt includes
#include <QObject>
#include <QString>
#include <QWidget>
#include <QBrush>
#include <QColor>
#include <QVector>
/////////////////////// QCustomPlot
#include <qcustomplot.h>
/////////////////////// Local includes
#include "pappsomspp/export-import-config.h"
#include "basetraceplotwidget.h"
namespace pappso
{
class PMSPP_LIB_DECL TicXicChromTracePlotWidget : public BaseTracePlotWidget
{
Q_OBJECT;
public:
explicit TicXicChromTracePlotWidget(QWidget *parent,
const QString &x_axis_label,
const QString &y_axis_label);
virtual ~TicXicChromTracePlotWidget();
/******* Mouse and keyboard event handlers *******/
/******* Mouse and keyboard event handlers *******/
virtual void keyPressEvent(QKeyEvent *event) override;
virtual void keyReleaseEvent(QKeyEvent *event) override;
virtual void mouseMoveHandler(QMouseEvent *event) override;
virtual void mousePressHandler(QMouseEvent *event) override;
virtual void mouseReleaseHandler(QMouseEvent *event) override;
virtual void mouseMoveHandlerNotDraggingCursor(QMouseEvent *event) override;
virtual void mouseMoveHandlerDraggingCursor(QMouseEvent *event) override;
/******* Mouse and keyboard event handlers *******/
signals:
void mousePressEventSignal(QMouseEvent *event, const pappso::BasePlotContext &context);
void mouseReleaseEventSignal(QMouseEvent *event, const pappso::BasePlotContext &context);
};
} // namespace pappso
basetraceplotwidget.h
pappso::BasePlotContext
Definition baseplotcontext.h:53
pappso::BaseTracePlotWidget::BaseTracePlotWidget
BaseTracePlotWidget(QWidget *parent=0)
Definition basetraceplotwidget.cpp:43
pappso::TicXicChromTracePlotWidget::mousePressHandler
virtual void mousePressHandler(QMouseEvent *event) override
Record the clicks of the mouse.
Definition ticxicchromtraceplotwidget.cpp:119
pappso::TicXicChromTracePlotWidget::mousePressEventSignal
void mousePressEventSignal(QMouseEvent *event, const pappso::BasePlotContext &context)
pappso::TicXicChromTracePlotWidget::keyReleaseEvent
virtual void keyReleaseEvent(QKeyEvent *event) override
Handle specific key codes and trigger respective actions.
Definition ticxicchromtraceplotwidget.cpp:77
pappso::TicXicChromTracePlotWidget::TicXicChromTracePlotWidget
TicXicChromTracePlotWidget(QWidget *parent, const QString &x_axis_label, const QString &y_axis_label)
Definition ticxicchromtraceplotwidget.cpp:43
pappso::TicXicChromTracePlotWidget::mouseReleaseEventSignal
void mouseReleaseEventSignal(QMouseEvent *event, const pappso::BasePlotContext &context)
pappso::TicXicChromTracePlotWidget::keyPressEvent
virtual void keyPressEvent(QKeyEvent *event) override
Set the m_pressedKeyCode to the key code in event.
Definition ticxicchromtraceplotwidget.cpp:63
pappso::TicXicChromTracePlotWidget::mouseMoveHandler
virtual void mouseMoveHandler(QMouseEvent *event) override
Handle mouse movements, in particular record all the last visited points.
Definition ticxicchromtraceplotwidget.cpp:97
pappso::TicXicChromTracePlotWidget::mouseMoveHandlerNotDraggingCursor
virtual void mouseMoveHandlerNotDraggingCursor(QMouseEvent *event) override
Definition ticxicchromtraceplotwidget.cpp:104
pappso::TicXicChromTracePlotWidget::mouseReleaseHandler
virtual void mouseReleaseHandler(QMouseEvent *event) override
React to the release of the mouse buttons.
Definition ticxicchromtraceplotwidget.cpp:129
pappso::TicXicChromTracePlotWidget::mouseMoveHandlerDraggingCursor
virtual void mouseMoveHandlerDraggingCursor(QMouseEvent *event) override
Definition ticxicchromtraceplotwidget.cpp:111
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