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"
26 class QLPopupMenu : public QMenu {
30 QLPopupMenu(QLMenubar * owner, MenuItem const & mi, bool topLevelMenu=false);
32 /// populates the menu or one of its submenu
33 /// This is used as a recursive function
34 void populate(QMenu* qMenu, Menu * menu);
37 /// populate the toplevel menu and all children
42 /// our owning menubar
45 /// the name of this menu
49 /// Get a Menu item label from the menu backend
50 lyx::docstring const getLabel(MenuItem const & mi);
52 /// add binding keys a the menu item label.
53 /// \todo Mac specific binding handling.
54 void addBinding(lyx::docstring & label, MenuItem const & mi);
59 /// Mac specific menu hack
61 void specialMacXmenuHack();
64 } // namespace frontend
67 #endif // QLPOPUPMENU_H