• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • @topname@
  • Sitemap
  • Contact Us
 

kmdi

kmdiguiclient.h

00001 /* This file is part of the KDE libraries
00002   Copyright (C) 2003 Joseph Wenninger
00003 
00004   This library is free software; you can redistribute it and/or
00005   modify it under the terms of the GNU Library General Public
00006   License version 2 as published by the Free Software Foundation.
00007 
00008   This library is distributed in the hope that it will be useful,
00009   but WITHOUT ANY WARRANTY; without even the implied warranty of
00010   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011   Library General Public License for more details.
00012 
00013   You should have received a copy of the GNU Library General Public License
00014   along with this library; see the file COPYING.LIB.  If not, write to
00015   the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00016   Boston, MA 02110-1301, USA.
00017 */
00018 
00019 #ifndef KMDIGUICLIENT_H
00020 #define KMDIGUICLIENT_H
00021 
00022 #include <qobject.h>
00023 #include <qguardedptr.h>
00024 #include <kxmlguiclient.h>
00025 #include <kaction.h>
00026 #include "kmdidefines.h"
00027 
00028 class KMainWindow;
00029 class KToolBar;
00030 class KMdiToolViewAccessor;
00031 class KMdiMainFrm;
00032 class KDockWidget;
00033 
00034 namespace KMDIPrivate
00035 {
00036 
00041 class KMDI_EXPORT KMDIGUIClient : public QObject,
00042             public KXMLGUIClient
00043 {
00044     Q_OBJECT
00045 public:
00046 
00047     KMDIGUIClient( KMdiMainFrm *mdiMainFrm, bool showMDIModeAction, const char *name = 0 );
00048     virtual ~KMDIGUIClient();
00049 
00056     void addToolView( KMdiToolViewAccessor* );
00057 
00058 private slots:
00059 
00064     void clientAdded( KXMLGUIClient *client );
00068     void setupActions();
00069 
00074     void changeViewMode( int id );
00075 
00080     void actionDeleted( QObject* );
00081 
00086     void mdiModeHasBeenChangedTo( KMdi::MdiMode );
00087 
00088 signals:
00090     void toggleTop();
00091 
00093     void toggleLeft();
00094 
00096     void toggleRight();
00097 
00099     void toggleBottom();
00100 
00101 private:
00102     class KMDIGUIClientPrivate;
00103     KMDIGUIClientPrivate *d;
00104     KMdi::MdiMode m_mdiMode;
00105 
00106     QGuardedPtr<KMdiMainFrm> m_mdiMainFrm;
00107     QPtrList<KAction> m_toolViewActions;
00108     QPtrList<KAction> m_documentViewActions;
00109 
00110     KActionMenu *m_docMenu;
00111     KActionMenu *m_toolMenu;
00112     KSelectAction *m_mdiModeAction;
00113 
00114     KActionMenu *m_gotoToolDockMenu;
00115 };
00116 
00121 class KMDI_EXPORT ToggleToolViewAction: public KToggleAction
00122 {
00123     Q_OBJECT
00124 public:
00125 
00126     ToggleToolViewAction( const QString& text, const KShortcut& cut = KShortcut(), KDockWidget *dw = 0, KMdiMainFrm *mdiMainFrm = 0,
00127                           QObject* parent = 0, const char* name = 0 );
00128 
00129     virtual ~ToggleToolViewAction();
00130 
00131 private:
00132 
00133     KDockWidget *m_dw;
00134     KMdiMainFrm *m_mdiMainFrm;
00135 protected slots:
00136 
00137     void slotToggled( bool );
00138     void anDWChanged();
00139     void slotWidgetDestroyed();
00140 };
00141 
00142 
00143 }
00144 
00145 #endif 
00146 // kate: space-indent off; tab-width 4; replace-tabs off; indent-mode csands;

kmdi

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

@topname@

Skip menu "@topname@"
  •     kdnssd-avahi
  • 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
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for @topname@ by doxygen 1.5.5
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal