libpappsomspp
Library for mass spectrometry
Loading...
Searching...
No Matches
massspectrumjs.h
Go to the documentation of this file.
1/* BEGIN software license
2 *
3 * msXpertSuite - mass spectrometry software suite
4 * -----------------------------------------------
5 * Copyright(C) 2009,...,2018 Filippo Rusconi
6 *
7 * http://www.msxpertsuite.org
8 *
9 * This file is part of the msXpertSuite project.
10 *
11 * The msXpertSuite project is the successor of the massXpert project. This
12 * project now includes various independent modules:
13 *
14 * - massXpert, model polymer chemistries and simulate mass spectrometric data;
15 * - mineXpert, a powerful TIC chromatogram/mass spectrum viewer/miner;
16 *
17 * This program is free software: you can redistribute it and/or modify
18 * it under the terms of the GNU General Public License as published by
19 * the Free Software Foundation, either version 3 of the License, or
20 * (at your option) any later version.
21 *
22 * This program is distributed in the hope that it will be useful,
23 * but WITHOUT ANY WARRANTY; without even the implied warranty of
24 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 * GNU General Public License for more details.
26 *
27 * You should have received a copy of the GNU General Public License
28 * along with this program. If not, see <http://www.gnu.org/licenses/>.
29 *
30 * END software license
31 */
32
33
34#pragma once
35
36
37/////////////////////// Qt includes
38#include <QString>
39#include <QObject>
40#include <QtQml>
41
42
43/////////////////////// Local includes
45#include "jsclassregistrar.h"
47
48
49namespace pappso
50{
51
52 /* BEGIN CLASS JS REFERENCE
53 * namespace: pappso
54 * class name: MassSpectrum
55 */
56
57//! The MassSpectrumJs class provides a JavaScript wrapper around MassSpectrum.
58class PMSPP_LIB_DECL MassSpectrumJs : public QObject
59{
60 Q_OBJECT
61 Q_PROPERTY(int count READ count NOTIFY countChangedSignal)
62 QML_NAMED_ELEMENT(MassSpectrum)
63
64 public:
65 Q_INVOKABLE explicit MassSpectrumJs(QObject *parent = nullptr);
67
68 // Delete assignment operator (QObjects shouldn't be assigned)
70
71 Q_INVOKABLE int count() const;
72 Q_INVOKABLE int getCount() const;
73
74 static void registerJsConstructor(QJSEngine *engine);
75
76 signals:
78
79 private:
81};
82
83
84 /* END CLASS JS REFERENCE
85 * namespace: pappso
86 * class name: MassSpectrum
87 */
88
90
91} // namespace pappso
92
The MassSpectrumJs class provides a JavaScript wrapper around MassSpectrum.
MassSpectrum m_massSpectrum
MassSpectrumJs & operator=(const MassSpectrumJs &)=delete
Q_INVOKABLE MassSpectrumJs(QObject *parent=nullptr)
static void registerJsConstructor(QJSEngine *engine)
Q_INVOKABLE int getCount() const
Class to represent a mass spectrum.
#define PMSPP_LIB_DECL
#define PAPPSO_REGISTER_JS_CLASS(NS_IDENT, CLASS_NAME)
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition aa.cpp:39