|
a/src/qtgui/confgui/confgui.h |
|
b/src/qtgui/confgui/confgui.h |
|
... |
|
... |
74 |
// has a label and some kind of entry widget
|
74 |
// has a label and some kind of entry widget
|
75 |
class ConfParamW : public QWidget {
|
75 |
class ConfParamW : public QWidget {
|
76 |
Q_OBJECT
|
76 |
Q_OBJECT
|
77 |
public:
|
77 |
public:
|
78 |
ConfParamW(QWidget *parent, ConfLink cflink)
|
78 |
ConfParamW(QWidget *parent, ConfLink cflink)
|
79 |
: QWidget(parent), m_cflink(cflink)
|
79 |
: QWidget(parent), m_cflink(cflink), m_fsencoding(false)
|
80 |
{
|
80 |
{
|
81 |
}
|
81 |
}
|
82 |
virtual void loadValue() = 0;
|
82 |
virtual void loadValue() = 0;
|
83 |
|
83 |
virtual void setFsEncoding(bool onoff) {m_fsencoding = onoff;}
|
84 |
protected:
|
84 |
protected:
|
85 |
ConfLink m_cflink;
|
85 |
ConfLink m_cflink;
|
86 |
QHBOXLAYOUT *m_hl;
|
86 |
QHBOXLAYOUT *m_hl;
|
87 |
|
87 |
// File names are encoded as local8bit in the config files. Other
|
|
|
88 |
// are encoded as utf-8
|
|
|
89 |
bool m_fsencoding;
|
88 |
virtual bool createCommon(const QString& lbltxt,
|
90 |
virtual bool createCommon(const QString& lbltxt,
|
89 |
const QString& tltptxt);
|
91 |
const QString& tltptxt);
|
90 |
|
92 |
|
91 |
protected slots:
|
93 |
protected slots:
|
92 |
void setValue(const QString& newvalue);
|
94 |
void setValue(const QString& newvalue);
|
|
... |
|
... |
174 |
signals:
|
176 |
signals:
|
175 |
void entryDeleted(QString);
|
177 |
void entryDeleted(QString);
|
176 |
protected:
|
178 |
protected:
|
177 |
QLISTBOX *m_lb;
|
179 |
QLISTBOX *m_lb;
|
178 |
void listToConf();
|
180 |
void listToConf();
|
179 |
|
|
|
180 |
};
|
181 |
};
|
181 |
|
182 |
|
182 |
// Dir name list
|
183 |
// Dir name list
|
183 |
class ConfParamDNLW : public ConfParamSLW {
|
184 |
class ConfParamDNLW : public ConfParamSLW {
|
184 |
Q_OBJECT
|
185 |
Q_OBJECT
|
|
... |
|
... |
186 |
ConfParamDNLW(QWidget *parent, ConfLink cflink,
|
187 |
ConfParamDNLW(QWidget *parent, ConfLink cflink,
|
187 |
const QString& lbltxt,
|
188 |
const QString& lbltxt,
|
188 |
const QString& tltptxt)
|
189 |
const QString& tltptxt)
|
189 |
: ConfParamSLW(parent, cflink, lbltxt, tltptxt)
|
190 |
: ConfParamSLW(parent, cflink, lbltxt, tltptxt)
|
190 |
{
|
191 |
{
|
|
|
192 |
m_fsencoding = true;
|
191 |
}
|
193 |
}
|
192 |
protected slots:
|
194 |
protected slots:
|
193 |
virtual void showInputDialog();
|
195 |
virtual void showInputDialog();
|
194 |
};
|
196 |
};
|
195 |
|
197 |
|