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

libkdepim

  • sources
  • kde-4.12
  • kdepim
  • libkdepim
  • widgets
kdatepickerpopup.h
Go to the documentation of this file.
1 /*
2  This file is part of libkdepim.
3 
4  Copyright (c) 2004 Bram Schoenmakers <bramschoenmakers@kde.nl>
5 
6  This library is free software; you can redistribute it and/or
7  modify it under the terms of the GNU Library General Public
8  License as published by the Free Software Foundation; either
9  version 2 of the License, or (at your option) any later version.
10 
11  This library is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  Library General Public License for more details.
15 
16  You should have received a copy of the GNU Library General Public License
17  along with this library; see the file COPYING.LIB. If not, write to
18  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  Boston, MA 02110-1301, USA.
20 */
21 #ifndef KDEPIM_KDATEPICKERPOPUP_H
22 #define KDEPIM_KDATEPICKERPOPUP_H
23 
24 #include "kdepim_export.h"
25 
26 #include <QtCore/QDate>
27 #include <QMenu>
28 
29 class KDatePicker;
30 
31 namespace KPIM {
32 
48 class KDEPIM_EXPORT KDatePickerPopup: public QMenu
49 {
50  Q_OBJECT
51 
52  public:
56  enum Mode
57  {
58  NoDate = 1,
59  DatePicker = 2,
60  Words = 4
61  };
62 
66  Q_DECLARE_FLAGS( Modes, Mode )
67 
68 
75  explicit KDatePickerPopup( Modes modes = DatePicker,
76  const QDate &date = QDate::currentDate(),
77  QWidget *parent = 0 );
78 
82  ~KDatePickerPopup();
83 
87  KDatePicker *datePicker() const;
88 
89  public Q_SLOTS:
93  void setDate( const QDate &date );
94 
95  Q_SIGNALS:
101  void dateChanged( const QDate &date );
102 
103  private:
104  //@cond PRIVATE
105  class Private;
106  Private* const d;
107 
108  Q_PRIVATE_SLOT( d, void slotDateChanged( const QDate& ) )
109  Q_PRIVATE_SLOT( d, void slotToday() )
110  Q_PRIVATE_SLOT( d, void slotTomorrow() )
111  Q_PRIVATE_SLOT( d, void slotNextWeek() )
112  Q_PRIVATE_SLOT( d, void slotNextMonth() )
113  Q_PRIVATE_SLOT( d, void slotNoDate() )
114  //@endcond
115 };
116 
117 Q_DECLARE_OPERATORS_FOR_FLAGS( KDatePickerPopup::Modes )
118 
119 }
120 
121 #endif
kdepim_export.h
KPIM::KDatePickerPopup::Mode
Mode
Describes the available selection modes.
Definition: kdatepickerpopup.h:56
QWidget
QMenu
KPIM::KDatePickerPopup
This menu helps the user to select a date quickly.
Definition: kdatepickerpopup.h:48
KDEPIM_EXPORT
#define KDEPIM_EXPORT
Definition: kdepim_export.h:35
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:58:03 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

libkdepim

Skip menu "libkdepim"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

Search



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