mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 21:49:51 +00:00
56 lines
947 B
C
56 lines
947 B
C
|
// -*- C++ -*-
|
|||
|
/**
|
|||
|
* \file Menubar_pimpl.h
|
|||
|
* Copyright 2002 the LyX Team
|
|||
|
* Read the file COPYING
|
|||
|
*
|
|||
|
* \author Lars Gullik Bj<EFBFBD>nnes <larsbj@lyx.org>
|
|||
|
* \author John Levon <moz@compsoc.man.ac.uk>
|
|||
|
*/
|
|||
|
|
|||
|
|
|||
|
#ifndef MENUBAR_PIMPL_H
|
|||
|
#define MENUBAR_PIMPL_H
|
|||
|
|
|||
|
#include <vector>
|
|||
|
#include <map>
|
|||
|
#include <boost/smart_ptr.hpp>
|
|||
|
|
|||
|
#include <config.h>
|
|||
|
|
|||
|
#ifdef __GNUG__
|
|||
|
#pragma interface
|
|||
|
#endif
|
|||
|
|
|||
|
#include "LString.h"
|
|||
|
#include "frontends/Menubar.h"
|
|||
|
#include "commandtags.h"
|
|||
|
//#include "MenuBackend.h"
|
|||
|
|
|||
|
class LyXView;
|
|||
|
class QtView;
|
|||
|
class QMenuData;
|
|||
|
class Menu;
|
|||
|
class MenuItem;
|
|||
|
class MenuBackend;
|
|||
|
|
|||
|
struct Menubar::Pimpl {
|
|||
|
public:
|
|||
|
///
|
|||
|
Pimpl(LyXView *, MenuBackend const &);
|
|||
|
/// Opens a top-level submenu given its name
|
|||
|
void openByName(string const &);
|
|||
|
|
|||
|
/// update the state of the menuitems
|
|||
|
void update() {}
|
|||
|
|
|||
|
private:
|
|||
|
void makeMenu(QMenuData * parent, MenuItem const & menu);
|
|||
|
|
|||
|
QtView * owner_;
|
|||
|
|
|||
|
MenuBackend const & menubackend_;
|
|||
|
};
|
|||
|
|
|||
|
#endif
|