Parent: [46fedc] (diff)

Child: [f581d3] (diff)

Download this file

confguiindex.h    83 lines (69 with data), 1.8 kB

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