#include <childproperty.h>
Public Types | |
| enum | ChildPropertyType { Size_Height , Size_Width , Point_X , Point_Y , Rect_X , Rect_Y , Rect_Width , Rect_Height , SizePolicy_HorData , SizePolicy_VerData , SizePolicy_HorStretch , SizePolicy_VerStretch } |
| Public Types inherited from PropertyLib::Property | |
| enum | PropertyType { Invalid = TQVariant::Invalid , Map = TQVariant::Map , List = TQVariant::List , String = TQVariant::String , StringList = TQVariant::StringList , Font = TQVariant::Font , Pixmap = TQVariant::Pixmap , Rect = TQVariant::Rect , Size = TQVariant::Size , Color = TQVariant::Color , Point = TQVariant::Point , Integer = TQVariant::Int , Boolean = TQVariant::Bool , Double = TQVariant::Double , Cursor = TQVariant::Cursor , SizePolicy = TQVariant::SizePolicy , Date = TQVariant::Date , DateTime = TQVariant::DateTime , ValueFromList = 2000 , Symbol = 2001 , FontName = 2002 , FileURL = 2003 , DirectoryURL = 2004 , LineStyle = 2005 , UserDefined = 3000 } |
Public Member Functions | |
| ChildProperty () | |
| ChildProperty (MultiProperty *parent, int type, ChildPropertyType childType, const TQString &name, const TQString &description, const TQVariant &value=TQVariant(), bool save=true, bool readOnly=false) | |
| ChildProperty (MultiProperty *parent, const TQString &name, ChildPropertyType childType, const TQStringVariantMap &v_valueList, const TQString &description, const TQVariant &value=TQVariant(), bool save=true, bool readOnly=false) | |
| virtual TQVariant | value () const |
| virtual void | setValue (const TQVariant &value, bool rememberOldValue=true) |
| Public Member Functions inherited from PropertyLib::Property | |
| Property () | |
| Property (int type, const TQString &name, const TQString &description, const TQVariant &value=TQVariant(), bool save=true, bool readOnly=false) | |
| Property (const TQString &name, const TQStringVariantMap &v_valueList, const TQString &description, const TQVariant &value=TQVariant(), bool save=true, bool readOnly=false) | |
| virtual bool | operator< (const Property &prop) const |
| virtual TQString | name () const |
| virtual void | setName (const TQString &name) |
| virtual int | type () const |
| virtual void | setType (int type) |
| virtual TQString | description () const |
| virtual void | setDescription (const TQString &description) |
| virtual void | setValueList (const TQStringVariantMap &list) |
| virtual bool | allowSaving () const |
| virtual bool | readOnly () const |
| virtual bool | visible () const |
| virtual void | setVisible (const bool visible) |
| virtual TQVariant | oldValue () const |
Additional Inherited Members | |
| Public Attributes inherited from PropertyLib::Property | |
| TQStringVariantMap | valueList |
Detailed Description
Child property.
Child property is a detailed property for complex parent properties. For example, to edit a property of Point type one can request two child properties for "x" and "y" components of a point.
Child properties instances usually belong to MultiProperty class which is used to fetch and display them in the property editor. Child properties are created by a PropertyMachineFactory. Factory in such case does not only creates a machine for a property, but also fills corrresponding multiproperty with a list of child properties.
Definition at line 43 of file childproperty.h.
Member Enumeration Documentation
◆ ChildPropertyType
| enum PropertyLib::ChildProperty::ChildPropertyType |
Definition at line 45 of file childproperty.h.
Constructor & Destructor Documentation
◆ ChildProperty() [1/3]
|
inline |
Constructs empty property.
Definition at line 61 of file childproperty.h.
◆ ChildProperty() [2/3]
| PropertyLib::ChildProperty::ChildProperty | ( | MultiProperty * | parent, |
| int | type, | ||
| ChildPropertyType | childType, | ||
| const TQString & | name, | ||
| const TQString & | description, | ||
| const TQVariant & | value = TQVariant(), | ||
| bool | save = true, | ||
| bool | readOnly = false ) |
Constructs property.
Definition at line 31 of file childproperty.cpp.
◆ ChildProperty() [3/3]
| PropertyLib::ChildProperty::ChildProperty | ( | MultiProperty * | parent, |
| const TQString & | name, | ||
| ChildPropertyType | childType, | ||
| const TQStringVariantMap & | v_valueList, | ||
| const TQString & | description, | ||
| const TQVariant & | value = TQVariant(), | ||
| bool | save = true, | ||
| bool | readOnly = false ) |
Constructs property with ValueFromList type.
Definition at line 37 of file childproperty.cpp.
Member Function Documentation
◆ setValue()
|
virtual |
Sets the value of the property.
Reimplemented from PropertyLib::Property.
Definition at line 44 of file childproperty.cpp.
◆ value()
|
virtual |
- Returns
- the value of the property.
Reimplemented from PropertyLib::Property.
Definition at line 107 of file childproperty.cpp.
The documentation for this class was generated from the following files:
Trinity API Reference