]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/gtk/GView.h
Change glob() API to accept a dir parameter.
[lyx.git] / src / frontends / gtk / GView.h
index a5b238bf70de5b2076c445b0bbcdb8fa90692aff..2b74894cb1b9a512a7116918c87a427673017dd7 100644 (file)
 
 #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,
@@ -42,16 +47,18 @@ public:
        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_;
@@ -68,4 +75,7 @@ private:
        Gtk::Widget * workArea_;
 };
 
+} // namespace frontend
+} // namespace lyx
+
 #endif