kdgantt

KDGanttSizingControl.h

00001 /* -*- Mode: C++ -*-
00002    $Id$
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 distributed and/or modified under the terms of the
00010  ** GNU General Public License version 2 as published by the Free Software
00011  ** Foundation and appearing in the file LICENSE.GPL included in the
00012  ** packaging of this file.
00013  **
00014  ** Licensees holding valid commercial KDGantt licenses may use this file in
00015  ** accordance with the KDGantt Commercial License Agreement provided with
00016  ** the Software.
00017  **
00018  ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00019  ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00020  **
00021  ** See http://www.klaralvdalens-datakonsult.se/Public/products/ for
00022  **   information about KDGantt Commercial License Agreements.
00023  **
00024  ** Contact info@klaralvdalens-datakonsult.se if any conditions of this
00025  ** licensing are not clear to you.
00026  **
00027  ** As a special exception, permission is given to link this program
00028  ** with any edition of Qt, and distribute the resulting executable,
00029  ** without including the source code for Qt in the source distribution.
00030  **
00031  **********************************************************************/
00032 
00033 #ifndef KDGANTTSIZINGCONTROL_H
00034 #define KDGANTTSIZINGCONTROL_H
00035 
00036 #include <qwidget.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, const char* name = 0, 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 Home | KDE Accessibility Home | Description of Access Keys