[kde-doc-english] [kate/frameworks] doc/kate: document scripting API

Dominik Haumann dhaumann at kde.org
Wed Feb 19 21:56:52 UTC 2014


Git commit 1603ce98098da2b569153199f07d576788735137 by Dominik Haumann.
Committed on 19/02/2014 at 21:54.
Pushed by dhaumann into branch 'frameworks'.

document scripting API

- bool document.isLineModified(int line);
- bool document.isLineTouched(int line);
- bool document.isLineSaved(int line);
- bool document.findTouchedLine(int startLine, bool down)

M  +54   -0    doc/kate/development.docbook

http://commits.kde.org/kate/1603ce98098da2b569153199f07d576788735137

diff --git a/doc/kate/development.docbook b/doc/kate/development.docbook
index 6152bd1..a4efd97 100644
--- a/doc/kate/development.docbook
+++ b/doc/kate/development.docbook
@@ -1314,6 +1314,60 @@ int document.lines();
 
 <varlistentry>
 <term><synopsis>
+bool document.isLineModified(<parameter>int <replaceable>line</replaceable></parameter>);
+</synopsis></term>
+<listitem><para>
+    Returns <literal>true</literal>, if <replaceable>line</replaceable> currently contains unsaved data.
+</para>
+<para>
+    Since: &kde; 5.0
+</para></listitem>
+</varlistentry>
+
+
+<varlistentry>
+<term><synopsis>
+bool document.isLineSaved(<parameter>int <replaceable>line</replaceable></parameter>);
+</synopsis></term>
+<listitem><para>
+    Returns <literal>true</literal>, if <replaceable>line</replaceable> was changed, but the document was saved.
+    Hence, the line currently does not contain any unsaved data.
+</para>
+<para>
+    Since: &kde; 5.0
+</para></listitem>
+</varlistentry>
+
+
+<varlistentry>
+<term><synopsis>
+bool document.isLineTouched(<parameter>int <replaceable>line</replaceable></parameter>);
+</synopsis></term>
+<listitem><para>
+    Returns <literal>true</literal>, if <replaceable>line</replaceable> currently contains unsaved data or was changed before.
+</para>
+<para>
+    Since: &kde; 5.0
+</para></listitem>
+</varlistentry>
+
+
+<varlistentry>
+<term><synopsis>
+bool document.findTouchedLine(<parameter>int <replaceable>startLine</replaceable></parameter>, <parameter>bool <replaceable>down</replaceable></parameter>);
+</synopsis></term>
+<listitem><para>
+    Search for the next touched line starting at <replaceable>line</replaceable>.
+    The search is performed either upwards or downwards depending on the search direction specified in <replaceable>down</replaceable>.
+</para>
+<para>
+    Since: &kde; 5.0
+</para></listitem>
+</varlistentry>
+
+
+<varlistentry>
+<term><synopsis>
 int document.length();
 </synopsis></term>
 <listitem><para>


More information about the kde-doc-english mailing list