|
Updraft
1.0
Open source glider flight visualisation tool.
|
Task declaration plugin top level object. More...
#include <taskdeclaration.h>


Public Slots | |
| void | createTask () |
| Creates empty task. | |
| void | saveTask () |
| void | saveTaskAs () |
Public Member Functions | |
| TaskDeclaration () | |
| virtual | ~TaskDeclaration () |
| QString | getName () |
| Plugin metadata. | |
| void | initialize (CoreInterface *coreInterface) |
| Called after the plugin is loaded. | |
| void | deinitialize () |
| Called before the plugin is unloaded. | |
| bool | wantsToHandleClick (MapObject *obj) |
| Tells whether this plugin wants to handle a mouse click event. | |
| void | handleClick (MapObject *obj, const EventInfo *evt) |
| Handles the left mouse click event. | |
| bool | fileOpen (const QString &filename, int roleId) |
| Callback to open a file. | |
| void | fileIdentification (QStringList *roles, QString *importDirectory, const QString &filename) |
Private Types | |
| enum | FileRoles { OPEN_TASK_FILE = 1 } |
Private Member Functions | |
| TaskLayer * | getActiveLayer () |
| void | unloadFiles () |
| Removes instances of all loaded files. | |
| void | addLayer (TaskFile *file) |
| Creates new layer item, adds item to the left pane. | |
| int | getIndexForNewTask () |
Private Attributes | |
| TTaskLayerList | layers |
| List of opened files. | |
| MapLayerGroupInterface * | mapLayerGroup |
| Tasks map layer group. | |
Friends | |
| class | TaskLayer |
Task declaration plugin top level object.
enum Updraft::TaskDeclaration::FileRoles [private] |
| Updraft::TaskDeclaration::~TaskDeclaration | ( | ) | [virtual] |
| void Updraft::TaskDeclaration::addLayer | ( | TaskFile * | file | ) | [private] |
Creates new layer item, adds item to the left pane.
| file | associated data file (is deleted on layer destruction) |
| void Updraft::TaskDeclaration::createTask | ( | ) | [slot] |
Creates empty task.
| void Updraft::TaskDeclaration::deinitialize | ( | ) | [virtual] |
Called before the plugin is unloaded.
Implements Updraft::PluginBase.
| void Updraft::TaskDeclaration::fileIdentification | ( | QStringList * | roles, |
| QString * | importDirectory, | ||
| const QString & | filename | ||
| ) |
| bool Updraft::TaskDeclaration::fileOpen | ( | const QString & | filename, |
| int | roleId | ||
| ) | [virtual] |
Callback to open a file.
| filename | full path to a file |
| roleId | identification of role being opened |
Reimplemented from Updraft::PluginBase.
| TaskLayer * Updraft::TaskDeclaration::getActiveLayer | ( | ) | [private] |
| int Updraft::TaskDeclaration::getIndexForNewTask | ( | ) | [private] |
| QString Updraft::TaskDeclaration::getName | ( | ) | [virtual] |
Plugin metadata.
Implements Updraft::PluginBase.
| void Updraft::TaskDeclaration::handleClick | ( | MapObject * | obj, |
| const EventInfo * | evt | ||
| ) | [virtual] |
Handles the left mouse click event.
Reimplemented from Updraft::PluginBase.
| void Updraft::TaskDeclaration::initialize | ( | CoreInterface * | coreInterface | ) | [virtual] |
Called after the plugin is loaded.
| coreInterface | pointer to assigned CoreInterface Plugin should store this value in g_core. |
Implements Updraft::PluginBase.
| void Updraft::TaskDeclaration::saveTask | ( | ) | [slot] |
| void Updraft::TaskDeclaration::saveTaskAs | ( | ) | [slot] |
| void Updraft::TaskDeclaration::unloadFiles | ( | ) | [private] |
Removes instances of all loaded files.
| bool Updraft::TaskDeclaration::wantsToHandleClick | ( | MapObject * | obj | ) | [virtual] |
Tells whether this plugin wants to handle a mouse click event.
Reimplemented from Updraft::PluginBase.
friend class TaskLayer [friend] |
List of opened files.
Tasks map layer group.