kmdifocuslist.h
00001 /* This file is part of the KDE project 00002 Copyright (C) 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 #ifndef KMDI_FOCUS_LIST 00019 #define KMDI_FOCUS_LIST 00020 00021 #include <qobject.h> 00022 #include <qmap.h> 00023 #include <qwidget.h> 00024 #include <kdelibs_export.h> 00025 00026 class KMDI_EXPORT KMdiFocusList: public QObject 00027 { 00028 Q_OBJECT 00029 public: 00030 KMdiFocusList( QObject *parent ); 00031 ~KMdiFocusList(); 00032 void addWidgetTree( QWidget* ); 00033 void restore(); 00034 protected slots: 00035 void objectHasBeenDestroyed( QObject* ); 00036 private: 00037 QMap<QWidget*, QWidget::FocusPolicy> m_list; 00038 00039 }; 00040 00041 #endif 00042 // kate: space-indent off; tab-width 4; replace-tabs off; indent-mode csands;