3 * \file qt4/QLMenubar.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Lars Gullik Bjønnes
10 * Full author contact details are available in file CREDITS.
16 #include "frontends/Menubar.h"
19 #include <boost/scoped_ptr.hpp>
24 #include "QLPopupMenu.h"
38 class QLMenubar : public QObject, public Menubar {
41 QLMenubar(LyXView *, MenuBackend &);
43 /// opens a top-level submenu given its name
44 void openByName(lyx::docstring const &);
46 /// return the owning view
49 /// return the menu controller
50 MenuBackend const & backend();
52 /// The QMenuBar used by LyX
53 QMenuBar * menuBar() const;
55 /// update the state of the menuitems - not needed
59 /// populate a toplevel menu and all its children on demand
63 /// Initialize specific MACOS X menubar
64 void macxMenuBarInit();
70 MenuBackend & menubackend_;
72 typedef std::map<lyx::docstring, QLPopupMenu *> NameMap;
74 /// name to menu for openByName
77 /// MACOS X special menubar.
78 boost::scoped_ptr<QMenuBar> mac_menubar_;
81 } // namespace frontend