• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

Kate

katespell.h

Go to the documentation of this file.
00001 /* This file is part of the KDE libraries
00002    Copyright (C) 2008 Mirko Stocker <me@misto.ch>
00003    Copyright (C) 2004-2005 Anders Lund <anders@alweb.dk>
00004    Copyright (C) 2002 John Firebaugh <jfirebaugh@kde.org>
00005    Copyright (C) 2001-2004 Christoph Cullmann <cullmann@kde.org>
00006    Copyright (C) 2001 Joseph Wenninger <jowenn@kde.org>
00007    Copyright (C) 1999 Jochen Wilhelmy <digisnap@cs.tu-berlin.de>
00008 
00009    This library is free software; you can redistribute it and/or
00010    modify it under the terms of the GNU Library General Public
00011    License version 2 as published by the Free Software Foundation.
00012 
00013    This library is distributed in the hope that it will be useful,
00014    but WITHOUT ANY WARRANTY; without even the implied warranty of
00015    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00016    Library General Public License for more details.
00017 
00018    You should have received a copy of the GNU Library General Public License
00019    along with this library; see the file COPYING.LIB.  If not, write to
00020    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00021    Boston, MA 02110-1301, USA.
00022 */
00023 
00024 #ifndef __KATE_SPELL_H__
00025 #define __KATE_SPELL_H__
00026 
00027 #include "katecursor.h"
00028 
00029 #include <QtCore/QObject>
00030 
00031 class KateView;
00032 
00033 class KAction;
00034 class KActionCollection;
00035 namespace Sonnet {
00036     class Dialog;
00037 }
00038 
00039 class KateSpell : public QObject
00040 {
00041   Q_OBJECT
00042 
00043   public:
00044     explicit KateSpell( KateView* );
00045     ~KateSpell();
00046 
00047     void createActions( KActionCollection* );
00048 
00049     void updateActions ();
00050 
00051   // spellcheck from cursor, selection
00052   private Q_SLOTS:
00053     void spellcheckFromCursor();
00054 
00055     // defined here in anticipation of per view selections ;)
00056     void spellcheckSelection();
00057 
00058     void spellcheck();
00059 
00066     void spellcheck( const KTextEditor::Cursor &from, const KTextEditor::Cursor &to=KTextEditor::Cursor() );
00067 
00068     void misspelling( const QString&, int );
00069     void corrected  ( const QString&, int, const QString&);
00070     void spellResult( );
00071 
00072   private:
00073     KTextEditor::Cursor locatePosition( int pos );
00074 
00075     KateView *m_view;
00076     KAction *m_spellcheckSelection;
00077 
00078     Sonnet::Dialog *m_sonnetDialog;
00079 
00080     // define the part of the text to check
00081     KTextEditor::Cursor m_spellStart, m_spellEnd;
00082 
00083     // keep track of where we are.
00084     KTextEditor::Cursor m_spellPosCursor;
00085     uint m_spellLastPos;
00086 };
00087 
00088 #endif
00089 
00090 // kate: space-indent on; indent-width 2; replace-tabs on;

Kate

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • KIO
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal