Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
VariableComboBox.h
Go to the documentation of this file.
1#pragma once
3
4namespace sf
5{
6
11{
12 Q_OBJECT
13 Q_PROPERTY(bool focusFrame READ hasFocusFrame WRITE setFocusFrame)
14 Q_PROPERTY(int nameLevel READ nameLevel WRITE setNameLevel)
15
16 public:
20 explicit VariableComboBox(QWidget* parent = nullptr);
21
26 void setFocusFrame(bool yn);
27
32 bool hasFocusFrame() const;
33
37 int nameLevel() const;
38
42 void setNameLevel(int level = -1);
43
47 void setItems(const QStringList& string_list);
48
49 protected:
53 bool isRequiredProperty(const QString& name) override;
54
58 void applyReadOnly(bool yn) override;
59
60 private:
64 class Private;
65
66 Q_DISABLE_COPY(VariableComboBox)
67};
68
69}// namespace sf
Widget for editing sf::Variable value types integer, floating point and single line string.
Definition VariableComboBox.h:11
Base class for sf::Variable based widgets.
Definition VariableWidgetBase.h:21
#define _GII_CLASS
Definition gii/global.h:38
Definition Application.h:10
TStrings< std::string > string_list
Vector of std::strings with additional functionality.
Definition TStrings.h:97