kmdi Library API Documentation

kmditoolviewaccessor_p.h

00001 //----------------------------------------------------------------------------
00002 //    filename             : kmditoolviewaccessor_p.h
00003 //----------------------------------------------------------------------------
00004 //    Project              : KDE MDI extension
00005 //
00006 //    begin                : 08/2003       by Joseph Wenninger (jowenn@kde.org)
00007 //    changes              : ---
00008 //    patches              : ---
00009 //
00010 //    copyright            : (C) 2003 by Joseph Wenninger (jowenn@kde.org)
00011 //----------------------------------------------------------------------------
00012 //
00013 //----------------------------------------------------------------------------
00014 //
00015 //    This program is free software; you can redistribute it and/or modify
00016 //    it under the terms of the GNU Library General Public License as
00017 //    published by the Free Software Foundation; either version 2 of the
00018 //    License, or (at your option) any later version.
00019 //
00020 //----------------------------------------------------------------------------
00021 
00022 
00023 #ifndef KMDI_TOOLVIEW_ACCESSOR_PRIVATE_H_
00024 #define KMDI_TOOLVIEW_ACCESSOR_PRIVATE_H_
00025 
00026 
00027 #include <qwidget.h>
00028 #include <kdockwidget.h>
00029 #include <qguardedptr.h>
00030 #include <kaction.h>
00031 
00032 class KMdiToolViewAccessorPrivate {
00033 public:
00034     KMdiToolViewAccessorPrivate() {
00035         widgetContainer=0;
00036         widget=0;
00037     }
00038     ~KMdiToolViewAccessorPrivate() {
00039         delete action;
00040         if (!widgetContainer.isNull()) widgetContainer->undock();
00041         delete widgetContainer;
00042     }
00043     QGuardedPtr<KDockWidget> widgetContainer;
00044     QWidget* widget;
00045     QGuardedPtr<KAction> action;
00046 };
00047 
00048 
00049 #endif
00050 
00051 
KDE Logo
This file is part of the documentation for kmdi Library Version 3.2.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Feb 4 12:36:52 2004 by doxygen 1.2.18 written by Dimitri van Heesch, © 1997-2003