A TweakBarHandler to edit resources. More...
#include <TweakResource.h>
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. |
A TweakBarHandler to edit resources.
proland::TweakResource::TweakResource | ( | string | name, | |
ptr< ResourceManager > | manager, | |||
const TiXmlElement * | e | |||
) |
Creates a new TweakResource.
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.
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.
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.