2003-09-02 10:29:05 +00:00
|
|
|
// -*- 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
|
|
|
|
*
|
2003-09-02 17:02:32 +00:00
|
|
|
* Full author contact details are available in file CREDITS.
|
2003-09-02 10:29:05 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef MENUBAR_PIMPL_H
|
|
|
|
#define MENUBAR_PIMPL_H
|
|
|
|
|
|
|
|
#include "frontends/Menubar.h"
|
|
|
|
#include "MenuBackend.h"
|
2004-09-26 18:36:07 +00:00
|
|
|
|
|
|
|
#include <gtkmm.h>
|
|
|
|
|
2003-09-02 10:29:05 +00:00
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
class LyXView;
|
|
|
|
|
2004-05-19 15:11:37 +00:00
|
|
|
namespace lyx {
|
|
|
|
namespace frontend {
|
|
|
|
|
2004-09-26 16:48:30 +00:00
|
|
|
class GMenubar : public Menubar, public sigc::trackable {
|
2003-09-02 10:29:05 +00:00
|
|
|
public:
|
|
|
|
GMenubar(LyXView *, MenuBackend const &);
|
|
|
|
~GMenubar();
|
|
|
|
void update();
|
2003-10-06 15:43:21 +00:00
|
|
|
void openByName(std::string const &);
|
2003-09-02 10:29:05 +00:00
|
|
|
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_;
|
|
|
|
};
|
|
|
|
|
2004-05-19 15:11:37 +00:00
|
|
|
} // namespace frontend
|
|
|
|
} // namespace lyx
|
|
|
|
|
2003-09-02 10:29:05 +00:00
|
|
|
#endif
|