Public Member Functions | Private Types | Private Member Functions | Private Attributes

TilePalette Class Reference

#include <TilePalette.h>

Inheritance diagram for TilePalette:
Window Control Broadcaster Listener

List of all members.

Public Member Functions

 TilePalette (int x, int y)
 ~TilePalette ()
void addTileSets (const TsetList &tsetList)
int getTileSetIndex () const
int getTileIndex () const

Private Types

typedef std::map< string,
vector< ListItem * > > 
TileGroup

Private Member Functions

void windowInit ()
 Instructs derived Window objects to initialize themselves.
void push (Event *event)
void clear ()
void notifyListener ()

Private Attributes

TileGroup mTileGroups
ButtonbtnAdd
ButtonbtnRemove
ListBoxlstTilesets
ListBoxlstTiles
int mTsetIndex
int mTileIndex

Member Typedef Documentation

typedef std::map<string, vector<ListItem *> > TilePalette::TileGroup [private]

Constructor & Destructor Documentation

TilePalette::TilePalette ( int  x,
int  y 
)
TilePalette::~TilePalette (  ) 

Member Function Documentation

void TilePalette::addTileSets ( const TsetList tsetList  ) 
void TilePalette::clear (  )  [private]
int TilePalette::getTileIndex (  )  const [inline]
int TilePalette::getTileSetIndex (  )  const [inline]
void TilePalette::notifyListener (  )  [private]

Notifies the listening object that a selection has been made.

void TilePalette::push ( Event event  )  [private, virtual]

Reimplemented from Control.

void TilePalette::windowInit (  )  [private, virtual]

Instructs derived Window objects to initialize themselves.

Note:
This function must be overridden in derived objects.

When deriving a Window Control, windowInit() must be overridden. This is the function where one would create and add new Control objects as well as specify various attributes such as color, size, position, etc.

Reimplemented from Window.


Member Data Documentation

int TilePalette::mTileIndex [private]
int TilePalette::mTsetIndex [private]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines