Diffstat (limited to 'microkde/kutils/kcmultidialog.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | microkde/kutils/kcmultidialog.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/microkde/kutils/kcmultidialog.h b/microkde/kutils/kcmultidialog.h index a42555f..1aa66b2 100644 --- a/microkde/kutils/kcmultidialog.h +++ b/microkde/kutils/kcmultidialog.h | |||
@@ -8,74 +8,72 @@ | |||
8 | version 2 of the License, or (at your option) any later version. | 8 | version 2 of the License, or (at your option) any later version. |
9 | 9 | ||
10 | This library is distributed in the hope that it will be useful, | 10 | This library is distributed in the hope that it will be useful, |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | Library General Public License for more details. | 13 | Library General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU Library General Public License | 15 | You should have received a copy of the GNU Library General Public License |
16 | along with this library; see the file COPYING.LIB. If not, write to | 16 | along with this library; see the file COPYING.LIB. If not, write to |
17 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 17 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
18 | Boston, MA 02111-1307, USA. | 18 | Boston, MA 02111-1307, USA. |
19 | 19 | ||
20 | */ | 20 | */ |
21 | 21 | ||
22 | #ifndef KCMULTIDIALOG_H | 22 | #ifndef KCMULTIDIALOG_H |
23 | #define KCMULTIDIALOG_H | 23 | #define KCMULTIDIALOG_H |
24 | 24 | ||
25 | #include <qptrlist.h> | 25 | #include <qptrlist.h> |
26 | #include <qptrdict.h> | 26 | #include <qptrdict.h> |
27 | 27 | ||
28 | #include <kdialogbase.h> | 28 | #include <kdialogbase.h> |
29 | #include <kjanuswidget.h> | 29 | #include <kjanuswidget.h> |
30 | #include <kcmodule.h> | 30 | #include <kcmodule.h> |
31 | 31 | ||
32 | class KPrefs; | ||
33 | |||
34 | /** | 32 | /** |
35 | * A class that offers a @ref KDialogBase containing arbitrary KControl Modules | 33 | * A class that offers a @ref KDialogBase containing arbitrary KControl Modules |
36 | * | 34 | * |
37 | * @short A method that offers a @ref KDialogBase containing arbitrary | 35 | * @short A method that offers a @ref KDialogBase containing arbitrary |
38 | * KControl Modules. | 36 | * KControl Modules. |
39 | * | 37 | * |
40 | * @author Matthias Elter <elter@kde.org>, Daniel Molkentin <molkentin@kde.org> | 38 | * @author Matthias Elter <elter@kde.org>, Daniel Molkentin <molkentin@kde.org> |
41 | * @since 3.2 | 39 | * @since 3.2 |
42 | */ | 40 | */ |
43 | class KCMultiDialog : public KDialogBase | 41 | class KCMultiDialog : public KDialogBase |
44 | { | 42 | { |
45 | Q_OBJECT | 43 | Q_OBJECT |
46 | 44 | ||
47 | public: | 45 | public: |
48 | /** | 46 | /** |
49 | * Constructs a new KCMultiDialog | 47 | * Constructs a new KCMultiDialog |
50 | * | 48 | * |
51 | * @param parent The parent Widget | 49 | * @param parent The parent Widget |
52 | * @param name The widget name | 50 | * @param name The widget name |
53 | * @param baseGroup The baseGroup, if you want to call a module out of | 51 | * @param baseGroup The baseGroup, if you want to call a module out of |
54 | * kcontrol, just keep "settings" | 52 | * kcontrol, just keep "settings" |
55 | * @param modal If you pass true here, the dialog will be modal | 53 | * @param modal If you pass true here, the dialog will be modal |
56 | **/ | 54 | **/ |
57 | KCMultiDialog(KPrefs* prefs, const QString& baseGroup = QString::fromLatin1("settings"), | 55 | KCMultiDialog(const QString& baseGroup = QString::fromLatin1("settings"), |
58 | QWidget *parent=0, const char *name=0, | 56 | QWidget *parent=0, const char *name=0, |
59 | bool modal=false); | 57 | bool modal=false); |
60 | 58 | ||
61 | /** | 59 | /** |
62 | * Destructor | 60 | * Destructor |
63 | **/ | 61 | **/ |
64 | virtual ~KCMultiDialog(); | 62 | virtual ~KCMultiDialog(); |
65 | 63 | ||
66 | /** | 64 | /** |
67 | * Add a module. | 65 | * Add a module. |
68 | * | 66 | * |
69 | * @param module Specify the name of the module that is to be added | 67 | * @param module Specify the name of the module that is to be added |
70 | * to the list of modules the dialog will show. | 68 | * to the list of modules the dialog will show. |
71 | * | 69 | * |
72 | * @param withfallback Try harder to load the module. Might result | 70 | * @param withfallback Try harder to load the module. Might result |
73 | * in the module appearing outside the dialog. | 71 | * in the module appearing outside the dialog. |
74 | **/ | 72 | **/ |
75 | //US void addModule(const QString& module, bool withfallback=true); | 73 | //US void addModule(const QString& module, bool withfallback=true); |
76 | 74 | ||
77 | 75 | ||
78 | //US special method for microkde. We dop noty want to load everything dynamically. | 76 | //US special method for microkde. We dop noty want to load everything dynamically. |
79 | void addModule(KCModule* module );//, const QString& modulename, const QString& iconname); | 77 | void addModule(KCModule* module );//, const QString& modulename, const QString& iconname); |
80 | QVBox* getNewVBoxPage(const QString & modulename) ; | 78 | QVBox* getNewVBoxPage(const QString & modulename) ; |
81 | 79 | ||
@@ -118,32 +116,31 @@ private slots: | |||
118 | 116 | ||
119 | void slotAboutToShow(QWidget *); | 117 | void slotAboutToShow(QWidget *); |
120 | 118 | ||
121 | void clientChanged(bool state); | 119 | void clientChanged(bool state); |
122 | 120 | ||
123 | private: | 121 | private: |
124 | /*US | 122 | /*US |
125 | struct LoadInfo { | 123 | struct LoadInfo { |
126 | LoadInfo(const QString &_path, bool _withfallback) | 124 | LoadInfo(const QString &_path, bool _withfallback) |
127 | : path(_path), withfallback(_withfallback) | 125 | : path(_path), withfallback(_withfallback) |
128 | { } | 126 | { } |
129 | QString path; | 127 | QString path; |
130 | bool withfallback; | 128 | bool withfallback; |
131 | }; | 129 | }; |
132 | */ | 130 | */ |
133 | QPtrList<KCModule> modules; | 131 | QPtrList<KCModule> modules; |
134 | /* | 132 | /* |
135 | QPtrDict<LoadInfo> moduleDict; | 133 | QPtrDict<LoadInfo> moduleDict; |
136 | QString _docPath; | 134 | QString _docPath; |
137 | */ | 135 | */ |
138 | QString _baseGroup; | 136 | QString _baseGroup; |
139 | 137 | ||
140 | //US | 138 | //US |
141 | KJanusWidget* mMainWidget; | 139 | KJanusWidget* mMainWidget; |
142 | KPrefs* mPrefs; | ||
143 | 140 | ||
144 | // For future use | 141 | // For future use |
145 | class KCMultiDialogPrivate; | 142 | class KCMultiDialogPrivate; |
146 | KCMultiDialogPrivate *d; | 143 | KCMultiDialogPrivate *d; |
147 | }; | 144 | }; |
148 | 145 | ||
149 | #endif //KCMULTIDIALOG_H | 146 | #endif //KCMULTIDIALOG_H |