]> git.lyx.org Git - lyx.git/blob - src/frontends/gtk/GMenubar.h
Change glob() API to accept a dir parameter.
[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
18 #include <gtkmm.h>
19
20 #include <vector>
21
22 class LyXView;
23
24 namespace lyx {
25 namespace frontend {
26
27 class GMenubar : public Menubar, public sigc::trackable {
28 public:
29         GMenubar(LyXView *, MenuBackend const &);
30         ~GMenubar();
31         void update();
32         void openByName(std::string const &);
33 private:
34         void onCommandActivate(MenuItem const * item, Gtk::MenuItem * gitem);
35         void onSubMenuActivate(MenuItem const * item, Gtk::MenuItem * gitem);
36         Gtk::MenuBar menubar_;
37         LyXView * view_;
38         std::vector<Glib::ustring> mainMenuNames_;
39 };
40
41 } // namespace frontend
42 } // namespace lyx
43
44 #endif