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

tdeui

  • tdeui
tdespelldlg.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 __TDESPELLDLG_H__
21#define __TDESPELLDLG_H__
22
23#include <kdialogbase.h>
24
25class TQStringList;
26class TQLabel;
27class TQListViewItem;
28class TQPushButton;
29class TDEListBox;
30class KLineEdit;
31class KProgress;
32
33//Possible result codes
34enum 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
46class TDEUI_EXPORT KSpellDlg : public KDialogBase
47{
48 TQ_OBJECT
49
50 class KSpellDlgPrivate;
51 KSpellDlgPrivate *d;
52 KLineEdit *editbox;
53 KProgress *progbar;
54 TDEListBox *listbox;
55 TQStringList *sugg;
56 TQPushButton *qpbrep, *qpbrepa;
57 TQLabel *wordlabel;
58 TQString word, newword;
59 bool progressbar;
60
61public:
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
86protected:
87 virtual void closeEvent( TQCloseEvent * e );
88 void done( int i );
89
90 signals:
94 void command( int );
95
96 void ready( bool );
97
98protected 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
KDialogBase
A dialog base class with standard buttons and predefined layouts.
Definition: kdialogbase.h:192
KDialogBase::closeEvent
virtual void closeEvent(TQCloseEvent *e)
Detects when a dialog is being closed from the window manager controls.
Definition: kdialogbase.cpp:1622
KDialogBase::cancel
void cancel()
Force closing the dialog, setting its result code to the one Esc would set.
Definition: kdialogbase.cpp:1632
KLineEdit
An enhanced TQLineEdit widget for inputting text.
Definition: klineedit.h:146
KProgress
A progress indicator widget.
Definition: kprogress.h:47
TDEListBox
A variant of TQListBox that honors KDE's system-wide settings.
Definition: tdelistbox.h:41
TDEStdAccel::replace
const TDEShortcut & replace()

tdeui

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

tdeui

Skip menu "tdeui"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeui by doxygen 1.9.4
This website is maintained by Timothy Pearson.