|
a/src/qtgui/confgui/confgui.h |
|
b/src/qtgui/confgui/confgui.h |
|
... |
|
... |
102 |
|
102 |
|
103 |
// Int
|
103 |
// Int
|
104 |
class ConfParamIntW : public ConfParamW {
|
104 |
class ConfParamIntW : public ConfParamW {
|
105 |
Q_OBJECT
|
105 |
Q_OBJECT
|
106 |
public:
|
106 |
public:
|
|
|
107 |
// The default value is only used if none exists in the sample
|
|
|
108 |
// configuration file. Defaults are normally set in there.
|
107 |
ConfParamIntW(QWidget *parent, ConfLink cflink,
|
109 |
ConfParamIntW(QWidget *parent, ConfLink cflink,
|
108 |
const QString& lbltxt,
|
110 |
const QString& lbltxt,
|
109 |
const QString& tltptxt,
|
111 |
const QString& tltptxt,
|
110 |
int minvalue = INT_MIN,
|
112 |
int minvalue = INT_MIN,
|
111 |
int maxvalue = INT_MAX);
|
113 |
int maxvalue = INT_MAX,
|
|
|
114 |
int defaultvalue = 0);
|
112 |
virtual void loadValue();
|
115 |
virtual void loadValue();
|
113 |
public slots:
|
116 |
public slots:
|
114 |
virtual void setEnabled(bool i) {if(m_sb) ((QWidget*)m_sb)->setEnabled(i);}
|
117 |
virtual void setEnabled(bool i) {if(m_sb) ((QWidget*)m_sb)->setEnabled(i);}
|
115 |
protected:
|
118 |
protected:
|
116 |
QSpinBox *m_sb;
|
119 |
QSpinBox *m_sb;
|
|
|
120 |
int m_defaultvalue;
|
117 |
};
|
121 |
};
|
118 |
|
122 |
|
119 |
// Arbitrary string
|
123 |
// Arbitrary string
|
120 |
class ConfParamStrW : public ConfParamW {
|
124 |
class ConfParamStrW : public ConfParamW {
|
121 |
Q_OBJECT
|
125 |
Q_OBJECT
|