• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kmdi/kmdi
 

kmdi/kmdi

  • kmdi
  • kmdi
mainwindow.h
1 /* This file is part of the KDE libraries
2  Copyright (C) 2004 Christoph Cullmann <cullmann@kde.org>
3  Copyright (C) 2002,2003 Joseph Wenninger <jowenn@kde.org>
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Library General Public
7  License as published by the Free Software Foundation; either
8  version 2 of the License, or (at your option) any later version.
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  Based on:
21 
22  //----------------------------------------------------------------------------
23  // Project : KDE MDI extension
24  //
25  // begin : 07/1999 by Szymon Stefanek as part of kvirc
26  // (an IRC application)
27  // changes : 09/1999 by Falk Brettschneider to create an
28  // - 06/2000 stand-alone Qt extension set of
29  // classes and a Qt-based library
30  // : 02/2000 by Massimo Morin (mmorin@schedsys.com)
31  // 2000-2003 maintained by the KDevelop project
32  // patches : -/2000 by Lars Beikirch (Lars.Beikirch@gmx.net)
33  // : 01/2003 by Jens Zurheide (jens.zurheide@gmx.de)
34  //
35  // copyright : (C) 1999-2003 by Falk Brettschneider
36  // and
37  // Szymon Stefanek (stefanek@tin.it)
38  // email : falkbr@kdevelop.org (Falk Brettschneider)
39  //----------------------------------------------------------------------------
40 */
41 
42 #ifndef _KMDI_MAINWINDOW_H_
43 #define _KMDI_MAINWINDOW_H_
44 
45 #include <kparts/dockmainwindow.h>
46 #include <kmenubar.h>
47 #include <kpopupmenu.h>
48 
49 #include <tqptrlist.h>
50 #include <tqrect.h>
51 #include <tqapplication.h>
52 #include <tqguardedptr.h>
53 
54 #include <kmdi/global.h>
55 
56 class TQPopupMenu;
57 class TQMenuBar;
58 
59 #include <kmdi/toolviewaccessor.h>
60 
61 namespace KMDIPrivate {
62  class MainWindowPrivate;
63  class GUIClient;
64 }
65 
66 namespace KMDI
67 {
68 
69 class DockContainer;
70 class TabWidget;
71 
72 class KMDI_EXPORT MainWindow : public KParts::DockMainWindow
73 {
74  Q_OBJECT
75 
76  friend class KMDI::ToolViewAccessor;
77 
78  public:
82  MainWindow ( TQWidget* parentWidget, const char* name = "");
83 
87  virtual ~MainWindow ();
88 
89  public:
96  TabWidget *tabWidget ();
97 
103  KMDI::ToolViewAccessor *createToolWindow();
104 
116  KMDI::ToolViewAccessor *addToolWindow( TQWidget* pWnd, KDockWidget::DockPosition pos = KDockWidget::DockNone, TQWidget* pTargetWnd = 0L, int percent = 50, const TQString& tabToolTip = 0, const TQString& tabCaption = 0);
117 
122  void deleteToolWindow( KMDI::ToolViewAccessor *accessor);
123 
128  void deleteToolWindow( TQWidget* pWnd);
129 
134  void setToolViewStyle(int flags);
135 
136  public slots:
137  void prevToolViewInDock();
138  void nextToolViewInDock();
139 
140  signals:
141  void collapseOverlapContainers();
142 
143  protected:
144  void findToolViewsDockedToMain(TQPtrList<KDockWidget>* list,KDockWidget::DockPosition dprtmw);
145  void dockToolViewsIntoContainers(TQPtrList<KDockWidget>& widgetsToReparent,KDockWidget *container);
146 
147  private:
151  void setupMainDock ();
152 
157  void setupToolViews ();
158 
163  void setupGUIClient ();
164 
165  private slots:
166  void setActiveToolDock(DockContainer*);
167  void removeFromActiveDockList(DockContainer*);
168 
169  #define protected public
170  signals:
171  #undef protected
172  void toggleTop();
173  void toggleLeft();
174  void toggleRight();
175  void toggleBottom();
176 
177  protected:
178  KMDIPrivate::GUIClient *m_guiClient;
179  TQMap <TQWidget*, KMDI::ToolViewAccessor*> *m_toolViews;
180 
181  KDockWidget *m_leftContainer;
182  KDockWidget *m_rightContainer;
183  KDockWidget *m_topContainer;
184  KDockWidget *m_bottomContainer;
185 
186  KMDI::TabWidget *m_tabWidget;
187 
188  private:
192  KMDIPrivate::MainWindowPrivate *d;
193 };
194 
195 }
196 
197 #endif //_MainWindow_H_
198 
199 // kate: space-indent on; indent-width 2; replace-tabs on;

kmdi/kmdi

Skip menu "kmdi/kmdi"
  • Main Page
  • Namespace List
  • File List
  • Namespace Members

kmdi/kmdi

Skip menu "kmdi/kmdi"
  • 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
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kmdi/kmdi by doxygen 1.8.1.2
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |