]> git.lyx.org Git - lyx.git/blob - src/frontends/Menubar.h
add shortcuts to filedialogs directory buttons; small gnome patch from Michael
[lyx.git] / src / frontends / Menubar.h
1 // -*- C++ -*-
2 /* This file is part of
3  * ======================================================
4  * 
5  *           LyX, The Document Processor
6  *           Copyright 1995 Matthias Ettrich
7  *           Copyright 1995-2001 The LyX Team.
8  *
9  *           This file is Copyright 1996-2001
10  *           Lars Gullik Bjønnes
11  *
12  * ====================================================== */
13
14 #ifndef MENUBAR_H
15 #define MENUBAR_H
16
17 #ifdef __GNUG__
18 #pragma interface
19 #endif
20
21 #include "LString.h"
22
23 class LyXView;
24 class MenuBackend;
25
26 /** The LyX GUI independent menubar class
27   The GUI interface is implemented in the corresponding Menubar_pimpl class. 
28   */
29 class Menubar {
30 public:
31         ///
32         Menubar(LyXView * o, MenuBackend const &);
33         ///
34         ~Menubar();
35         ///
36         void set(string const &);
37         /// Opens a top-level submenu given its name
38         void openByName(string const &);
39         /// update the state of the menuitems
40         void update();
41
42
43         //I disable this temporarily until I find a nice way to make it work
44         //with compaq cxx. (Jean-Marc)
45         // Is this a new comment? (Lgb)
46         struct Pimpl;
47         friend struct Pimpl;
48 private:
49         ///
50         Pimpl * pimpl_;
51 };
52 #endif