Switch to unified view

a/src/qtgui/confgui/confguiindex.h b/src/qtgui/confgui/confguiindex.h
...
...
5
/**
5
/**
6
 * Classes to handle the gui for the indexing configuration. These group 
6
 * Classes to handle the gui for the indexing configuration. These group 
7
 * confgui elements, linked to configuration parameters, into panels.
7
 * confgui elements, linked to configuration parameters, into panels.
8
 */
8
 */
9
9
10
#include <qwidget.h>
10
#include <QWidget>
11
#include <qstring.h>
11
#include <QString>
12
#if QT_VERSION < 0x040000
13
#include <qgroupbox.h>
14
#include <qtabdialog.h>
15
#define QTABDIALOG QTabDialog
16
#else // Qt4 -> 
17
#include <Q3GroupBox>
12
#include <QGroupBox>
18
#include <Q3TabDialog>
13
#include <QDialog>
19
#define QTABDIALOG Q3TabDialog
14
#include <QDialogButtonBox>
20
#endif // QT 3/4
15
#include <QTabWidget>
16
#include <QListWidgetItem>
21
17
22
#include <string>
18
#include <string>
23
#include <list>
19
#include <list>
24
using std::string;
20
using std::string;
25
using std::list;
21
using std::list;
...
...
29
class ConfParamW;
25
class ConfParamW;
30
class ConfParamDNLW;
26
class ConfParamDNLW;
31
27
32
namespace confgui {
28
namespace confgui {
33
29
34
class ConfIndexW : public QTABDIALOG {
30
class ConfIndexW : public QDialog {
35
    Q_OBJECT
31
    Q_OBJECT
36
public:
32
public:
37
    ConfIndexW(QWidget *parent, RclConfig *config);
33
    ConfIndexW(QWidget *parent, RclConfig *config);
38
public slots:
34
public slots:
39
    void acceptChanges();
35
    void acceptChanges();
...
...
41
    void reloadPanels();
37
    void reloadPanels();
42
private:
38
private:
43
    RclConfig *m_rclconf;
39
    RclConfig *m_rclconf;
44
    ConfNull  *m_conf;
40
    ConfNull  *m_conf;
45
    list<QWidget *> m_widgets;
41
    list<QWidget *> m_widgets;
42
    QTabWidget       *tabWidget;
43
    QDialogButtonBox *buttonBox;
46
};
44
};
47
45
48
/** 
46
/** 
49
 * A panel with the top-level parameters which can't be redefined in 
47
 * A panel with the top-level parameters which can't be redefined in 
50
 * subdirectoriess:
48
 * subdirectoriess:
...
...
62
    Q_OBJECT
60
    Q_OBJECT
63
public:
61
public:
64
    ConfSubPanelW(QWidget *parent, ConfNull *config);
62
    ConfSubPanelW(QWidget *parent, ConfNull *config);
65
63
66
private slots:
64
private slots:
67
    void subDirChanged();
65
    void subDirChanged(QListWidgetItem *, QListWidgetItem *);
68
    void subDirDeleted(QString);
66
    void subDirDeleted(QString);
69
    void restoreEmpty();
67
    void restoreEmpty();
70
private:
68
private:
71
    string            m_sk;
69
    string            m_sk;
72
    ConfParamDNLW    *m_subdirs;
70
    ConfParamDNLW    *m_subdirs;
73
    list<ConfParamW*> m_widgets;
71
    list<ConfParamW*> m_widgets;
74
    ConfNull         *m_config;
72
    ConfNull         *m_config;
75
#if QT_VERSION < 0x040000
76
    QGroupBox        *m_groupbox;
73
    QGroupBox        *m_groupbox;
77
#else
78
    Q3GroupBox        *m_groupbox;
79
#endif
80
    void reloadAll();
74
    void reloadAll();
81
};
75
};
82
76
83
/** 
77
/** 
84
 * Extra or little used parameters
78
 * Extra or little used parameters