#include "GView.h"
#include "GMenubar.h"
+#include "GToolbar.h"
#include "GMiniBuffer.h"
#include "BufferView.h"
} // namespace anon
-GView::GView(Gui & owner) : LyXView(owner)
+GView::GView() : LyXView()
{
// The physical store for the boxes making up the layout.
box_store_.push_back(BoxPtr(new Gtk::VBox));
}
-void GView::message(string const & msg)
+void GView::message(docstring const & msg)
{
- minibuffer_->message(msg);
+ minibuffer_->message(lyx::to_utf8(msg));
}
void GView::updateStatusBar()
{
- message(getLyXFunc().viewStatusMessage());
+ message(lyx::from_utf8(getLyXFunc().viewStatusMessage()));
}
-void GView::setWindowTitle(string const & t, string const & /*it*/)
+void GView::setWindowTitle(docstring const & t, docstring const & /*it*/)
{
- set_title(Glib::locale_to_utf8(t));
+ set_title(lyx::to_utf8(t));
}
void GView::clearMessage()
{
- message(getLyXFunc().viewStatusMessage());
+ message(lyx::from_utf8(getLyXFunc().viewStatusMessage()));
}
}
+Toolbars::ToolbarPtr GView::makeToolbar(ToolbarBackend::Toolbar const & tbb)
+{
+ return make_toolbar(tbb, *this);
+}
+
} // namespace frontend
} // namespace lyx