Updraft  1.0
Open source glider flight visualisation tool.
airspaces.h
Go to the documentation of this file.
00001 #ifndef UPDRAFT_SRC_PLUGINS_AIRSPACES_AIRSPACES_H_
00002 #define UPDRAFT_SRC_PLUGINS_AIRSPACES_AIRSPACES_H_
00003 
00004 #include <QtGui>
00005 #include <QAction>
00006 #include "../../pluginbase.h"
00007 #include "oaengine.h"
00008 #include "../../maplayerinterface.h"
00009 
00010 namespace Updraft {
00011 namespace Airspaces {
00012 
00014 class Q_DECL_EXPORT Airspaces: public QObject, public PluginBase {
00015   Q_OBJECT
00016   Q_INTERFACES(Updraft::PluginBase)
00017 
00018  public:
00020   Airspaces();
00021 
00023   QString getName();
00024 
00027   void initialize(CoreInterface *coreInterface);
00028 
00030   void deinitialize();
00031 
00037   bool fileOpen(const QString& fileName, int role);
00038 
00040   void loadImportedFiles();
00041 
00042  public slots:
00044   void mapLayerDisplayed(bool value, MapLayerInterface* sender);
00045 
00047   void reloadAirspaces();
00048 
00050   void contextMenuRequested(QPoint pos, MapLayerInterface* sender);
00051 
00052  private:
00053   enum FileRole {
00054     IMPORT_OPENAIRSPACE_FILE = 0
00055   };
00056 
00058   FileRegistration OAirspaceFileReg;
00059 
00061   QVector<QPair<osg::Node*, QString> >* mapNodes;
00062 
00064   MapLayerGroupInterface* mapLayerGroup;
00065 };
00066 
00067 }  // End namespace Airspaces
00068 }  // End namespace Updraft
00069 
00070 #endif  // UPDRAFT_SRC_PLUGINS_AIRSPACES_AIRSPACES_H_
00071 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines