phonon & :arg0
Thu Jul 23 00:53:41 CEST 2009 Tobias Rautenkranz <tobias@rautenkranz.ch>
* phonon & :arg0
diff -rN -u old-doc/introduction.xml new-doc/introduction.xml
--- old-doc/introduction.xml 2014-10-30 06:55:02.000000000 +0100
+++ new-doc/introduction.xml 2014-10-30 06:55:02.000000000 +0100
@@ -26,7 +26,7 @@
</para></listitem>
<listitem><para>10 seconds startup time<footnote>
<para>
- Using an image it is around 1 second.
+ Using a core image it is around 1 second.
(see <xref linkend="core-image"/>)
</para></footnote>
(for <package>qt.examples</package>) on a
diff -rN -u old-doc/qt.xml new-doc/qt.xml
--- old-doc/qt.xml 2014-10-30 06:55:02.000000000 +0100
+++ new-doc/qt.xml 2014-10-30 06:55:02.000000000 +0100
@@ -4,7 +4,7 @@
<chapter id="qt">
<title>Qt</title>
<para>
-Besides the <package>:qt</package> there are these packages: with
+Besides the <package>:qt</package> there are these modules: with
<itemizedlist>
<listitem><para>
<package>:qt.uitools</package>
@@ -17,8 +17,16 @@
<ulink url="http://doc.trolltech.com/4.5/qtwebkit.html">
QtWebKit</ulink>
</para></listitem>
+ <listitem><para><package>:qt.phonon</package>
+ <ulink url="http://doc.trolltech.com/4.5/phonon.html">
+ Phonon</ulink>
+ </para></listitem>
</itemizedlist>
-which provide bindings for their Qt module.
+which provide bindings for their Qt module. The class names of this modules are in
+the <package>:qt</package> package. (E.g. Phonon::VideoPlayer is <code>'qt:phonon.video-player</code>
+and QTest is <code>'qt:test</code>)
+</para>
+<para>
Additionally there is the <package>:qt.tests</package> system, containing
the unit tests and <package>:qt.examples</package> for various examples.
</para>
@@ -95,11 +103,12 @@
<classname>qt:object</classname> properties can be accessed with
<methodname>qt:property</methodname> (setf-able).
The name of the property can be either a string in C++ style or a symbol in Lisp style.
+The predefined Qt properties can be accessed with symbols in the keyword package.
</para>
<informalexample>
<programlisting language="lisp">
(let ((object (make-instance '<classname>qt:object</classname>)))
- (setf (<methodname>qt:property</methodname> object 'object-name) "Foo")
+ (setf (<methodname>qt:property</methodname> object :object-name) "Foo")
(assert (string= "Foo" (<methodname>qt:property</methodname> object "objectName"))))
</programlisting>
</informalexample>
diff -rN -u old-doc/smoke.xml new-doc/smoke.xml
--- old-doc/smoke.xml 2014-10-30 06:55:02.000000000 +0100
+++ new-doc/smoke.xml 2014-10-30 06:55:02.000000000 +0100
@@ -33,6 +33,13 @@
(make-instance '<classname>qt:object</classname> :args (list parent)))
</programlisting>
</informalexample>
+or use <code>:arg0</code>, <code>:arg1</code> and <code>:arg2</code>.
+<informalexample>
+<programlisting language="lisp">
+(let ((parent (make-instance '<classname>qt:object</classname>)))
+ (make-instance '<classname>qt:object</classname> :arg0 parent))
+</programlisting>
+</informalexample>
</para>
<para>
To extend a C++ class you have to use <classname>cxx:class</classname> as metaclass: