22#ifndef KPROPERTY_PROPERTY_H
23#define KPROPERTY_PROPERTY_H
26#include "koproperty_global.h"
28template< class U> class TQAsciiDict;
29template< class U> class TQAsciiDictIterator;
67 Auto = TQVariant::Invalid - 1,
69 Map = TQVariant::Map ,
88 CString = TQVariant::CString ,
125 SizePolicy_HorStretch,
126 SizePolicy_VerStretch,
182 typedef TQAsciiDict<Property> Dict;
183 typedef TQAsciiDictIterator<Property> DictIterator;
191 ListData( const TQStringList& keys_, const TQStringList& names_);
192 ListData( const TQValueList<TQVariant> keys_, const TQStringList& names_);
196 void setKeysAsStringList( const TQStringList& list);
197 TQStringList keysAsStringList() const;
228 Property( const TQCString & name, const TQStringList &keys, const TQStringList &strings,
229 const TQVariant & value = TQVariant(),
236 const TQVariant & value = TQVariant(),
246 TQCString name() const;
277 TQVariant value() const;
283 void setValue( const TQVariant & value, bool rememberOldValue = true, bool useCustomProperty= true);
300 void setListData( const TQStringList &keys, const TQStringList &names);
307 TQString icon() const;
311 const TQValueList<Property*>* children() const;
331 operator bool () const;
394 const Property& operator= ( const TQVariant& val);
400 bool operator ==( const Property &prop) const;
420 const TQValueList<Property*>* related() const;
438 friend class CustomProperty;
Base class for custom properties.
ListData(const TQStringList &keys_, const TQStringList &names_)
TQValueList< TQVariant > keys
void setSortingKey(int key)
void setAutoSync(int sync)
CustomProperty * customProperty() const
void setStorable(bool storable)
Property * child(const TQCString &name)
const TQValueList< Property * > * children() const
ListData * listData() const
TQVariant option(const char *name) const
Property * parent() const
static const Property null A contant for null property.
void addRelatedProperty(Property *property)
void clearModifiedFlag() Clears "modified" flag, so isModified() will return false.
void setReadOnly(bool readOnly)
void setCaption(const TQString &caption)
void addChild(Property *prop)
TQString description() const
void setName(const TQCString &name)
void setVisible(bool visible)
void setValue(const TQVariant &value, bool rememberOldValue=true, bool useCustomProperty=true)
const TQValueList< Property * > * related() const
TQString captionForDisplaying() const
void setListData(ListData *list)
TQVariant oldValue() const
void setCustomProperty(CustomProperty *prop)
void emitPropertyChanged()
void setOption(const char *name, const TQVariant &val)
void setDescription(const TQString &description)
void setIcon(const TQString &icon)
Lists holding properties in groups.
Namespace for a set of classes implementing generic properties framework.
@ List TQValueList<TQVariant>.
@ Symbol unicode symbol code
@ Rect rectangle (x,y, width, height)
@ DirectoryURL url of a directory
@ Size size (width, height)
@ UserDefined plugin defined properties should start here
@ PictureFileURL url of a pixmap
@ Invalid invalid property type
@ FontName font name, e.g.
@ SizePolicy size policy (horizontal, vertical)
@ ValueFromList string value from a list
|