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

PropPalette Class Reference

#include <PropPalette.h>

Inheritance diagram for PropPalette:
Window Control Broadcaster Listener

List of all members.

Public Member Functions

 PropPalette (PropFactory &factory, int x, int y)
 ~PropPalette ()
int getPropId () const

Private Types

typedef std::pair< string, int > PropId
typedef std::vector< PropIdPropIdList
typedef std::map< string,
PropIdList
PropCategories

Private Member Functions

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

Private Attributes

PropFactorymPropFactory
PropCategories mPropCategories
ListBoxlstCategories
ListBoxlstProps
PropIdList mPropIdList
string mSelectedCat
string mSelectedProp
int mPropId

Member Typedef Documentation

typedef std::map<string, PropIdList> PropPalette::PropCategories [private]
typedef std::pair<string, int> PropPalette::PropId [private]
typedef std::vector<PropId> PropPalette::PropIdList [private]

Constructor & Destructor Documentation

PropPalette::PropPalette ( PropFactory factory,
int  x,
int  y 
)
PropPalette::~PropPalette (  ) 

Member Function Documentation

int PropPalette::getPropId (  )  const [inline]
void PropPalette::initPropCategoryTable (  )  [private]
void PropPalette::notifyListener (  )  [private]

Notifies the listening object that a selection has been made.

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

Reimplemented from Control.

void PropPalette::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 PropPalette::mPropId [private]
string PropPalette::mSelectedCat [private]
string PropPalette::mSelectedProp [private]

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