katespell.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef __KATE_SPELL_H__
00024 #define __KATE_SPELL_H__
00025
00026 #include "katecursor.h"
00027
00028 class KateView;
00029
00030 class KAction;
00031 class KSpell;
00032
00033 class KateSpell : public QObject
00034 {
00035 Q_OBJECT
00036
00037 public:
00038 KateSpell( KateView* );
00039 ~KateSpell();
00040
00041 void createActions( KActionCollection* );
00042
00043 void updateActions ();
00044
00045
00046 private slots:
00047 void spellcheckFromCursor();
00048
00049
00050 void spellcheckSelection();
00051
00052 void spellcheck();
00053
00060 void spellcheck( const KateTextCursor &from, const KateTextCursor &to=KateTextCursor() );
00061
00062 void ready(KSpell *);
00063 void misspelling( const QString&, const QStringList&, unsigned int );
00064 void corrected ( const QString&, const QString&, unsigned int);
00065 void spellResult( const QString& );
00066 void spellCleanDone();
00067
00068 void locatePosition( uint pos, uint& line, uint& col );
00069
00070 private:
00071 KateView *m_view;
00072 KAction *m_spellcheckSelection;
00073
00074 KSpell *m_kspell;
00075
00076
00077 KateTextCursor m_spellStart, m_spellEnd;
00078
00079
00080 KateTextCursor m_spellPosCursor;
00081 uint m_spellLastPos;
00082 };
00083
00084 #endif
00085
00086
|