KDE3Support
k3dockwidget_p.h
Go to the documentation of this file.
00001 /* This file is part of the KDE libraries 00002 Copyright (C) 2002,2003 Joseph Wenninger <jowenn@kde.org 00003 00004 This library is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU Library General Public 00006 License version 2 as published by the Free Software Foundation. 00007 00008 This library is distributed in the hope that it will be useful, 00009 but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00011 Library General Public License for more details. 00012 00013 You should have received a copy of the GNU Library General Public License 00014 along with this library; see the file COPYING.LIB. If not, write to 00015 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00016 Boston, MA 02110-1301, USA. 00017 */ 00018 00019 /*********************************************************************** 00020 ************************************************************************ 00021 IMPORTANT - IMPORTANT - IMPORTANT - IMPORTANT - IMPORTANT - IMPORTANT 00022 ************************************************************************ 00023 ************************************************************************ 00024 00025 THIS IS ___NOT___ PART OF THE PUBLIC API YET. DON'T USE IT IN YOUR 00026 APPLICATIONS,SINCE IT'S MOST PROBABLY ___NOT___ GOING TO STAY BINARY 00027 COMPATIBLE. THIS HEADER IS ONLY INSTALLED, BECAUSE IT IS NEEDED IN 00028 KDE 3.1'S KATE APPLICATON 00029 00030 ************************************************************************ 00031 ************************************************************************ 00032 IMPORTANT - IMPORTANT - IMPORTANT - IMPORTANT - IMPORTANT - IMPORTANT 00033 ************************************************************************ 00034 ***********************************************************************/ 00035 00036 #ifndef KDOCKWIDGET_P_H 00037 #define KDOCKWIDGET_P_H 00038 00039 #include <k3dockwidget.h> 00040 #include <QtCore/QStringList> 00041 // Add some describing comment !! 00042 00043 class KDE3SUPPORT_EXPORT K3DockContainer 00044 { 00045 public: 00046 K3DockContainer(); 00047 virtual ~K3DockContainer(); 00048 virtual K3DockWidget *parentDockWidget(); 00049 virtual void insertWidget (K3DockWidget *, const QPixmap &, const QString &, int &); 00050 virtual void showWidget(K3DockWidget *); 00051 virtual void removeWidget(K3DockWidget*); 00052 virtual void undockWidget(K3DockWidget*); 00053 virtual void save(KConfig *cfg,const QString& group_or_prefix); 00054 virtual void save(QDomElement& dockElement); 00055 virtual void load(KConfig *cfg,const QString& group_or_prefix); 00056 virtual void load(QDomElement& dockElement); 00057 virtual void setToolTip (K3DockWidget *, QString &); 00058 virtual void setPixmap(K3DockWidget*,const QPixmap&); 00059 QStringList containedWidgets() const; 00060 virtual bool dockDragEnter(K3DockWidget* dockWidget, QMouseEvent *event); 00061 virtual bool dockDragMove(K3DockWidget* dockWidget, QMouseEvent *event); 00062 virtual bool dockDragLeave(K3DockWidget* dockWidget, QMouseEvent *event); 00063 protected: 00064 friend class K3DockManager; 00065 friend class K3DockSplitter; 00066 void prepareSave(QStringList &names); 00067 void activateOverlapMode(int nonOverlapSize); 00068 void deactivateOverlapMode(); 00069 bool isOverlapMode(); 00070 private: 00071 00072 struct ListItem { 00073 struct ListItem *prev; 00074 struct ListItem *next; 00075 char *data; 00076 }; 00077 00078 00079 00080 struct ListItem *m_childrenListBegin; 00081 struct ListItem *m_childrenListEnd; 00082 00083 class K3DockContainerPrivate; 00084 K3DockContainerPrivate *d; 00085 bool m_overlapMode; 00086 int m_nonOverlapSize; 00087 }; 00088 00089 #endif
KDE 4.6 API Reference