3 * Copyright 2002 the LyX Team
4 * Read the file COPYING
6 * \author John Levon <levon@movementarian.org>
12 #include "Menubar_pimpl.h"
14 #include <qpopupmenu.h>
25 std::pair<int, QLPopupMenu *>
26 createMenu(QMenuData * parent, MenuItem const * item, Menubar::Pimpl * owner, bool is_toplevel = false);
29 class QLPopupMenu : public QPopupMenu {
32 QLPopupMenu(Menubar::Pimpl * owner, string const & name, bool toplevel);
35 void populate(Menu * menu);
38 /// populate the toplevel menu and all children
42 /// return true if the given submenu is disabled
43 bool disabled(Menu * menu);
45 /// our owning menubar
46 Menubar::Pimpl * owner_;
48 /// the name of this menu
52 #endif // QLPOPUPMENU_H