]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/Menus.h
* fix spelling in comments to please John.
[lyx.git] / src / frontends / qt4 / Menus.h
index 80de0da29201c46cd58343881e1c20aeda5d4e9b..1ab407a5e100c077f7193f1c28b98f777cabc3bb 100644 (file)
@@ -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.
 #ifndef MENUS_H
 #define MENUS_H
 
-#include "support/docstring.h"
-
 #include <QMenu>
 
 #include <vector>
 
 class QString;
+class QMenuBar;
 
 namespace lyx {
 
+class docstring_list;
 class Lexer;
 class FuncRequest;
 
@@ -58,12 +58,16 @@ class Menus
 {
 public:
        Menus();
+       ~Menus();
+
+       ///
+       void reset();
        
        ///
        bool searchMenu(FuncRequest const & func,
-               std::vector<docstring> & names) const;
+               docstring_list & names) const;
        ///
-       void fillMenuBar(GuiView * view);
+       void fillMenuBar(QMenuBar * qmb, GuiView * view, bool initial = false);
 
        /// \return a top-level submenu given its name.
        Menu * menu(QString const & name, GuiView & view);
@@ -77,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