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

Kate

katecursor.h

Go to the documentation of this file.
00001 /* This file is part of the KDE libraries
00002    Copyright (C) 2002 Christian Couder <christian@kdevelop.org>
00003    Copyright (C) 2001, 2003 Christoph Cullmann <cullmann@kde.org>
00004    Copyright (C) 2001 Joseph Wenninger <jowenn@kde.org>
00005    Copyright (C) 1999 Jochen Wilhelmy <digisnap@cs.tu-berlin.de>
00006 
00007    This library is free software; you can redistribute it and/or
00008    modify it under the terms of the GNU Library General Public
00009    License version 2 as published by the Free Software Foundation.
00010 
00011    This library is distributed in the hope that it will be useful,
00012    but WITHOUT ANY WARRANTY; without even the implied warranty of
00013    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014    Library General Public License for more details.
00015 
00016    You should have received a copy of the GNU Library General Public License
00017    along with this library; see the file COPYING.LIB.  If not, write to
00018    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00019    Boston, MA 02110-1301, USA.
00020 */
00021 
00022 #ifndef kate_cursor_h
00023 #define kate_cursor_h
00024 
00025 #include <ktexteditor/cursor.h>
00026 
00027 
00028 
00029 class KateDocument;
00030 namespace KTextEditor { class Attribute; }
00031 
00035 class KateDocCursor : public KTextEditor::Cursor
00036 {
00037   public:
00038     explicit KateDocCursor(KateDocument *doc);
00039     KateDocCursor(const KTextEditor::Cursor &position, KateDocument *doc);
00040     KateDocCursor(int line, int col, KateDocument *doc);
00041     virtual ~KateDocCursor() {}
00042 
00043     bool validPosition(int line, int col);
00044     bool validPosition();
00045 
00046     bool gotoNextLine();
00047     bool gotoPreviousLine();
00048     bool gotoEndOfNextLine();
00049     bool gotoEndOfPreviousLine();
00050 
00051     int nbCharsOnLineAfter();
00052     bool moveForward(uint nbChar);
00053     bool moveBackward(uint nbChar);
00054 
00055     bool insertText(const QString& text);
00056     bool removeText(uint numberOfCharacters);
00057     QChar currentChar() const;
00058 
00059     uchar currentAttrib() const;
00060 
00069     bool nextNonSpaceChar();
00070 
00079     bool previousNonSpaceChar();
00080 
00081   protected:
00082     KateDocument *m_doc;
00083 };
00084 
00085 #endif
00086 
00087 // 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
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.7
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