Line | |
---|
1 | #ifndef RTGUI_KEYWORD_H
|
---|
2 | #define RTGUI_KEYWORD_H
|
---|
3 |
|
---|
4 | #include <QtGui>
|
---|
5 |
|
---|
6 | namespace RTGUI {
|
---|
7 |
|
---|
8 | class t_keyword {
|
---|
9 | public:
|
---|
10 | enum e_type {checkbox, combobox, lineedit, radiobutton,
|
---|
11 | selwin, spinbox, uniline, e_type_max};
|
---|
12 |
|
---|
13 | t_keyword(QString line, QTextStream& inStream);
|
---|
14 | ~t_keyword();
|
---|
15 |
|
---|
16 | const QString& name() const {return _name;}
|
---|
17 | bool ok() const {return _ok;}
|
---|
18 | QWidget* createWidget(const QString& fldMask);
|
---|
19 | const QStringList& values() const {return _values;}
|
---|
20 |
|
---|
21 | private:
|
---|
22 | bool _ok;
|
---|
23 | QString _name;
|
---|
24 | QStringList _values;
|
---|
25 | e_type _type;
|
---|
26 | QWidget* _widget;
|
---|
27 | };
|
---|
28 |
|
---|
29 | } // namespace RTGUI
|
---|
30 |
|
---|
31 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.