Public Member Functions | Protected Attributes

editor::mouse_action_paste Class Reference

Paste action. More...

#include <mouse_action.hpp>

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

List of all members.

Public Member Functions

 mouse_action_paste (const map_fragment &paste, const CKey &key, common_palette &palette)
bool has_context_menu () const
std::set< map_locationaffected_hexes (editor_display &disp, const map_location &hex)
 Show an outline of where the paste will go.
editor_actionclick_left (editor_display &disp, int x, int y)
 Return a paste with offset action.
editor_actionclick_right (editor_display &disp, int x, int y)
 Right click does nothing for now.
virtual void set_mouse_overlay (editor_display &disp)
 Set the mouse overlay for this action.

Protected Attributes

const map_fragmentpaste_
 Reference to the buffer used for pasting (e.g.

Detailed Description

Paste action.

No dragging capabilities.

Definition at line 323 of file mouse_action.hpp.


Constructor & Destructor Documentation

editor::mouse_action_paste::mouse_action_paste ( const map_fragment paste,
const CKey key,
common_palette palette 
) [inline]

Definition at line 326 of file mouse_action.hpp.


Member Function Documentation

std::set< map_location > editor::mouse_action_paste::affected_hexes ( editor_display disp,
const map_location hex 
) [virtual]

Show an outline of where the paste will go.

Reimplemented from editor::mouse_action.

Definition at line 352 of file mouse_action.cpp.

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

Return a paste with offset action.

Implements editor::mouse_action.

Definition at line 358 of file mouse_action.cpp.

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

Right click does nothing for now.

Implements editor::mouse_action.

Definition at line 365 of file mouse_action.cpp.

bool editor::mouse_action_paste::has_context_menu (  )  const [virtual]

Reimplemented from editor::mouse_action.

Definition at line 347 of file mouse_action.cpp.

void editor::mouse_action_paste::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 370 of file mouse_action.cpp.


Member Data Documentation

Reference to the buffer used for pasting (e.g.

the clipboard)

Definition at line 354 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