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

TargetCoordinateLocator Class Reference

#include <targetcoordinatelocator.h>

Inheritance diagram for TargetCoordinateLocator:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 TargetCoordinateLocator (PG_Widget *parent, const PG_Point &pos, const SelectFromMap::CoordinateList &coordinates)

Protected Member Functions

bool eventMouseButtonDown (const SDL_MouseButtonEvent *button)
 Overridable Eventhandler for a SDL_MouseButtonEvent message.

Constructor & Destructor Documentation

TargetCoordinateLocator::TargetCoordinateLocator PG_Widget parent,
const PG_Point pos,
const SelectFromMap::CoordinateList coordinates
 

Definition at line 39 of file targetcoordinatelocator.cpp.


Member Function Documentation

bool TargetCoordinateLocator::eventMouseButtonDown const SDL_MouseButtonEvent *  button  )  [protected, virtual]
 

Overridable Eventhandler for a SDL_MouseButtonEvent message.

This handler is called when a mouse button is pressed. The default implementation returns 'false' which indicates that this message is not processed by this object.

Parameters:
button SDL_MouseButtonEvent message
Returns:
Notifies the message pump if this message is processed by this object or it should be routed to the next message receiver.

Reimplemented from PG_MessageObject.

Definition at line 24 of file targetcoordinatelocator.cpp.

References actmap, MapDisplayPG::cursor, getMainScreenWidget(), MapDisplayPG::Cursor::goTo(), ASC_PG_Dialog::RunModal(), and SelectFromMap::Show().


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