#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"
#include "Dialogs.h"
#include "Toolbars.h"
-#include "Menubar.h"
#include "WorkArea.h"
#include "Gui.h"
KeySymbol.h \
LyXView.cpp \
LyXView.h \
- Menubar.h \
Painter.cpp \
Painter.h \
Toolbars.cpp \
+++ /dev/null
-// -*- 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
void GuiView::init()
{
d.menubar_ = new QLMenubar(this, menubackend);
- QObject::connect(menuBar(), SIGNAL(triggered(QAction *)),
- this, SLOT(updateMenu(QAction *)));
toolbars_->init();
}
-void GuiView::updateMenu(QAction * /*action*/)
-{
- d.menubar_->update();
-}
-
-
void GuiView::setWindowTitle(docstring const & t, docstring const & it)
{
QString title = windowTitle();
/// 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();
}
-void QLMenubar::update()
-{ }
-
GuiView * QLMenubar::view()
{
return owner_;
#ifndef QLMENUBAR_H
#define QLMENUBAR_H
-#include "frontends/Menubar.h"
-
#include "QLPopupMenu.h"
#include <map>
class GuiView;
class LyXView;
-class QLMenubar : public QObject, public Menubar {
+class QLMenubar : public QObject {
Q_OBJECT
public:
QLMenubar(LyXView *, MenuBackend &);
/// 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();