kdeui Library API Documentation

KSpellDlg Class Reference

Inheritance diagram for KSpellDlg:

Inheritance graph
[legend]
Collaboration diagram for KSpellDlg:

Collaboration graph
[legend]
List of all members.

Public Slots

void slotProgress (unsigned int p)

Signals

void command (int)
void ready (bool)

Public Member Functions

 KSpellDlg (QWidget *parent, const char *name, bool _progressbar=false, bool _modal=false)
 ~KSpellDlg ()
QString replacement () const
void init (const QString &_word, QStringList *_sugg)
void init (const QString &_word, QStringList *_sugg, const QString &context)
void standby ()

Protected Slots

void ignore ()
void add ()
void ignoreAll ()
void cancel ()
void replace ()
void replaceAll ()
void suggest ()
void stop ()
void slotConfigChanged ()
void textChanged (const QString &)
void slotSelectionChanged (QListViewItem *item)

Protected Member Functions

virtual void closeEvent (QCloseEvent *e)
void done (int i)

Detailed Description

Definition at line 46 of file kspelldlg.h.


Member Function Documentation

void KSpellDlg::init const QString _word,
QStringList _sugg
 

Change the misspelled word and suggested replacements and enable the disabled buttons on the dialog box.

(Buttons are disabled by standby().)

Definition at line 113 of file kspelldlg.cpp.

References endl(), kdDebug(), and QListViewItem::setText().

Referenced by KSpell::dialog().

void KSpellDlg::slotProgress unsigned int  p  )  [slot]
 

Adjust the progress bar to p percent.

Definition at line 182 of file kspelldlg.cpp.

References KProgress::setValue().

void KSpellDlg::closeEvent QCloseEvent e  )  [protected, virtual]
 

Detects when a dialog is being closed from the window manager controls.

If the Cancel or Close button is present then the button is activated. Otherwise standard QDialog behavior will take place.

Reimplemented from KDialogBase.

Definition at line 210 of file kspelldlg.cpp.

References cancel().

void KSpellDlg::command int   )  [signal]
 

This signal is emitted when a button is pressed.

Referenced by done().

void KSpellDlg::cancel  )  [protected, slot]
 

Force closing the dialog, setting its result code to the one Esc would set.

You shouldn't use this, generally (let the user make his choice!) but it can be useful when you need to make a choice after a timeout has happened, or when the parent widget has to go somewhere else (e.g. html redirections).

Since:
3.1

Reimplemented from KDialogBase.

Definition at line 243 of file kspelldlg.cpp.

References done().

Referenced by closeEvent().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for kdeui Library Version 3.4.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu Jul 20 13:51:16 2006 by doxygen 1.4.4 written by Dimitri van Heesch, © 1997-2003