kdgantt1
KDGanttSizingControl.h
Go to the documentation of this file.00001 /* -*- Mode: C++ -*- 00002 $Id: KDGanttSizingControl.h,v 1.4 2005/10/11 11:44:04 lutz Exp $ 00003 */ 00004 /**************************************************************************** 00005 ** Copyright (C) 2002-2004 Klarälvdalens Datakonsult AB. All rights reserved. 00006 ** 00007 ** This file is part of the KDGantt library. 00008 ** 00009 ** This file may be used under the terms of the GNU General Public 00010 ** License versions 2.0 or 3.0 as published by the Free Software 00011 ** Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3 00012 ** included in the packaging of this file. Alternatively you may (at 00013 ** your option) use any later version of the GNU General Public 00014 ** License if such license has been publicly approved by 00015 ** Klarälvdalens Datakonsult AB (or its successors, if any). 00016 ** 00017 ** This file is provided "AS IS" with NO WARRANTY OF ANY KIND, 00018 ** INCLUDING THE WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR 00019 ** A PARTICULAR PURPOSE. Klarälvdalens Datakonsult AB reserves all rights 00020 ** not expressly granted herein. 00021 ** 00022 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 00023 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 00024 ** 00025 ** As a special exception, permission is given to link this program 00026 ** with any edition of Qt, and distribute the resulting executable, 00027 ** without including the source code for Qt in the source distribution. 00028 ** 00029 **********************************************************************/ 00030 00031 #ifndef KDGANTTSIZINGCONTROL_H 00032 #define KDGANTTSIZINGCONTROL_H 00033 00034 #include <QWidget> 00035 00036 #include "kdgantt_qt3_compat.h" 00037 00038 class KDGanttSizingControl : public QWidget 00039 { 00040 Q_OBJECT 00041 00042 public: 00043 bool isMinimized() const; 00044 00045 protected: 00046 KDGanttSizingControl( QWidget* parent = 0, Qt::WFlags f = 0 ); 00047 00048 public slots: 00049 virtual void minimize( bool minimize ); 00050 virtual void restore( bool restore ); 00051 void changeState(); 00052 00053 signals: 00054 void minimized( KDGanttSizingControl* ); 00055 void restored( KDGanttSizingControl* ); 00056 00057 private: 00058 bool _isMinimized; 00059 }; 00060 00061 00062 #endif
KDE 4.2 API Reference