+class GuiViewSource : public DockView
+{
+ Q_OBJECT
+
+public:
+ GuiViewSource(
+ GuiView & parent, ///< the main window where to dock.
+ Qt::DockWidgetArea area = Qt::BottomDockWidgetArea, ///< Position of the dock (and also drawer)
+ Qt::WindowFlags flags = 0);
+
+ ~GuiViewSource();
+
+ /// Controller inherited method.
+ ///@{
+ bool initialiseParams(std::string const & source);
+ void clearParams() {}
+ void dispatchParams() {}
+ bool isBufferDependent() const { return true; }
+ bool canApply() const { return true; }
+ bool canApplyToReadOnly() const { return true; }
+ void updateView();
+ void enableView(bool enable);
+ void saveSession() const;
+ void restoreSession();
+ bool wantInitialFocus() const { return false; }
+ ///@}
+
+ /// The title displayed by the dialog reflects source type.
+ QString title() const;
+
+private:
+ /// The encapsulated widget.
+ ViewSourceWidget * widget_;
+};
+