Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

THEME_THEME Class Reference

#include <theme_priv.h>

Inheritance diagram for THEME_THEME:

Inheritance graph
[legend]
List of all members.

Public Types

typedef std::map< std::string,
THEME_WIDGET * > 
MAP_WIDGET

Public Member Functions

 THEME_THEME ()
virtual ~THEME_THEME ()
const std::string & FindDefaultFontName ()
int FindDefaultFontSize ()
PG_Font::Style FindDefaultFontStyle ()
const std::string & FindFontName (const std::string &, const std::string &)
int FindFontSize (const std::string &, const std::string &)
PG_Font::Style FindFontStyle (const std::string &, const std::string &)
SDL_Surface * FindSurface (const std::string &widgettype, const std::string &object, const std::string &name)
PG_GradientFindGradient (const std::string &widgettype, const std::string &object, const std::string &name)
void GetProperty (const std::string &widgettype, const std::string &object, const std::string &name, long &prop)
void GetProperty (const std::string &widgettype, const std::string &object, const std::string &name, Uint8 &prop)
void GetProperty (const std::string &widgettype, const std::string &object, const std::string &name, bool &prop)
void GetProperty (const std::string &widgettype, const std::string &object, const std::string &name, int &prop)
void GetProperty (const std::string &widgettype, const std::string &object, const std::string &name, PG_Draw::BkMode &prop)
void GetAlignment (const std::string &widgettype, const std::string &object, const std::string &name, PG_Label::TextAlign &align)
void GetColor (const std::string &widgettype, const std::string &object, const std::string &name, PG_Color &color)
const std::string & FindString (const std::string &widgettype, const std::string &object, const std::string &name)
THEME_WIDGETFindWidget (const std::string &widgettype)
THEME_OBJECTFindObject (const std::string &widgettype, const std::string &objectname)

Public Attributes

THEME_FONTdefaultfont
std::string title
std::string description
std::string author
std::string email
MAP_WIDGET widget

Member Typedef Documentation

typedef std::map<std::string, THEME_WIDGET*> THEME_THEME::MAP_WIDGET
 

Definition at line 210 of file theme_priv.h.


Constructor & Destructor Documentation

THEME_THEME::THEME_THEME  )  [inline]
 

Definition at line 173 of file theme_priv.h.

References defaultfont.

THEME_THEME::~THEME_THEME  )  [virtual]
 

Definition at line 32 of file theme_priv.cpp.

References defaultfont, and widget.


Member Function Documentation

const std::string & THEME_THEME::FindDefaultFontName  )  [virtual]
 

Implements PG_Theme.

Definition at line 168 of file theme_priv.cpp.

References defaultfont, and THEME_FONT::value.

int THEME_THEME::FindDefaultFontSize  )  [virtual]
 

Implements PG_Theme.

Definition at line 172 of file theme_priv.cpp.

References defaultfont, and THEME_FONT::size.

PG_Font::Style THEME_THEME::FindDefaultFontStyle  )  [virtual]
 

Implements PG_Theme.

Definition at line 180 of file theme_priv.cpp.

References defaultfont, PG_Font::NORMAL, and THEME_FONT::style.

const std::string & THEME_THEME::FindFontName const std::string &  ,
const std::string & 
[virtual]
 

Implements PG_Theme.

Definition at line 188 of file theme_priv.cpp.

References FindObject(), THEME_OBJECT::font, PG_NULLSTR, and THEME_FONT::value.

int THEME_THEME::FindFontSize const std::string &  ,
const std::string & 
[virtual]
 

Implements PG_Theme.

Definition at line 202 of file theme_priv.cpp.

References FindObject(), THEME_OBJECT::font, and THEME_FONT::size.

PG_Font::Style THEME_THEME::FindFontStyle const std::string &  ,
const std::string & 
[virtual]
 

Implements PG_Theme.

Definition at line 216 of file theme_priv.cpp.

References FindObject(), THEME_OBJECT::font, PG_Font::NORMAL, and THEME_FONT::style.

PG_Gradient * THEME_THEME::FindGradient const std::string &  widgettype,
const std::string &  object,
const std::string &  name
[virtual]
 

Implements PG_Theme.

Definition at line 73 of file theme_priv.cpp.

References THEME_OBJECT::FindGradient(), and FindObject().

THEME_OBJECT * THEME_THEME::FindObject const std::string &  widgettype,
const std::string &  objectname
 

