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

tdemdi/tdemdi

  • tdemdi
  • tdemdi
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 tdetoolbarhandler.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 _TDEMDI_GUICLIENT_H_
22 #define _TDEMDI_GUICLIENT_H_
23 
24 #include <tqobject.h>
25 #include <tqguardedptr.h>
26 #include <kxmlguiclient.h>
27 #include <tdeaction.h>
28 
29 #include <tdemdi/global.h>
30 
31 class TDEMainWindow;
32 class TDEToolBar;
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<TDEAction> m_toolViewActions;
71  TQPtrList<TDEAction> m_documentViewActions;
72 
73  TDEActionMenu *m_docMenu;
74  TDEActionMenu *m_toolMenu;
75 
76  TDEActionMenu *m_gotoToolDockMenu;
77 };
78 
79 class ToggleToolViewAction:public TDEToggleAction
80 {
81  Q_OBJECT
82 
83  public:
84  ToggleToolViewAction ( const TQString& text, const TDEShortcut& cut = TDEShortcut(),
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
KMDIPrivate
Definition: guiclient.cpp:51
KMDI
A namespace for the KMDI library.
Definition: dockcontainer.cpp:51

tdemdi/tdemdi

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

tdemdi/tdemdi

Skip menu "tdemdi/tdemdi"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  •     tdecore
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  • tdeioslave
  •   http
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdemdi/tdemdi by doxygen 1.8.8
This website is maintained by Timothy Pearson.