2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 2000 The LyX Team.
9 * ====================================================== */
11 #ifndef GNOMELYX_MAINWIN
12 #define GNOMELYX_MAINWIN
14 #include <gnome--/app.h>
15 #include <gnome--/appbar.h>
16 #include <gtk--/frame.h>
17 #include <gtk--/accelgroup.h>
19 #include "MenuBackend.h"
22 This is (most probably) temporary class and it will be either merged with
23 LyXView or replaced by new implementation of GUI-dependend MainWindow class
26 class GLyxAppWin: public Gnome::App
32 /// set menu of the window
33 void set_menu(Gnome::UI::Array &);
35 void update_menu(string path,
39 void add_action(Gtk::Container &, string title, bool expand=false, Gtk::AccelGroup * acgr=NULL);
40 /// remove action area
42 /// clears action area if Escape is pressed
43 gint key_pressed(GdkEventKey * e);
46 /// init window widgets
51 Gnome::AppBar status_;
55 Gtk::AccelGroup * accel_;