3 * \file qt2/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"
30 class QLMenubar : public Menubar {
32 QLMenubar(LyXView *, MenuBackend &);
34 /// opens a top-level submenu given its name
35 void openByName(std::string const &);
37 /// update the state of the menuitems - not needed
40 /// return the owning view
43 /// return the menu controller
44 MenuBackend const & backend();
50 MenuBackend & menubackend_;
52 typedef std::map<std::string, QLPopupMenu *> NameMap;
54 /// name to menu for openByName
57 /// The QMenuBar used by LyX
58 QMenuBar * menuBar() const;
61 boost::scoped_ptr<QMenuBar> menubar_;
65 } // namespace frontend