• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KDEUI

kdatewidget.h

Go to the documentation of this file.
00001 /* This file is part of the KDE libraries
00002     Copyright (C) 2001 Waldo Bastian (bastian@kde.org)
00003     Copyright (c) 2007 John Layt <john@layt.net>
00004  
00005     This library is free software; you can redistribute it and/or
00006     modify it under the terms of the GNU Library General Public
00007     License version 2 as published by the Free Software Foundation.
00008  
00009     This library is distributed in the hope that it will be useful,
00010     but WITHOUT ANY WARRANTY; without even the implied warranty of
00011     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012     Library General Public License for more details.
00013  
00014     You should have received a copy of the GNU Library General Public License
00015     along with this library; see the file COPYING.LIB.  If not, write to
00016     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017     Boston, MA 02110-1301, USA.
00018 */
00019 
00020 #ifndef KDATEWIDGET_H
00021 #define KDATEWIDGET_H
00022 
00023 #include <kdeui_export.h>
00024 
00025 #include <QtGui/QWidget>
00026 
00027 class KCalendarSystem;
00028 
00029 class QDate;
00030 
00038 class KDEUI_EXPORT KDateWidget : public QWidget
00039 {
00040     Q_OBJECT
00041     Q_PROPERTY( QDate date READ date WRITE setDate USER true )
00042 //FIXME    Q_PROPERTY( KCalendarSystem calendar READ calendar WRITE setCalendar USER true )
00043 
00044 public:
00048     explicit KDateWidget( QWidget *parent = 0 );
00049 
00053     explicit KDateWidget( const QDate &date, QWidget *parent = 0 );
00054 
00058     virtual ~KDateWidget();
00059 
00063     const QDate& date() const;
00064 
00070     bool setDate( const QDate &date );
00071 
00077     const KCalendarSystem *calendar() const;
00078 
00086     bool setCalendar( KCalendarSystem *calendar = 0 );
00087 
00095     bool setCalendar( const QString &calendarType );
00096 
00097 Q_SIGNALS:
00102     void changed( const QDate& date );
00103 
00104 protected:
00105     void init( const QDate& date );
00106 
00107 protected Q_SLOTS:
00108     void slotDateChanged();
00109 
00110 private:
00111     class KDateWidgetPrivate;
00112     KDateWidgetPrivate * const d;
00113 };
00114 
00115 #endif // KDATEWIDGET_H
00116 

KDEUI

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • KIO
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs 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