4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Lars Gullik Bjønnes
10 * Full author contact details are available in file CREDITS.
27 namespace support { class Lexer; }
33 class Menu : public QMenu
38 Menu(GuiView * gv, QString const & name, bool top_level,
39 bool keyboard = false);
44 /// QMenu::clear() reimplementation to handle the deletion of submenus.
54 /// Use the Pimpl idiom to hide the internals.
56 /// The pointer never changes although *d's contents may.
65 void operator=(Menus const &);
74 bool searchMenu(FuncRequest const & func,
75 docstring_list & names, BufferView const * bv = 0) const;
77 void fillMenuBar(QMenuBar * qmb, GuiView * view, bool initial = false);
79 /// \return a top-level submenu given its name.
80 Menu * menu(QString const & name, GuiView & view, bool keyboard = false);
83 void read(support::Lexer &);
86 void updateMenu(Menu * qmenu);
89 /// Use the Pimpl idiom to hide the internals.
95 } // namespace frontend