• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kdeui

ktoolbarhandler.h

Go to the documentation of this file.
00001 /* This file is part of the KDE libraries
00002    Copyright (C) 2002 Simon Hausmann <hausmann@kde.org>
00003 
00004    This library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Library General Public
00006    License version 2 as published by the Free Software Foundation.
00007 
00008    This library is distributed in the hope that it will be useful,
00009    but WITHOUT ANY WARRANTY; without even the implied warranty of
00010    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011    Library General Public License for more details.
00012 
00013    You should have received a copy of the GNU Library General Public License
00014    along with this library; see the file COPYING.LIB.  If not, write to
00015    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00016    Boston, MA 02110-1301, USA.
00017 */
00018 
00019 #ifndef KBARHANDLER_H
00020 #define KBARHANDLER_H
00021 
00022 #include <qobject.h>
00023 #include <qguardedptr.h>
00024 #include <kxmlguiclient.h>
00025 
00026 class KMainWindow;
00027 class KToolBar;
00028 
00029 namespace KDEPrivate
00030 {
00031 
00033 class ToolBarHandler : public QObject,
00034                        public KXMLGUIClient
00035 {
00036     Q_OBJECT
00037 public:
00038     ToolBarHandler( KMainWindow *mainWindow, const char *name = 0 );
00039     ToolBarHandler( KMainWindow *mainWindow, QObject *parent, const char *name = 0 );
00040     virtual ~ToolBarHandler();
00041 
00042     KAction *toolBarMenuAction();
00043 
00044 public slots:
00045     void setupActions();
00046 
00047 private slots:
00048     void clientAdded( KXMLGUIClient *client );
00049 
00050 private:
00051     void init( KMainWindow *mainWindow );
00052     void connectToActionContainers();
00053     void connectToActionContainer( KAction *action );
00054     void connectToActionContainer( QWidget *container );
00055 
00056     struct Data;
00057     Data *d;
00058 
00059     QGuardedPtr<KMainWindow> m_mainWindow;
00060     QPtrList<KAction> m_actions;
00061     QPtrList<KToolBar> m_toolBars;
00062 };
00063 
00064 } // namespace KDEPrivate
00065 
00066 #endif // KBARHANDLER_H
00067 
00068 /* vim: et sw=4 ts=4
00069  */

kdeui

Skip menu "kdeui"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal