CycloBranch
cNeutralLossesListWidget.h
Go to the documentation of this file.
1
7#ifndef _CNEUTRALLOSSESLISTWIDGET_H
8#define _CNEUTRALLOSSESLISTWIDGET_H
9
10#include <string>
11#include <QListWidget>
12#include <QHBoxLayout>
13#include <QVBoxLayout>
14
15
16// forward declaration
17class QPushButton;
18class QHBoxLayout;
19class QVBoxLayout;
20
21
25class cNeutralLossesListWidget : public QWidget
26{
27 Q_OBJECT
28
29public:
30
31
38 cNeutralLossesListWidget(bool showdefaultbutton, bool showhconbutton, QObject* parent);
39
40
45
46
51 QListWidget* getList();
52
53
58 void addItem(QString formula);
59
60
61private:
62 QObject* parent;
63
64 bool showdefaultbutton;
65 bool showhconbutton;
66
67 QListWidget* list;
68 QPushButton* selectallbutton;
69 QPushButton* clearallbutton;
70 QPushButton* addbutton;
71 QPushButton* removebutton;
72 QPushButton* defaultbutton;
73 QPushButton* hconbutton;
74
75 QHBoxLayout* hbox;
76 QVBoxLayout* vbox1;
77 QVBoxLayout* vbox2;
78
79
80private slots:
81
82 void selectAllItems();
83
84 void clearAllItems();
85
86 void addEmptyItem();
87
88 void removeItem();
89
90 void setDefaultItems();
91
92 void setHCON();
93
94};
95
96#endif
The widget for selection of types of neutral losses.
Definition: cNeutralLossesListWidget.h:26
void addItem(QString formula)
Add a neutral loss.
Definition: cNeutralLossesListWidget.cpp:105
cNeutralLossesListWidget(bool showdefaultbutton, bool showhconbutton, QObject *parent)
The constructor.
Definition: cNeutralLossesListWidget.cpp:9
~cNeutralLossesListWidget()
The destructor.
Definition: cNeutralLossesListWidget.cpp:81
QListWidget * getList()
Access to QListWidget.
Definition: cNeutralLossesListWidget.cpp:100