Definition at line 51 of file theme_priv.cpp.

References THEME_WIDGET::FindObject(), FindWidget(), and widget.

Referenced by FindFontName(), FindFontSize(), FindFontStyle(), FindGradient(), FindString(), FindSurface(), and GetProperty().

const std::string & THEME_THEME::FindString const std::string &  widgettype,
const std::string &  object,
const std::string &  name
[virtual]
 

Implements PG_Theme.

Definition at line 158 of file theme_priv.cpp.

References FindObject(), THEME_OBJECT::FindString(), and PG_NULLSTR.

SDL_Surface * THEME_THEME::FindSurface const std::string &  widgettype,
const std::string &  object,
const std::string &  name
[virtual]
 

Implements PG_Theme.

Definition at line 63 of file theme_priv.cpp.

References FindObject(), and THEME_OBJECT::FindSurface().

THEME_WIDGET * THEME_THEME::FindWidget const std::string &  widgettype  ) 
 

Definition at line 42 of file theme_priv.cpp.

References widget.

Referenced by FindObject().

void THEME_THEME::GetAlignment const std::string &  widgettype,
const std::string &  object,
const std::string &  name,
PG_Label::TextAlign align
[virtual]
 

Implements PG_Theme.

Definition at line 295 of file theme_priv.cpp.

References PG_Label::CENTER, GetProperty(), PG_Label::LEFT, and PG_Label::RIGHT.

void THEME_THEME::GetColor const std::string &  widgettype,
const std::string &  object,
const std::string &  name,
PG_Color color
[virtual]
 

Implements PG_Theme.

Definition at line 318 of file theme_priv.cpp.

References GetProperty().

void THEME_THEME::GetProperty const std::string &  widgettype,
const std::string &  object,
const std::string &  name,
PG_Draw::BkMode prop
[virtual]
 

Implements PG_Theme.

Definition at line 143 of file theme_priv.cpp.

References FindObject(), and THEME_OBJECT::FindProperty().

void THEME_THEME::GetProperty const std::string &  widgettype,
const std::string &  object,
const std::string &  name,
int &  prop
[virtual]
 

Implements PG_Theme.

Definition at line 128 of file theme_priv.cpp.

References FindObject(), and THEME_OBJECT::FindProperty().

void THEME_THEME::GetProperty const std::string &  widgettype,
const std::string &  object,
const std::string &  name,
bool &  prop
[virtual]
 

Implements PG_Theme.

Definition at line 113 of file theme_priv.cpp.

References FindObject(), and THEME_OBJECT::FindProperty().

void THEME_THEME::GetProperty const std::string &  widgettype,
const std::string &  object,
const std::string &  name,
Uint8 &  prop
[virtual]
 

Implements PG_Theme.

Definition at line 98 of file theme_priv.cpp.

References FindObject(), and THEME_OBJECT::FindProperty().

void THEME_THEME::GetProperty const std::string &  widgettype,
const std::string &  object,
const std::string &  name,
long &  prop
[virtual]
 

Implements PG_Theme.

Definition at line 83 of file theme_priv.cpp.

References FindObject(), and THEME_OBJECT::FindProperty().

Referenced by GetAlignment(), and GetColor().


Member Data Documentation

std::string THEME_THEME::author
 

Definition at line 202 of file theme_priv.h.

Referenced by parseThemeProps().

THEME_FONT* THEME_THEME::defaultfont
 

Definition at line 198 of file theme_priv.h.

Referenced by FindDefaultFontName(), FindDefaultFontSize(), FindDefaultFontStyle(), parseThemeProps(), THEME_THEME(), and ~THEME_THEME().

std::string THEME_THEME::description
 

Definition at line 201 of file theme_priv.h.

Referenced by parseThemeProps().

std::string THEME_THEME::email
 

Definition at line 203 of file theme_priv.h.

Referenced by parseThemeProps().

std::string THEME_THEME::title
 

Definition at line 200 of file theme_priv.h.

Referenced by parseThemeProps().

MAP_WIDGET THEME_THEME::widget
 

Definition at line 213 of file theme_priv.h.

Referenced by FindObject(), FindWidget(), parseWidgetProps(), and ~THEME_THEME().


The documentation for this class was generated from the following files:
Generated on Tue Jun 24 02:21:34 2008 for Advanced Strategic Command by  doxygen 1.4.2