Signals | Public Member Functions

IAttribute Class Reference
[AttributesDataModel]

This is the base abstract class for state and transition attributes. More...

#include <iattribute.h>

Inherited by FontBoldAttribute, FontColorAttribute, FontFamilyAttribute, FontSizeAttribute, FontUnderlineAttribute, GenericAttribute, IDAttribute, PositionAttribute, SizeAttribute, StateAttributes::StateName, StateAttributes::StateString, TextAttribute, TransitionAttributes::TransitionPathAttribute, TransitionAttributes::TransitionPositionAttribute, and TransitionAttributes::TransitionStringAttribute.

List of all members.

Signals

void changed (IAttribute *attr)
void error (QString err)

Public Member Functions

 IAttribute ()
 IAttribute (QObject *parent, QString initkey)
 IAttribute (const IAttribute &a)
IAttributeoperator= (const IAttribute &a)
virtual QString asString ()=0
virtual void setValue (const QString value)=0
virtual QString key () const

Detailed Description

This is the base abstract class for state and transition attributes.

Attributes are intented to be contained in IAttributeContainer-s. Attributes must subclass IAttribute and implement asString(), setValue(). New Attribute sub-types should be added to the AttributeType enum.

Generally, a view can query attribute containers for attributes, then query attributes for their values using asString(), without checking the type.

An subclass of IAttribute may override the the setValue() method to provide native type parameters, for example, from the TransitionPositionAttribute subclass:

        virtual void    setValue(const QString position)  ;
        void            setValue(const int w,const int h);
        void            setValue(const QPointF s);

Constructor & Destructor Documentation

IAttribute::IAttribute (  ) 
IAttribute::IAttribute ( QObject *  parent,
QString  initkey 
)
IAttribute::IAttribute ( const IAttribute a  ) 

Member Function Documentation

virtual QString IAttribute::asString (  )  [pure virtual]
void IAttribute::changed ( IAttribute attr  )  [signal]

Here is the caller graph for this function:

void IAttribute::error ( QString  err  )  [signal]

Here is the caller graph for this function:

QString IAttribute::key (  )  const [virtual]

Here is the caller graph for this function:

IAttribute & IAttribute::operator= ( const IAttribute a  ) 
virtual void IAttribute::setValue ( const QString  value  )  [pure virtual]

The documentation for this class was generated from the following files: