Nepomuk
daterangeselectionwidget.h
Go to the documentation of this file.
00001 /* 00002 Copyright (c) 2009-2010 Sebastian Trueg <trueg@kde.org> 00003 00004 This program is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU General Public License as 00006 published by the Free Software Foundation; either version 2 of 00007 the License or (at your option) version 3 or any later version 00008 accepted by the membership of KDE e.V. (or its successor approved 00009 by the membership of KDE e.V.), which shall act as a proxy 00010 defined in Section 14 of version 3 of the license. 00011 00012 This program is distributed in the hope that it will be useful, 00013 but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 GNU General Public License for more details. 00016 00017 You should have received a copy of the GNU General Public License 00018 along with this program. If not, see <http://www.gnu.org/licenses/>. 00019 00020 */ 00021 00022 #ifndef _DATE_RANGE_SELECTION_WIDGET_H_ 00023 #define _DATE_RANGE_SELECTION_WIDGET_H_ 00024 00025 #include <QtGui/QWidget> 00026 00027 class DateRange; 00028 class QAction; 00029 class QDate; 00030 00040 class DateRangeSelectionWidget : public QWidget 00041 { 00042 Q_OBJECT 00043 00044 public: 00049 DateRangeSelectionWidget( QWidget* parent = 0 ); 00050 00054 ~DateRangeSelectionWidget(); 00055 00063 DateRange range() const; 00064 00065 public Q_SLOTS: 00069 void setRange( const DateRange& range ); 00070 00071 Q_SIGNALS: 00075 void rangeChanged( const DateRange& range ); 00076 00077 private: 00078 class Private; 00079 Private* const d; 00080 00081 Q_PRIVATE_SLOT( d, void _k_anytimeClicked() ) 00082 Q_PRIVATE_SLOT( d, void _k_beforeClicked() ) 00083 Q_PRIVATE_SLOT( d, void _k_afterClicked() ) 00084 Q_PRIVATE_SLOT( d, void _k_rangeClicked() ) 00085 Q_PRIVATE_SLOT( d, void _k_rangeClicked( QAction* ) ) 00086 Q_PRIVATE_SLOT( d, void _k_rangeStartEdited( const QDate& date ) ) 00087 Q_PRIVATE_SLOT( d, void _k_rangeEndEdited( const QDate& date ) ) 00088 Q_PRIVATE_SLOT( d, void _k_calendarDateClicked( const QDate& date ) ) 00089 }; 00090 00091 #endif
KDE 4.6 API Reference