]> 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 d0bc687591cc96aa96aa84933d2e081d1ef0571f..5e438670fa5567d47c83bec84b537c367d43716b 100644 (file)
@@ -13,8 +13,6 @@
 #ifndef MENUS_H
 #define MENUS_H
 
-#include "support/docstring.h"
-
 #include <QMenu>
 
 #include <vector>
@@ -24,6 +22,7 @@ class QMenuBar;
 
 namespace lyx {
 
+class docstring_list;
 class Lexer;
 class FuncRequest;
 
@@ -59,12 +58,13 @@ class Menus
 {
 public:
        Menus();
+       ~Menus();
        
        ///
        bool searchMenu(FuncRequest const & func,
-               std::vector<docstring> & names) const;
+               docstring_list & names) const;
        ///
-       void fillMenuBar(QMenuBar * qmb, 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);