• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.8.3 API Reference
  • KDE Home
  • Contact Us
 

akonadi

kdatepickerpopup_p.h
00001 /*
00002     This file is part of Akonadi Contact.
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., 51 Franklin Street, Fifth Floor,
00019   Boston, MA 02110-1301, USA.
00020 */
00021 
00022 #ifndef KDATEPICKERPOPUP_P_H
00023 #define KDATEPICKERPOPUP_P_H
00024 
00025 #include <QtCore/QDateTime>
00026 #include <QtGui/QMenu>
00027 
00028 class KDatePicker;
00029 
00047 class KDatePickerPopup: public QMenu
00048 {
00049   Q_OBJECT
00050 
00051   public:
00052     enum ItemFlag {
00053       NoDate = 1,
00054       DatePicker = 2,
00055       Words = 4
00056     };
00057 
00058     Q_DECLARE_FLAGS( Items, ItemFlag )
00059 
00060     
00068     explicit KDatePickerPopup( Items items = DatePicker,
00069                                const QDate &date = QDate::currentDate(),
00070                                QWidget *parent = 0 );
00071 
00076     KDatePicker *datePicker() const;
00077 
00078     void setDate( const QDate &date );
00079 
00080 #if 0
00081 
00085     void setItems( int items = 1 );
00086 #endif
00087 
00088     int items() const { return mItems; }
00089 
00090   Q_SIGNALS:
00091 
00096     void dateChanged ( const QDate &date );
00097 
00098   protected Q_SLOTS:
00099     void slotDateChanged ( const QDate &date );
00100 
00101     void slotToday();
00102     void slotTomorrow();
00103     void slotNextWeek();
00104     void slotNextMonth();
00105     void slotNoDate();
00106 
00107   private:
00108     void buildMenu();
00109 
00110     KDatePicker *mDatePicker;
00111     Items mItems;
00112 };
00113 
00114 Q_DECLARE_OPERATORS_FOR_FLAGS( KDatePickerPopup::Items )
00115 
00116 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon May 14 2012 04:52:57 by doxygen 1.7.5 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

akonadi

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

kdepimlibs-4.8.3 API Reference

Skip menu "kdepimlibs-4.8.3 API Reference"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal