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 "QLPopupMenu.h"
19 #include <boost/scoped_ptr.hpp>
35 class QLMenubar : public QObject {
38 QLMenubar(LyXView *, MenuBackend &);
40 /// opens a top-level submenu given its name
41 void openByName(docstring const &);
43 /// return the owning view
46 /// return the menu controller
47 MenuBackend const & backend();
49 /// The QMenuBar used by LyX
50 QMenuBar * menuBar() const;
52 /// update the state of the menuitems - not needed
56 /// Initialize specific MACOS X menubar
57 void macxMenuBarInit();
63 MenuBackend & menubackend_;
65 typedef std::map<docstring, QLPopupMenu *> NameMap;
67 /// name to menu for openByName
70 /// MACOS X special menubar.
71 boost::scoped_ptr<QMenuBar> mac_menubar_;
74 } // namespace frontend