X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FMenus.h;h=1ab407a5e100c077f7193f1c28b98f777cabc3bb;hb=425d092204118ea6c24c28e85fdf03fcf2bb51a4;hp=f0b0789e20264666fdca6c377c29408523ddbf85;hpb=f9f0b26bd3fd583661c4b95aad30b905f1075494;p=lyx.git diff --git a/src/frontends/qt4/Menus.h b/src/frontends/qt4/Menus.h index f0b0789e20..1ab407a5e1 100644 --- a/src/frontends/qt4/Menus.h +++ b/src/frontends/qt4/Menus.h @@ -4,7 +4,7 @@ * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * - * \author Lars Gullik Bjønnes + * \author Lars Gullik Bjønnes * \author John Levon * * Full author contact details are available in file CREDITS. @@ -13,8 +13,6 @@ #ifndef MENUS_H #define MENUS_H -#include "support/docstring.h" - #include #include @@ -24,6 +22,7 @@ class QMenuBar; namespace lyx { +class docstring_list; class Lexer; class FuncRequest; @@ -59,10 +58,14 @@ class Menus { public: Menus(); + ~Menus(); + + /// + void reset(); /// bool searchMenu(FuncRequest const & func, - std::vector & names) const; + docstring_list & names) const; /// void fillMenuBar(QMenuBar * qmb, GuiView * view, bool initial = false); @@ -78,8 +81,8 @@ public: private: /// Use the Pimpl idiom to hide the internals. struct Impl; - /// The pointer never changes although *d's contents may. - Impl * const d; + /// + Impl * d; }; } // namespace frontend