• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • KDevelop Property Editing Library
 

KDevelop Property Editing Library

  • PropertyLib
  • ChildProperty
Public Types | Public Member Functions | List of all members
PropertyLib::ChildProperty Class Reference

#include <childproperty.h>

Inheritance diagram for PropertyLib::ChildProperty:
PropertyLib::Property

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]

PropertyLib::ChildProperty::ChildProperty ( )
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()

void PropertyLib::ChildProperty::setValue ( const TQVariant &  value,
bool  rememberOldValue = true 
)
virtual

Sets the value of the property.

Reimplemented from PropertyLib::Property.

Definition at line 44 of file childproperty.cpp.

◆ value()

TQVariant PropertyLib::ChildProperty::value ( ) const
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:
  • childproperty.h
  • childproperty.cpp

KDevelop Property Editing Library

Skip menu "KDevelop Property Editing Library"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

KDevelop Property Editing Library

Skip menu "KDevelop Property Editing Library"
  • buildtools
  •   lib
  •     base
  •     parsers
  •       autotools
  •       qmake
  •     widgets
  •   api
  • languages
  •   lib
  •     debugger
  •     designer_integration
  •     interfaces
  • lib
  •   catalog
  •   interfaces
  •     extensions
  •     external
  •     extras
  •   util
  •   widgets
  •     propeditor
  • parts
  •   documentation
  •     interfaces
  • src
  •   profileengine
  •     lib
Generated for KDevelop Property Editing Library by doxygen 1.9.8
This website is maintained by Timothy Pearson.