KDEUI
ktimezonewidget.h
Go to the documentation of this file.
00001 /* 00002 Copyright (C) 2005, S.R.Haque <srhaque@iee.org>. 00003 This file is part of the KDE project 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 KTIMEZONEWIDGET_H 00021 #define KTIMEZONEWIDGET_H 00022 00023 #include <kdeui_export.h> 00024 00025 #include <QtGui/QTreeWidget> 00026 00027 class KTimeZone; 00028 class KTimeZones; 00029 00059 class KDEUI_EXPORT KTimeZoneWidget : public QTreeWidget 00060 { 00061 Q_OBJECT 00062 Q_PROPERTY(bool itemsCheckable READ itemsCheckable WRITE setItemsCheckable) 00063 Q_PROPERTY(QAbstractItemView::SelectionMode selectionMode READ selectionMode WRITE setSelectionMode) 00064 00065 public: 00073 explicit KTimeZoneWidget( QWidget *parent = 0, KTimeZones *timeZones = 0 ); 00074 00078 virtual ~KTimeZoneWidget(); 00079 00089 void setItemsCheckable(bool enable); 00094 bool itemsCheckable() const; 00095 00104 void setSelectionMode(QAbstractItemView::SelectionMode mode); 00105 00110 QAbstractItemView::SelectionMode selectionMode() const; 00111 00118 QStringList selection() const; 00119 00126 void setSelected( const QString &zone, bool selected ); 00127 00134 void clearSelection(); 00135 00146 static QString displayName( const KTimeZone &zone ); 00147 00148 private: 00149 class Private; 00150 Private* const d; 00151 }; 00152 00153 #endif
KDE 4.6 API Reference