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
19 #include "Menubar_pimpl.h"
21 #include <qpopupmenu.h>
32 std::pair<int, QLPopupMenu *>
33 createMenu(QMenuData * parent, MenuItem const * item,
34 Menubar::Pimpl * owner, bool is_toplevel = false);
37 class QLPopupMenu : public QPopupMenu {
40 QLPopupMenu(Menubar::Pimpl * owner,
41 string const & name, bool toplevel);
44 void populate(Menu * menu);
46 /// populate the toplevel menu and all children
49 /// return true if the given submenu is disabled
50 bool disabled(Menu * menu);
52 /// our owning menubar
53 Menubar::Pimpl * owner_;
55 /// the name of this menu
59 #endif // QLPOPUPMENU_H