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

KDE3Support

k3spelldlg.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 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 //Possible result codes
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 

KDE3Support

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • KIO
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.4
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