VAPOR3 3.9.4
VActions.h
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4
5#include <QWidgetAction>
6
7class VIntSpinBox;
8class VCheckBox;
10class VIntLineEdit;
11class VDoubleLineEdit;
12
13#include "VHBoxWidget.h"
14
15class VLineAction : public QWidgetAction {
16 Q_OBJECT
17
18public:
19 VLineAction(const std::string &title, VHBoxWidget *container);
20};
21
27
32
34 Q_OBJECT
35
36public:
37 VSpinBoxAction(const std::string &title, int value);
38
40 void SetValue(int value);
41
42private:
43 VIntSpinBox *_spinBox;
44
45private slots:
46
48 void _spinBoxChanged(int value);
49
50signals:
51 void editingFinished(int);
52};
53
58
63
65 Q_OBJECT
66
67public:
68 VCheckBoxAction(const std::string &title, bool value);
69
71 void SetValue(bool value);
72
73private:
74 VCheckBox *_checkBox;
75
76private slots:
77
79 void _checkBoxChanged(bool value);
80
81signals:
82 void clicked(bool);
83};
84
89
94
96 Q_OBJECT
97
98public:
99 VStringLineEditAction(const std::string &title, std::string value);
100
102 void SetValue(const std::string &value);
103
104private:
105 VStringLineEdit *_lineEdit;
106
107private slots:
108
110 void _lineEditChanged(int value);
111
112signals:
113 void ValueChanged(int);
114};
115
120
125
127 Q_OBJECT
128
129public:
130 VIntLineEditAction(const std::string &title, int value);
131
133 void SetValue(int value);
134
135private:
136 VIntLineEdit *_lineEdit;
137
138private slots:
139
141 void _lineEditChanged(int value);
142
143signals:
144 void ValueChanged(int);
145};
146
151
156
158 Q_OBJECT
159
160public:
161 VDoubleLineEditAction(const std::string &title, double value);
162
164 void SetValue(double value);
165
166private:
167 VDoubleLineEdit *_lineEdit;
168
169private slots:
170
172 void _lineEditChanged(double value);
173
174signals:
175 void ValueChanged(double);
176};
A menu item represented by a VLabel and VCheckBox, wrapped in a VLineItem.
Definition: VActions.h:64
void SetValue(bool value)
Set the checkstate of the VCheckBox (0=unchecked, 1=checked)
void clicked(bool)
VCheckBoxAction(const std::string &title, bool value)
void SetValue(double value)
Set the numeric value held by the VIntLineEdit.
void ValueChanged(double)
VDoubleLineEditAction(const std::string &title, double value)
A wrapper for a QLineEdit that handles user input of type double, and provides Vapor's standard sette...
A menu item represented by a VLabel and VIntLineEdit, wrapped in a VLineItem.
Definition: VActions.h:126
void ValueChanged(int)
void SetValue(int value)
Set the numeric value held by the VIntLineEdit.
VIntLineEditAction(const std::string &title, int value)
A wrapper for a QLineEdit that handles user input of type int, and provides Vapor's standard setters,...
Definition: VIntLineEdit.h:18
VLineAction(const std::string &title, VHBoxWidget *container)
A menu item represented by a VLabel and VSpinBox, wrapped in a VLineItem selection tab in any rendere...
Definition: VActions.h:33
void SetValue(int value)
Set the current integer value held by the VSpinBox.
VSpinBoxAction(const std::string &title, int value)
void editingFinished(int)
A menu item represented by a VLabel and VStringLineEdit, wrapped in a VLineItem.
Definition: VActions.h:95
void SetValue(const std::string &value)
Set the string value held by the VStringLineEdit.
VStringLineEditAction(const std::string &title, std::string value)
A wrapper for a QLineEdit that handles user input of type string, and provides Vapor's standard sette...