Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 1f9eb832ba1e4b88d9a5c2b384813bb4 > files > 1578

kdelibs3-apidocs-3.5.10-31.fc15.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en_US" xml:lang="en_US">

<head>
  <title>kate: katesupercursor.h Source File (kate)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

  <meta http-equiv="Content-Style-Type" content="text/css" />

  <meta http-equiv="pics-label" content='(pics-1.1 "http://www.icra.org/ratingsv02.html" comment "ICRAonline DE v2.0" l gen true for "http://www.kde.org"  r (nz 1 vz 1 lz 1 oz 1 cb 1) "http://www.rsac.org/ratingsv01.html" l gen true for "http://www.kde.org"  r (n 0 s 0 v 0 l 0))' />

  <meta name="trademark" content="KDE e.V." />
  <meta name="description" content="K Desktop Environment Homepage, KDE.org" />
  <meta name="MSSmartTagsPreventParsing" content="true" />
  <meta name="robots" content="all" />

  <link rel="shortcut icon" href="../../favicon.ico" />

<link rel="stylesheet" media="screen" type="text/css" title="APIDOX" href="doxygen.css" />



</head>

<body>

<div id="nav_header_top" align="right">
  <a href="#content" class="doNotDisplay" accesskey="2">Skip to main content ::</a>

  <a href="../.."><img id="nav_header_logo" alt="Home" align="left" src="../../kde_gear_64.png" border="0" /></a>
  <span class="doNotDisplay">::</span>

  <div id="nav_header_title" align="left">KDE API Reference</div>


</div>

<div id="nav_header_bottom" align="right">
  <span class="doNotDisplay">:: <a href="#navigation" accesskey="5">Skip to Link Menu</a><br/></span>
  <div id="nav_header_bottom_right" style="text-align: left;">
/ <a href="../..">API Reference</a>
 / <a href=".">kate</a>
  </div>
</div>


<table id="main" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
      <td valign="top" class="menuheader" height="0"></td>

  <td id="contentcolumn" valign="top" rowspan="2" >
    <div id="content" style="padding-top: 0px;"><div style="width:100%; margin: 0px; padding: 0px;">
    <a name="content"></a>


<!-- Generated by Doxygen 1.7.4 -->
<div class="header">
  <div class="headertitle">
