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"
24 class GView : public LyXView, public Gtk::Window
38 Gtk::Box & getBox(Position pos);
40 virtual void prohibitInput() const;
41 virtual void allowInput() const;
42 virtual void message(std::string const &);
44 bool on_delete_event(GdkEventAny * event);
45 void focusWorkArea() { workArea_->grab_focus(); }
46 void setGWorkArea(Gtk::Widget * w) { workArea_ = w; }
49 virtual void busy(bool) const;
50 /// clear any temporary message and replace with current status
51 virtual void clearMessage();
54 bool onFocusIn(GdkEventFocus * event);
55 virtual void setWindowTitle(std::string const & t, std::string const & it);
57 // The top-most box containing all other boxes.
60 // The physical store for the boxes making up the layout.
61 typedef boost::shared_ptr<Gtk::Box> BoxPtr;
62 typedef std::vector<BoxPtr> BoxStore;
65 // Accessors to the various Boxes.
66 std::map<Position, BoxPtr> box_map_;
68 boost::scoped_ptr<GMiniBuffer> minibuffer_;
69 Gtk::Widget * workArea_;
72 } // namespace frontend