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.
31 class GuiMenubar : public QObject
35 GuiMenubar(GuiView *, MenuBackend &);
42 /// opens a top-level submenu given its name
43 void openByName(QString const & name);
45 /// return the owning view
46 GuiView * view() { return owner_; }
48 /// return the menu controller
49 MenuBackend const & backend() { return menubackend_; }
51 /// update the state of the menuitems - not needed
55 /// Initialize specific MACOS X menubar
56 void macxMenuBarInit();
62 MenuBackend & menubackend_;
64 typedef QHash<QString, GuiPopupMenu *> NameMap;
66 /// name to menu for openByName
69 /// MACOS X special menubar.
70 QMenuBar * mac_menubar_;
73 } // namespace frontend
76 #endif // GUIMENUBAR_H