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"
27 class GView : public LyXView, public Gtk::Window {
40 Gtk::Box & getBox(Position pos);
42 virtual void prohibitInput() const;
43 virtual void allowInput() const;
44 virtual void message(std::string const &);
46 bool on_delete_event(GdkEventAny * event);
47 void focusWorkArea() { workArea_->grab_focus(); }
48 void setGWorkArea(Gtk::Widget * w) { workArea_ = w; }
51 virtual void busy(bool) const;
52 /// clear any temporary message and replace with current status
53 virtual void clearMessage();
55 // returns true if this view has the focus.
56 virtual bool hasFocus() const;
60 bool onFocusIn(GdkEventFocus * event);
61 virtual void setWindowTitle(std::string const & t, std::string const & it);
63 // The top-most box containing all other boxes.
66 // The physical store for the boxes making up the layout.
67 typedef boost::shared_ptr<Gtk::Box> BoxPtr;
68 typedef std::vector<BoxPtr> BoxStore;
71 // Accessors to the various Boxes.
72 std::map<Position, BoxPtr> box_map_;
74 boost::scoped_ptr<GMiniBuffer> minibuffer_;
75 Gtk::Widget * workArea_;
78 } // namespace frontend