kdockwidget_p.h
00001 /* This file is part of the KDE libraries 00002 Copyright (C) 2002 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., 59 Temple Place - Suite 330, 00016 Boston, MA 02111-1307, 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 00037 00038 // Add some describing comment !! 00039 00040 class EXPORT_DOCKCLASS KDockContainer 00041 { 00042 public: 00043 KDockContainer(); 00044 virtual ~KDockContainer(); 00045 virtual KDockWidget *parentDockWidget(); 00046 virtual void insertWidget (KDockWidget *, QPixmap, const QString &, int &); 00047 virtual void removeWidget(KDockWidget*); 00048 virtual void undockWidget(KDockWidget*); 00049 virtual void save(KConfig *cfg); 00050 virtual void load(KConfig *cfg); 00051 virtual void setToolTip (KDockWidget *, QString &); 00052 protected: 00053 friend class KDockManager; 00054 void prepareSave(QStringList &names); 00055 private: 00056 00057 struct ListItem { 00058 struct ListItem *prev; 00059 struct ListItem *next; 00060 char *data; 00061 }; 00062 00063 00064 00065 struct ListItem *m_childrenListBegin; 00066 struct ListItem *m_childrenListEnd; 00067 00068 class KDockContainerPrivate; 00069 KDockContainerPrivate *d; 00070 }; 00071