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"
18 #include "QLPopupMenu.h"
21 #include <boost/scoped_ptr.hpp>
37 class QLMenubar : public QObject, public Menubar {
40 QLMenubar(LyXView *, MenuBackend &);
42 /// opens a top-level submenu given its name
43 void openByName(docstring const &);
45 /// return the owning view
48 /// return the menu controller
49 MenuBackend const & backend();
51 /// The QMenuBar used by LyX
52 QMenuBar * menuBar() const;
54 /// update the state of the menuitems - not needed
58 /// populate a toplevel menu and all its children on demand
62 /// Initialize specific MACOS X menubar
63 void macxMenuBarInit();
69 MenuBackend & menubackend_;
71 typedef std::map<docstring, QLPopupMenu *> NameMap;
73 /// name to menu for openByName
76 /// MACOS X special menubar.
77 boost::scoped_ptr<QMenuBar> mac_menubar_;
80 } // namespace frontend