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

tdemdi

tdemdiguiclient.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 TDEMDIGUICLIENT_H
00020 #define TDEMDIGUICLIENT_H
00021 
00022 #include <tqobject.h>
00023 #include <tqguardedptr.h>
00024 #include <kxmlguiclient.h>
00025 #include <tdeaction.h>
00026 #include "tdemdidefines.h"
00027 
00028 class TDEMainWindow;
00029 class TDEToolBar;
00030 class KMdiToolViewAccessor;
00031 class KMdiMainFrm;
00032 class KDockWidget;
00033 
00034 namespace KMDIPrivate
00035 {
00036 
00041 class KMDI_EXPORT KMDIGUIClient : public TQObject,
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( TQObject* );
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     TQGuardedPtr<KMdiMainFrm> m_mdiMainFrm;
00107     TQPtrList<TDEAction> m_toolViewActions;
00108     TQPtrList<TDEAction> m_documentViewActions;
00109 
00110     TDEActionMenu *m_docMenu;
00111     TDEActionMenu *m_toolMenu;
00112     TDESelectAction *m_mdiModeAction;
00113 
00114     TDEActionMenu *m_gotoToolDockMenu;
00115 };
00116 
00121 class KMDI_EXPORT ToggleToolViewAction: public TDEToggleAction
00122 {
00123     Q_OBJECT
00124 public:
00125 
00126     ToggleToolViewAction( const TQString& text, const TDEShortcut& cut = TDEShortcut(), KDockWidget *dw = 0, KMdiMainFrm *mdiMainFrm = 0,
00127                           TQObject* 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;

tdemdi

Skip menu "tdemdi"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • 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.7.6.1
This website is maintained by Timothy Pearson.