lib Library API Documentation

applicationspelltest.h

00001 
00002 #ifndef APPLICATIONSPELL_H
00003 #define APPLICATIONSPELL_H
00004 
00005 #include <qmainwindow.h>
00006 #include <kdialogbase.h>
00007 class QMultiLineEdit;
00008 class KOSpell;
00009 class QWidget;
00010 class KOSpellConfig;
00011 class ApplicationWindowSpell;
00012 class QPopupMenu;
00013 
00014 class spellConfig : public KDialogBase
00015 {
00016     Q_OBJECT
00017 public:
00018    spellConfig( QWidget* parent,ApplicationWindowSpell *_spell );
00019     KOSpellConfig * configSpellCheck() const { return config; }
00020 public slots:
00021     void slotApply();
00022 private:
00023    KOSpellConfig *config;
00024     ApplicationWindowSpell *m_spell;
00025 };
00026 
00027 class ApplicationWindowSpell: public QMainWindow
00028 {
00029     Q_OBJECT
00030 
00031 public:
00032     ApplicationWindowSpell();
00033     ~ApplicationWindowSpell();
00034     void changeConfig( KOSpellConfig _kspell);
00035 protected:
00036     void closeEvent( QCloseEvent* );
00037 
00038 private slots:
00039     void slotSpellText();
00040     void slotConfigSpellText();
00041     void spellCheckerFinished();
00042     void spellCheckerMisspelling( const QString &, const QStringList &, unsigned int );
00043     void spellCheckerCorrected( const QString &, const QString &, unsigned int );
00044     void spellCheckerDone( const QString & );
00045     void spellCheckerIgnoreAll( const QString & );
00046 
00047     void spellCheckerReplaceAll( const QString &, const QString & );
00048 
00049     void slotModalSpellText();
00050     void slotSelectionChanged();
00051 private:
00052     void posToRowCol(unsigned int pos, unsigned int &line, unsigned int &col);
00053 
00054     QMultiLineEdit *multi;
00055     KOSpell *m_spell;
00056     KOSpellConfig *m_spellConfig;
00057     int m_modalSpellCheckMenuIndex;
00058     QPopupMenu * file;
00059 };
00060 
00061 
00062 #endif
KDE Logo
This file is part of the documentation for lib Library Version 1.3.5.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Mar 11 11:47:39 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003