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 "bufferview_funcs.h"
17 #include "frontends/LyXView.h"
28 class GView : public LyXView, public Gtk::Window {
41 /// initialize the object
44 /// FIXME: not implemented!
45 virtual void setGeometry(
51 Gtk::Box & getBox(Position pos);
53 virtual void prohibitInput() const;
54 virtual void allowInput() const;
55 virtual void message(lyx::docstring const &);
57 bool on_delete_event(GdkEventAny * event);
58 void focusWorkArea() { workArea_->grab_focus(); }
59 void setGWorkArea(Gtk::Widget * w) { workArea_ = w; }
62 virtual void busy(bool) const;
65 Toolbars::ToolbarPtr makeToolbar(ToolbarBackend::Toolbar const & tbb);
67 /// clear any temporary message and replace with current status
68 virtual void clearMessage();
70 // returns true if this view has the focus.
71 virtual bool hasFocus() const;
73 void updateStatusBar();
76 bool onFocusIn(GdkEventFocus * event);
77 virtual void setWindowTitle(lyx::docstring const & t, lyx::docstring const & it);
79 // The top-most box containing all other boxes.
82 // The physical store for the boxes making up the layout.
83 typedef boost::shared_ptr<Gtk::Box> BoxPtr;
84 typedef std::vector<BoxPtr> BoxStore;
87 // Accessors to the various Boxes.
88 std::map<Position, BoxPtr> box_map_;
90 boost::scoped_ptr<GMiniBuffer> minibuffer_;
91 Gtk::Widget * workArea_;
94 } // namespace frontend