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

KIO

  • 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
27class KFileMetaInfoWidgetPrivate;
28
32class KIO_EXPORT KFileMetaInfoWidget: public QWidget
33{
34 Q_OBJECT
35public:
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
59Q_SIGNALS:
60 void valueChanged(const QVariant& value);
61
62protected:
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
74private 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
85private:
86 friend class KFileMetaInfoWidgetPrivate;
87 KFileMetaInfoWidgetPrivate *const d;
88
89 Q_DISABLE_COPY(KFileMetaInfoWidget)
90};
91
92#endif
KFileMetaInfoItem
Definition: kfilemetainfoitem.h:34
KFileMetaInfoWidget
Definition: kfilemetainfowidget.h:33
KFileMetaInfoWidget::Mode
Mode
Definition: kfilemetainfowidget.h:37
KFileMetaInfoWidget::valueChanged
void valueChanged(const QVariant &value)
QValidator
QWidget
kfilemetainfo.h
apply
KGuiItem apply()
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 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-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 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
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