mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-28 12:26:59 +00:00
6349297015
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1172 a592a061-630c-0410-9148-cb99ea01b6c8
64 lines
1.3 KiB
C++
64 lines
1.3 KiB
C++
// -*- C++ -*-
|
|
/* This file is part of
|
|
* ======================================================
|
|
*
|
|
* LyX, The Document Processor
|
|
*
|
|
* Copyright 2000 The LyX Team.
|
|
*
|
|
* ====================================================== */
|
|
|
|
#ifndef GNOMELYX_MAINWIN
|
|
#define GNOMELYX_MAINWIN
|
|
|
|
#include <gnome--/app.h>
|
|
#include <gnome--/appbar.h>
|
|
#include <gtk--/frame.h>
|
|
#include <gtk--/accelgroup.h>
|
|
|
|
#include "MenuBackend.h"
|
|
|
|
/*
|
|
This is (most probably) temporary class and it will be either merged with
|
|
LyXView or replaced by new implementation of GUI-dependend MainWindow class
|
|
*/
|
|
|
|
class GLyxAppWin: public Gnome::App
|
|
{
|
|
public:
|
|
GLyxAppWin();
|
|
~GLyxAppWin();
|
|
|
|
/// 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
|
|
void init();
|
|
|
|
protected:
|
|
// widgets
|
|
Gnome::AppBar status_;
|
|
Gtk::VBox box_;
|
|
Gtk::Widget *view_;
|
|
|
|
Gtk::AccelGroup * accel_;
|
|
|
|
bool action_mode;
|
|
|
|
// menu size
|
|
int menusize_;
|
|
};
|
|
|
|
#endif
|