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

tdemdi

  • tdemdi
tdemdiguiclient.h
1/* This file is part of the KDE libraries
2 Copyright (C) 2003 Joseph Wenninger
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 TDEMDIGUICLIENT_H
20#define TDEMDIGUICLIENT_H
21
22#include <tqobject.h>
23#include <tqguardedptr.h>
24#include <kxmlguiclient.h>
25#include <tdeaction.h>
26#include "tdemdidefines.h"
27
28class TDEMainWindow;
29class TDEToolBar;
30class KMdiToolViewAccessor;
31class KMdiMainFrm;
32class KDockWidget;
33
34namespace KMDIPrivate
35{
36
41class KMDI_EXPORT KMDIGUIClient : public TQObject,
42 public KXMLGUIClient
43{
44 TQ_OBJECT
45public:
46
47 KMDIGUIClient( KMdiMainFrm *mdiMainFrm, bool showMDIModeAction, const char *name = 0 );
48 virtual ~KMDIGUIClient();
49
56 void addToolView( KMdiToolViewAccessor* );
57
58private slots:
59
64 void clientAdded( KXMLGUIClient *client );
68 void setupActions();
69
74 void changeViewMode( int id );
75
80 void actionDeleted( TQObject* );
81
86 void mdiModeHasBeenChangedTo( KMdi::MdiMode );
87
88signals:
90 void toggleTop();
91
93 void toggleLeft();
94
96 void toggleRight();
97
99 void toggleBottom();
100
101private:
102 class KMDIGUIClientPrivate;
103 KMDIGUIClientPrivate *d;
104 KMdi::MdiMode m_mdiMode;
105
106 TQGuardedPtr<KMdiMainFrm> m_mdiMainFrm;
107 TQPtrList<TDEAction> m_toolViewActions;
108 TQPtrList<TDEAction> m_documentViewActions;
109
110 TDEActionMenu *m_docMenu;
111 TDEActionMenu *m_toolMenu;
112 TDESelectAction *m_mdiModeAction;
113
114 TDEActionMenu *m_gotoToolDockMenu;
115};
116
121class KMDI_EXPORT ToggleToolViewAction: public TDEToggleAction
122{
123 TQ_OBJECT
124public:
125
126 ToggleToolViewAction( const TQString& text, const TDEShortcut& cut = TDEShortcut(), KDockWidget *dw = 0, KMdiMainFrm *mdiMainFrm = 0,
127 TQObject* parent = 0, const char* name = 0 );
128
129 virtual ~ToggleToolViewAction();
130
131private:
132
133 KDockWidget *m_dw;
134 KMdiMainFrm *m_mdiMainFrm;
135protected slots:
136
137 void slotToggled( bool );
138 void anDWChanged();
139 void slotWidgetDestroyed();
140};
141
142
143}
144
145#endif
KMDIPrivate::KMDIGUIClient
A class derived from KXMLGUIClient that handles the various KMDI modes.
Definition: tdemdiguiclient.h:43
KMDIPrivate::KMDIGUIClient::toggleTop
void toggleTop()
Toggle the top tool dock.
KMDIPrivate::KMDIGUIClient::toggleRight
void toggleRight()
Toggle the right tool dock.
KMDIPrivate::KMDIGUIClient::toggleLeft
void toggleLeft()
Toggle the left tool dock.
KMDIPrivate::KMDIGUIClient::toggleBottom
void toggleBottom()
Toggle the bottom tool dock.
KMDIPrivate::ToggleToolViewAction
A TDEToggleAction specifically for toggling the showing or the hiding of a KMDI tool view.
Definition: tdemdiguiclient.h:122
KMdiMainFrm
Base class for all your special main frames.
Definition: tdemdimainfrm.h:240

tdemdi

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

tdemdi

Skip menu "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 by doxygen 1.9.4
This website is maintained by Timothy Pearson.