# kdeui Library API Documentation

Overview | Class Hierarchy | Classes | Classes (annotated) | Members | Namespaces | 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    Copyright (C) 2003 Zack Rusin  <zack@kde.org>
    00005
    00006    This library is free software; you can redistribute it and/or
    00007    modify it under the terms of the GNU Library General Public
    00008    License version 2 as published by the Free Software Foundation.
    00009
    00010    This library is distributed in the hope that it will be useful,
    00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
    00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    00013    Library General Public License for more details.
    00014
    00015    You should have received a copy of the GNU Library General Public License
    00016    along with this library; see the file COPYING.LIB.  If not, write to
    00017    the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    00018    Boston, MA 02111-1307, USA.
    00019 */
    00020 #ifndef __KSPELLDLG_H__
    00021 #define __KSPELLDLG_H__
    00022
    00023 #include <kdialogbase.h>
    00024
    00025 class QStringList;
    00026 class QLabel;
    00027 class QListViewItem;
    00028 class QPushButton;
    00029 class KListBox;
    00030 class KLineEdit;
    00031 class KProgress;
    00032
    00033 //Possible result codes
    00034 enum KS_RESULT {
    00035   KS_CANCEL=     0,
    00036   KS_REPLACE=    1,
    00037   KS_REPLACEALL= 2,
    00038   KS_IGNORE=     3,
    00039   KS_IGNOREALL=  4,
    00040   KS_ADD=        5,
    00041   KS_STOP=       7,
    00042   KS_SUGGEST=    8,
    00043   KS_CONFIG=     9
    00044 };
    00045
    00046 class KDEUI_EXPORT KSpellDlg : public KDialogBase
    00047 {
    00048   Q_OBJECT
    00049
    00050   class KSpellDlgPrivate;
    00051   KSpellDlgPrivate *d;
    00052   KLineEdit *editbox;
    00053   KProgress *progbar;
    00054   KListBox *listbox;
    00055   QStringList *sugg;
    00056   QPushButton *qpbrep, *qpbrepa;
    00057   QLabel *wordlabel;
    00058   QString word, newword;
    00059   bool progressbar;
    00060
    00061 public:
    00062   KSpellDlg( QWidget *parent, const char *name,
    00063          bool _progressbar = false, bool _modal = false );
    00064   ~KSpellDlg();
    00065
    00066   QString replacement() const
    00067     { return newword; }
    00068
    00074   void init( const QString& _word, QStringList* _sugg );
    00075   void init( const QString& _word, QStringList* _sugg,
    00076              const QString& context );
    00077
    00078   void standby() { emit ready( false ); }
    00079
    00080   public slots:
    00084   void slotProgress( unsigned int p );
    00085
    00086 protected:
    00087   virtual void closeEvent( QCloseEvent * e );
    00088   void done( int i );
    00089
    00090  signals:
    00094   void command( int );
    00095
    00096   void ready( bool );
    00097
    00098 protected slots:
    00099   void ignore();
    00100   void add();
    00101   void ignoreAll();
    00102   void cancel();
    00103   void replace();
    00104   void replaceAll();
    00105   void suggest();
    00106   void stop();
    00107   void slotConfigChanged();
    00108
    00109   void textChanged( const QString & );
    00110
    00111   void slotSelectionChanged( QListViewItem* item );
    00112 };
    00113
    00114 #endif

This file is part of the documentation for kdeui Library Version 3.4.1.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat Jun 11 20:20:23 2005 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003