[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/3.5/kdewebdev/kommander/plugin
From: Eric Laffoon <sequitur () kde ! org>
Date: 2009-10-14 15:34:34
Message-ID: 1255534474.108574.12500.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1035239 by sequitur:
added find row
M +8 -2 specialinformation.cpp
M +3 -3 specials.h
--- branches/KDE/3.5/kdewebdev/kommander/plugin/specialinformation.cpp \
#1035238:1035239 @@ -448,7 +448,9 @@
i18n("Connects the signal of sender with the slot of the receiver"), 4);
insertInternal(Kommander::disconnect, "disconnect(QString sender, QString signal, \
QString receiver, QString slot)",
i18n("Disconnects the signal of sender from the slot of the receiver"), 4);
-
+/* insertInternal(Kommander::switchInternal, "switch(QString Variable)",
+ i18n("Can use can use <br>switch var<br>case 1<br> //code<br>else<br> \
//code<br>end<p>also can use the form of <br>switch var {<br>case 1; //code<br>else; \
code<br>}<p> semicolons are optional in place of returns. Currently switch does not \
parse value from arrays.") ); +*/
insertInternal(Kommander::exit, "exit",
i18n("Exits script execution and returns"), 0);
insertInternal(Kommander::Break, "break",
@@ -516,6 +518,8 @@
i18n("Remove a row from the matrix by key name. Returns true if key is found."), \
2); insertInternal(Matrix::removeColumn, "removeColumn(QString Matrix, QString \
ColKey)",
i18n("Remove a column from the matrix by key name. Returns true if key is \
found."), 2); + insertInternal(Matrix::findRow, "findRow(QString Matrix, QString \
Col-Key, QString Col-Value)", + i18n("Find the row key that matches a column \
value. Use this for unique key searches. It will only return the first instance."), 3 \
);
insertGroup(Group::String, "String", "str");
insert(String::length, "length(QString string)",
@@ -525,7 +529,9 @@
insert(String::find, "find(QString string, QString sought, int index)",
i18n("Returns the position of a substring in the string, or -1 if it is not \
found."), 2); insert(String::findRev, "findRev(QString string, QString sought, int \
index)",
- i18n("Returns the position of a substring in the string, or -1 if it is not \
found. String is searched backwards"), 2); + i18n("Returns the position of a \
substring in the string, or -1 if it is not found. String is searched backwards"), \
2); + insertInternal(String::count, "count(QString String, QString substring)",
+ i18n("Returns the count of a given substring in the given string."), 2);
insert(String::left, "left(QString string, int n)",
i18n("Returns the first <i>n</i> chars of the string."), 2);
insert(String::right, "right(QString string, int n)",
--- branches/KDE/3.5/kdewebdev/kommander/plugin/specials.h #1035238:1035239
@@ -40,7 +40,7 @@
{
enum {widgetText, selectedWidgetText, null, pid, dcopid, parentPid, debug,
echo, env, exec, expr, global, i18n, dialog, readSetting, setGlobal, writeSetting, \
dcop,
- switchBlock, execBegin, forBlock, forEachBlock, ifBlock, comment, createWidget, \
connect, disconnect, widgetExists, exit, Break, Continue, Return, execBackground}; \
//, focusWidget}; + switchBlock, execBegin, forBlock, forEachBlock, ifBlock, \
comment, createWidget, connect, disconnect, widgetExists, exit, Break, Continue, \
Return, execBackground, switchInternal}; //, focusWidget}; }
namespace Array
@@ -50,13 +50,13 @@
namespace Matrix
{
- enum {fromString, toString, clear, rows, columns, rowToArray, columnToArray, \
columnToIndexedArray, rowKeys, columnKeys, addRow, removeRow, removeColumn}; + enum \
{fromString, toString, clear, rows, columns, rowToArray, columnToArray, \
columnToIndexedArray, rowKeys, columnKeys, addRow, removeRow, removeColumn, findRow}; \
}
namespace String
{
enum {length, contains, find, findRev, left, right, mid, remove, replace, upper, \
lower,
- compare, isEmpty, isNumber, section, args, toInt, toDouble, round, sort, trim, \
padLeft, padRight}; + compare, isEmpty, isNumber, section, args, toInt, toDouble, \
round, sort, trim, padLeft, padRight, count}; }
namespace File
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic