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; }
46 virtual void busy(bool) const;
47 /// clear any temporary message and replace with current status
48 virtual void clearMessage();
51 bool onFocusIn(GdkEventFocus * event);
52 virtual void setWindowTitle(std::string const & t, std::string const & it);
54 // The top-most box containing all other boxes.
57 // The physical store for the boxes making up the layout.
58 typedef boost::shared_ptr<Gtk::Box> BoxPtr;
59 typedef std::vector<BoxPtr> BoxStore;
62 // Accessors to the various Boxes.
63 std::map<Position, BoxPtr> box_map_;
65 boost::scoped_ptr<GMiniBuffer> minibuffer_;
66 Gtk::Widget * workArea_;