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

tdemdi/tdemdi

  • tdemdi
  • tdemdi
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 _TDEMDI_MAINWINDOW_H_
43#define _TDEMDI_MAINWINDOW_H_
44
45#include <tdeparts/dockmainwindow.h>
46#include <tdemenubar.h>
47#include <tdepopupmenu.h>
48
49#include <tqptrlist.h>
50#include <tqrect.h>
51#include <tqapplication.h>
52#include <tqguardedptr.h>
53
54#include <tdemdi/global.h>
55
56class TQPopupMenu;
57class TQMenuBar;
58
59#include <tdemdi/toolviewaccessor.h>
60
61namespace KMDIPrivate {
62 class MainWindowPrivate;
63 class GUIClient;
64}
65
66namespace KMDI
67{
68
69class DockContainer;
70class TabWidget;
71
72class KMDI_EXPORT MainWindow : public KParts::DockMainWindow
73{
74 TQ_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_
KMDI
A namespace for the KMDI library.
Definition: dockcontainer.cpp:52

tdemdi/tdemdi

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

tdemdi/tdemdi

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