lib Library API Documentation

kotooldockmanager.h

00001 /*
00002  * This file is part of the KDE project
00003  * Copyright (C) 2000-2001 theKompany.com & Dave Marotti
00004  *
00005  * This program is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU General Public License
00007  * as published by the Free Software Foundation; either version 2
00008  * of the License, or (at your option) any later version.
00009  *
00010  * This program is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU General Public License
00016  * along with this program; if not, write to the Free Software
00017  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00018  */
00019 #ifndef KO_TOOLDOCKMANAGER_H
00020 #define KO_TOOLDOCKMANAGER_H
00021 
00022 #include <qobject.h>
00023 #include <qwidget.h>
00024 #include <qptrlist.h>
00025 #include <qtimer.h>
00026 #include <koffice_export.h>
00027 class KoToolDockBase;
00028 class KoTabbedToolDock;
00029 
00033 class KOFFICEUI_EXPORT KoToolDockManager : public QObject
00034 {
00035 
00036     Q_OBJECT
00037 
00038 public:
00039     KoToolDockManager( QWidget* parent, const char* name = 0 );
00040 
00041     ~KoToolDockManager();
00042 
00043     bool eventFilter( QObject*, QEvent* );
00044 
00045     KoToolDockBase* createSimpleToolDock( QWidget* view, const char* name = 0 );
00046     KoTabbedToolDock* createTabbedToolDock(const char* name = 0);
00047 
00048 protected:
00049 
00050     void addToolWindow( KoToolDockBase* );
00051 
00052 protected slots:
00053 
00054     void removeToolWindow();
00055     void slotTimeOut();
00056     void removeToolWindow( KoToolDockBase* );
00057 
00058 private:
00059     QTimer timer;
00060     QWidget* m_pView;
00061     QPtrList<KoToolDockBase> tools;
00062 };
00063 
00064 #endif // KO_TOOLDOCKMANAGER_H
00065 
KDE Logo
This file is part of the documentation for lib Library Version 1.4.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Mon Feb 13 09:40:13 2006 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003