|
a/src/qtgui/confgui/confgui.h |
|
b/src/qtgui/confgui/confgui.h |
|
... |
|
... |
25 |
#include <limits.h>
|
25 |
#include <limits.h>
|
26 |
|
26 |
|
27 |
#include <qglobal.h>
|
27 |
#include <qglobal.h>
|
28 |
#include <qstring.h>
|
28 |
#include <qstring.h>
|
29 |
#include <qwidget.h>
|
29 |
#include <qwidget.h>
|
30 |
#if QT_VERSION < 0x040000
|
|
|
31 |
#define QHBOXLAYOUT QHBoxLayout
|
|
|
32 |
#define QLISTBOX QListBox
|
|
|
33 |
#else
|
|
|
34 |
#define QHBOXLAYOUT Q3HBoxLayout
|
|
|
35 |
#define QLISTBOX Q3ListBox
|
|
|
36 |
#endif
|
|
|
37 |
|
30 |
|
38 |
#include "refcntr.h"
|
31 |
#include "refcntr.h"
|
39 |
|
32 |
|
40 |
using std::string;
|
33 |
using std::string;
|
41 |
|
34 |
|
42 |
class QHBOXLAYOUT;
|
35 |
class QHBoxLayout;
|
43 |
class QLineEdit;
|
36 |
class QLineEdit;
|
44 |
class QLISTBOX;
|
37 |
class QListWidget;
|
45 |
class QSpinBox;
|
38 |
class QSpinBox;
|
46 |
class QComboBox;
|
39 |
class QComboBox;
|
47 |
class QCheckBox;
|
40 |
class QCheckBox;
|
48 |
class QPushButton;
|
41 |
class QPushButton;
|
49 |
|
42 |
|
|
... |
|
... |
82 |
}
|
75 |
}
|
83 |
virtual void loadValue() = 0;
|
76 |
virtual void loadValue() = 0;
|
84 |
virtual void setFsEncoding(bool onoff) {m_fsencoding = onoff;}
|
77 |
virtual void setFsEncoding(bool onoff) {m_fsencoding = onoff;}
|
85 |
protected:
|
78 |
protected:
|
86 |
ConfLink m_cflink;
|
79 |
ConfLink m_cflink;
|
87 |
QHBOXLAYOUT *m_hl;
|
80 |
QHBoxLayout *m_hl;
|
88 |
// File names are encoded as local8bit in the config files. Other
|
81 |
// File names are encoded as local8bit in the config files. Other
|
89 |
// are encoded as utf-8
|
82 |
// are encoded as utf-8
|
90 |
bool m_fsencoding;
|
83 |
bool m_fsencoding;
|
91 |
virtual bool createCommon(const QString& lbltxt,
|
84 |
virtual bool createCommon(const QString& lbltxt,
|
92 |
const QString& tltptxt);
|
85 |
const QString& tltptxt);
|
|
... |
|
... |
190 |
public:
|
183 |
public:
|
191 |
ConfParamSLW(QWidget *parent, ConfLink cflink,
|
184 |
ConfParamSLW(QWidget *parent, ConfLink cflink,
|
192 |
const QString& lbltxt,
|
185 |
const QString& lbltxt,
|
193 |
const QString& tltptxt);
|
186 |
const QString& tltptxt);
|
194 |
virtual void loadValue();
|
187 |
virtual void loadValue();
|
195 |
QLISTBOX *getListBox() {return m_lb;}
|
188 |
QListWidget *getListBox() {return m_lb;}
|
196 |
|
189 |
|
197 |
public slots:
|
190 |
public slots:
|
198 |
virtual void setEnabled(bool i) {if(m_lb) ((QWidget*)m_lb)->setEnabled(i);}
|
191 |
virtual void setEnabled(bool i) {if(m_lb) ((QWidget*)m_lb)->setEnabled(i);}
|
199 |
protected slots:
|
192 |
protected slots:
|
200 |
virtual void showInputDialog();
|
193 |
virtual void showInputDialog();
|
201 |
void deleteSelected();
|
194 |
void deleteSelected();
|
202 |
signals:
|
195 |
signals:
|
203 |
void entryDeleted(QString);
|
196 |
void entryDeleted(QString);
|
204 |
protected:
|
197 |
protected:
|
205 |
QLISTBOX *m_lb;
|
198 |
QListWidget *m_lb;
|
206 |
void listToConf();
|
199 |
void listToConf();
|
207 |
};
|
200 |
};
|
208 |
|
201 |
|
209 |
// Dir name list
|
202 |
// Dir name list
|
210 |
class ConfParamDNLW : public ConfParamSLW {
|
203 |
class ConfParamDNLW : public ConfParamSLW {
|
|
... |
|
... |
235 |
protected slots:
|
228 |
protected slots:
|
236 |
virtual void showInputDialog();
|
229 |
virtual void showInputDialog();
|
237 |
protected:
|
230 |
protected:
|
238 |
const QStringList m_sl;
|
231 |
const QStringList m_sl;
|
239 |
};
|
232 |
};
|
|
|
233 |
|
|
|
234 |
extern void setSzPol(QWidget *w, QSizePolicy::Policy hpol,
|
|
|
235 |
QSizePolicy::Policy vpol,
|
|
|
236 |
int hstretch, int vstretch);
|
240 |
}
|
237 |
}
|
241 |
|
238 |
|
242 |
#endif /* _confgui_h_included_ */
|
239 |
#endif /* _confgui_h_included_ */
|