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

KTextEditor

movinginterface.h

Go to the documentation of this file.
00001 /* This file is part of the KDE project
00002  *
00003  *  Copyright (C) 2010 Christoph Cullmann <cullmann@kde.org>
00004  *
00005  *  Based on code of the SmartCursor/Range by:
00006  *  Copyright (C) 2003-2005 Hamish Rodda <rodda@kde.org>
00007  *
00008  *  This library is free software; you can redistribute it and/or
00009  *  modify it under the terms of the GNU Library General Public
00010  *  License as published by the Free Software Foundation; either
00011  *  version 2 of the License, or (at your option) any later version.
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 KDELIBS_KTEXTEDITOR_MOVINGINTERFACE_H
00025 #define KDELIBS_KTEXTEDITOR_MOVINGINTERFACE_H
00026 
00027 #include <ktexteditor/ktexteditor_export.h>
00028 #include <ktexteditor/movingcursor.h>
00029 #include <ktexteditor/movingrange.h>
00030 #include <ktexteditor/movingrangefeedback.h>
00031 
00032 namespace KTextEditor
00033 {
00034 
00047 class KTEXTEDITOR_EXPORT MovingInterface
00048 {
00049   //
00050   // Constructor/Destructor
00051   //
00052   public:
00056     MovingInterface ();
00057 
00061     virtual ~MovingInterface ();
00062 
00063   //
00064   // Normal API
00065   //
00066   public:
00073     virtual MovingCursor *newMovingCursor (const Cursor &position, MovingCursor::InsertBehavior insertBehavior = MovingCursor::MoveOnInsert) = 0;
00074 
00082     virtual MovingRange *newMovingRange (const Range &range, MovingRange::InsertBehaviors insertBehaviors = MovingRange::DoNotExpand
00083       , MovingRange::EmptyBehavior emptyBehavior = MovingRange::AllowEmpty) = 0;
00084 
00089     virtual qint64 revision () const = 0;
00090 
00095     virtual qint64 lastSavedRevision () const = 0;
00096 
00102     virtual void lockRevision (qint64 revision) = 0;
00103 
00108     virtual void unlockRevision (qint64 revision) = 0;
00109 
00117     virtual void transformCursor (KTextEditor::Cursor &cursor, KTextEditor::MovingCursor::InsertBehavior insertBehavior, qint64 fromRevision, qint64 toRevision = -1) = 0;
00118 
00127     virtual void transformCursor (int& line, int& column, KTextEditor::MovingCursor::InsertBehavior insertBehavior, qint64 fromRevision, qint64 toRevision = -1) = 0;
00128     
00137     virtual void transformRange (KTextEditor::Range &range, KTextEditor::MovingRange::InsertBehaviors insertBehaviors, MovingRange::EmptyBehavior emptyBehavior, qint64 fromRevision, qint64 toRevision = -1) = 0;
00138 
00139   //
00140   // Signals
00141   //
00142   public:
00147     void aboutToDeleteMovingInterfaceContent (KTextEditor::Document *document);
00148 
00154     void aboutToInvalidateMovingInterfaceContent (KTextEditor::Document *document);
00155 
00156   private:
00160     class MovingInterfacePrivate * const d;
00161 };
00162 
00163 }
00164 
00165 Q_DECLARE_INTERFACE(KTextEditor::MovingInterface, "org.kde.KTextEditor.MovingInterface")
00166 
00167 #endif
00168 
00169 // 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