[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: developer.kde.org/documentation/library/kdeqt
From: Tim Jansen <tim () tjansen ! de>
Date: 2003-05-11 22:48:39
[Download RAW message or body]
CVS commit by tjansen:
1. HTML fix
2. it turned out that all newer .desktop files use semi-colons for lists
3. examples
M +19 -2 tradersyntax.html 1.4
--- developer.kde.org/documentation/library/kdeqt/tradersyntax.html #1.3:1.4
@@ -55,5 +55,5 @@
<li><tt>*</tt></li>
<li><tt>/</tt></li>
-<li><tt>and</tt><li>
+<li><tt>and</tt></li>
<li><tt>or</tt></li>
<li><tt>not</tt></li>
@@ -71,4 +71,5 @@
<li><tt>in</tt></li>
<li><tt>exist</tt></li>
+<li><tt>()</tt></li>
</ul>
@@ -76,7 +77,23 @@
<tt>KParts ~ 'KParts/ReadOnlyPart'</tt> is TRUE. The membership
operator <tt>in</tt> tests whether a value is in a list. A list is a simple
-string with comma-separated entries. An example is
+string with semi-colon-separated entries. An example is
<tt>'text/plain' in MimeType</tt>. The <tt>exist</tt> tests whether a
certain property is defined in the <tt>.desktop</tt> file.
+Subexpressions are written in parentheses.
+
+<h2>Examples</h2>
+
+<p>The following examples show filters for .desktop files.
+<tt>Type</tt>, <tt>ServiceTypes</tt> and <tt>MimeType</tt> are properties
+in .desktop files. </p>
+
+<dl>
+ <dt><tt>Type == 'Application'</tt>
+ <dd>All services that are applications
+ <dt><tt>'KParts/ReadOnlyPart' in ServiceTypes</tt>
+ <dd>All read-only KParts.
+ <dt><tt>('KParts/ReadOnlyPart' in ServiceTypes) and ('text/plain' in MimeType)</tt>
+ <dd>All read-only KParts that handle the mime type 'text/plain'
+</dl>
<hr>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic