26 #if !defined(INCLUDED_GENERICMAINMENU_H)
27 #define INCLUDED_GENERICMAINMENU_H
35 #include "generic/callback.h"
36 #include "generic/referencecounted.h"
42 #define MENU_SEPARATOR "-"
75 virtual void Dispatch(
const char *command);
97 template<
typename ObjectClass,
void (ObjectClass::*member)(const std::
string&)>
99 public MemberCaller1<ObjectClass, const std::string&, member>
108 MemberCaller1<ObjectClass, const std::string&, member>(object) {}
117 virtual std::string
AddEntry(
const char *commandLabel,
122 const SmartPointer<GenericDialog>& dialog);
131 typedef std::map<std::string, SmartPointer<GenericDialog> >
DialogMap;
156 #endif // #if !defined(INCLUDED_GENERICMAINMENU_H)