MapSwitcher Class Reference

The class that manages the switching between the primary map (for editing) and the secondary map (for selecting objects and terrain). More...

#include <edmisc.h>

List of all members.

Public Types

enum  Action { select, set }

Public Member Functions

Action getDefaultAction ()
void toggle ()
string getName ()
void deleteMaps ()
 MapSwitcher ()

Classes

class  Mappntr


Detailed Description

The class that manages the switching between the primary map (for editing) and the secondary map (for selecting objects and terrain).

Definition at line 105 of file edmisc.h.


Member Enumeration Documentation

enum MapSwitcher::Action

Enumerator:
select 
set 

Definition at line 116 of file edmisc.h.


Constructor & Destructor Documentation

MapSwitcher::MapSwitcher (  )  [inline]

Definition at line 122 of file edmisc.h.


Member Function Documentation

MapSwitcher::Action MapSwitcher::getDefaultAction (  ) 

Definition at line 2998 of file edmisc.cpp.

References select, and set.

Referenced by execaction(), and execaction_pg().

void MapSwitcher::toggle (  ) 

Definition at line 2948 of file edmisc.cpp.

References actmap, MapDisplayPG::cursor, displaymap(), GameMap::getCursor(), getMainScreenWidget(), MainScreenWidget::getMapDisplay(), MapDisplayPG::Cursor::goTo(), mapsaved, MapDisplayPG::upperLeftCorner(), and viewChanged.

Referenced by deleteMaps(), execaction(), and mapeditorMainThread().

string MapSwitcher::getName (  ) 

Definition at line 2982 of file edmisc.cpp.

References actmap, GameMap::PreferredFilenames::mapname, and GameMap::preferredFileNames.

void MapSwitcher::deleteMaps (  ) 

Definition at line 2939 of file edmisc.cpp.

References actmap, and toggle().

Referenced by main().


The documentation for this class was generated from the following files:
Generated on Mon May 21 01:47:02 2012 for Advanced Strategic Command by  doxygen 1.5.1