• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kmdi/kmdi
 

kmdi/kmdi

  • kmdi
  • kmdi
guiclient.h
1 /* This file is part of the KDE libraries
2  Copyright (C) 2003 Joseph Wenninger <jowenn@kde.org>
3  Copyright (C) 2004 Christoph Cullmann <cullmann@kde.org>
4  based on ktoolbarhandler.cpp: Copyright (C) 2002 Simon Hausmann <hausmann@kde.org>
5 
6  This library is free software; you can redistribute it and/or
7  modify it under the terms of the GNU Library General Public
8  License version 2 as published by the Free Software Foundation.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Library General Public License for more details.
14 
15  You should have received a copy of the GNU Library General Public License
16  along with this library; see the file COPYING.LIB. If not, write to
17  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  Boston, MA 02110-1301, USA.
19 */
20 
21 #ifndef _KMDI_GUICLIENT_H_
22 #define _KMDI_GUICLIENT_H_
23 
24 #include <tqobject.h>
25 #include <tqguardedptr.h>
26 #include <kxmlguiclient.h>
27 #include <kaction.h>
28 
29 #include <kmdi/global.h>
30 
31 class KMainWindow;
32 class KToolBar;
33 
34 namespace KMDI {
35  class MainWindow;
36  class ToolViewAccessor;
37 }
38 
39 class KDockWidget;
40 
41 namespace KMDIPrivate {
42 
43 class GUIClientPrivate;
44 
45 class GUIClient : public TQObject, public KXMLGUIClient
46 {
47  Q_OBJECT
48 
49  public:
50  GUIClient( KMDI::MainWindow *mdiMainFrm, const char *name = 0 );
51  virtual ~GUIClient();
52 
53  void addToolView(KMDI::ToolViewAccessor*);
54 
55  private slots:
56  void clientAdded( KXMLGUIClient *client );
57  void setupActions();
58  void actionDeleted(TQObject*);
59 
60  signals:
61  void toggleTop();
62  void toggleLeft();
63  void toggleRight();
64  void toggleBottom();
65 
66  private:
67  GUIClientPrivate *d;
68 
69  TQGuardedPtr<KMDI::MainWindow> m_mdiMainFrm;
70  TQPtrList<KAction> m_toolViewActions;
71  TQPtrList<KAction> m_documentViewActions;
72 
73  KActionMenu *m_docMenu;
74  KActionMenu *m_toolMenu;
75 
76  KActionMenu *m_gotoToolDockMenu;
77 };
78 
79 class ToggleToolViewAction:public KToggleAction
80 {
81  Q_OBJECT
82 
83  public:
84  ToggleToolViewAction ( const TQString& text, const KShortcut& cut = KShortcut(),
85  KDockWidget *dw=0,KMDI::MainWindow *mdiMainFrm=0, TQObject* parent = 0, const char* name = 0 );
86 
87  virtual ~ToggleToolViewAction();
88 
89  protected slots:
90  void slotToggled(bool);
91  void anDWChanged();
92  void slotWidgetDestroyed();
93 
94  private:
95  KDockWidget *m_dw;
96  KMDI::MainWindow *m_mdiMainFrm;
97 };
98 
99 }
100 
101 #endif
102 
103 // kate: space-indent on; indent-width 2; replace-tabs on;

kmdi/kmdi

Skip menu "kmdi/kmdi"
  • Main Page
  • Namespace List
  • File List
  • Namespace Members

kmdi/kmdi

Skip menu "kmdi/kmdi"
  • 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 kmdi/kmdi by doxygen 1.8.3.1
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |