| # kspell Library API Documentation
Overview | Class Hierarchy | Classes | Classes (annotated) | Members | Source Files

# kspelldlg.h

    00001 /* This file is part of the KDE libraries
    00002    Copyright (C) 1997 David Sweet <dsweet@kde.org>
    00003    Copyright (C) 2000 Rik Hemsley <rik@kde.org>
    00004
    00005    This library is free software; you can redistribute it and/or
    00006    modify it under the terms of the GNU Library General Public
    00007    License version 2 as published by the Free Software Foundation.
    00008
    00009    This library is distributed in the hope that it will be useful,
    00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
    00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    00012    Library General Public License for more details.
    00013
    00014    You should have received a copy of the GNU Library General Public License
    00015    along with this library; see the file COPYING.LIB.  If not, write to
    00016    the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    00017    Boston, MA 02111-1307, USA.
    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 //Possible result codes
    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.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Wed Jan 28 13:27:47 2004 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001