]> git.lyx.org Git - lyx.git/blob - src/frontends/gtk/GMenubar.h
Get rid of trailing whitespace 'noise' in future patches for the
[lyx.git] / src / frontends / gtk / GMenubar.h
1 // -*- C++ -*-
2 /**
3  * \file gtk/GMenubar.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Huang Ying
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef MENUBAR_PIMPL_H
13 #define MENUBAR_PIMPL_H
14
15 #include "frontends/Menubar.h"
16 #include "MenuBackend.h"
17 #include <vector>
18
19 class LyXView;
20
21 class GMenubar : public Menubar, public SigC::Object {
22 public:
23         GMenubar(LyXView *, MenuBackend const &);
24         ~GMenubar();
25         void update();
26         void openByName(string const &);
27 private:
28         void onCommandActivate(MenuItem const * item, Gtk::MenuItem * gitem);
29         void onSubMenuActivate(MenuItem const * item, Gtk::MenuItem * gitem);
30         bool submenuDisabled(MenuItem const * item);
31         Gtk::MenuBar menubar_;
32         LyXView * view_;
33         std::vector<Glib::ustring> mainMenuNames_;
34 };
35
36 #endif