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
25 class GuiPopupMenu : public QMenu
30 GuiPopupMenu(GuiView * owner, MenuItem const & mi,
31 bool topLevelMenu = false);
33 /// populates the menu or one of its submenu
34 /// This is used as a recursive function
35 void populate(QMenu * qMenu, Menu * menu);
38 /// populate the toplevel menu and all children
42 /// Get a Menu item label from the menu backend
43 QString label(MenuItem const & mi) const;
47 /// the name of this menu
53 } // namespace frontend
56 #endif // GUIPOPUPMENU_H