summaryrefslogtreecommitdiffstats
path: root/tde-i18n-de/docs/tdemultimedia/artsbuilder/helping.docbook
blob: bc8f518eb168879421462d4236bdf0bcab0f5de6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
<!-- <?xml version="1.0" ?>
<!DOCTYPE chapter PUBLIC "-//KDE//DTD DocBook XML V4.2-Based Variant V1.1//EN" "dtd/kdex.dtd">
To validate or process this file as a standalone document, uncomment
this prolog. Be sure to comment it out again when you are done -->

<chapter id="contributing">
<title
>&arts; unterstützen</title>

<sect1 id="how-to-help">
<title
>Wie Sie helfen können</title>

<para
>Das &arts;-Projekt benötigt einerseite Hilfe von Entwicklern, um existierende Multimedia-Anwendungen für &arts; anzupassen, neue Anwendungen zu schreiben und die Möglichkeiten von &arts; zu erweitern. Andererseits gibt es auch viele Aufgaben, die von Anderen übernommen werden können. Es werden Tester benötigt, die Fehlermeldungen liefern, Übersetzer, die die Anwendungstexte und die Dokumentation in andere Sprachen übersetzen, Graphiker, die Bitmaps (besonders für die <application
>artsbuilder</application
>-Module) entwerfen, Musiker, die Beispiele für &arts; erzeugen, und Autoren, die die Dokumentation schreiben und korrigieren. </para>
</sect1>

<sect1 id="mailing-lists">
<title
>Mailinglisten</title>

<para
>Viele Diskussionen zur Entwicklung von &arts; finden in einer von zwei Mailinglisten statt. Hier werden neue Fähigkeiten und Umsetzungsideen diskutiert, hierhin kann man sich bei Problemen wenden. </para>

<para
>Die &kde;-Multimedia-Mailingliste ist für allgemeine Multimediathemen sowohl &arts; als auch andere Multimediaprogramme wie &noatun; und &aktion; betreffend. Sie können sich auf der Internetseite <ulink url="http://www.kde.org/mailinglists.html"
>http://www.kde.org/mailingslists.html</ulink
> oder durch eine E-Mail mit dem Betreff (subject) <userinput
>subscribe <replaceable
>Ihre-E-Mail-Adresse</replaceable
></userinput
> an <email
>kde-multimedia-request@kde.org</email
> anmelden. Die Liste wird unter <ulink url="http://lists.kde.org"
>http://lists.kde.org</ulink
> archiviert. </para>

<para
>In der &arts;-Mailingliste geht es um &arts;-spezifische Themen einschließlich der Nutzung von &arts; außerhalb von &kde;. Zur Anmeldung senden Sie eine E-Mail mit dem Inhalt <userinput
>subscribe <replaceable
>Ihre-E-Mail-Adresse</replaceable
></userinput
> an <email
>arts-request@space.twc.de</email
>. Die Liste wird unter <ulink url="http://space.twc.de/~stefan/arts-archive"
> http://space.twc.de/~stefan/arts-archive</ulink
> archiviert. </para>

</sect1>

<sect1 id="coding-standards">
<title
>Programmierstandards (in Englisch)</title>

<para
>For getting a consistent reading through all the sources, it is important to keep the coding style the same, all over the &arts; source. Please, even if you just write a module, try to write/format your source accordingly, as it will make it easier for different people to maintain the source tree, and easier to copy pieces of from one source to another. </para>

<variablelist>
<varlistentry>
<term
>Naming of member functions</term>
<listitem>
<para
>&Qt;/&Java; style, that means capitalization on word breaks, and first letter always without capitalization; no underscores. </para>
<para
>This means for instance:</para>

<programlisting
>createStructureDesc()
   updateWidget();
   start(); </programlisting>

</listitem>
</varlistentry>

<varlistentry>
<term
>Class members</term>
<listitem>
<para
>Class members are not capitalized, such as menubar or button. </para>

<para
>When there are accessing functions, the standard should be the &MCOP; way, that is, when having an long member <function
>foo</function
>, which shouldn't be visible directly, you create: </para>

<programlisting
>foo(long new_value);
   long foo(); </programlisting>

