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