20 #ifndef __TDEFILEMETAINFOWIDGET_H__
21 #define __TDEFILEMETAINFOWIDGET_H__
24 #include <tqvariant.h>
25 #include <tdefilemetainfo.h>
42 TQWidget* parent = 0,
const char* name = 0);
45 TQWidget* parent = 0,
const char* name = 0);
51 return m_item.isEditable() && m_item.setValue(m_value);
54 void setValue(
const TQVariant& value) { m_value = value; }
55 TQVariant value()
const {
return m_value; }
56 TQValidator* validator()
const {
return m_validator; }
57 KFileMetaInfoItem item()
const {
return m_item; }
60 void valueChanged(
const TQVariant& value);
63 void reparentValidator(TQWidget *widget, TQValidator *validator);
64 virtual TQWidget* makeWidget();
66 TQWidget* makeBoolWidget();
67 TQWidget* makeIntWidget();
68 TQWidget* makeDoubleWidget();
69 TQWidget* makeStringWidget();
70 TQWidget* makeDateWidget();
71 TQWidget* makeTimeWidget();
72 TQWidget* makeDateTimeWidget();
75 void slotChanged(
bool value);
76 void slotChanged(
int value);
77 void slotChanged(
double value);
78 void slotComboChanged(
const TQString &value);
79 void slotLineEditChanged(
const TQString& value);
80 void slotMultiLineEditChanged();
81 void slotDateChanged(
const TQDate& value);
82 void slotTimeChanged(
const TQTime& value);
83 void slotDateTimeChanged(
const TQDateTime& value);
86 void init(KFileMetaInfoItem item, Mode mode);
89 KFileMetaInfoItem m_item;
91 TQValidator* m_validator;