Switch to unified view

a/src/qtgui/confgui/confguiindex.h b/src/qtgui/confgui/confguiindex.h
1
#ifndef _confguiindex_h_included_
1
#ifndef _confguiindex_h_included_
2
#define _confguiindex_h_included_
2
#define _confguiindex_h_included_
3
/* @(#$Id: confguiindex.h,v 1.2 2007-09-29 09:06:53 dockes Exp $  (C) 2007 J.F.Dockes */
3
/* @(#$Id: confguiindex.h,v 1.3 2007-10-09 11:08:17 dockes Exp $  (C) 2007 J.F.Dockes */
4
4
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.h>
11
#include <qstring.h>
11
#include <qstring.h>
12
#if QT_VERSION < 0x040000
13
#include <qtabdialog.h>
14
#define QTABDIALOG QTabDialog
15
#else // Qt4 -> 
16
#include <Q3TabDialog>
17
#define QTABDIALOG Q3TabDialog
18
#endif // QT 3/4
12
19
13
#include <string>
20
#include <string>
14
#include <list>
21
#include <list>
15
using std::string;
22
using std::string;
16
using std::list;
23
using std::list;
17
24
18
25
class ConfNull;
19
class RclConfig;
26
class RclConfig;
20
class ConfParamW;
27
class ConfParamW;
21
class ConfParamDNLW;
28
class ConfParamDNLW;
29
class QGroupBox;
22
30
23
namespace confgui {
31
namespace confgui {
32
33
class ConfIndexW : public QTABDIALOG {
34
    Q_OBJECT
35
public:
36
    ConfIndexW(QWidget *parent, RclConfig *config);
37
public slots:
38
    void acceptChanges();
39
private:
40
    RclConfig *m_rclconf;
41
    ConfNull  *m_conf;
42
};
24
43
25
/** 
44
/** 
26
 * A panel with the top-level parameters which can't be redefined in 
45
 * A panel with the top-level parameters which can't be redefined in 
27
 * subdirectoriess:
46
 * subdirectoriess:
28
 */
47
 */
29
class ConfTopPanelW : public QWidget {
48
class ConfTopPanelW : public QWidget {
30
public:
49
public:
31
    ConfTopPanelW(QWidget *parent, RclConfig *config);
50
    ConfTopPanelW(QWidget *parent, ConfNull *config);
32
};
51
};
33
52
34
53
35
/**
54
/**
36
 * A panel for the parameters that can be changed in subdirectories:
55
 * A panel for the parameters that can be changed in subdirectories:
37
 */
56
 */
38
class ConfSubPanelW : public QWidget {
57
class ConfSubPanelW : public QWidget {
39
    Q_OBJECT
58
    Q_OBJECT
40
public:
59
public:
41
    ConfSubPanelW(QWidget *parent, RclConfig *config);
60
    ConfSubPanelW(QWidget *parent, ConfNull *config);
42
61
43
    void setkeydir(const string& sk) 
62
private slots:
44
    {
45
  m_sk = sk;
46
  reloadAll();
47
    }
48
    void reloadAll();
49
public slots:
50
    void subDirChanged();
63
    void subDirChanged();
51
    void subDirDeleted(QString);
64
    void subDirDeleted(QString);
52
    void restoreEmpty();
65
    void restoreEmpty();
53
private:
66
private:
54
    string            m_sk;
67
    string            m_sk;
55
    ConfParamDNLW    *m_subdirs;
68
    ConfParamDNLW    *m_subdirs;
56
    list<ConfParamW*> m_widgets;
69
    list<ConfParamW*> m_widgets;
57
    RclConfig        *m_config;
70
    ConfNull         *m_config;
71
    QGroupBox        *m_groupbox;
72
73
    void reloadAll();
58
};
74
};
59
60
61
75
62
} // Namespace confgui
76
} // Namespace confgui
63
77
64
#endif /* _confguiindex_h_included_ */
78
#endif /* _confguiindex_h_included_ */