libkdepim Library API Documentation

kdatepickerpopup.h

00001 /* 00002 This file is part of libkdepim. 00003 00004 Copyright (c) 2004 Bram Schoenmakers <bramschoenmakers@kde.nl> 00005 00006 This library is free software; you can redistribute it and/or 00007 modify it under the terms of the GNU Library General Public 00008 License as published by the Free Software Foundation; either 00009 version 2 of the License, or (at your option) any later version. 00010 00011 This library is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 Library General Public License for more details. 00015 00016 You should have received a copy of the GNU Library General Public License 00017 along with this library; see the file COPYING.LIB. If not, write to 00018 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 00019 Boston, MA 02111-1307, USA. 00020 */ 00021 #ifndef KDATEPICKERPOPUP_H 00022 #define KDATEPICKERPOPUP_H 00023 00024 #include <qdatetime.h> 00025 #include <qpopupmenu.h> 00026 00027 #include <kdatepicker.h> 00028 00044 class KDatePickerPopup: public QPopupMenu 00045 { 00046 Q_OBJECT 00047 public: 00048 enum { NoDate = 1, DatePicker = 2, Words = 4 }; 00049 00058 KDatePickerPopup( int items = 1, const QDate &date = QDate::currentDate(), 00059 QWidget *parent = 0, const char *name = 0 ); 00060 00061 virtual ~KDatePickerPopup(); 00062 00067 KDatePicker *datePicker() const; 00068 00069 void setDate( const QDate &date ); 00070 00071 #if 0 00072 00075 void setItems( int items = 1 ); 00076 #endif 00077 00078 int items() const { return mItems; } 00079 00080 signals: 00081 00086 void dateChanged ( QDate ); 00087 00088 protected slots: 00089 void slotDateChanged ( QDate ); 00090 00091 void slotToday(); 00092 void slotTomorrow(); 00093 void slotFriday(); 00094 void slotSunday(); 00095 void slotNextWeek(); 00096 void slotNextMonth(); 00097 void slotNoDate(); 00098 00099 private: 00100 void buildMenu(); 00101 00102 KDatePicker *mDatePicker; 00103 int mItems; 00104 }; 00105 00106 #endif
KDE Logo
This file is part of the documentation for libkdepim Library Version 3.3.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Aug 27 12:50:24 2004 by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2003