<para
>functions to get and set the value. In that case, the real value of <function
>foo</function
> should be stored in <returnvalue
>&lowbar;foo</returnvalue
>. </para>
</listitem>
</varlistentry>

<varlistentry>
<term
>Class names</term>
<listitem>
<para
>All classes should be wordwise capitalized, that means <classname
>ModuleView</classname
>, <classname
>SynthModule</classname
>. All classes that belong to the libraries should use the &arts; namespace, like <classname
>Arts::Soundserver</classname
>. </para>
<para
>The implementations of &MCOP; classes should get called <classname
>Class&lowbar;impl</classname
>, such as <classname
>SoundServer&lowbar;impl</classname
>. </para>
</listitem>
</varlistentry>

<varlistentry>
<term
>Parameters</term>
<listitem>
<para
>Parameters are always uncapitalized. </para>
</listitem>
</varlistentry>

<varlistentry>
<term
>Local variables</term>
<listitem>
<para
>Local variables are always uncapitalized, and may have names like <varname
>i</varname
>, <varname
>p</varname
>, <varname
>x</varname
>, &etc; where appropriate. </para>
</listitem>
</varlistentry>

<varlistentry>
<term
>Tab width (Shift width)</term>
<listitem>
<para
>One tab is as long as 4 spaces. </para>
</listitem>
</varlistentry>

<varlistentry>
<term
>Leerzeichen in Ausdrücken</term>
<listitem>
<para
>Normalerweise müssen in Ausdrücken keine Leerzeichen verwendet werden. Man kann sie allerdings zwischen Operatoren und ihren Operanden setzen. Falls man allerdings ein Leerzeichen direkt vor einen Operator (wie z.B. +) setzt, muss man auch nach dem Operator ein Leerzeichen setzen. Die einzige Ausnahme von dieser Regel bilden listenartige Ausdrücke (mit ,), bei denen man nur hinter dem "," ein Leerzeichen setzen darf. Man kann es aber auch weglassen. </para>
<para
>Die folgenden Beispiele demonstrieren die sinnvolle Verwendung von Leerzeichen: </para>
<programlisting
>{
    int a,b;
    int c, d, e;
    int f = 4;

    a=b=c=d+e+f;
    a = b = c = d + e + f;

    if(a == 4) {
        a = b = c = (d+e)/2;
    }

    while(b&lt;3)
        c--;

    arts_debug("%d\n", c);
}
</programlisting>
<para
>Die folgenden Beispiele demonstrieren, wie Leerzeichen <emphasis
>nicht</emphasis
> verwendet werden dürfen. Bei Funktionsaufrufen, nach "if", "for", "switch" und so weiter dürfen keine Leerzeichen stehen. </para>
<programlisting
>{
    // FALSCH: In einer Liste dürfen Leerzeichen nur nach dem "," stehen
    int a , b , c , d , e , f;

    // FALSCH: unsymmetrische Leerzeichen beim =-Operator
    a= 5;

    // FALSCH: "if" ist eine Funktion, daher dürfen keine Leerzeichen folgen
    if (a == 5) {   
    }

    // FALSCH: nach "while" darf kein Leerzeichen folgen
    while (a--)
        b++; 

    // FALSCH: Auf Funktionsnamen dürfen keine Leerzeichen folgen
    arts_debug ("%d\n", c);

    // FALSCH: keines von beiden ist ein member-Name
    Arts::Object o = Arts::Object::null ();
}
</programlisting>
</listitem>
</varlistentry>


<varlistentry>
<term
>Naming of source files</term>
<listitem>
<para
>Source files should have no capitalization in the name. They should have the name of the class when they implement a single class. Their extension is <literal role="extension"
>.cc</literal
> if they refer to &Qt;/&GUI; independent code, and <literal role="extension"
>.cpp</literal
> if they refer to &Qt;/&GUI; dependant code. Implementation files for interfaces should be called <filename
><replaceable
>foo</replaceable
>_impl</filename
>, if Foo was the name of the interface. </para>

<para
>&IDL; files should be called in a descriptive way for the collection of interfaces they contain, also all lower case. Especially it is not good to call an &IDL; file like the class itself, as the .mcopclass trader and type info entries will collide, then. </para>
</listitem>
</varlistentry>
</variablelist>
</sect1>

</chapter>