- void closeEvent(QCloseEvent * e);
- /// update from controller
- void partialUpdate(int id);
- /// parent controller
- ControlSpellchecker & controller();
- ////
- void accept();
- void add();
- void ignore();
- void replace();
- ///
- void updateContents();
+ bool eventFilter(QObject *obj, QEvent *event);
+ struct Private;
+ Private * const d;
+};
+
+
+class GuiSpellchecker : public DockView
+{
+ Q_OBJECT
+
+public:
+ GuiSpellchecker(
+ GuiView & parent, ///< the main window where to dock.
+ Qt::DockWidgetArea area = Qt::RightDockWidgetArea, ///< Position of the dock (and also drawer)
+ Qt::WindowFlags flags = 0);
+ ~GuiSpellchecker();
+
+private:
+ ///{
+ void updateView();
+ bool initialiseParams(std::string const & data) { return widget_->initialiseParams(data); }
+ void clearParams() {}
+ void dispatchParams() {}
+ bool isBufferDependent() const { return false; }
+ ///}
+ /// The encapsulated widget.
+ SpellcheckerWidget * widget_;