<div class="title">katesupercursor.h</div>  </div>
</div>
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* This file is part of the KDE libraries</span>
<a name="l00002"></a>00002 <span class="comment">   Copyright (C) 2003 Hamish Rodda &lt;rodda@kde.org&gt;</span>
<a name="l00003"></a>00003 <span class="comment"></span>
<a name="l00004"></a>00004 <span class="comment">   This library is free software; you can redistribute it and/or</span>
<a name="l00005"></a>00005 <span class="comment">   modify it under the terms of the GNU Library General Public</span>
<a name="l00006"></a>00006 <span class="comment">   License version 2 as published by the Free Software Foundation.</span>
<a name="l00007"></a>00007 <span class="comment"></span>
<a name="l00008"></a>00008 <span class="comment">   This library is distributed in the hope that it will be useful,</span>
<a name="l00009"></a>00009 <span class="comment">   but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00010"></a>00010 <span class="comment">   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</span>
<a name="l00011"></a>00011 <span class="comment">   Library General Public License for more details.</span>
<a name="l00012"></a>00012 <span class="comment"></span>
<a name="l00013"></a>00013 <span class="comment">   You should have received a copy of the GNU Library General Public License</span>
<a name="l00014"></a>00014 <span class="comment">   along with this library; see the file COPYING.LIB.  If not, write to</span>
<a name="l00015"></a>00015 <span class="comment">   the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,</span>
<a name="l00016"></a>00016 <span class="comment">   Boston, MA 02110-1301, USA.</span>
<a name="l00017"></a>00017 <span class="comment">*/</span>
<a name="l00018"></a>00018 
<a name="l00019"></a>00019 <span class="preprocessor">#ifndef KATESUPERCURSOR_H</span>
<a name="l00020"></a>00020 <span class="preprocessor"></span><span class="preprocessor">#define KATESUPERCURSOR_H</span>
<a name="l00021"></a>00021 <span class="preprocessor"></span>
<a name="l00022"></a>00022 <span class="preprocessor">#include &quot;katecursor.h&quot;</span>
<a name="l00023"></a>00023 
<a name="l00024"></a>00024 <span class="keyword">class </span>KateDocument;
<a name="l00025"></a>00025 <span class="keyword">class </span>KateView;
<a name="l00026"></a>00026 
<a name="l00045"></a><a class="code" href="classKateSuperCursor.html">00045</a> <span class="keyword">class </span><a class="code" href="classKateSuperCursor.html" title="Possible additional features:">KateSuperCursor</a> : <span class="keyword">public</span> <a class="codeRef" href="qobject.html">QObject</a>, <span class="keyword">public</span> <a class="code" href="classKateDocCursor.html" title="Cursor class with a pointer to its document.">KateDocCursor</a>, <span class="keyword">public</span> Kate::Cursor
<a name="l00046"></a>00046 {
<a name="l00047"></a>00047   Q_OBJECT
<a name="l00048"></a>00048 
<a name="l00049"></a>00049 <span class="keyword">public</span>:
<a name="l00055"></a>00055     <a class="code" href="classKateSuperCursor.html#ac48f1f2bc4f2625804d19703fe73ee6b" title="bool privateC says: if private, than don&#39;t show to apps using the cursorinterface in the list...">KateSuperCursor</a>(KateDocument* doc, <span class="keywordtype">bool</span> privateC, <span class="keyword">const</span> <a class="code" href="classKateTextCursor.html" title="Simple cursor class with no document pointer.">KateTextCursor</a>&amp; cursor, <a class="codeRef" href="qobject.html">QObject</a>* <a class="codeRef" href="qobject.html#parent">parent</a> = 0L, <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="codeRef" href="qobject.html#name">name</a> = 0L);
<a name="l00056"></a>00056     <a class="code" href="classKateSuperCursor.html#ac48f1f2bc4f2625804d19703fe73ee6b" title="bool privateC says: if private, than don&#39;t show to apps using the cursorinterface in the list...">KateSuperCursor</a>(KateDocument* doc, <span class="keywordtype">bool</span> privateC, <span class="keywordtype">int</span> lineNum = 0, <span class="keywordtype">int</span> col = 0, <a class="codeRef" href="qobject.html">QObject</a>* <a class="codeRef" href="qobject.html#parent">parent</a> = 0L, <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="codeRef" href="qobject.html#name">name</a> = 0L);
<a name="l00057"></a>00057 
<a name="l00058"></a>00058     ~<a class="code" href="classKateSuperCursor.html" title="Possible additional features:">KateSuperCursor</a> ();
<a name="l00059"></a>00059 
<a name="l00060"></a>00060   <span class="keyword">public</span>:
<a name="l00061"></a>00061     <span class="comment">// KTextEditor::Cursor interface</span>
<a name="l00062"></a>00062     <span class="keywordtype">void</span> position(uint *line, uint *col) <span class="keyword">const</span>;
<a name="l00063"></a>00063     <span class="keywordtype">bool</span> setPosition(uint line, uint col);
<a name="l00064"></a>00064     <span class="keywordtype">bool</span> insertText(<span class="keyword">const</span> <a class="codeRef" href="qstring.html">QString</a>&amp; text);
<a name="l00065"></a>00065     <span class="keywordtype">bool</span> removeText(uint numberOfCharacters);
<a name="l00066"></a>00066     <a class="codeRef" href="qchar.html">QChar</a> currentChar() <span class="keyword">const</span>;
<a name="l00067"></a>00067 
<a name="l00071"></a>00071     <span class="keywordtype">bool</span> <a class="code" href="classKateSuperCursor.html#a9cab009e8d6c2ea1091516313ea08710">atStartOfLine</a>() <span class="keyword">const</span>;
<a name="l00072"></a>00072 
<a name="l00076"></a>00076     <span class="keywordtype">bool</span> <a class="code" href="classKateSuperCursor.html#a872782c0ae2e78c859b88869866e3c5e">atEndOfLine</a>() <span class="keyword">const</span>;
<a name="l00077"></a>00077 
<a name="l00082"></a>00082     <span class="keywordtype">bool</span> <a class="code" href="classKateSuperCursor.html#aa97aa84725711ff6a29d192d526e1dff" title="Returns how this cursor behaves when text is inserted at the cursor.">moveOnInsert</a>() <span class="keyword">const</span>;
<a name="l00083"></a>00083 
<a name="l00089"></a>00089     <span class="keywordtype">void</span> <a class="code" href="classKateSuperCursor.html#a0f180542681e922137ceb21079de022b" title="Change the behavior of the cursor when text is inserted at the cursor.">setMoveOnInsert</a>(<span class="keywordtype">bool</span> moveOnInsert);
<a name="l00090"></a>00090 
<a name="l00094"></a>00094     <a class="code" href="classKateSuperCursor.html#a53e5894bf41671af970f82610a4faeb2" title="Debug: output the position.">operator QString</a>();
<a name="l00095"></a>00095 
<a name="l00096"></a>00096     <span class="comment">// Reimplementations;</span>
<a name="l00097"></a>00097     <span class="keyword">virtual</span> <span class="keywordtype">void</span> setLine(<span class="keywordtype">int</span> lineNum);
<a name="l00098"></a>00098     <span class="keyword">virtual</span> <span class="keywordtype">void</span> setCol(<span class="keywordtype">int</span> colNum);
<a name="l00099"></a>00099     <span class="keyword">virtual</span> <span class="keywordtype">void</span> setPos(<span class="keyword">const</span> <a class="code" href="classKateTextCursor.html" title="Simple cursor class with no document pointer.">KateTextCursor</a>&amp; pos);
<a name="l00100"></a>00100     <span class="keyword">virtual</span> <span class="keywordtype">void</span> setPos(<span class="keywordtype">int</span> lineNum, <span class="keywordtype">int</span> colNum);
<a name="l00101"></a>00101 
<a name="l00102"></a>00102   signals:
<a name="l00106"></a>00106     <span class="keywordtype">void</span> <a class="code" href="classKateSuperCursor.html#a63282cd45a635eff3c7254437377fe8f" title="The cursor&#39;s position was directly changed by the program.">positionDirectlyChanged</a>();
<a name="l00107"></a>00107 
<a name="l00111"></a>00111     <span class="keywordtype">void</span> <a class="code" href="classKateSuperCursor.html#a6c7ce8db44fb4b6f8982e9507ed0eee3" title="The cursor&#39;s position was changed.">positionChanged</a>();
<a name="l00112"></a>00112 
<a name="l00116"></a>00116     <span class="keywordtype">void</span> <a class="code" href="classKateSuperCursor.html#ae65c6638b47b769ed25f337dbaea5afc" title="Athough an edit took place, the cursor&#39;s position was unchanged.">positionUnChanged</a>();
<a name="l00117"></a>00117 
<a name="l00122"></a>00122     <span class="keywordtype">void</span> <a class="code" href="classKateSuperCursor.html#a6187adf2a6ed46e5dbac4c732b620a29" title="The cursor&#39;s surrounding characters were both deleted simultaneously.">positionDeleted</a>();
<a name="l00123"></a>00123 
<a name="l00132"></a>00132     <span class="keywordtype">void</span> <a class="code" href="classKateSuperCursor.html#a39e8bd4ae565763f52f0b627d095829f" title="A character was inserted immediately before the cursor.">charInsertedAt</a>();
<a name="l00133"></a>00133 
<a name="l00137"></a>00137     <span class="keywordtype">void</span> <a class="code" href="classKateSuperCursor.html#ab966e1e9264b5c19b2831174e28d7ec3" title="The character immediately before the cursor was deleted.">charDeletedBefore</a>();
<a name="l00138"></a>00138 
<a name="l00142"></a>00142     <span class="keywordtype">void</span> <a class="code" href="classKateSuperCursor.html#a34a20f736657f4b729a8b2d55860a77c" title="The character immediately after the cursor was deleted.">charDeletedAfter</a>();
<a name="l00143"></a>00143 
<a name="l00144"></a>00144   <span class="comment">//BEGIN METHODES TO CALL FROM KATE DOCUMENT TO KEEP CURSOR UP TO DATE</span>
<a name="l00145"></a>00145   <span class="keyword">public</span>:
<a name="l00146"></a>00146     <span class="keywordtype">void</span> editTextInserted ( uint line, uint col, uint len);
<a name="l00147"></a>00147     <span class="keywordtype">void</span> editTextRemoved ( uint line, uint col, uint len);
<a name="l00148"></a>00148 
<a name="l00149"></a>00149     <span class="keywordtype">void</span> editLineWrapped ( uint line, uint col, <span class="keywordtype">bool</span> newLine = <span class="keyword">true</span> );
<a name="l00150"></a>00150     <span class="keywordtype">void</span> editLineUnWrapped ( uint line, uint col, <span class="keywordtype">bool</span> removeLine = <span class="keyword">true</span>, uint length = 0 );
<a name="l00151"></a>00151 
<a name="l00152"></a>00152     <span class="keywordtype">void</span> editLineInserted ( uint line );
<a name="l00153"></a>00153     <span class="keywordtype">void</span> editLineRemoved ( uint line );
<a name="l00154"></a>00154   <span class="comment">//END</span>
<a name="l00155"></a>00155 
<a name="l00156"></a>00156   <span class="keyword">private</span>:
<a name="l00157"></a>00157     KateDocument *m_doc;
<a name="l00158"></a>00158     <span class="keywordtype">bool</span> m_moveOnInsert : 1;
<a name="l00159"></a>00159     <span class="keywordtype">bool</span> m_lineRemoved : 1;
<a name="l00160"></a>00160     <span class="keywordtype">bool</span> m_privateCursor : 1;
<a name="l00161"></a>00161 };
<a name="l00162"></a>00162 
<a name="l00168"></a><a class="code" href="classKateSuperRange.html">00168</a> <span class="keyword">class </span><a class="code" href="classKateSuperRange.html" title="Represents a range of text, from the start() to the end().">KateSuperRange</a> : <span class="keyword">public</span> <a class="codeRef" href="qobject.html">QObject</a>, <span class="keyword">public</span> KateRange
<a name="l00169"></a>00169 {
<a name="l00170"></a>00170               <span class="keyword">friend</span> <span class="keyword">class </span>KateSuperRangeList;
<a name="l00171"></a>00171 
<a name="l00172"></a>00172   Q_OBJECT
<a name="l00173"></a>00173 
<a name="l00174"></a>00174 <span class="keyword">public</span>:
<a name="l00176"></a><a class="code" href="classKateSuperRange.html#a89149476b5c161ecb5f3756ec25c474a">00176</a>   <span class="keyword">enum</span> <a class="code" href="classKateSuperRange.html#a89149476b5c161ecb5f3756ec25c474a" title="Determine how the range reacts to characters inserted immediately outside the range.">InsertBehaviour</a> {
<a name="l00178"></a><a class="code" href="classKateSuperRange.html#a89149476b5c161ecb5f3756ec25c474aa05cb2a5ea7eab44a88ea308efcabd22e">00178</a>     <a class="code" href="classKateSuperRange.html#a89149476b5c161ecb5f3756ec25c474aa05cb2a5ea7eab44a88ea308efcabd22e" title="Don&#39;t expand to encapsulate new characters in either direction. This is the default.">DoNotExpand</a> = 0,
<a name="l00180"></a><a class="code" href="classKateSuperRange.html#a89149476b5c161ecb5f3756ec25c474aaec1f9f466caa013f9a3c7d52d48793a0">00180</a>     <a class="code" href="classKateSuperRange.html#a89149476b5c161ecb5f3756ec25c474aaec1f9f466caa013f9a3c7d52d48793a0" title="Expand to encapsulate new characters to the left of the range.">ExpandLeft</a> = 0x1,
<a name="l00182"></a><a class="code" href="classKateSuperRange.html#a89149476b5c161ecb5f3756ec25c474aad42d3b564ff103c895c1212b30e6b7c0">00182</a>     <a class="code" href="classKateSuperRange.html#a89149476b5c161ecb5f3756ec25c474aad42d3b564ff103c895c1212b30e6b7c0" title="Expand to encapsulate new characters to the right of the range.">ExpandRight</a> = 0x2
<a name="l00183"></a>00183   };
<a name="l00184"></a>00184 
<a name="l00188"></a>00188   <a class="code" href="classKateSuperRange.html#af63e9f5ef64031ea5a52a2a2658c3c98" title="Constructor.">KateSuperRange</a>(<a class="code" href="classKateSuperCursor.html" title="Possible additional features:">KateSuperCursor</a>* start, <a class="code" href="classKateSuperCursor.html" title="Possible additional features:">KateSuperCursor</a>* end, <a class="codeRef" href="qobject.html">QObject</a>* <a class="codeRef" href="qobject.html#parent">parent</a> = 0L, <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="codeRef" href="qobject.html#name">name</a> = 0L);
<a name="l00189"></a>00189   <a class="code" href="classKateSuperRange.html#af63e9f5ef64031ea5a52a2a2658c3c98" title="Constructor.">KateSuperRange</a>(KateDocument* doc, <span class="keyword">const</span> KateRange&amp; range, <a class="codeRef" href="qobject.html">QObject</a>* <a class="codeRef" href="qobject.html#parent">parent</a> = 0L, <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="codeRef" href="qobject.html#name">name</a> = 0L);
<a name="l00190"></a>00190   <a class="code" href="classKateSuperRange.html#af63e9f5ef64031ea5a52a2a2658c3c98" title="Constructor.">KateSuperRange</a>(KateDocument* doc, <span class="keyword">const</span> <a class="code" href="classKateTextCursor.html" title="Simple cursor class with no document pointer.">KateTextCursor</a>&amp; start, <span class="keyword">const</span> <a class="code" href="classKateTextCursor.html" title="Simple cursor class with no document pointer.">KateTextCursor</a>&amp; end, <a class="codeRef" href="qobject.html">QObject</a>* <a class="codeRef" href="qobject.html#parent">parent</a> = 0L, <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="codeRef" href="qobject.html#name">name</a> = 0L);
<a name="l00191"></a>00191 
<a name="l00192"></a>00192   <span class="keyword">virtual</span> ~<a class="code" href="classKateSuperRange.html" title="Represents a range of text, from the start() to the end().">KateSuperRange</a>();
<a name="l00193"></a>00193 
<a name="l00194"></a>00194   <span class="comment">// fulfill KateRange requirements</span>
<a name="l00195"></a>00195   <span class="keyword">virtual</span> <a class="code" href="classKateTextCursor.html" title="Simple cursor class with no document pointer.">KateTextCursor</a>&amp; start();
<a name="l00196"></a>00196   <span class="keyword">virtual</span> <a class="code" href="classKateTextCursor.html" title="Simple cursor class with no document pointer.">KateTextCursor</a>&amp; end();
<a name="l00197"></a>00197   <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classKateTextCursor.html" title="Simple cursor class with no document pointer.">KateTextCursor</a>&amp; start() <span class="keyword">const</span>;
<a name="l00198"></a>00198   <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classKateTextCursor.html" title="Simple cursor class with no document pointer.">KateTextCursor</a>&amp; end() <span class="keyword">const</span>;
<a name="l00199"></a>00199 
<a name="l00200"></a>00200   <span class="keywordtype">void</span> allowZeroLength(<span class="keywordtype">bool</span> yes=<span class="keyword">true</span>){m_allowZeroLength=yes;}
<a name="l00204"></a>00204   <a class="code" href="classKateSuperCursor.html" title="Possible additional features:">KateSuperCursor</a>&amp; <a class="code" href="classKateSuperRange.html#a81f48cf289666659c81e40af6daa091e" title="Returns the super start cursor.">superStart</a>();
<a name="l00205"></a>00205   <span class="keyword">const</span> <a class="code" href="classKateSuperCursor.html" title="Possible additional features:">KateSuperCursor</a>&amp; <a class="code" href="classKateSuperRange.html#a81f48cf289666659c81e40af6daa091e" title="Returns the super start cursor.">superStart</a>() <span class="keyword">const</span>;
<a name="l00206"></a>00206 
<a name="l00210"></a>00210   <a class="code" href="classKateSuperCursor.html" title="Possible additional features:">KateSuperCursor</a>&amp; <a class="code" href="classKateSuperRange.html#a3eaea490295753d3e8fdc24a5decb4d3" title="Returns the super end cursor.">superEnd</a>();
<a name="l00211"></a>00211   <span class="keyword">const</span> <a class="code" href="classKateSuperCursor.html" title="Possible additional features:">KateSuperCursor</a>&amp; <a class="code" href="classKateSuperRange.html#a3eaea490295753d3e8fdc24a5decb4d3" title="Returns the super end cursor.">superEnd</a>() <span class="keyword">const</span>;
<a name="l00212"></a>00212 
<a name="l00216"></a>00216   <span class="keywordtype">int</span> <a class="code" href="classKateSuperRange.html#af8ae5b9b48e8b8578b4b83f4b780c271" title="Returns how this range reacts to characters inserted immediately outside the range.">behaviour</a>() <span class="keyword">const</span>;
<a name="l00217"></a>00217 
<a name="l00226"></a>00226   <span class="keywordtype">void</span> <a class="code" href="classKateSuperRange.html#aff7c2f189f9aecd2844e03fd0d23324a" title="Determine how the range should react to characters inserted immediately outside the range...">setBehaviour</a>(<span class="keywordtype">int</span> <a class="code" href="classKateSuperRange.html#af8ae5b9b48e8b8578b4b83f4b780c271" title="Returns how this range reacts to characters inserted immediately outside the range.">behaviour</a>);
<a name="l00227"></a>00227 
<a name="l00231"></a>00231   <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classKateSuperRange.html#a1238c7631c4dc233cd5cfe6617a45b48" title="Start and end must be valid and start &lt;= end.">isValid</a>() <span class="keyword">const</span>;
<a name="l00232"></a>00232 
<a name="l00244"></a>00244   <span class="keywordtype">bool</span> <a class="code" href="classKateSuperRange.html#ab3f85b287b5ea00886e28438bb0db154" title="This is for use where the ranges are used in a heirachy, ie.">owns</a>(<span class="keyword">const</span> <a class="code" href="classKateTextCursor.html" title="Simple cursor class with no document pointer.">KateTextCursor</a>&amp; cursor) <span class="keyword">const</span>;
<a name="l00245"></a>00245 
<a name="l00250"></a>00250   <span class="keywordtype">bool</span> <a class="code" href="classKateSuperRange.html#a5a16395cbacac54a701edd91f27799fc" title="Returns true if the range includes cursor &#39;s character.">includes</a>(<span class="keyword">const</span> <a class="code" href="classKateTextCursor.html" title="Simple cursor class with no document pointer.">KateTextCursor</a>&amp; cursor) <span class="keyword">const</span>;
<a name="l00251"></a>00251 
<a name="l00255"></a>00255   <span class="keywordtype">bool</span> <a class="code" href="classKateSuperRange.html#a5a16395cbacac54a701edd91f27799fc" title="Returns true if the range includes cursor &#39;s character.">includes</a>(uint lineNum) <span class="keyword">const</span>;
<a name="l00256"></a>00256 
<a name="l00260"></a>00260   <span class="keywordtype">bool</span> <a class="code" href="classKateSuperRange.html#aaf261d63baf31b031f61e3fda95ec0cf" title="Returns true if the range totally encompasses line.">includesWholeLine</a>(uint lineNum) <span class="keyword">const</span>;
<a name="l00261"></a>00261 
<a name="l00265"></a>00265   <span class="keywordtype">bool</span> <a class="code" href="classKateSuperRange.html#a9b8ec7ac735f0ad6638328806caefa88" title="Returns whether cursor is the site of a boundary of this range.">boundaryAt</a>(<span class="keyword">const</span> <a class="code" href="classKateTextCursor.html" title="Simple cursor class with no document pointer.">KateTextCursor</a>&amp; cursor) <span class="keyword">const</span>;
<a name="l00266"></a>00266 
<a name="l00270"></a>00270   <span class="keywordtype">bool</span> <a class="code" href="classKateSuperRange.html#a11d731cd64fe5da3ca0aeacb307b35a4" title="Returns whether there is a boundary of this range on line.">boundaryOn</a>(uint lineNum) <span class="keyword">const</span>;
<a name="l00271"></a>00271 
<a name="l00272"></a>00272 signals:
<a name="l00282"></a>00282   <span class="keywordtype">void</span> <a class="code" href="classKateSuperRange.html#a9f7597f4e740659ab3b621a34b91f044" title="More interesting signals that aren&#39;t worth implementing here: firstCharDeleted: start()::charDeleted(...">positionChanged</a>();
<a name="l00283"></a>00283 
<a name="l00287"></a>00287   <span class="keywordtype">void</span> <a class="code" href="classKateSuperRange.html#ab140a974594efee158eda0a12f6aab35" title="The range&#39;s position was unchanged.">positionUnChanged</a>();
<a name="l00288"></a>00288 
<a name="l00292"></a>00292   <span class="keywordtype">void</span> <a class="code" href="classKateSuperRange.html#a4d8b73683db7cbd1e1d59548549b50d1" title="The contents of the range changed.">contentsChanged</a>();
<a name="l00293"></a>00293 
<a name="l00297"></a>00297   <span class="keywordtype">void</span> <a class="code" href="classKateSuperRange.html#aa335ab38cc87db719a87ea468bebf9ee" title="Either cursor&#39;s surrounding characters were both deleted.">boundaryDeleted</a>();
<a name="l00298"></a>00298 
<a name="l00305"></a>00305   <span class="keywordtype">void</span> <a class="code" href="classKateSuperRange.html#a5dd1b8f854f1bf53ea6e320d9a19cd6a" title="The range now contains no characters (ie.">eliminated</a>();
<a name="l00306"></a>00306 
<a name="l00310"></a>00310   <span class="keywordtype">void</span> <a class="code" href="classKateSuperRange.html#aade151f414400009575a7149dac828ea" title="Indicates the region needs re-drawing.">tagRange</a>(<a class="code" href="classKateSuperRange.html" title="Represents a range of text, from the start() to the end().">KateSuperRange</a>* range);
<a name="l00311"></a>00311 
<a name="l00312"></a>00312 <span class="keyword">public</span> slots:
<a name="l00313"></a>00313   <span class="keywordtype">void</span> slotTagRange();
<a name="l00314"></a>00314 
<a name="l00315"></a>00315 <span class="keyword">private</span> slots:
<a name="l00316"></a>00316   <span class="keywordtype">void</span> slotEvaluateChanged();
<a name="l00317"></a>00317   <span class="keywordtype">void</span> slotEvaluateUnChanged();
<a name="l00318"></a>00318 
<a name="l00319"></a>00319 <span class="keyword">private</span>:
<a name="l00320"></a>00320   <span class="keywordtype">void</span> init();
<a name="l00321"></a>00321   <span class="keywordtype">void</span> evaluateEliminated();
<a name="l00322"></a>00322   <span class="keywordtype">void</span> evaluatePositionChanged();
<a name="l00323"></a>00323 
<a name="l00324"></a>00324   <a class="code" href="classKateSuperCursor.html" title="Possible additional features:">KateSuperCursor</a>* m_start;
<a name="l00325"></a>00325   <a class="code" href="classKateSuperCursor.html" title="Possible additional features:">KateSuperCursor</a>* m_end;
<a name="l00326"></a>00326   <span class="keywordtype">bool</span> m_evaluate;
<a name="l00327"></a>00327   <span class="keywordtype">bool</span> m_startChanged;
<a name="l00328"></a>00328   <span class="keywordtype">bool</span> m_endChanged;
<a name="l00329"></a>00329   <span class="keywordtype">bool</span> m_deleteCursors;
<a name="l00330"></a>00330   <span class="keywordtype">bool</span> m_allowZeroLength;
<a name="l00331"></a>00331 };
<a name="l00332"></a>00332 
<a name="l00333"></a>00333 <span class="keyword">class </span>KateSuperCursorList : <span class="keyword">public</span> <a class="codeRef" href="qptrlist.html">QPtrList</a>&lt;KateSuperCursor&gt;
<a name="l00334"></a>00334 {
<a name="l00335"></a>00335 <span class="keyword">protected</span>:
<a name="l00336"></a>00336   <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="codeRef" href="qptrlist.html#compareItems">compareItems</a>(<a class="codeRef" href="qptrcollection.html#Item">QPtrCollection::Item</a> item1, <a class="codeRef" href="qptrcollection.html#Item">QPtrCollection::Item</a> item2);
<a name="l00337"></a>00337 };
<a name="l00338"></a>00338 
<a name="l00339"></a>00339 <span class="keyword">class </span>KateSuperRangeList : <span class="keyword">public</span> <a class="codeRef" href="qobject.html">QObject</a>, <span class="keyword">public</span> <a class="codeRef" href="qptrlist.html">QPtrList</a>&lt;KateSuperRange&gt;
<a name="l00340"></a>00340 {
<a name="l00341"></a>00341   Q_OBJECT
<a name="l00342"></a>00342 
<a name="l00343"></a>00343 <span class="keyword">public</span>:
<a name="l00347"></a>00347   KateSuperRangeList(<span class="keywordtype">bool</span> autoManage = <span class="keyword">true</span>, <a class="codeRef" href="qobject.html">QObject</a>* parent = 0L, <span class="keyword">const</span> <span class="keywordtype">char</span>* name = 0L);
<a name="l00348"></a>00348 
<a name="l00358"></a>00358   KateSuperRangeList(<span class="keyword">const</span> <a class="codeRef" href="qptrlist.html">QPtrList&lt;KateSuperRange&gt;</a>&amp; rangeList, <a class="codeRef" href="qobject.html">QObject</a>* parent = 0L, <span class="keyword">const</span> <span class="keywordtype">char</span>* name = 0L);
<a name="l00359"></a>00359 
<a name="l00360"></a>00360   <span class="keyword">virtual</span> ~KateSuperRangeList() {}
<a name="l00366"></a>00366   <span class="keywordtype">void</span> appendList(<span class="keyword">const</span> <a class="codeRef" href="qptrlist.html">QPtrList&lt;KateSuperRange&gt;</a>&amp; rangeList);
<a name="l00367"></a>00367 
<a name="l00372"></a>00372   <span class="keywordtype">void</span> connectAll();
<a name="l00373"></a>00373 
<a name="l00377"></a>00377   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="codeRef" href="qptrlist.html#clear">clear</a>();
<a name="l00378"></a>00378 
<a name="l00383"></a>00383   <span class="keywordtype">bool</span> autoManage() <span class="keyword">const</span>;
<a name="l00384"></a>00384 
<a name="l00388"></a>00388   <span class="keywordtype">void</span> setAutoManage(<span class="keywordtype">bool</span> autoManage);
<a name="l00389"></a>00389 
<a name="l00394"></a>00394   <a class="codeRef" href="qptrlist.html">QPtrList&lt;KateSuperRange&gt;</a> rangesIncluding(<span class="keyword">const</span> <a class="code" href="classKateTextCursor.html" title="Simple cursor class with no document pointer.">KateTextCursor</a>&amp; cursor);
<a name="l00395"></a>00395   <a class="codeRef" href="qptrlist.html">QPtrList&lt;KateSuperRange&gt;</a> rangesIncluding(uint line);
<a name="l00396"></a>00396 
<a name="l00401"></a>00401   <span class="keywordtype">bool</span> rangesInclude(<span class="keyword">const</span> <a class="code" href="classKateTextCursor.html" title="Simple cursor class with no document pointer.">KateTextCursor</a>&amp; cursor);
<a name="l00402"></a>00402 
<a name="l00409"></a>00409   <a class="code" href="classKateSuperCursor.html" title="Possible additional features:">KateSuperCursor</a>* firstBoundary(<span class="keyword">const</span> <a class="code" href="classKateTextCursor.html" title="Simple cursor class with no document pointer.">KateTextCursor</a>* start = 0L);
<a name="l00410"></a>00410 
<a name="l00414"></a>00414   <a class="code" href="classKateSuperCursor.html" title="Possible additional features:">KateSuperCursor</a>* nextBoundary();
<a name="l00415"></a>00415 
<a name="l00419"></a>00419   <a class="code" href="classKateSuperCursor.html" title="Possible additional features:">KateSuperCursor</a>* currentBoundary();
<a name="l00420"></a>00420 
<a name="l00421"></a>00421 signals:
<a name="l00426"></a>00426   <span class="keywordtype">void</span> rangeEliminated(<a class="code" href="classKateSuperRange.html" title="Represents a range of text, from the start() to the end().">KateSuperRange</a>* range);
<a name="l00427"></a>00427 
<a name="l00431"></a>00431   <span class="keywordtype">void</span> listEmpty();
<a name="l00432"></a>00432 
<a name="l00436"></a>00436   <span class="keywordtype">void</span> tagRange(<a class="code" href="classKateSuperRange.html" title="Represents a range of text, from the start() to the end().">KateSuperRange</a>* range);
<a name="l00437"></a>00437 
<a name="l00438"></a>00438 <span class="keyword">protected</span>:
<a name="l00442"></a>00442   <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="codeRef" href="qptrlist.html#compareItems">compareItems</a>(<a class="codeRef" href="qptrcollection.html#Item">QPtrCollection::Item</a> item1, <a class="codeRef" href="qptrcollection.html#Item">QPtrCollection::Item</a> item2);
<a name="l00443"></a>00443 
<a name="l00447"></a>00447   <span class="keyword">virtual</span> <a class="codeRef" href="qptrcollection.html#Item">QPtrCollection::Item</a> newItem(<a class="codeRef" href="qptrcollection.html#Item">QPtrCollection::Item</a> d);
<a name="l00448"></a>00448 
<a name="l00449"></a>00449 <span class="keyword">private</span> slots:
<a name="l00450"></a>00450   <span class="keywordtype">void</span> slotEliminated();
<a name="l00451"></a>00451   <span class="keywordtype">void</span> slotDeleted(<a class="codeRef" href="qobject.html">QObject</a>* range);
<a name="l00452"></a>00452 
<a name="l00453"></a>00453 <span class="keyword">private</span>:
<a name="l00454"></a>00454   <span class="keywordtype">bool</span> m_autoManage;
<a name="l00455"></a>00455   <span class="keywordtype">bool</span> m_connect;
<a name="l00456"></a>00456 
<a name="l00457"></a>00457   KateSuperCursorList m_columnBoundaries;
<a name="l00458"></a>00458   <span class="keywordtype">bool</span> m_trackingBoundaries;
<a name="l00459"></a>00459 };
<a name="l00460"></a>00460 
<a name="l00461"></a>00461 <span class="preprocessor">#endif</span>
<a name="l00462"></a>00462 <span class="preprocessor"></span>
<a name="l00463"></a>00463 <span class="comment">// kate: space-indent on; indent-width 2; replace-tabs on;</span>
</pre></div></div>
</div>
    </div></div>


      </td>
  </tr>
  <tr>
    <td valign="top" id="leftmenu" width="25%">
      <a name="navigation"></a>
      <div class="menu_box"><h2>kate</h2>
