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

tdespell2

  • tdespell2
  • ui
dialog.h
1 /*
2  * dialog.h
3  *
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 Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19  * 02110-1301 USA
20  */
21 #ifndef TDESPELL_DIALOG_H
22 #define TDESPELL_DIALOG_H
23 
24 #include <kdialogbase.h>
25 
26 namespace KSpell2
27 {
28  class Filter;
29  class BackgroundChecker;
30  class KDE_EXPORT Dialog : public KDialogBase
31  {
32  Q_OBJECT
33  public:
34  Dialog( BackgroundChecker *checker,
35  TQWidget *parent, const char *name=0 );
36  ~Dialog();
37 
38  TQString originalBuffer() const;
39  TQString buffer() const;
40 
41  void show();
42  void activeAutoCorrect( bool _active );
43 
44  public slots:
45  void setBuffer( const TQString& );
46  void setFilter( Filter* filter );
47 
48  signals:
49  void done( const TQString& newBuffer );
50  void misspelling( const TQString& word, int start );
51  void replace( const TQString& oldWord, int start,
52  const TQString& newWord );
53 
54  void stop();
55  void cancel();
56  void autoCorrect( const TQString & currentWord, const TQString & replaceWord );
57  private slots:
58  void slotMisspelling(const TQString& word, int start );
59  void slotDone();
60 
61  void slotFinished();
62  void slotCancel();
63 
64  void slotAddWord();
65  void slotReplaceWord();
66  void slotReplaceAll();
67  void slotSkip();
68  void slotSkipAll();
69  void slotSuggest();
70  void slotChangeLanguage( const TQString& );
71  void slotSelectionChanged( TQListViewItem * );
72  void slotAutocorrect();
73 
74  private:
75  void updateDialog( const TQString& word );
76  void fillSuggestions( const TQStringList& suggs );
77  void initConnections();
78  void initGui();
79  void continueChecking();
80 
81  private:
82  class Private;
83  Private *d;
84  };
85 }
86 
87 #endif
KSpell2
tdespell_hspellclient.h
Definition: backgroundchecker.h:28

tdespell2

Skip menu "tdespell2"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members

tdespell2

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