• 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 
28 class TDEMainWindow;
29 class TDEToolBar;
30 class KMdiToolViewAccessor;
31 class KMdiMainFrm;
32 class KDockWidget;
33 
34 namespace KMDIPrivate
35 {
36 
41 class KMDI_EXPORT KMDIGUIClient : public TQObject,
42  public KXMLGUIClient
43 {
44  Q_OBJECT
45 public:
46 
47  KMDIGUIClient( KMdiMainFrm *mdiMainFrm, bool showMDIModeAction, const char *name = 0 );
48  virtual ~KMDIGUIClient();
49 
56  void addToolView( KMdiToolViewAccessor* );
57 
58 private 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 
88 signals:
90  void toggleTop();
91 
93  void toggleLeft();
94 
96  void toggleRight();
97 
99  void toggleBottom();
100 
101 private:
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 
121 class KMDI_EXPORT ToggleToolViewAction: public TDEToggleAction
122 {
123  Q_OBJECT
124 public:
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 
131 private:
132 
133  KDockWidget *m_dw;
134  KMdiMainFrm *m_mdiMainFrm;
135 protected slots:
136 
137  void slotToggled( bool );
138  void anDWChanged();
139  void slotWidgetDestroyed();
140 };
141 
142 
143 }
144 
145 #endif
KMdiMainFrm
Base class for all your special main frames.
Definition: tdemdimainfrm.h:239
KMDIPrivate
Definition: tdemdiguiclient.h:34
KMDIPrivate::ToggleToolViewAction
A TDEToggleAction specifically for toggling the showing or the hiding of a KMDI tool view...
Definition: tdemdiguiclient.h:121
KMDIPrivate::KMDIGUIClient
A class derived from KXMLGUIClient that handles the various KMDI modes.
Definition: tdemdiguiclient.h:41

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
  •     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 by doxygen 1.8.8
This website is maintained by Timothy Pearson.