# kdeui Library API Documentation

Overview | Class Hierarchy | Classes | Classes (annotated) | Members | Namespaces | Source Files

# ktoolbarhandler.h

    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., 59 Temple Place - Suite 330,
    00016    Boston, MA 02111-1307, 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 KDEUI_EXPORT 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  */

This file is part of the documentation for kdeui Library Version 3.4.1.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat Jun 11 20:20:24 2005 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003