#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 {
class GMiniBuffer;
-class GView : public LyXView, public Gtk::Window
-{
+class GView : public LyXView, public Gtk::Window {
public:
enum Position {
Top,
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(); }
/// 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_;