mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-13 14:32:04 +00:00
f4811c91d7
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9107 a592a061-630c-0410-9148-cb99ea01b6c8
45 lines
913 B
C++
45 lines
913 B
C++
// -*- C++ -*-
|
|
/**
|
|
* \file gtk/GMenubar.h
|
|
* This file is part of LyX, the document processor.
|
|
* Licence details can be found in the file COPYING.
|
|
*
|
|
* \author Huang Ying
|
|
*
|
|
* Full author contact details are available in file CREDITS.
|
|
*/
|
|
|
|
#ifndef MENUBAR_PIMPL_H
|
|
#define MENUBAR_PIMPL_H
|
|
|
|
#include "frontends/Menubar.h"
|
|
#include "MenuBackend.h"
|
|
|
|
#include <gtkmm.h>
|
|
|
|
#include <vector>
|
|
|
|
class LyXView;
|
|
|
|
namespace lyx {
|
|
namespace frontend {
|
|
|
|
class GMenubar : public Menubar, public sigc::trackable {
|
|
public:
|
|
GMenubar(LyXView *, MenuBackend const &);
|
|
~GMenubar();
|
|
void update();
|
|
void openByName(std::string const &);
|
|
private:
|
|
void onCommandActivate(MenuItem const * item, Gtk::MenuItem * gitem);
|
|
void onSubMenuActivate(MenuItem const * item, Gtk::MenuItem * gitem);
|
|
Gtk::MenuBar menubar_;
|
|
LyXView * view_;
|
|
std::vector<Glib::ustring> mainMenuNames_;
|
|
};
|
|
|
|
} // namespace frontend
|
|
} // namespace lyx
|
|
|
|
#endif
|