4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS
15 #include "frontends/LyXView.h"
16 #include "bufferview_funcs.h"
20 class GView : public LyXView, public Gtk::Window
25 virtual void prohibitInput() const;
26 virtual void allowInput() const;
27 virtual void message(string const &);
28 Gtk::VBox & getVBox() { return *vbox_.get(); }
30 bool on_delete_event(GdkEventAny * event);
31 void focusWorkArea() { workArea_->grab_focus(); }
32 void setGWorkArea(Gtk::Widget * w) { workArea_ = w; }
33 static GView * instance() { return view_; }
35 virtual void busy(bool) const;
36 /// clear any temporary message and replace with current status
37 virtual void clearMessage();
40 bool onFocusIn(GdkEventFocus * event);
41 virtual void setWindowTitle(string const & t, string const & it);
43 std::auto_ptr<Gtk::VBox> vbox_;
44 boost::scoped_ptr<GMiniBuffer> minibuffer_;
45 Gtk::Widget * workArea_;