proland::TweakResource Class Reference
[twbar]

A TweakBarHandler to edit resources. More...

#include <TweakResource.h>

Inheritance diagram for proland::TweakResource:
proland::TweakBarHandler

List of all members.

Classes

class  Data
 Abstract data class used for tweak bar callbacks. More...

Public Member Functions

 TweakResource (string name, ptr< ResourceManager > manager, const TiXmlElement *e)
 Creates a new TweakResource.
virtual ~TweakResource ()
 Deletes this TweakResource.
virtual void updateBar (TwBar *bar)
 Adds controls to the given tweak bar.

Protected Member Functions

 TweakResource ()
 Creates an uninitialized TweakResource.
void init (string name, ptr< ResourceManager > manager, const TiXmlElement *e)
 Initializes this TweakResource.

Private Attributes

ptr< ResourceManager > manager
 A resource manager to load the resources defined in e.
TiXmlElement * e
 An XML description of the controls that must be provided by this TweakResource.
vector< Data * > datas
 The tweak bar data managed by this TweakResource.

Detailed Description

A TweakBarHandler to edit resources.

Authors:
Eric Bruneton, Antoine Begault

Constructor & Destructor Documentation

proland::TweakResource::TweakResource ( string  name,
ptr< ResourceManager >  manager,
const TiXmlElement *  e 
)

Creates a new TweakResource.

Parameters:
name the name of this TweakResource.
manager a resource manager to load the resources defined in e.
e an XML description of the controls that must be provided by this TweakResource.
virtual proland::TweakResource::~TweakResource (  )  [virtual]

Deletes this TweakResource.

proland::TweakResource::TweakResource (  )  [protected]

Creates an uninitialized TweakResource.


Member Function Documentation

void proland::TweakResource::init ( string  name,
ptr< ResourceManager >  manager,
const TiXmlElement *  e 
) [protected]

Initializes this TweakResource.

See TweakResource.

virtual void proland::TweakResource::updateBar ( TwBar *  bar  )  [virtual]

Adds controls to the given tweak bar.

Implements proland::TweakBarHandler.


Member Data Documentation

vector<Data*> proland::TweakResource::datas [private]

The tweak bar data managed by this TweakResource.

TiXmlElement* proland::TweakResource::e [private]

An XML description of the controls that must be provided by this TweakResource.

ptr<ResourceManager> proland::TweakResource::manager [private]

A resource manager to load the resources defined in e.


Generated on Sat May 12 09:41:40 2012 for proland by  doxygen 1.6.1