<div class="nav_list">
<ul><li><a href="index.html">Main Page</a></li><li><a href="namespaces.html">Namespace List</a></li><li><a href="hierarchy.html">Class Hierarchy</a></li><li><a href="classes.html">Alphabetical List</a></li><li><a href="annotated.html">Class List</a></li><li><a href="files.html">File List</a></li><li><a href="namespacemembers.html">Namespace Members</a></li><li><a href="functions.html">Class Members</a></li><li><a href="pages.html">Related Pages</a></li></ul>
<!--
<h2>Class Picker</h2>
<div style="text-align: center;">
<form name="guideform">
<select name="guidelinks" style="width:100%;" onChange="window.location=document.guideform.guidelinks.options[document.guideform.guidelinks.selectedIndex].value">
<option value="annotated.html">-- Choose --</option>
  <option value="classIndenterConfigPage.html">indenterconfigpage</option>,  <option value="classKate_1_1Command.html">kate::command</option>,  <option value="classKate_1_1CommandExtension.html">kate::commandextension</option>,  <option value="classKate_1_1Document.html">kate::document</option>,  <option value="classKate_1_1DocumentExt.html">kate::documentext</option>,  <option value="classKate_1_1View.html">kate::view</option>,  <option value="classKateArbitraryHighlight.html">katearbitraryhighlight</option>,  <option value="classKateAttribute.html">kateattribute</option>,  <option value="classKateAutoIndent.html">kateautoindent</option>,  <option value="classKateBrowserExtension.html">katebrowserextension</option>,  <option value="classKateBufBlock.html">katebufblock</option>,  <option value="classKateBufBlockList.html">katebufblocklist</option>,  <option value="classKateBuffer.html">katebuffer</option>,  <option value="classKateCmdShellCompletion.html">katecmdshellcompletion</option>,  <option value="classKateCommands_1_1Character.html">katecommands::character</option>,  <option value="classKateCommands_1_1CoreCommands.html">katecommands::corecommands</option>,  <option value="classKateCommands_1_1Date.html">katecommands::date</option>,  <option value="classKateCommands_1_1SedReplace.html">katecommands::sedreplace</option>,  <option value="classKateConfig.html">kateconfig</option>,  <option value="classKateDocCursor.html">katedoccursor</option>,  <option value="classKateJScript.html">katejscript</option>,  <option value="classKateModOnHdPrompt.html">katemodonhdprompt</option>,  <option value="classKateNormalIndent.html">katenormalindent</option>,  <option value="classKateRenderer.html">katerenderer</option>,  <option value="classKateReplacePrompt.html">katereplaceprompt</option>,  <option value="classKateScrollBar.html">katescrollbar</option>,  <option value="classKateSuperCursor.html">katesupercursor</option>,  <option value="classKateSuperRange.html">katesuperrange</option>,  <option value="classKateSyntaxContextData.html">katesyntaxcontextdata</option>,  <option value="classKateSyntaxDocument.html">katesyntaxdocument</option>,  <option value="classKateSyntaxModeListItem.html">katesyntaxmodelistitem</option>,  <option value="classKateTextCursor.html">katetextcursor</option>,  <option value="classKateTextLine.html">katetextline</option>,  <option value="classKateUndoGroup.html">kateundogroup</option>,  <option value="classKateVarIndent.html">katevarindent</option>,  <option value="classKateViewIndentationAction.html">kateviewindentationaction</option>,  <option value="classOutputFunction.html">outputfunction</option>,  <option value="classOutputObject.html">outputobject</option>,
