From ce4a32fe52ef09d8f5ff1dd22c001110902b60a2 Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kdeui/kdockwidget_p.h | 89 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 kdeui/kdockwidget_p.h (limited to 'kdeui/kdockwidget_p.h') diff --git a/kdeui/kdockwidget_p.h b/kdeui/kdockwidget_p.h new file mode 100644 index 000000000..7c14394eb --- /dev/null +++ b/kdeui/kdockwidget_p.h @@ -0,0 +1,89 @@ +/* This file is part of the KDE libraries + Copyright (C) 2002,2003 Joseph Wenninger +#include +// Add some describing comment !! + +class KDEUI_EXPORT KDockContainer +{ +public: + KDockContainer(); + virtual ~KDockContainer(); + virtual KDockWidget *parentDockWidget(); + virtual void insertWidget (KDockWidget *, QPixmap, const QString &, int &); + virtual void showWidget(KDockWidget *); + virtual void removeWidget(KDockWidget*); + virtual void undockWidget(KDockWidget*); + virtual void save(KConfig *cfg,const QString& group_or_prefix); + virtual void save(QDomElement& dockElement); + virtual void load(KConfig *cfg,const QString& group_or_prefix); + virtual void load(QDomElement& dockElement); + virtual void setToolTip (KDockWidget *, QString &); + virtual void setPixmap(KDockWidget*,const QPixmap&); + QStringList containedWidgets() const; + virtual bool dockDragEnter(KDockWidget* dockWidget, QMouseEvent *event); + virtual bool dockDragMove(KDockWidget* dockWidget, QMouseEvent *event); + virtual bool dockDragLeave(KDockWidget* dockWidget, QMouseEvent *event); +protected: + friend class KDockManager; + friend class KDockSplitter; + void prepareSave(QStringList &names); + void activateOverlapMode(int nonOverlapSize); + void deactivateOverlapMode(); + bool isOverlapMode(); +private: + + struct ListItem { + struct ListItem *prev; + struct ListItem *next; + char *data; + }; + + + + struct ListItem *m_childrenListBegin; + struct ListItem *m_childrenListEnd; + + class KDockContainerPrivate; + KDockContainerPrivate *d; + bool m_overlapMode; + int m_nonOverlapSize; +}; + +#endif -- cgit v1.2.1