#include "frontends/LyXView.h"
#include "bufferview_funcs.h"
+
+#include <gtkmm.h>
+
#include <map>
+namespace lyx {
+namespace frontend {
+
class GMiniBuffer;
-class GView : public LyXView, public Gtk::Window
-{
+class GView : public LyXView, public Gtk::Window {
public:
enum Position {
Top,
void focusWorkArea() { workArea_->grab_focus(); }
void setGWorkArea(Gtk::Widget * w) { workArea_ = w; }
- static GView * instance() { return view_; }
/// show busy cursor
virtual void busy(bool) const;
/// clear any temporary message and replace with current status
virtual void clearMessage();
+
+ // returns true if this view has the focus.
+ virtual bool hasFocus() const;
+
private:
void showViewState();
bool onFocusIn(GdkEventFocus * event);
virtual void setWindowTitle(std::string const & t, std::string const & it);
- static GView * view_;
// The top-most box containing all other boxes.
Gtk::VBox top_box_;
Gtk::Widget * workArea_;
};
+} // namespace frontend
+} // namespace lyx
+
#endif