</select>
</form>
</div>
-->
</div></div>
<div class="menu_box"><h2>API Dox</h2>
<div class="nav_list">
<ul>
<li><a href="../../arts/html/index.html">arts</a></li><li><a href="../../dcop/html/index.html">dcop</a></li><li><a href="../../dnssd/html/index.html">dnssd</a></li><li><a href="../../interfaces/html/index.html">interfaces</a></li><li>&nbsp;&nbsp;&nbsp;&nbsp;<a href="../../interfaces/kimproxy/interface/html/index.html">interface</a></li><li>&nbsp;&nbsp;&nbsp;&nbsp;<a href="../../interfaces/kimproxy/library/html/index.html">library</a></li><li>&nbsp;&nbsp;<a href="../../interfaces/kspeech/html/index.html">kspeech</a></li><li>&nbsp;&nbsp;<a href="../../interfaces/ktexteditor/html/index.html">ktexteditor</a></li><li><a href="../../kabc/html/index.html">kabc</a></li><li><a href="../../kate/html/index.html">kate</a></li><li><a href="../../kcmshell/html/index.html">kcmshell</a></li><li><a href="../../kdecore/html/index.html">kdecore</a></li><li><a href="../../kded/html/index.html">kded</a></li><li><a href="../../kdefx/html/index.html">kdefx</a></li><li><a href="../../kdeprint/html/index.html">kdeprint</a></li><li><a href="../../kdesu/html/index.html">kdesu</a></li><li><a href="../../kdeui/html/index.html">kdeui</a></li><li><a href="../../kdoctools/html/index.html">kdoctools</a></li><li><a href="../../khtml/html/index.html">khtml</a></li><li><a href="../../kimgio/html/index.html">kimgio</a></li><li><a href="../../kinit/html/index.html">kinit</a></li><li><a href="../../kio/html/index.html">kio</a></li><li>&nbsp;&nbsp;<a href="../../kio/bookmarks/html/index.html">bookmarks</a></li><li>&nbsp;&nbsp;<a href="../../kio/httpfilter/html/index.html">httpfilter</a></li><li>&nbsp;&nbsp;<a href="../../kio/kfile/html/index.html">kfile</a></li><li>&nbsp;&nbsp;<a href="../../kio/kio/html/index.html">kio</a></li><li>&nbsp;&nbsp;<a href="../../kio/kioexec/html/index.html">kioexec</a></li><li>&nbsp;&nbsp;<a href="../../kio/kpasswdserver/html/index.html">kpasswdserver</a></li><li>&nbsp;&nbsp;<a href="../../kio/kssl/html/index.html">kssl</a></li><li><a href="../../kioslave/html/index.html">kioslave</a></li><li>&nbsp;&nbsp;<a href="../../kioslave/http/html/index.html">http</a></li><li><a href="../../kjs/html/index.html">kjs</a></li><li><a href="../../kmdi/html/index.html">kmdi</a></li><li>&nbsp;&nbsp;<a href="../../kmdi/kmdi/html/index.html">kmdi</a></li><li><a href="../../knewstuff/html/index.html">knewstuff</a></li><li><a href="../../kparts/html/index.html">kparts</a></li><li><a href="../../kresources/html/index.html">kresources</a></li><li><a href="../../kspell2/html/index.html">kspell2</a></li><li><a href="../../kunittest/html/index.html">kunittest</a></li><li><a href="../../kutils/html/index.html">kutils</a></li><li><a href="../../kwallet/html/index.html">kwallet</a></li><li><a href="../../libkmid/html/index.html">libkmid</a></li><li><a href="../../libkscreensaver/html/index.html">libkscreensaver</a></li>
</ul></div></div>


        </td>
