]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/QLPopupMenu.h
enable Font cache only for MacOSX and inline width() for other platform.
[lyx.git] / src / frontends / qt4 / QLPopupMenu.h
index 1938509ba7eb3ba60ec314d467267610026f463f..4c4fed5623678f56c4de1cd4497062408c7f86eb 100644 (file)
@@ -17,9 +17,6 @@
 #include "funcrequest.h"
 #include "MenuBackend.h"
 
-#include <utility>
-#include <string>
-
 namespace lyx {
 namespace frontend {
 
@@ -31,12 +28,12 @@ class QLPopupMenu : public QMenu {
 public:
 
        QLPopupMenu(QLMenubar * owner, MenuItem const & mi, bool topLevelMenu=false);
+
        /// populates the menu or one of its submenu
        /// This is used as a recursive function
        void populate(QMenu* qMenu, Menu * menu);
 
-public slots:
+public Q_SLOTS:
        /// populate the toplevel menu and all children
        void update();
 
@@ -46,24 +43,22 @@ private:
        QLMenubar * owner_;
 
        /// the name of this menu
-       std::string name_;
+       lyx::docstring name_;
 
-private:       
+private:
        /// Get a Menu item label from the menu backend
-       std::string const getLabel(MenuItem const & mi);
+       lyx::docstring const getLabel(MenuItem const & mi);
 
        /// add binding keys a the menu item label.
        /// \todo Mac specific binding handling.
-       void addBinding(std::string & label, MenuItem const & mi);
+       void addBinding(lyx::docstring & label, MenuItem const & mi);
 
-       bool topLevelMenu_;
+       /// Top Level Menu
+       Menu topLevelMenu_;
 
        /// Mac specific menu hack
        /// \todo Fix it
        void specialMacXmenuHack();
-
-       /// Top Level Menu
-       Menu topLevelMenu;
 };
 
 } // namespace frontend