# class Dialog

###

Module | kdeui
Namespace | Sonnet
Class | Dialog
Inherits | KDialog

Spellcheck dialog

    Sonnet.Dialog = dlg=new Sonnet.Dialog(new Sonnet.BackgroundChecker(
    this), this);
    //connect signals
    ...
    dlg->setBuffer( someText );
    dlg->show();

You can change buffer inside a slot connected to done() signal and spellcheck will continue with new data automatically.

### methods

- Dialog (checker, parent)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  checker | Sonnet.BackgroundChecker |
  parent | QWidget |

- Dialog (a0)

  returns ctor
  Not implemented

  Argument | Type | Default
  --- | --- | ---
  a0 | Sonnet.Dialog |

- activeAutoCorrect (_active)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  _active | bool |

- autoCorrect (currentWord, replaceWord)

  returns Nothing
  SIGNAL ("autoCorrect (const QString&, const QString&)")

  Argument | Type | Default
  --- | --- | ---
  currentWord | QString |
  replaceWord | QString |

- buffer ( )

  returns QString

- cancel ( )

  returns Nothing
  SIGNAL ("cancel ()")

- done (newBuffer)

  returns Nothing
  SIGNAL ("done (const QString&)")

  Argument | Type | Default
  --- | --- | ---
  newBuffer | QString |

  The dialog won't be closed if you setBuffer() in slot connected to this signal

  Also emitted after stop() signal

- languageChanged (language)

  returns Nothing
  SIGNAL ("languageChanged (const QString&)")
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  language | QString |

  Emitted when the user changes the language used for spellchecking, which is shown in a combobox of this dialog.

  dictionary - the new language the user selected @since 4.1

- misspelling (word, start)

  returns Nothing
  SIGNAL ("misspelling (const QString&, int)")

  Argument | Type | Default
  --- | --- | ---
  word | QString |
  start | int |

- originalBuffer ( )

  returns QString

- replace (oldWord, start, newWord)

  returns Nothing
  SIGNAL ("replace (const QString&, int, const QString&)")

  Argument | Type | Default
  --- | --- | ---
  oldWord | QString |
  start | int |
  newWord | QString |

- setBuffer (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | QString |

- show ( )

  returns Nothing

- spellCheckStatus (a0)

  returns Nothing
  SIGNAL ("spellCheckStatus (const QString&)")
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  a0 | QString |

  Signal sends when spell checking is finished/stopped/completed @since 4.1

- stop ( )

  returns Nothing
  SIGNAL ("stop ()")