</tr>
</table>

<span class="doNotDisplay">
  <a href="http://www.kde.org/" accesskey="8">KDE Home</a> |
  <a href="http://accessibility.kde.org/" accesskey="9">KDE Accessibility Home</a> |
  <a href="http://www.kde.org/media/accesskeys.php" accesskey="0">Description of Access Keys</a>
</span>


<div style="height: 8px"></div>

<div id="footer">
  <div id="footer_left">
    Maintained by <a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;groo&#116;&#64;kde&#46;or&#x67;">Adriaan de Groot</a>
and
<a href="&#109;a&#105;&#108;&#116;&#111;&#58;w&#105;nter&#64;kde&#46;or&#x67">Allen Winter</a>.
<br/>
    KDE and K Desktop Environment are trademarks of <a href="http://www.kde.org/areas/kde-ev/" title="Homepage of the KDE non-profit Organization">KDE e.V.</a> |
    <a href="http://www.kde.org/contact/impressum.php">Legal</a>
  </div>
  <div id="footer_right"><img src="/media/images/footer_right.png" style="margin: 0px" alt="" /></div>
</div>

<!--
WARNING: DO NOT SEND MAIL TO THE FOLLOWING EMAIL ADDRESS! YOU WILL
BE BLOCKED INSTANTLY AND PERMANENTLY!
<a href="mailto:aaaatrap-425acc3b5374943f@kde.org">Block me</a>
WARNING END
-->

</body>
</html>