21 #ifndef TDESPELL_DIALOG_H
22 #define TDESPELL_DIALOG_H
24 #include <kdialogbase.h>
29 class BackgroundChecker;
30 class TDE_EXPORT Dialog :
public KDialogBase
34 Dialog( BackgroundChecker *checker,
35 TQWidget *parent,
const char *name=0 );
38 TQString originalBuffer()
const;
39 TQString buffer()
const;
42 void activeAutoCorrect(
bool _active );
45 void setBuffer(
const TQString& );
46 void setFilter( Filter* filter );
49 void done(
const TQString& newBuffer );
50 void misspelling(
const TQString& word,
int start );
51 void replace(
const TQString& oldWord,
int start,
52 const TQString& newWord );
56 void autoCorrect(
const TQString & currentWord,
const TQString & replaceWord );
58 void slotMisspelling(
const TQString& word,
int start );
65 void slotReplaceWord();
66 void slotReplaceAll();
70 void slotChangeLanguage(
const TQString& );
71 void slotSelectionChanged( TQListViewItem * );
72 void slotAutocorrect();
75 void updateDialog(
const TQString& word );
76 void fillSuggestions(
const TQStringList& suggs );
77 void initConnections();
79 void continueChecking();