]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/gnome/mainapp.h
Clean-up of the button controller.
[lyx.git] / src / frontends / gnome / mainapp.h
index 5e6716f6f3a140722436a843130065686b87926d..8aeab39dc7d8a5bd10261b1567e5eaad119e610c 100644 (file)
@@ -14,6 +14,7 @@
 #include <gnome--/app.h>
 #include <gnome--/appbar.h>
 #include <gtk--/frame.h>
+#include <gtk--/accelgroup.h>
 
 #include "MenuBackend.h"
 
@@ -30,6 +31,16 @@ class GLyxAppWin: public Gnome::App
 
   /// set menu of the window
   void set_menu(Gnome::UI::Array &);
+  /// update menu
+  void update_menu(string path,
+                  int noelms,
+                  Gnome::UI::Array &);
+  /// add action area
+  void add_action(Gtk::Container &, string title, bool expand=false, Gtk::AccelGroup * acgr=0);
+  /// remove action area
+  void remove_action();
+  /// clears action area if Escape is pressed
+  gint key_pressed(GdkEventKey * e);
   
  protected:
   /// init window widgets
@@ -38,8 +49,13 @@ class GLyxAppWin: public Gnome::App
  protected:
   // widgets
   Gnome::AppBar status_;
-  Gtk::Frame frame_;
+  Gtk::VBox box_;
+  Gtk::Widget *view_;
 
+  Gtk::AccelGroup * accel_;
+
+  bool action_mode;
+  
   // menu size
   int menusize_;
 };