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>
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.
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.
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.
23 #include <kde3support_export.h>
34 //Possible result codes
48 * @deprecated, use sonnet instead
50 class KDE3SUPPORT_EXPORT_DEPRECATED K3SpellDlg
: public KDialog
54 class K3SpellDlgPrivate
;
57 QProgressBar
*progbar
;
60 QPushButton
*qpbrep
, *qpbrepa
;
62 QString word
, newword
;
66 explicit K3SpellDlg( QWidget
*parent
,
67 bool _progressbar
= false, bool _modal
= false );
70 QString
replacement() const;
73 * Change the misspelled word and suggested replacements
74 * and enable the disabled buttons on the dialog box.
75 * (Buttons are disabled by standby().)
77 void init( const QString
& _word
, QStringList
* _sugg
);
78 void init( const QString
& _word
, QStringList
* _sugg
,
79 const QString
& context
);
85 * Adjust the progress bar to @p p percent.
87 void slotProgress( unsigned int p
);
90 virtual void closeEvent( QCloseEvent
* e
);
95 This signal is emitted when a button is pressed.
110 void slotConfigChanged();
112 void textChanged( const QString
& );
114 void slotSelectionChanged( Q3ListViewItem
* item
);