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

tdemdi

  • tdemdi
tdemdidockcontainer.h
1 /* This file is part of the KDE project
2 Copyright (C) 2002 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 version 2 as published by the Free Software Foundation.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 Boston, MA 02110-1301, USA.
18*/
19
20#ifndef _TDEMDI_DOCK_CONTAINER_
21#define _TDEMDI_DOCK_CONTAINER_
22
23#include <tqwidget.h>
24#include <tqstringlist.h>
25#include <kdockwidget.h>
26#include <tqmap.h>
27#include <tqdom.h>
28
29# include <kdockwidget_p.h>
30
31#include <tqpushbutton.h>
32
33class TQWidgetStack;
34class KMultiTabBar;
35class KDockButton_Private;
36
37class KMDI_EXPORT KMdiDockContainer: public TQWidget, public KDockContainer
38{
39 TQ_OBJECT
40
41public:
42 KMdiDockContainer( TQWidget *parent, TQWidget *win, int position, int flags );
43 virtual ~KMdiDockContainer();
44
46 KDockWidget *parentDockWidget();
47
52 virtual void insertWidget ( KDockWidget *w, TQPixmap, const TQString &, int & );
53
61 virtual void showWidget ( KDockWidget *w );
62
67 virtual void setToolTip ( KDockWidget *, TQString & );
68
72 virtual void setPixmap( KDockWidget* widget, const TQPixmap& pixmap );
73
77 virtual void undockWidget( KDockWidget* dwdg );
78
83 virtual void removeWidget( KDockWidget* );
84
88 void hideIfNeeded();
89
97 virtual void save( TDEConfig *, const TQString& group_or_prefix );
98
106 virtual void load( TDEConfig *, const TQString& group_or_prefix );
107
111 virtual void save( TQDomElement& );
112
116 virtual void load( TQDomElement& );
117
121 void setStyle( int );
122
123protected:
124 bool eventFilter( TQObject*, TQEvent* );
125
126public slots:
127 void init();
128 void collapseOverlapped();
129 void toggle();
130 void nextToolView();
131 void prevToolView();
132protected slots:
133 void tabClicked( int );
134 void delayedRaise();
135 void changeOverlapMode();
136private:
137 TQWidget *m_mainWin;
138 TQWidgetStack *m_ws;
139 KMultiTabBar *m_tb;
140 int mTabCnt;
141 int oldtab;
142 int m_previousTab;
143 int m_position;
144 int m_separatorPos;
145 TQMap<KDockWidget*, int> m_map;
146 TQMap<int, KDockWidget*> m_revMap;
147 TQMap<KDockWidget*, KDockButton_Private*> m_overlapButtons;
148 TQStringList itemNames;
149 TQMap<TQString, TQString> tabCaptions;
150 TQMap<TQString, TQString> tabTooltips;
151 int m_inserted;
152 int m_delayedRaise;
153 bool m_horizontal;
154 bool m_block;
155 bool m_tabSwitching;
156 TQObject *m_dragPanel;
157 KDockManager *m_dockManager;
158 TQMouseEvent *m_startEvent;
159 enum MovingState {NotMoving = 0, WaitingForMoveStart, Moving} m_movingState;
160signals:
161 void activated( KMdiDockContainer* );
162 void deactivated( KMdiDockContainer* );
163};
164
165#endif

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