Public Member Functions | Private Member Functions | Private Attributes

NewMap Class Reference

Displayed in the Map Editor when the user wants to create a new map. More...

#include <TilePalette.h>

Inheritance diagram for NewMap:
Window Control Broadcaster Listener

List of all members.

Public Member Functions

 NewMap (int x, int y)
 ~NewMap ()
MapgetMap ()

Private Member Functions

void windowInit ()
 Instructs derived Window objects to initialize themselves.
void push (Event *event)
void loadTilesets ()
bool checkValues ()
void setHighlight (Control *control, bool highlight)
void clearHighlights ()
void clearFields ()

Private Attributes

TsetList mTsetList
StringList mTsetNames
LabellblName
LabellblWidth
LabellblHeight
LabellblTileset
LabellblStatus
TextFieldtxtName
TextFieldtxtWidth
TextFieldtxtHeight
ListBoxlstTileset
ButtonbtnCreate
ButtonbtnCancel
MapmMap
int mTileWidth
int mTileHeight
int mMapWidth
int mMapHeight

Detailed Description

Displayed in the Map Editor when the user wants to create a new map.

Implements the NewMap dialog window.

Note:
Currently the NewMap dialog only builds maps of type IsoBlock and no others. Eventually this should be updated to be more flexible.

Constructor & Destructor Documentation

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

Member Function Documentation

bool NewMap::checkValues (  )  [private]

Checks the values of all the fields to ensure validity.

void NewMap::clearFields (  )  [private]
void NewMap::clearHighlights (  )  [private]
Map * NewMap::getMap (  ) 
void NewMap::loadTilesets (  )  [private]

Loads all TileSets from the TileSets directory.

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

Reimplemented from Control.

void NewMap::setHighlight ( Control control,
bool  highlight 
) [private]

Sets fake highlighting on a specified Control.

void NewMap::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

Label * NewMap::lblHeight [private]
Label* NewMap::lblName [private]
Label * NewMap::lblStatus [private]
Label * NewMap::lblWidth [private]
Map* NewMap::mMap [private]
int NewMap::mMapHeight [private]
int NewMap::mMapWidth [private]
int NewMap::mTileHeight [private]
int NewMap::mTileWidth [private]

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