]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormSpellchecker.h
Change glob() API to accept a dir parameter.
[lyx.git] / src / frontends / xforms / FormSpellchecker.h
index 0150cd29d74fa589d02070e3e9fc6b8d78ee7c8f..4a43cb4e5446e8bee4a7da057ad0ab06318f9cb0 100644 (file)
@@ -6,17 +6,16 @@
  *
  * \author Edwin Leuven
  *
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
  */
 
 #ifndef FORMSPELLCHECKER_H
 #define FORMSPELLCHECKER_H
 
-#ifdef __GNUG__
-#pragma interface
-#endif
+#include "FormDialogView.h"
 
-#include "FormBase.h"
+namespace lyx {
+namespace frontend {
 
 class ControlSpellchecker;
 struct FD_spellchecker;
@@ -24,10 +23,10 @@ struct FD_spellchecker;
 /** This class provides an XForms implementation of the FormSpellchecker Dialog.
  */
 class FormSpellchecker
-       : public FormCB<ControlSpellchecker, FormDB<FD_spellchecker> > {
+       : public FormController<ControlSpellchecker, FormView<FD_spellchecker> > {
 public:
        ///
-       FormSpellchecker();
+       FormSpellchecker(Dialog &);
 private:
        /// not needed.
        virtual void apply() {}
@@ -41,18 +40,9 @@ private:
 
        /// Filter the inputs
        virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
-
-       ///
-       enum State {
-               READY_TO_START,
-               STARTED,
-               CHECKING,
-               STOPPED
-       };
-       ///
-       void updateState(State state);
-       ///
-       State state_;
 };
 
+} // namespace frontend
+} // namespace lyx
+
 #endif // FORMSPELLCHECKER_H