kmetaprops.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __KMETAPROPS_H__
00021 #define __KMETAPROPS_H__
00022 #include <kpropertiesdialog.h>
00023
00024
00025 class KFileMetaInfoItem;
00026
00031 class KIO_EXPORT KFileMetaPropsPlugin : public KPropsDlgPlugin
00032 {
00033 Q_OBJECT
00034 public:
00038 KFileMetaPropsPlugin( KPropertiesDialog *_props );
00039 virtual ~KFileMetaPropsPlugin();
00040
00041 virtual void applyChanges();
00042
00046 static bool supports( KFileItemList _items );
00047
00048 private:
00049 void createLayout();
00050
00051 QWidget* makeBoolWidget(const KFileMetaInfoItem& item, QWidget* parent);
00052 QWidget* makeIntWidget(const KFileMetaInfoItem& item, QWidget* parent,
00053 QString& valClass);
00054 QWidget* makeStringWidget(const KFileMetaInfoItem& item, QWidget* parent,
00055 QString& valClass);
00056 QWidget* makeDateTimeWidget(const KFileMetaInfoItem& item, QWidget* parent,
00057 QString& valClass);
00058
00059 private slots:
00060
00061
00062
00063 private:
00064
00065 class KFileMetaPropsPluginPrivate;
00066 KFileMetaPropsPluginPrivate *d;
00067 };
00068
00069 #endif
|