Updraft  1.0
Open source glider flight visualisation tool.
Updraft::Core::PickAction Class Reference

Action that gets called when a MapObject is clicked. More...

#include <pickaction.h>

Collaboration diagram for Updraft::Core::PickAction:

List of all members.

Public Member Functions

 PickAction (MapObject *mapObject, const EventInfo &eventInfo)
 Creates the action and sets the clicked map object and the click event info.
 ~PickAction ()
int isEmpty ()
 Tells whether there are any plugins who wanted to handle this action.
void pushPlugin (PluginBase *plugin)
 Adds the given plugin to the list of plugins who want to handle this action.

Private Slots

void sendEventToPlugins ()
 Sends the stored click event to the interested plugins.

Private Attributes

MapObjectmapObject
 The map object that was clicked.
EventInfo eventInfo
 Event info about the click event.
QList< PluginBase * > pluginList
 List of the plugins that want to handle the event.

Detailed Description

Action that gets called when a MapObject is clicked.

Also appears in mouse picking disambiguation menu.


Constructor & Destructor Documentation

Updraft::Core::PickAction::PickAction ( MapObject mapObject,
const EventInfo eventInfo 
)

Creates the action and sets the clicked map object and the click event info.

Parameters:
mapObjectThe map object that was clicked.
eventInfoInformation obout the click event

Member Function Documentation

Tells whether there are any plugins who wanted to handle this action.

Returns:
True if any of the plugins wanted to handle the action.

Adds the given plugin to the list of plugins who want to handle this action.

Parameters:
pluginThe plugin who wants to handle this action.

Sends the stored click event to the interested plugins.


Member Data Documentation

Event info about the click event.

The map object that was clicked.

List of the plugins that want to handle the event.


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