]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/Menus.h
fix completion painting for RTL (inline completion and completion list)
[lyx.git] / src / frontends / qt4 / Menus.h
index 3fed41719d88b88175d46a7ed88b1d6981fa2267..5e438670fa5567d47c83bec84b537c367d43716b 100644 (file)
 #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;
 
@@ -37,8 +37,9 @@ public:
        ///
        Menu(GuiView * gv, QString const & name, bool top_level);
 
+       ///
        ~Menu();
-
+       
 private Q_SLOTS:
        ///
        void updateView();
@@ -57,12 +58,13 @@ class Menus
 {
 public:
        Menus();
+       ~Menus();
        
        ///
        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);
@@ -71,7 +73,7 @@ public:
        void read(Lexer &);
 
        ///
-       void updateMenu(QString const & name);
+       void updateMenu(Menu * qmenu);
 
 private:
        /// Use the Pimpl idiom to hide the internals.