20 #ifndef _TDEMDI_DOCK_CONTAINER_
21 #define _TDEMDI_DOCK_CONTAINER_
24 #include <tqstringlist.h>
25 #include <kdockwidget.h>
29 # include <kdockwidget_p.h>
31 #include <tqpushbutton.h>
35 class KDockButton_Private;
37 class KMDI_EXPORT KMdiDockContainer:
public TQWidget,
public KDockContainer
42 KMdiDockContainer( TQWidget *parent, TQWidget *win,
int position,
int flags );
43 virtual ~KMdiDockContainer();
46 KDockWidget *parentDockWidget();
52 virtual void insertWidget ( KDockWidget *w, TQPixmap,
const TQString &,
int & );
61 virtual void showWidget ( KDockWidget *w );
67 virtual void setToolTip ( KDockWidget *, TQString & );
72 virtual void setPixmap( KDockWidget* widget,
const TQPixmap& pixmap );
77 virtual void undockWidget( KDockWidget* dwdg );
83 virtual void removeWidget( KDockWidget* );
97 virtual void save( TDEConfig *,
const TQString& group_or_prefix );
106 virtual void load( TDEConfig *,
const TQString& group_or_prefix );
111 virtual void save( TQDomElement& );
116 virtual void load( TQDomElement& );
121 void setStyle(
int );
124 bool eventFilter( TQObject*, TQEvent* );
128 void collapseOverlapped();
133 void tabClicked(
int );
135 void changeOverlapMode();
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;
156 TQObject *m_dragPanel;
157 KDockManager *m_dockManager;
158 TQMouseEvent *m_startEvent;
159 enum MovingState {NotMoving = 0, WaitingForMoveStart, Moving} m_movingState;
161 void activated( KMdiDockContainer* );
162 void deactivated( KMdiDockContainer* );