• Skip to content
  • Skip to link menu
KDE 4.6 API Reference
  • KDE API Reference
  • kdelibs
  • KDE Home
  • Contact Us
 

KTextEditor

smartcursorwatcher.h

Go to the documentation of this file.
00001 /* This file is part of the KDE project
00002    Copyright (C) 2003-2005 Hamish Rodda <rodda@kde.org>
00003 
00004 
00005    This library is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU Library General Public
00007    License as published by the Free Software Foundation; either
00008    version 2 of the License, or (at your option) any later version.
00009 
00010    This library is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013    Library General Public License for more details.
00014 
00015    You should have received a copy of the GNU Library General Public License
00016    along with this library; see the file COPYING.LIB.  If not, write to
00017    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018    Boston, MA 02110-1301, USA.
00019 */
00020 
00021 #ifndef KDELIBS_KTEXTEDITOR_SMARTCURSORWATCHER_H
00022 #define KDELIBS_KTEXTEDITOR_SMARTCURSORWATCHER_H
00023 
00024 #include <ktexteditor/ktexteditor_export.h>
00025 #include <QtCore/QObject>
00026 #include <kdebug.h>
00027 
00028 namespace KTextEditor
00029 {
00030 class SmartCursor;
00031 
00047 class KTEXTEDITOR_EXPORT SmartCursorWatcher
00048 {
00049   public:
00053     SmartCursorWatcher();
00054 
00058     virtual ~SmartCursorWatcher();
00059 
00065     bool wantsDirectChanges() const;
00066 
00074     void setWantsDirectChanges(bool wantsDirectChanges);
00075 
00081     virtual void positionChanged(SmartCursor* cursor);
00082 
00089     virtual void positionDeleted(SmartCursor* cursor);
00090 
00099     virtual void characterDeleted(SmartCursor* cursor, bool deletedBefore);
00100 
00109     virtual void characterInserted(SmartCursor* cursor, bool insertedBefore);
00110 
00117     virtual void deleted(SmartCursor* cursor);
00118 
00119   private:
00120     bool m_wantDirectChanges;
00121 };
00122 
00123 }
00124 
00125 #endif
00126 
00127 // kate: space-indent on; indent-width 2; replace-tabs on;

KTextEditor

Skip menu "KTextEditor"
  • Main Page
  • Modules
  • 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
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.7.3
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