EntityAttribute Class Reference

The EntityAttribute interface is used as a base class for all of the individual GTK "renderers" for each key type. This allows, for example, a boolean keyval to be controlled through a checkbox while a text keyval is given a text entry field. More...

#include <EntityAttribute.h>

Inheritance diagram for EntityAttribute:
Inheritance graph
[legend]

Public Member Functions

virtual ~EntityAttribute (void)
virtual GtkWidgetgetWidget () const =0
virtual void update ()=0
void entitySetValue (const std::string &classname, const std::string &key, const std::string &value)
const std::string entityGetValueForKey (const std::string &key)
 Helper method returns the first value in value list for given key for currently selected entity class or an empty string.
double angle_normalised (double angle)
GtkEntrynumeric_entry_new (void)

Detailed Description

The EntityAttribute interface is used as a base class for all of the individual GTK "renderers" for each key type. This allows, for example, a boolean keyval to be controlled through a checkbox while a text keyval is given a text entry field.

Note that the EntityAttribute selection is based on the key TYPE not the key itself, so it is not (currently) possible to use a different EntityAttribute for each of two text keyvals.

Definition at line 27 of file EntityAttribute.h.


Constructor & Destructor Documentation

virtual EntityAttribute::~EntityAttribute ( void   )  [inline, virtual]

Definition at line 30 of file EntityAttribute.h.


Member Function Documentation

double EntityAttribute::angle_normalised ( double  angle  )  [inline]
const std::string EntityAttribute::entityGetValueForKey ( const std::string key  )  [inline]

Helper method returns the first value in value list for given key for currently selected entity class or an empty string.

Parameters:
key key to retrieve value for
Returns:
first value in value list or empty string

Definition at line 53 of file EntityAttribute.h.

References i.

Referenced by Vector3Attribute::update(), StringAttribute::update(), SoundAttribute::update(), ParticleAttribute::update(), ModelAttribute::update(), ListAttribute::update(), DirectionAttribute::update(), BooleanAttribute::update(), AnglesAttribute::update(), and AngleAttribute::update().

void EntityAttribute::entitySetValue ( const std::string classname,
const std::string key,
const std::string value 
) [inline]
virtual GtkWidget* EntityAttribute::getWidget (  )  const [pure virtual]
GtkEntry* EntityAttribute::numeric_entry_new ( void   )  [inline]
virtual void EntityAttribute::update (  )  [pure virtual]

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

Generated by  doxygen 1.6.2