]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiMenubar.h
Introducing GuiMenubar::init() to avoid destructing the object in order to re-initial...
[lyx.git] / src / frontends / qt4 / GuiMenubar.h
index dbcb632d9063c52461bc0e4efc38c1913e85b50c..fd48ea3ccfad1d48b30d7fc49fd61bfcb28269f6 100644 (file)
@@ -24,7 +24,7 @@ class MenuBackend;
 
 namespace frontend {
 
-class GuiViewBase;
+class GuiView;
 class GuiPopupMenu;
 class LyXView;
 
@@ -34,11 +34,16 @@ class GuiMenubar : public QObject
 public:
        GuiMenubar(LyXView *, MenuBackend &);
 
+       ~GuiMenubar();
+
+       ///
+       void init();
+
        /// opens a top-level submenu given its name
        void openByName(QString const & name);
 
        /// return the owning view
-       GuiViewBase * view() { return owner_; }
+       GuiView * view() { return owner_; }
 
        /// return the menu controller
        MenuBackend const & backend() { return menubackend_; }
@@ -54,7 +59,7 @@ private:
        void macxMenuBarInit();
 
        /// owning view
-       GuiViewBase * owner_;
+       GuiView * owner_;
 
        /// menu controller
        MenuBackend & menubackend_;