• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kdeui

kspelldlg.h

Go to the documentation of this file.
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., 51 Franklin Street, Fifth Floor,
00018    Boston, MA 02110-1301, 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

kdeui

Skip menu "kdeui"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal