|
Updraft
1.0
Open source glider flight visualisation tool.
|
Action that gets called when a MapObject is clicked. More...
#include <pickaction.h>

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 | |
| MapObject * | mapObject |
| 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. | |
Action that gets called when a MapObject is clicked.
Also appears in mouse picking disambiguation menu.
| Updraft::Core::PickAction::PickAction | ( | MapObject * | mapObject, |
| const EventInfo & | eventInfo | ||
| ) |
Creates the action and sets the clicked map object and the click event info.
| mapObject | The map object that was clicked. |
| eventInfo | Information obout the click event |
| Updraft::Core::PickAction::~PickAction | ( | ) | [inline] |
| int Updraft::Core::PickAction::isEmpty | ( | ) | [inline] |
Tells whether there are any plugins who wanted to handle this action.
| void Updraft::Core::PickAction::pushPlugin | ( | PluginBase * | plugin | ) |
Adds the given plugin to the list of plugins who want to handle this action.
| plugin | The plugin who wants to handle this action. |
| void Updraft::Core::PickAction::sendEventToPlugins | ( | ) | [private, slot] |
Sends the stored click event to the interested plugins.
Event info about the click event.
MapObject* Updraft::Core::PickAction::mapObject [private] |
The map object that was clicked.
QList<PluginBase*> Updraft::Core::PickAction::pluginList [private] |
List of the plugins that want to handle the event.