• 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
31class TDEMainWindow;
32class TDEToolBar;
33
34namespace KMDI {
35 class MainWindow;
36 class ToolViewAccessor;
37}
38
39class KDockWidget;
40
41namespace KMDIPrivate {
42
43class GUIClientPrivate;
44
45class GUIClient : public TQObject, public KXMLGUIClient
46{
47 TQ_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
79class ToggleToolViewAction:public TDEToggleAction
80{
81 TQ_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
KMDI
A namespace for the KMDI library.
Definition: dockcontainer.cpp:52

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
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdemdi/tdemdi by doxygen 1.9.4
This website is maintained by Timothy Pearson.