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"
36 class QLMenubar : public QObject, public Menubar {
39 QLMenubar(LyXView *, MenuBackend &);
41 /// opens a top-level submenu given its name
42 void openByName(docstring const &);
44 /// return the owning view
47 /// return the menu controller
48 MenuBackend const & backend();
50 /// The QMenuBar used by LyX
51 QMenuBar * menuBar() const;
53 /// update the state of the menuitems - not needed
57 /// populate a toplevel menu and all its children on demand
61 /// Initialize specific MACOS X menubar
62 void macxMenuBarInit();
68 MenuBackend & menubackend_;
70 typedef std::map<docstring, QLPopupMenu *> NameMap;
72 /// name to menu for openByName
75 /// MACOS X special menubar.
76 boost::scoped_ptr<QMenuBar> mac_menubar_;
79 } // namespace frontend