kdeui Library API Documentation

kdockwidget_p.h

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., 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 #ifndef KDOCKWIDGET_P_H
00037 #define KDOCKWIDGET_P_H
00038 
00039 #include <kdockwidget.h>
00040 #include <qstringlist.h>
00041 // Add some describing comment !!
00042 
00043 class EXPORT_DOCKCLASS KDockContainer
00044 {
00045 public:
00046   KDockContainer();
00047   virtual ~KDockContainer();
00048   virtual KDockWidget *parentDockWidget();
00049   virtual void insertWidget (KDockWidget *, QPixmap, const QString &, int &);
00050   virtual void showWidget(KDockWidget *);
00051   virtual void removeWidget(KDockWidget*);
00052   virtual void undockWidget(KDockWidget*);
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 (KDockWidget *, QString &);
00058   virtual void  setPixmap(KDockWidget*,const QPixmap&);
00059   QStringList containedWidgets() const;
00060 protected:
00061   friend class KDockManager;
00062   friend class KDockSplitter;
00063   void prepareSave(QStringList &names);
00064   void activateOverlapMode(int nonOverlapSize);
00065   void deactivateOverlapMode();
00066   bool isOverlapMode();
00067 private:
00068 
00069     struct ListItem {
00070         struct ListItem *prev;
00071         struct ListItem *next;
00072         char *data;
00073     };
00074 
00075 
00076 
00077   struct ListItem *m_childrenListBegin;
00078   struct ListItem *m_childrenListEnd;
00079 
00080   class KDockContainerPrivate;
00081   KDockContainerPrivate *d;
00082   bool m_overlapMode;
00083   int m_nonOverlapSize;
00084 };
00085 
00086 #endif
KDE Logo
This file is part of the documentation for kdeui Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed May 12 09:04:41 2004 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2003