author | Michael Krelin <hacker@klever.net> | 2007-07-04 11:23:42 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2007-07-04 11:23:42 (UTC) |
commit | a08aff328d4393031d5ba7d622c2b05705a89d73 (patch) (unidiff) | |
tree | 8ee90d686081c52e7c69b5ce946e9b1a7d690001 /microkde/kdeui/ktoolbarhandler.h | |
parent | 11edc920afe4f274c0964436633aa632c8288a40 (diff) | |
download | kdepimpi-p1.zip kdepimpi-p1.tar.gz kdepimpi-p1.tar.bz2 |
initial public commit of qt4 portp1
Diffstat (limited to 'microkde/kdeui/ktoolbarhandler.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | microkde/kdeui/ktoolbarhandler.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/microkde/kdeui/ktoolbarhandler.h b/microkde/kdeui/ktoolbarhandler.h index a1340ae..35f0d18 100644 --- a/microkde/kdeui/ktoolbarhandler.h +++ b/microkde/kdeui/ktoolbarhandler.h | |||
@@ -1,70 +1,70 @@ | |||
1 | /* This file is part of the KDE libraries | 1 | /* This file is part of the KDE libraries |
2 | Copyright (C) 2002 Simon Hausmann <hausmann@kde.org> | 2 | Copyright (C) 2002 Simon Hausmann <hausmann@kde.org> |
3 | 3 | ||
4 | This library is free software; you can redistribute it and/or | 4 | This library is free software; you can redistribute it and/or |
5 | modify it under the terms of the GNU Library General Public | 5 | modify it under the terms of the GNU Library General Public |
6 | License version 2 as published by the Free Software Foundation. | 6 | License version 2 as published by the Free Software Foundation. |
7 | 7 | ||
8 | This library is distributed in the hope that it will be useful, | 8 | This library is distributed in the hope that it will be useful, |
9 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 9 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
11 | Library General Public License for more details. | 11 | Library General Public License for more details. |
12 | 12 | ||
13 | You should have received a copy of the GNU Library General Public License | 13 | You should have received a copy of the GNU Library General Public License |
14 | along with this library; see the file COPYING.LIB. If not, write to | 14 | along with this library; see the file COPYING.LIB. If not, write to |
15 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 15 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
16 | Boston, MA 02111-1307, USA. | 16 | Boston, MA 02111-1307, USA. |
17 | */ | 17 | */ |
18 | 18 | ||
19 | #ifndef KBARHANDLER_H | 19 | #ifndef KBARHANDLER_H |
20 | #define KBARHANDLER_H | 20 | #define KBARHANDLER_H |
21 | 21 | ||
22 | #include <qobject.h> | 22 | #include <qobject.h> |
23 | #include <qguardedptr.h> | 23 | #include <qpointer.h> |
24 | #include <qptrlist.h> | 24 | #include <q3ptrlist.h> |
25 | #include <kxmlguiclient.h> | 25 | #include <kxmlguiclient.h> |
26 | #include <kaction.h> | 26 | #include <kaction.h> |
27 | 27 | ||
28 | class KMainWindow; | 28 | class KMainWindow; |
29 | class KToolBar; | 29 | class KToolBar; |
30 | 30 | ||
31 | namespace KDEPrivate | 31 | namespace KDEPrivate |
32 | { | 32 | { |
33 | 33 | ||
34 | /// @since 3.1 | 34 | /// @since 3.1 |
35 | class ToolBarHandler : public QObject, public KXMLGUIClient | 35 | class ToolBarHandler : public QObject, public KXMLGUIClient |
36 | { | 36 | { |
37 | Q_OBJECT | 37 | Q_OBJECT |
38 | public: | 38 | public: |
39 | ToolBarHandler( KMainWindow *mainWindow, const char *name = 0 ); | 39 | ToolBarHandler( KMainWindow *mainWindow, const char *name = 0 ); |
40 | ToolBarHandler( KMainWindow *mainWindow, QObject *parent, const char *name = 0 ); | 40 | ToolBarHandler( KMainWindow *mainWindow, QObject *parent, const char *name = 0 ); |
41 | virtual ~ToolBarHandler(); | 41 | virtual ~ToolBarHandler(); |
42 | 42 | ||
43 | KAction *toolBarMenuAction(); | 43 | KAction *toolBarMenuAction(); |
44 | 44 | ||
45 | public slots: | 45 | public slots: |
46 | void setupActions(); | 46 | void setupActions(); |
47 | 47 | ||
48 | private slots: | 48 | private slots: |
49 | //US void clientAdded( KXMLGUIClient *client ); | 49 | //US void clientAdded( KXMLGUIClient *client ); |
50 | 50 | ||
51 | private: | 51 | private: |
52 | void init( KMainWindow *mainWindow ); | 52 | void init( KMainWindow *mainWindow ); |
53 | void connectToActionContainers(); | 53 | void connectToActionContainers(); |
54 | void connectToActionContainer( KAction *action ); | 54 | void connectToActionContainer( KAction *action ); |
55 | void connectToActionContainer( QWidget *container ); | 55 | void connectToActionContainer( QWidget *container ); |
56 | 56 | ||
57 | struct Data; | 57 | struct Data; |
58 | Data *d; | 58 | Data *d; |
59 | 59 | ||
60 | QGuardedPtr<KMainWindow> m_mainWindow; | 60 | QPointer<KMainWindow> m_mainWindow; |
61 | QPtrList<KAction> m_actions; | 61 | Q3PtrList<KAction> m_actions; |
62 | QPtrList<KToolBar> m_toolBars; | 62 | Q3PtrList<KToolBar> m_toolBars; |
63 | }; | 63 | }; |
64 | 64 | ||
65 | } // namespace KDEPrivate | 65 | } // namespace KDEPrivate |
66 | 66 | ||
67 | #endif // KBARHANDLER_H | 67 | #endif // KBARHANDLER_H |
68 | 68 | ||
69 | /* vim: et sw=4 ts=4 | 69 | /* vim: et sw=4 ts=4 |
70 | */ | 70 | */ |