• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kdeui
 

kdeui

  • kdeui
ktoolbarhandler.h
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., 51 Franklin Street, Fifth Floor,
16  Boston, MA 02110-1301, USA.
17 */
18 
19 #ifndef KBARHANDLER_H
20 #define KBARHANDLER_H
21 
22 #include <tqobject.h>
23 #include <tqguardedptr.h>
24 #include <kxmlguiclient.h>
25 
26 class KMainWindow;
27 class KToolBar;
28 
29 namespace KDEPrivate
30 {
31 
33 class ToolBarHandler : public TQObject,
34  public KXMLGUIClient
35 {
36  Q_OBJECT
37 public:
38  ToolBarHandler( KMainWindow *mainWindow, const char *name = 0 );
39  ToolBarHandler( KMainWindow *mainWindow, TQObject *parent, const char *name = 0 );
40  virtual ~ToolBarHandler();
41 
42  KAction *toolBarMenuAction();
43 
44 public slots:
45  void setupActions();
46 
47 private slots:
48  void clientAdded( KXMLGUIClient *client );
49 
50 private:
51  void init( KMainWindow *mainWindow );
52  void connectToActionContainers();
53  void connectToActionContainer( KAction *action );
54  void connectToActionContainer( TQWidget *container );
55 
56  struct Data;
57  Data *d;
58 
59  TQGuardedPtr<KMainWindow> m_mainWindow;
60  TQPtrList<KAction> m_actions;
61  TQPtrList<KToolBar> m_toolBars;
62 };
63 
64 } // namespace KDEPrivate
65 
66 #endif // KBARHANDLER_H
67 
68 /* vim: et sw=4 ts=4
69  */
KXMLGUIClient
A KXMLGUIClient can be used with KXMLGUIFactory to create a GUI from actions and an XML document...
Definition: kxmlguiclient.h:43
KMainWindow
KDE top level main window
Definition: kmainwindow.h:98
KXMLGUIClient::action
KAction * action(const char *name) const
Retrieves an action of the client by name.
Definition: kxmlguiclient.cpp:93
KToolBar
Floatable toolbar with auto resize.
Definition: ktoolbar.h:104
KDEPrivate
Definition: ktoolbarhandler.h:29
KAction
Class to encapsulate user-driven action or event.
Definition: kaction.h:202
KDEPrivate::ToolBarHandler
Definition: ktoolbarhandler.h:33

kdeui

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

kdeui

Skip menu "kdeui"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kdeui by doxygen 1.8.11
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |