kspelldlg.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef __KSPELLDLG_H__
00020 #define __KSPELLDLG_H__
00021
00022 #include <kdialogbase.h>
00023
00024 class QStringList;
00025 class QLabel;
00026 class QPushButton;
00027 class KListBox;
00028 class KLineEdit;
00029 class KProgress;
00030
00031
00032 enum KS_RESULT {
00033 KS_CANCEL= 0,
00034 KS_REPLACE= 1,
00035 KS_REPLACEALL= 2,
00036 KS_IGNORE= 3,
00037 KS_IGNOREALL= 4,
00038 KS_ADD= 5,
00039 KS_STOP= 7
00040 };
00041
00042 class KSpellDlg : public KDialogBase
00043 {
00044 Q_OBJECT
00045
00046 class KSpellDlgPrivate;
00047 KSpellDlgPrivate *d;
00048 KLineEdit *editbox;
00049 KProgress *progbar;
00050 KListBox *listbox;
00051 QStringList *sugg;
00052 QPushButton *qpbrep, *qpbrepa;
00053 QLabel *wordlabel;
00054 QString word, newword;
00055 bool progressbar;
00056
00057 public:
00058 KSpellDlg (QWidget *parent, const char *name,
00059 bool _progressbar = FALSE, bool _modal = FALSE );
00060
00061 QString replacement () const
00062 { return newword; }
00063
00069 void init (const QString& _word, QStringList *_sugg);
00070
00071 void standby() { emit(ready(false)); }
00072
00073 public slots:
00077 void slotProgress (unsigned int p);
00078
00079 protected:
00080 virtual void closeEvent ( QCloseEvent * e );
00081 void done (int i);
00082
00083 signals:
00087 void command (int);
00088
00089 void ready(bool);
00090
00091 protected slots:
00092 void ignore();
00093 void add();
00094 void ignoreAll();
00095 void cancel();
00096 void replace();
00097 void replaceAll();
00098 void stop();
00099
00100 void textChanged (const QString &);
00101
00102 void selected (int i);
00103 void highlighted (int i);
00104
00105
00106 };
00107
00108 #endif
This file is part of the documentation for kdelibs Version 3.1.5.