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