KDE3Support
k3spelldlg.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef K3SPELLDLG_H
00021 #define K3SPELLDLG_H
00022
00023 #include <kde3support_export.h>
00024 #include <kdialog.h>
00025
00026 class QStringList;
00027 class QLabel;
00028 class Q3ListViewItem;
00029 class QPushButton;
00030 class QProgressBar;
00031 class KListWidget;
00032 class KLineEdit;
00033
00034
00035 enum KS_RESULT {
00036 KS_CANCEL= 0,
00037 KS_REPLACE= 1,
00038 KS_REPLACEALL= 2,
00039 KS_IGNORE= 3,
00040 KS_IGNOREALL= 4,
00041 KS_ADD= 5,
00042 KS_STOP= 7,
00043 KS_SUGGEST= 8,
00044 KS_CONFIG= 9
00045 };
00046
00050 class KDE3SUPPORT_EXPORT_DEPRECATED K3SpellDlg : public KDialog
00051 {
00052 Q_OBJECT
00053
00054 class K3SpellDlgPrivate;
00055 K3SpellDlgPrivate *d;
00056 KLineEdit *editbox;
00057 QProgressBar *progbar;
00058 KListWidget *listbox;
00059 QStringList *sugg;
00060 QPushButton *qpbrep, *qpbrepa;
00061 QLabel *wordlabel;
00062 QString word, newword;
00063 bool progressbar;
00064
00065 public:
00066 explicit K3SpellDlg( QWidget *parent,
00067 bool _progressbar = false, bool _modal = false );
00068 ~K3SpellDlg();
00069
00070 QString replacement() const;
00071
00077 void init( const QString& _word, QStringList* _sugg );
00078 void init( const QString& _word, QStringList* _sugg,
00079 const QString& context );
00080
00081 void standby();
00082
00083 public Q_SLOTS:
00087 void slotProgress( unsigned int p );
00088
00089 protected:
00090 virtual void closeEvent( QCloseEvent * e );
00091 void done( int i );
00092
00093 Q_SIGNALS:
00097 void command( int );
00098
00099 void ready( bool );
00100
00101 protected Q_SLOTS:
00102 void ignore();
00103 void add();
00104 void ignoreAll();
00105 void cancel();
00106 void replace();
00107 void replaceAll();
00108 void suggest();
00109 void stop();
00110 void slotConfigChanged();
00111
00112 void textChanged( const QString & );
00113
00114 void slotSelectionChanged( Q3ListViewItem* item );
00115 };
00116
00117 #endif
00118