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

KIO

kfilemetainfowidget.h

Go to the documentation of this file.
00001 /* This file is part of the KDE libraries
00002     Copyright (C) 2001,2002 Rolf Magnus <ramagnus@kde.org>
00003 
00004     library is free software; you can redistribute it and/or
00005     modify it under the terms of the GNU Library General Public
00006     License version 2 as published by the Free Software Foundation.
00007 
00008     This library is distributed in the hope that it will be useful,
00009     but WITHOUT ANY WARRANTY; without even the implied warranty of
00010     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011     Library General Public License for more details.
00012 
00013     You should have received a copy of the GNU Library General Public License
00014     along with this library; see the file COPYING.LIB.  If not, write to
00015     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00016     Boston, MA 02110-1301, USA.
00017 
00018  */
00019 
00020 #ifndef __KFILEMETAINFOWIDGET_H__
00021 #define __KFILEMETAINFOWIDGET_H__
00022 
00023 #include <QtGui/QWidget>
00024 #include <QtCore/QVariant>
00025 #include <kfilemetainfo.h>
00026 
00027 class KFileMetaInfoWidgetPrivate;
00028 
00032 class KIO_EXPORT KFileMetaInfoWidget: public QWidget
00033 {
00034     Q_OBJECT
00035 public:
00036     enum Mode
00037     {
00038       ReadOnly  = 1,  
00039       ReadWrite = 0,  
00040       Reserve = 0xff
00041     };
00042 
00043     explicit KFileMetaInfoWidget(KFileMetaInfoItem item,
00044                                  QValidator* val = 0,
00045                                  QWidget* parent = 0);
00046 
00047     KFileMetaInfoWidget(KFileMetaInfoItem item, Mode mode, QValidator* val = 0,
00048                         QWidget* parent = 0 );
00049 
00050     virtual ~KFileMetaInfoWidget();
00051 
00052     bool apply();
00053 
00054     void setValue(const QVariant &value);
00055     QVariant value() const;
00056     QValidator* validator() const;
00057     KFileMetaInfoItem item() const;
00058 
00059 Q_SIGNALS:
00060     void valueChanged(const QVariant& value);
00061 
00062 protected:
00063     void reparentValidator(QWidget *widget, QValidator *validator);
00064     virtual QWidget* makeWidget();
00065 
00066     QWidget* makeBoolWidget();
00067     QWidget* makeIntWidget();
00068     QWidget* makeDoubleWidget();
00069     QWidget* makeStringWidget();
00070     QWidget* makeDateWidget();
00071     QWidget* makeTimeWidget();
00072     QWidget* makeDateTimeWidget();
00073 
00074 private Q_SLOTS:
00075     void slotChanged(bool value);
00076     void slotChanged(int value);
00077     void slotChanged(double value);
00078     void slotComboChanged(const QString &value);
00079     void slotLineEditChanged(const QString& value);
00080     void slotMultiLineEditChanged();
00081     void slotDateChanged(const QDate& value);
00082     void slotTimeChanged(const QTime& value);
00083     void slotDateTimeChanged(const QDateTime& value);
00084 
00085 private:
00086     friend class KFileMetaInfoWidgetPrivate;
00087     KFileMetaInfoWidgetPrivate *const d;
00088 
00089     Q_DISABLE_COPY(KFileMetaInfoWidget)
00090 };
00091 
00092 #endif

KIO

Skip menu "KIO"
  • Main Page
  • 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