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
16 #include "Menubar_pimpl.h"
18 #include <qpopupmenu.h>
29 std::pair<int, QLPopupMenu *>
30 createMenu(QMenuData * parent, MenuItem const * item,
31 Menubar::Pimpl * owner, bool is_toplevel = false);
34 class QLPopupMenu : public QPopupMenu {
37 QLPopupMenu(Menubar::Pimpl * owner,
38 string const & name, bool toplevel);
41 void populate(Menu * menu);
43 /// populate the toplevel menu and all children
46 /// our owning menubar
47 Menubar::Pimpl * owner_;
49 /// the name of this menu
53 #endif // QLPOPUPMENU_H