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

KDE3Support

  • sources
  • kde-4.14
  • kdelibs
  • kde3support
  • kdeui
k3spelldlg.h
Go to the documentation of this file.
1 /* This file is part of the KDE libraries
2  Copyright (C) 1997 David Sweet <dsweet@kde.org>
3  Copyright (C) 2000 Rik Hemsley <rik@kde.org>
4  Copyright (C) 2003 Zack Rusin <zack@kde.org>
5 
6  This library is free software; you can redistribute it and/or
7  modify it under the terms of the GNU Library General Public
8  License version 2 as published by the Free Software Foundation.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Library General Public License for more details.
14 
15  You should have received a copy of the GNU Library General Public License
16  along with this library; see the file COPYING.LIB. If not, write to
17  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  Boston, MA 02110-1301, USA.
19 */
20 #ifndef K3SPELLDLG_H
21 #define K3SPELLDLG_H
22 
23 #include <kde3support_export.h>
24 #include <kdialog.h>
25 
26 class QStringList;
27 class QLabel;
28 class Q3ListViewItem;
29 class QPushButton;
30 class QProgressBar;
31 class KListWidget;
32 class KLineEdit;
33 
34 //Possible result codes
35 enum KS_RESULT {
36  KS_CANCEL= 0,
37  KS_REPLACE= 1,
38  KS_REPLACEALL= 2,
39  KS_IGNORE= 3,
40  KS_IGNOREALL= 4,
41  KS_ADD= 5,
42  KS_STOP= 7,
43  KS_SUGGEST= 8,
44  KS_CONFIG= 9
45 };
46 
50 class KDE3SUPPORT_EXPORT_DEPRECATED K3SpellDlg : public KDialog
51 {
52  Q_OBJECT
53 
54  class K3SpellDlgPrivate;
55  K3SpellDlgPrivate *d;
56  KLineEdit *editbox;
57  QProgressBar *progbar;
58  KListWidget *listbox;
59  QStringList *sugg;
60  QPushButton *qpbrep, *qpbrepa;
61  QLabel *wordlabel;
62  QString word, newword;
63  bool progressbar;
64 
65 public:
66  explicit K3SpellDlg( QWidget *parent,
67  bool _progressbar = false, bool _modal = false );
68  ~K3SpellDlg();
69 
70  QString replacement() const;
71 
77  void init( const QString& _word, QStringList* _sugg );
78  void init( const QString& _word, QStringList* _sugg,
79  const QString& context );
80 
81  void standby();
82 
83  public Q_SLOTS:
87  void slotProgress( unsigned int p );
88 
89 protected:
90  virtual void closeEvent( QCloseEvent * e );
91  void done( int i );
92 
93  Q_SIGNALS:
97  void command( int );
98 
99  void ready( bool );
100 
101 protected Q_SLOTS:
102  void ignore();
103  void add();
104  void ignoreAll();
105  void cancel();
106  void replace();
107  void replaceAll();
108  void suggest();
109  void stop();
110  void slotConfigChanged();
111 
112  void textChanged( const QString & );
113 
114  void slotSelectionChanged( Q3ListViewItem* item );
115 };
116 
117 #endif
118 
add
KGuiItem add()
cancel
KGuiItem cancel()
kdialog.h
QProgressBar
QWidget
QDialog::closeEvent
virtual void closeEvent(QCloseEvent *e)
KS_REPLACE
Definition: k3spelldlg.h:37
KS_SUGGEST
Definition: k3spelldlg.h:43
QDialog::done
virtual void done(int r)
KS_IGNORE
Definition: k3spelldlg.h:39
KDialog
KS_ADD
Definition: k3spelldlg.h:41
KS_CANCEL
Definition: k3spelldlg.h:36
QCloseEvent
Q3ListViewItem
kde3support_export.h
K3SpellDlg
Definition: k3spelldlg.h:50
QString
QStringList
replace
KAction * replace(const QObject *recvr, const char *slot, QObject *parent)
KLineEdit
KS_STOP
Definition: k3spelldlg.h:42
stop
KGuiItem stop()
KS_IGNOREALL
Definition: k3spelldlg.h:40
KS_REPLACEALL
Definition: k3spelldlg.h:38
KS_CONFIG
Definition: k3spelldlg.h:44
QPushButton
KS_RESULT
KS_RESULT
Definition: k3spelldlg.h:35
QLabel
KListWidget
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:26:48 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDE3Support

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal