• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdepim
  • Sitemap
  • Contact Us
 

kdgantt1

KDGanttSizingControl.cpp

Go to the documentation of this file.
00001 /* -*- Mode: C++ -*-
00002    $Id: KDGanttSizingControl.cpp,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 
00032 #include "KDGanttSizingControl.h"
00033 
00056 KDGanttSizingControl::KDGanttSizingControl( QWidget* parent, Qt::WFlags f )
00057     :QWidget( parent, f ), _isMinimized( false )
00058 {
00059 }
00060 
00061 
00070 void KDGanttSizingControl::restore( bool restore )
00071 {
00072     _isMinimized = !restore;
00073     if ( restore )
00074         emit restored( this );
00075     else
00076         emit minimized( this );
00077 }
00078 
00079 
00080 
00081 
00091 void KDGanttSizingControl::minimize( bool minimize )
00092 {
00093     _isMinimized = minimize;
00094     if ( minimize )
00095         emit minimized( this );
00096     else
00097         emit restored( this );
00098 }
00099 
00100 
00105 bool KDGanttSizingControl::isMinimized() const
00106 {
00107     return _isMinimized;
00108 }
00109 
00114 void KDGanttSizingControl::changeState()
00115 {
00116     restore(_isMinimized);
00117 }
00118 
00144 #include "KDGanttSizingControl.moc"

kdgantt1

Skip menu "kdgantt1"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal