]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiPopupMenu.h
do what the FIXME suggested
[lyx.git] / src / frontends / qt4 / GuiPopupMenu.h
index a454b105d7c251b54d0ca7a86e82a1b5e9c490d4..646fbdabac28cbbbd2d671592b406586c4759cff 100644 (file)
@@ -20,7 +20,7 @@
 namespace lyx {
 namespace frontend {
 
-class GuiMenubar;
+class GuiView;
 
 /// a submenu
 class GuiPopupMenu : public QMenu
@@ -28,7 +28,7 @@ class GuiPopupMenu : public QMenu
        Q_OBJECT
 public:
        ///
-       GuiPopupMenu(GuiMenubar * owner, MenuItem const & mi,
+       GuiPopupMenu(GuiView * owner, MenuItem const & mi,
                bool topLevelMenu = false);
 
        /// populates the menu or one of its submenu
@@ -37,16 +37,14 @@ public:
 
 public Q_SLOTS:
        /// populate the toplevel menu and all children
-       void update();
+       void updateView();
 
 private:
        /// Get a Menu item label from the menu backend
        docstring const getLabel(MenuItem const & mi);
-       /// add binding keys a the menu item label.
-       void addBinding(docstring & label, MenuItem const & mi);
 
-       /// our owning menubar
-       GuiMenubar * owner_;
+       /// our owning view
+       GuiView * owner_;
        /// the name of this menu
        docstring name_;
        /// Top Level Menu