CycloBranch
cBranchedWidget.h
Go to the documentation of this file.
1
7#ifndef _CBRANCHEDWIDGET_H
8#define _CBRANCHEDWIDGET_H
9
10#include <QWidget>
11
13#include "gui/cLinearWidget.h"
14
15// forward declaration
16class QPaintEvent;
17
18
22class cBranchedWidget : public QWidget
23{
24 Q_OBJECT
25
26public:
27
28
33
34
40 void initialize(cParameters* parameters, cTheoreticalSpectrum* theoreticalspectrum);
41
42
48 void exportToPDF(QString filename, bool postscript);
49
50
55 void exportToPNG(QString filename);
56
57
62 void exportToSVG(QString filename);
63
64
69 void setReportIsomers(bool reportisomers);
70
71
76 void hidePeakLabels(bool state);
77
78
79protected:
80
81
86 void paintEvent(QPaintEvent *event);
87
88
89private:
90
91 void paint(QPainter& painter);
92
93 cParameters* parameters;
94 cTheoreticalSpectrum* theoreticalspectrum;
95
96 string visibleionseries;
97 string visibleneutralloss;
98 int visibletrotationid;
99
100 bool reportisomers;
101 bool hidelabels;
102
103
104private slots:
105
106 void ionSeriesChanged(QString text);
107
108 void neutralLossChanged(QString text);
109
110 void trotationChanged(int index);
111
112};
113
114#endif
Visualization of a linear peptide.
The representation of a theoretical mass spectrum.
Visualization of a branched peptide.
Definition: cBranchedWidget.h:23
void exportToSVG(QString filename)
Export peptide scene into a SVG file.
Definition: cBranchedWidget.cpp:82
void initialize(cParameters *parameters, cTheoreticalSpectrum *theoreticalspectrum)
Initialize the widget.
Definition: cBranchedWidget.cpp:25
cBranchedWidget()
The constructor.
Definition: cBranchedWidget.cpp:12
void exportToPDF(QString filename, bool postscript)
Export peptide into a PDF or a PS file.
Definition: cBranchedWidget.cpp:31
void paintEvent(QPaintEvent *event)
Handle the paint event.
Definition: cBranchedWidget.cpp:115
void hidePeakLabels(bool state)
Hide/Show labels of peaks.
Definition: cBranchedWidget.cpp:109
void exportToPNG(QString filename)
Export peptide scene into a PNG file.
Definition: cBranchedWidget.cpp:62
void setReportIsomers(bool reportisomers)
Set the report isomers state.
Definition: cBranchedWidget.cpp:103
The class storing parameters of the application.
Definition: cParameters.h:82
The class representing a theoretical mass spectrum.
Definition: cTheoreticalSpectrum.h:106