Motoko::SkinsManager Class Reference

Manager of all the application's themes. More...

#include <Appearance.h>

List of all members.

Public Member Functions

 SkinsManager ()
 SkinsManager (const SkinsManager &obj)
virtual SkinsManageroperator= (const SkinsManager &obj)
 ~SkinsManager ()
int AddTheme (const char *fileDPF, const char *fileXML="skinconfig.xml")
 Add a theme.
int AddTheme (ThemeSkin *theme)
 Add a theme.
void RemoveTheme (const char *theme)
 Remove a theme.
void Free (void)
 Unload the themes.
ControlSkinGetSkin (const char *theme, const char *name)
 Get a pointer to a skin.
void SetThemeName (const char *theme, const char *name)
 Set a new name to the theme.


Detailed Description

Manager of all the application's themes.


Constructor & Destructor Documentation

Motoko::SkinsManager::SkinsManager (  ) 

SkinsManager constructor.

Motoko::SkinsManager::SkinsManager ( const SkinsManager obj  ) 

SkinsManager copy constructor.

Motoko::SkinsManager::~SkinsManager (  ) 

SkinsManager destructor.


Member Function Documentation

int Motoko::SkinsManager::AddTheme ( ThemeSkin theme  ) 

Add a theme.

Parameters:
theme New theme.
See also:
RemoveTheme(), Free().
Returns:
If no error 0, else an error code.

int Motoko::SkinsManager::AddTheme ( const char *  fileDPF,
const char *  fileXML = "skinconfig.xml" 
)

Add a theme.

Parameters:
fileDPF File with the theme.
fileXML File with the parameters.
See also:
RemoveTheme(), Free().
Returns:
If no error 0, else an error code.

void Motoko::SkinsManager::Free ( void   ) 

Unload the themes.

See also:
AddTheme(), RemoveTheme().

ControlSkin * Motoko::SkinsManager::GetSkin ( const char *  theme,
const char *  name 
)

Get a pointer to a skin.

Parameters:
theme Name of the theme.
name Name of the skin.
Returns:
If no error a pointer to the skin, else NULL.

SkinsManager & Motoko::SkinsManager::operator= ( const SkinsManager obj  )  [virtual]

SkinsManager operator =.

void Motoko::SkinsManager::RemoveTheme ( const char *  theme  ) 

Remove a theme.

See also:
AddTheme(), Free().

void Motoko::SkinsManager::SetThemeName ( const char *  theme,
const char *  name 
)

Set a new name to the theme.

Parameters:
theme Name of the theme.
name New name of the theme.


The documentation for this class was generated from the following files:
Generated on Mon Jul 17 18:33:49 2006 for Motoko by  doxygen 1.4.7