• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kdeui
 

kdeui

  • kdeui
kspelldlg.h
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 __KSPELLDLG_H__
21 #define __KSPELLDLG_H__
22 
23 #include <kdialogbase.h>
24 
25 class TQStringList;
26 class TQLabel;
27 class TQListViewItem;
28 class TQPushButton;
29 class KListBox;
30 class KLineEdit;
31 class KProgress;
32 
33 //Possible result codes
34 enum KS_RESULT {
35  KS_CANCEL= 0,
36  KS_REPLACE= 1,
37  KS_REPLACEALL= 2,
38  KS_IGNORE= 3,
39  KS_IGNOREALL= 4,
40  KS_ADD= 5,
41  KS_STOP= 7,
42  KS_SUGGEST= 8,
43  KS_CONFIG= 9
44 };
45 
46 class KDEUI_EXPORT KSpellDlg : public KDialogBase
47 {
48  Q_OBJECT
49 
50  class KSpellDlgPrivate;
51  KSpellDlgPrivate *d;
52  KLineEdit *editbox;
53  KProgress *progbar;
54  KListBox *listbox;
55  TQStringList *sugg;
56  TQPushButton *qpbrep, *qpbrepa;
57  TQLabel *wordlabel;
58  TQString word, newword;
59  bool progressbar;
60 
61 public:
62  KSpellDlg( TQWidget *parent, const char *name,
63  bool _progressbar = false, bool _modal = false );
64  ~KSpellDlg();
65 
66  TQString replacement() const
67  { return newword; }
68 
74  void init( const TQString& _word, TQStringList* _sugg );
75  void init( const TQString& _word, TQStringList* _sugg,
76  const TQString& context );
77 
78  void standby() { emit ready( false ); }
79 
80  public slots:
84  void slotProgress( unsigned int p );
85 
86 protected:
87  virtual void closeEvent( TQCloseEvent * e );
88  void done( int i );
89 
90  signals:
94  void command( int );
95 
96  void ready( bool );
97 
98 protected slots:
99  void ignore();
100  void add();
101  void ignoreAll();
102  void cancel();
103  void replace();
104  void replaceAll();
105  void suggest();
106  void stop();
107  void slotConfigChanged();
108 
109  void textChanged( const TQString & );
110 
111  void slotSelectionChanged( TQListViewItem* item );
112 };
113 
114 #endif
KProgress
A progress indicator widget.
Definition: kprogress.h:46
KDialogBase::cancel
void cancel()
Force closing the dialog, setting its result code to the one Esc would set.
Definition: kdialogbase.cpp:1632
KDialogBase
A dialog base class with standard buttons and predefined layouts.
Definition: kdialogbase.h:191
KStdAccel::replace
const KShortcut & replace()
KLineEdit
An enhanced TQLineEdit widget for inputting text.
Definition: klineedit.h:145
KDialogBase::closeEvent
virtual void closeEvent(TQCloseEvent *e)
Detects when a dialog is being closed from the window manager controls.
Definition: kdialogbase.cpp:1622
KListBox
A variant of TQListBox that honors KDE&#39;s system-wide settings.
Definition: klistbox.h:40

kdeui

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

kdeui

Skip menu "kdeui"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kdeui by doxygen 1.8.13
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |