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 docstring const getLabel(MenuItem const & mi);
52 /// add binding keys a the menu item label.
53 void addBinding(docstring & label, MenuItem const & mi);
59 } // namespace frontend
62 #endif // QLPOPUPMENU_H