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"
21 class GView : public LyXView, public Gtk::Window
35 Gtk::Box & getBox(Position pos);
37 virtual void prohibitInput() const;
38 virtual void allowInput() const;
39 virtual void message(std::string const &);
41 bool on_delete_event(GdkEventAny * event);
42 void focusWorkArea() { workArea_->grab_focus(); }
43 void setGWorkArea(Gtk::Widget * w) { workArea_ = w; }
45 static GView * instance() { return view_; }
47 virtual void busy(bool) const;
48 /// clear any temporary message and replace with current status
49 virtual void clearMessage();
52 bool onFocusIn(GdkEventFocus * event);
53 virtual void setWindowTitle(std::string const & t, std::string const & it);
56 // The top-most box containing all other boxes.
59 // The physical store for the boxes making up the layout.
60 typedef boost::shared_ptr<Gtk::Box> BoxPtr;
61 typedef std::vector<BoxPtr> BoxStore;
64 // Accessors to the various Boxes.
65 std::map<Position, BoxPtr> box_map_;
67 boost::scoped_ptr<GMiniBuffer> minibuffer_;
68 Gtk::Widget * workArea_;