00001
00006 #ifndef MENUS_H
00007 #define MENUS_H
00008
00009 #include <string>
00010
00011
00013 enum MenuId
00014 {
00015 MENU_INVALID = 0,
00016
00017
00018 MENU_LOAD_SIMULATION,
00019 MENU_RELOAD_SIMULATION
00020 };
00021
00023 class MenuEvent
00024 {
00025 public:
00026
00027 MenuEvent (void) : id (MENU_INVALID) { }
00028 MenuEvent (MenuId i) : id(i) { }
00029 MenuEvent (MenuId i, const std::string &s) : id (i), str (s) { }
00030
00031
00032 MenuId Id () const { return id; };
00033 const std::string &String (void) const { return str; }
00034
00035 private:
00036
00037 MenuId id;
00038
00039
00040 std::string str;
00041 };
00042
00043 #endif