Updraft  1.0
Open source glider flight visualisation tool.
menuinterface.h
Go to the documentation of this file.
00001 #ifndef UPDRAFT_SRC_MENUINTERFACE_H_
00002 #define UPDRAFT_SRC_MENUINTERFACE_H_
00003 
00004 class QAction;
00005 
00006 namespace Updraft {
00007 
00008 enum SystemMenu {
00009   MENU_FILE,
00010   MENU_VIEW,
00011   MENU_TOOLS,
00012   MENU_HELP,
00013   MENU_CONTEXT,
00014   MENU_MAPOBJECT
00015 };
00016 
00018 class MenuInterface {
00019  public:
00020   virtual ~MenuInterface() {}
00021 
00023   void clear();
00024 
00030   virtual void insertAction(
00031     int position,
00032     QAction* action,
00033     bool own = false) = 0;
00034 
00038   virtual void appendAction(QAction* action, bool own = false) = 0;
00039 };
00040 
00041 }  // End namespace Updraft
00042 
00043 #endif  // UPDRAFT_SRC_MENUINTERFACE_H_
00044 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines