]> git.lyx.org Git - features.git/commitdiff
delete unneeded Menubar virtual interface.
authorAbdelrazak Younes <younes@lyx.org>
Thu, 23 Aug 2007 12:54:35 +0000 (12:54 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Thu, 23 Aug 2007 12:54:35 +0000 (12:54 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19751 a592a061-630c-0410-9148-cb99ea01b6c8

src/LyXFunc.cpp
src/frontends/LyXView.cpp
src/frontends/Makefile.am
src/frontends/Menubar.h [deleted file]
src/frontends/qt4/GuiView.cpp
src/frontends/qt4/GuiView.h
src/frontends/qt4/QLMenubar.cpp
src/frontends/qt4/QLMenubar.h

index b9384260d105ea63270e907870deeb4d34be78f9..45d391390942af1884c4e089046014b287e39060 100644 (file)
@@ -84,9 +84,7 @@
 #include "frontends/Gui.h"
 #include "frontends/KeySymbol.h"
 #include "frontends/LyXView.h"
-#include "frontends/Menubar.h"
 #include "frontends/Selection.h"
-#include "frontends/Toolbars.h"
 #include "frontends/WorkArea.h"
 
 #include "support/environment.h"
index 5247c3f77dea80e9f86a4b77fdb6cf720885bfb6..c0be8e9f34e0491585676412d2c0789ae3704ce1 100644 (file)
@@ -15,7 +15,6 @@
 
 #include "Dialogs.h"
 #include "Toolbars.h"
-#include "Menubar.h"
 #include "WorkArea.h"
 #include "Gui.h"
 
index 30260859f8f6cfab81a2c0c8321b660d87b4c492..0c421b49fa3fa7ac7196e2ab2842ff2b826a629e 100644 (file)
@@ -28,7 +28,6 @@ liblyxfrontends_la_SOURCES = \
        KeySymbol.h \
        LyXView.cpp \
        LyXView.h \
-       Menubar.h \
        Painter.cpp \
        Painter.h \
        Toolbars.cpp \
diff --git a/src/frontends/Menubar.h b/src/frontends/Menubar.h
deleted file mode 100644 (file)
index 929beea..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-// -*- C++ -*-
-/**
- * \file Menubar.h
- * This file is part of LyX, the document processor.
- * Licence details can be found in the file COPYING.
- *
- * \author Lars Gullik Bjønnes
- * \author Jean-Marc Lasgouttes
- *
- * Full author contact details are available in file CREDITS.
- */
-
-#ifndef MENUBAR_H
-#define MENUBAR_H
-
-#include "support/docstring.h"
-
-
-namespace lyx {
-namespace frontend {
-
-/**
- * The LyX GUI independent menubar class
- * The GUI interface is implemented in the frontends
- */
-class Menubar {
-public:
-       ///
-       virtual ~Menubar() {}
-       /// Opens a top-level submenu given its name
-       virtual void openByName(docstring const &) = 0;
-       /// update the state of the menuitems
-       virtual void update() = 0;
-};
-
-} // namespace frontend
-} // namespace lyx
-
-#endif // MENUBAR_H
index 36af40fa7ce0de4841ca4b0c2b6895b4e3834caf..473814870f588fc733afcaec09c916404240c3a3 100644 (file)
@@ -309,8 +309,6 @@ QMenu* GuiView::createPopupMenu()
 void GuiView::init()
 {
        d.menubar_ = new QLMenubar(this, menubackend);
-       QObject::connect(menuBar(), SIGNAL(triggered(QAction *)),
-               this, SLOT(updateMenu(QAction *)));
 
        toolbars_->init();
 
@@ -561,12 +559,6 @@ void GuiView::setGeometry(unsigned int width,
 }
 
 
-void GuiView::updateMenu(QAction * /*action*/)
-{
-       d.menubar_->update();
-}
-
-
 void GuiView::setWindowTitle(docstring const & t, docstring const & it)
 {
        QString title = windowTitle();
index 5eb2e32f68ec591ecff2ef97e9609838f579dc47..e4ab76331dc48fa160cc14215487bf905bafc56e 100644 (file)
@@ -92,9 +92,6 @@ public Q_SLOTS:
        /// idle timeout
        void update_view_state_qt();
 
-       /// populate a toplevel menu and all its children on demand
-       void updateMenu(QAction *);
-
        void currentTabChanged(int index);
        void closeCurrentTab();
 
index 177679f73c51807b912c681cd1b309b46d45affe..aba834f26da88e2c36dabde32542a6f16abef6d5 100644 (file)
@@ -111,9 +111,6 @@ void QLMenubar::openByName(docstring const & name)
 }
 
 
-void QLMenubar::update()
-{ }
-
 GuiView * QLMenubar::view()
 {
        return owner_;
index 9f94c944dba616e691cc90612e6203cd86cc43b3..0f044142effae549532334d3e9652b1f8c1f5f51 100644 (file)
@@ -13,8 +13,6 @@
 #ifndef QLMENUBAR_H
 #define QLMENUBAR_H
 
-#include "frontends/Menubar.h"
-
 #include "QLPopupMenu.h"
 
 #include <map>
@@ -34,7 +32,7 @@ namespace frontend {
 class GuiView;
 class LyXView;
 
-class QLMenubar : public QObject, public Menubar {
+class QLMenubar : public QObject {
        Q_OBJECT
 public:
        QLMenubar(LyXView *, MenuBackend &);
@@ -54,10 +52,6 @@ public:
        /// update the state of the menuitems - not needed
        void update();
 
-public Q_SLOTS:
-       /// populate a toplevel menu and all its children on demand
-//     void updateMenu();
-
 private:
        /// Initialize specific MACOS X menubar
        void macxMenuBarInit();