Updraft  1.0
Open source glider flight visualisation tool.
pickaction.h
Go to the documentation of this file.
00001 #ifndef UPDRAFT_SRC_CORE_PICKACTION_H_
00002 #define UPDRAFT_SRC_CORE_PICKACTION_H_
00003 
00004 #include <QtGui>
00005 #include <QList>
00006 
00007 #include "../eventinfo.h"
00008 
00009 namespace Updraft {
00010 
00011 class MapObject;
00012 class PluginBase;
00013 
00014 namespace Core {
00015 
00018 class PickAction: public QAction {
00019   Q_OBJECT
00020 
00021  public:
00026   PickAction(MapObject* mapObject, const EventInfo& eventInfo);
00027   ~PickAction() {}
00028 
00031   int isEmpty() { return pluginList.size() == 0; }
00032 
00036   void pushPlugin(PluginBase* plugin);
00037 
00038  private slots:
00040   void sendEventToPlugins();
00041 
00042  private:
00044   MapObject* mapObject;
00045 
00047   EventInfo eventInfo;
00048 
00050   QList<PluginBase*> pluginList;
00051 };
00052 
00053 }  // End namespace Core
00054 }  // End namespace Updraft
00055 
00056 #endif  // UPDRAFT_SRC_CORE_PICKACTION_H_
00057 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines