Public Member Functions | Private Attributes

editor::mouse_action_starting_position Class Reference

Set starting position action. More...

#include <mouse_action.hpp>

Inheritance diagram for editor::mouse_action_starting_position:
Inheritance graph
[legend]
Collaboration diagram for editor::mouse_action_starting_position:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 mouse_action_starting_position (const CKey &key, empty_palette &palette)
editor_actionup_left (editor_display &disp, int x, int y)
 Left click displays a player-number-selector dialog and then creates an action or returns NULL if cancel was pressed or there would be no change.
editor_actionclick_left (editor_display &disp, int x, int y)
 A click, possibly the beginning of a drag.
editor_actionup_right (editor_display &disp, int x, int y)
 Right click only erases the starting position if there is one.
editor_actionclick_right (editor_display &disp, int x, int y)
 A click, possibly the beginning of a drag.
virtual void set_mouse_overlay (editor_display &disp)
 Set the mouse overlay for this action.

Private Attributes

bool click_

Detailed Description

Set starting position action.

Definition at line 399 of file mouse_action.hpp.


Constructor & Destructor Documentation

editor::mouse_action_starting_position::mouse_action_starting_position ( const CKey key,
empty_palette palette 
) [inline]

Definition at line 402 of file mouse_action.hpp.


Member Function Documentation

editor_action * editor::mouse_action_starting_position::click_left ( editor_display disp,
int  x,
int  y 
) [virtual]

A click, possibly the beginning of a drag.

Must be overridden.

Implements editor::mouse_action.

Definition at line 457 of file mouse_action.cpp.

editor_action * editor::mouse_action_starting_position::click_right ( editor_display disp,
int  x,
int  y 
) [virtual]

A click, possibly the beginning of a drag.

Must be overridden.

Implements editor::mouse_action.

Definition at line 474 of file mouse_action.cpp.

void editor::mouse_action_starting_position::set_mouse_overlay ( editor_display disp  )  [virtual]

Set the mouse overlay for this action.

Defaults to an empty overlay.

Reimplemented from editor::mouse_action.

Definition at line 479 of file mouse_action.cpp.

editor_action * editor::mouse_action_starting_position::up_left ( editor_display disp,
int  x,
int  y 
) [virtual]

Left click displays a player-number-selector dialog and then creates an action or returns NULL if cancel was pressed or there would be no change.

Do this on mouse up to avoid drag issue.

Reimplemented from editor::mouse_action.

Definition at line 417 of file mouse_action.cpp.

editor_action * editor::mouse_action_starting_position::up_right ( editor_display disp,
int  x,
int  y 
) [virtual]

Right click only erases the starting position if there is one.

Do this on mouse up to avoid drag issue,

Reimplemented from editor::mouse_action.

Definition at line 463 of file mouse_action.cpp.


Member Data Documentation

Definition at line 426 of file mouse_action.hpp.


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

Generated by doxygen 1.7.1 on Thu May 24 2012 01:19:32 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs