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.
16 #include "support/docstring.h"
39 bool searchMenu(FuncRequest const & func,
40 std::vector<docstring> & names) const;
42 void fillMenuBar(GuiView * view);
44 /// \return a top-level submenu given its name.
45 QMenu * menu(QString const & name, GuiView & view);
51 void updateMenu(QString const & name);
54 /// Use the Pimpl idiom to hide the internals.
56 /// The pointer never changes although *d's contents may.
61 class GuiPopupMenuBase : public QMenu
67 GuiPopupMenuBase(QWidget * parent = 0)
70 connect(this, SIGNAL(aboutToShow()), this, SLOT(updateView()));
75 virtual void updateView() = 0;
78 } // namespace frontend