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

KIO

  • sources
  • kde-4.14
  • kdelibs
  • kio
  • kfile
kfilemetainfowidget.h
Go to the documentation of this file.
1 /* This file is part of the KDE libraries
2  Copyright (C) 2001,2002 Rolf Magnus <ramagnus@kde.org>
3 
4  library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Library General Public
6  License version 2 as published by the Free Software Foundation.
7 
8  This library is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  Library General Public License for more details.
12 
13  You should have received a copy of the GNU Library General Public License
14  along with this library; see the file COPYING.LIB. If not, write to
15  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16  Boston, MA 02110-1301, USA.
17 
18  */
19 
20 #ifndef __KFILEMETAINFOWIDGET_H__
21 #define __KFILEMETAINFOWIDGET_H__
22 
23 #include <QtGui/QWidget>
24 #include <QtCore/QVariant>
25 #include <kfilemetainfo.h>
26 
27 class KFileMetaInfoWidgetPrivate;
28 
32 class KIO_EXPORT KFileMetaInfoWidget: public QWidget
33 {
34  Q_OBJECT
35 public:
36  enum Mode
37  {
38  ReadOnly = 1,
39  ReadWrite = 0,
40  Reserve = 0xff
41  };
42 
43  explicit KFileMetaInfoWidget(KFileMetaInfoItem item,
44  QValidator* val = 0,
45  QWidget* parent = 0);
46 
47  KFileMetaInfoWidget(KFileMetaInfoItem item, Mode mode, QValidator* val = 0,
48  QWidget* parent = 0 );
49 
50  virtual ~KFileMetaInfoWidget();
51 
52  bool apply();
53 
54  void setValue(const QVariant &value);
55  QVariant value() const;
56  QValidator* validator() const;
57  KFileMetaInfoItem item() const;
58 
59 Q_SIGNALS:
60  void valueChanged(const QVariant& value);
61 
62 protected:
63  void reparentValidator(QWidget *widget, QValidator *validator);
64  virtual QWidget* makeWidget();
65 
66  QWidget* makeBoolWidget();
67  QWidget* makeIntWidget();
68  QWidget* makeDoubleWidget();
69  QWidget* makeStringWidget();
70  QWidget* makeDateWidget();
71  QWidget* makeTimeWidget();
72  QWidget* makeDateTimeWidget();
73 
74 private Q_SLOTS:
75  void slotChanged(bool value);
76  void slotChanged(int value);
77  void slotChanged(double value);
78  void slotComboChanged(const QString &value);
79  void slotLineEditChanged(const QString& value);
80  void slotMultiLineEditChanged();
81  void slotDateChanged(const QDate& value);
82  void slotTimeChanged(const QTime& value);
83  void slotDateTimeChanged(const QDateTime& value);
84 
85 private:
86  friend class KFileMetaInfoWidgetPrivate;
87  KFileMetaInfoWidgetPrivate *const d;
88 
89  Q_DISABLE_COPY(KFileMetaInfoWidget)
90 };
91 
92 #endif
QWidget
KFileMetaInfoItem
Definition: kfilemetainfoitem.h:34
KImageIO::Mode
Mode
Possible image file access modes.
Definition: kimageio.h:53
KFileMetaInfoWidget::Mode
Mode
Definition: kfilemetainfowidget.h:36
QTime
QDate
QString
apply
KGuiItem apply()
kfilemetainfo.h
KFileMetaInfoWidget
Definition: kfilemetainfowidget.h:32
QDateTime
QValidator
QVariant
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:53 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KIO

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

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