+ BufferView * currentBufferView();
+ BufferView const * currentBufferView() const;
+ BufferView * documentBufferView();
+ BufferView const * documentBufferView() const;
+ void newDocument(std::string const & filename,
+ bool fromTemplate);
+
+ /// could be called from any thread
+ void message(docstring const &);
+ /// must be called from GUI thread
+ void updateMessage(QString const & str);
+
+ bool getStatus(FuncRequest const & cmd, FuncStatus & flag);
+ void dispatch(FuncRequest const & cmd, DispatchResult & dr);
+ void restartCursor();
+ void updateCompletion(Cursor & cur, bool start, bool keep);
+ void setFocus();
+ //@}
+
+ ///
+ void focusInEvent(QFocusEvent * e);
+ /// set a buffer to the current workarea.
+ void setBuffer(Buffer * b); ///< \c Buffer to set.
+
+ /// load a document into the current workarea.
+ Buffer * loadDocument(
+ support::FileName const & name, ///< File to load.
+ bool tolastfiles = true ///< append to the "Open recent" menu?
+ );