4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS.
17 #include "funcrequest.h"
18 #include "MenuBackend.h"
29 class QLPopupMenu : public QMenu {
33 QLPopupMenu(QLMenubar * owner, MenuItem const & mi, bool topLevelMenu=false);
35 /// populates the menu or one of its submenu
36 /// This is used as a recursive function
37 void populate(QMenu* qMenu, Menu * menu);
40 /// populate the toplevel menu and all children
45 /// our owning menubar
48 /// the name of this menu
52 /// Get a Menu item label from the menu backend
53 std::string const getLabel(MenuItem const & mi);
55 /// add binding keys a the menu item label.
56 /// \todo Mac specific binding handling.
57 void addBinding(std::string & label, MenuItem const & mi);
62 /// Mac specific menu hack
64 void specialMacXmenuHack();
67 } // namespace frontend
70 #endif // QLPOPUPMENU_H