propertywidget.h
Go to the documentation of this file.
71 virtual void drawViewer(TQPainter *p, const TQColorGroup &cg, const TQRect &r, const TQVariant &value);
virtual void undo()
Reverts the property value to previous setting.
Definition: propertywidget.cpp:55
virtual TQString propertyName() const
Definition: propertywidget.cpp:31
PropertyWidget(MultiProperty *property, TQWidget *parent=0, const char *name=0)
Constructs widget for property with name "propertyName".
Definition: propertywidget.cpp:26
virtual void drawViewer(TQPainter *p, const TQColorGroup &cg, const TQRect &r, const TQVariant &value)
Function to draw a property viewer when the editor isn't shown.
Definition: propertywidget.cpp:41
virtual TQVariant value() const =0
virtual void setValue(const TQVariant &value, bool emitChange=true)=0
Sets the value shown in the editor widget.
Contains PropertyLib::MultiProperty class.
An abstract base class of property viewer and editor vidget.
Definition: propertywidget.h:49
void propertyChanged(MultiProperty *property, const TQVariant &value)
Emit this signal when property value is changed.
virtual void setValueList(const TQMap< TQString, TQVariant > &valueList)
Sets the list of possible values shown in the editor widget.
Definition: propertywidget.cpp:49
virtual void setProperty(MultiProperty *property)
Sets the name of edited property.
Definition: propertywidget.cpp:36
Holds a list of properties with the same name and type.
Definition: multiproperty.h:49