]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/gtk/GView.h
make it compile again
[lyx.git] / src / frontends / gtk / GView.h
index d04a0ab3297ce502ecb494f80d7f4ff2326e72d6..655cdb4646b4cf99424d900efe6623f2a480deaf 100644 (file)
 #ifndef GVIEW_H
 #define GVIEW_H
 
-#include "frontends/LyXView.h"
 #include "bufferview_funcs.h"
+
+#include "frontends/LyXView.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,
@@ -36,7 +42,7 @@ public:
 
        virtual void prohibitInput() const;
        virtual void allowInput() const;
-       virtual void message(std::string const &);
+       virtual void message(lyx::docstring const &);
 
        bool on_delete_event(GdkEventAny * event);
        void focusWorkArea() { workArea_->grab_focus(); }
@@ -44,12 +50,21 @@ public:
 
        /// show busy cursor
        virtual void busy(bool) const;
+
+       ///
+       Toolbars::ToolbarPtr makeToolbar(ToolbarBackend::Toolbar const & tbb);
+
        /// clear any temporary message and replace with current status
        virtual void clearMessage();
+
+       // returns true if this view has the focus.
+       virtual bool hasFocus() const;
+       ///
+       void updateStatusBar();
+
 private:
-       void showViewState();
        bool onFocusIn(GdkEventFocus * event);
-       virtual void setWindowTitle(std::string const & t, std::string const & it);
+       virtual void setWindowTitle(lyx::docstring const & t, lyx::docstring const & it);
 
        // The top-most box containing all other boxes.
        Gtk::VBox top_box_;
@@ -66,4 +81,7 @@ private:
        Gtk::Widget * workArea_;
 };
 
+} // namespace frontend
+} // namespace lyx
+
 #endif