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.
12 #ifndef GUIPOPUPMENU_H
13 #define GUIPOPUPMENU_H
17 #include "FuncRequest.h"
18 #include "MenuBackend.h"
26 class GuiPopupMenu : public QMenu
31 GuiPopupMenu(GuiView * owner, MenuItem const & mi,
32 bool topLevelMenu = false);
34 /// populates the menu or one of its submenu
35 /// This is used as a recursive function
36 void populate(QMenu* qMenu, Menu * menu);
39 /// populate the toplevel menu and all children
43 /// Get a Menu item label from the menu backend
44 docstring const getLabel(MenuItem const & mi);
48 /// the name of this menu
54 } // namespace frontend
57 #endif // GUIPOPUPMENU_H