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 /// The QMenuBar used by LyX
52 QMenuBar * menuBar() const;
54 /// update the state of the menuitems - not needed
58 /// Initialize specific MACOS X menubar
59 void macxMenuBarInit();
65 MenuBackend & menubackend_;
67 typedef QHash<QString, GuiPopupMenu *> NameMap;
69 /// name to menu for openByName
72 /// MACOS X special menubar.
73 QMenuBar * mac_menubar_;
76 } // namespace frontend
79 #endif // GUIMENUBAR_H