Mercurial > mplayer.hg
annotate DOCS/xml/en/skin.xml @ 32910:f34e21c5dc2f
Improve documentation on dlabel.
Throughout the skin documentation 'width' is used, so use it
instead of 'length' for the dlabel documentation, too.
Additionally, the German translation has been revised.
author | ib |
---|---|
date | Wed, 02 Mar 2011 13:30:44 +0000 |
parents | e91f07a9d5cd |
children | d32c24fea761 |
rev | line source |
---|---|
20535 | 1 <?xml version="1.0" encoding="utf-8"?> |
10913
49b1a67e7381
Add revision keyword to english xml files, to ease translation synchronization
lumag
parents:
10875
diff
changeset
|
2 <!-- $Revision$ --> |
9675 | 3 <appendix id="skin"> |
11540 | 4 <title><application>MPlayer</application> skin format</title> |
9675 | 5 |
6 <sect1 id="skin-overview"> | |
7 <title>Overview</title> | |
21521 | 8 |
9 <!-- ********** --> | |
10 | |
9675 | 11 <sect2 id="skin-overview-components"> |
12 <title>Skin components</title> | |
21521 | 13 |
9675 | 14 <para> |
11715 | 15 Skins are quite free-format (unlike the fixed-format skins of |
16 <application>Winamp</application>/<application>XMMS</application>, | |
9675 | 17 for example), so it is up to you to create something great. |
18 </para> | |
19 | |
20 <para> | |
12405 | 21 Currently there are four windows to be decorated: the |
9675 | 22 <link linkend="skin-file-main">main window</link>, the |
23 <link linkend="skin-file-subwindow">subwindow</link>, the | |
24 <link linkend="skin-file-main">playbar</link>, and the | |
32872 | 25 <link linkend="skin-file-menu">skin menu</link>. |
9675 | 26 |
27 <itemizedlist> | |
21521 | 28 <listitem> |
29 <para> | |
32872 | 30 The <emphasis role="bold">main window</emphasis> is where you can control |
31 <application>MPlayer</application>. The <emphasis role="bold">playbar</emphasis> | |
32 shows up in fullscreen mode when moving the mouse to the bottom of | |
33 the screen. The background of the windows is an image. | |
21521 | 34 Various items can (and must) be placed in the window: |
35 <emphasis>buttons</emphasis>, <emphasis>potmeters</emphasis> (sliders) and | |
36 <emphasis>labels</emphasis>. | |
11540 | 37 For every item, you must specify its position and size. |
21521 | 38 </para> |
29263
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
29243
diff
changeset
|
39 |
21521 | 40 <para> |
9675 | 41 A <emphasis role="bold">button</emphasis> has three states (pressed, released, |
42 disabled), thus its image must be divided into three parts vertically. See the | |
43 <link linkend="skin-button">button</link> item for details. | |
21521 | 44 </para> |
29263
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
29243
diff
changeset
|
45 |
21521 | 46 <para> |
9675 | 47 A <emphasis role="bold">potmeter</emphasis> (mainly used for the seek bar and |
48 volume/balance control) can have any number of phases by dividing its image | |
49 into different parts below each other. See | |
50 <link linkend="skin-hpotmeter">hpotmeter</link> and | |
51 <link linkend="skin-potmeter">potmeter</link> for details. | |
21521 | 52 </para> |
29263
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
29243
diff
changeset
|
53 |
21521 | 54 <para> |
9675 | 55 <emphasis role="bold">Labels</emphasis> are a bit special: The characters |
56 needed to draw them are taken from an image file, and the characters in the | |
21521 | 57 image are described by a |
58 <link linkend="skin-fonts">font description file</link>. | |
9675 | 59 The latter is a plain text file which specifies the x,y position and size of |
60 each character in the image (the image file and its font description file | |
21521 | 61 form a font <emphasis>together</emphasis>). |
62 See <link linkend="skin-dlabel">dlabel</link> | |
9675 | 63 and <link linkend="skin-slabel">slabel</link> for details. |
21521 | 64 </para> |
65 | |
66 <note><para> | |
67 All images can have full transparency as described in the section about | |
9675 | 68 <link linkend="skin-overview-formats">image formats</link>. If the X server |
69 doesn't support the XShape extension, the parts marked transparent will be | |
70 black. If you'd like to use this feature, the width of the main window's | |
71 background image must be dividable by 8. | |
21521 | 72 </para></note> |
9675 | 73 </listitem> |
74 | |
75 <listitem><para> | |
76 The <emphasis role="bold">subwindow</emphasis> is where the movie appears. It | |
77 can display a specified image if there is no movie loaded (it is quite boring | |
21521 | 78 to have an empty window :-)) <emphasis role="bold">Note:</emphasis> |
79 transparency is <emphasis role="bold">not allowed</emphasis> here. | |
9675 | 80 </para></listitem> |
81 | |
21521 | 82 <listitem> |
83 <para> | |
11540 | 84 The <emphasis role="bold">skin menu</emphasis> is just a way to control |
32872 | 85 <application>MPlayer</application> by means of menu entries (which can be |
86 activated by a middle mouse button click). Two images | |
11540 | 87 are required for the menu: one of them is the base image that shows the |
88 menu in its normal state, the other one is used to display the selected | |
89 entries. When you pop up the menu, the first image is shown. If you move | |
90 the mouse over the menu entries, the currently selected entry is copied | |
91 from the second image over the menu entry below the mouse pointer | |
9675 | 92 (the second image is never shown as a whole). |
21521 | 93 </para> |
94 <para> | |
9675 | 95 A menu entry is defined by its position and size in the image (see the |
21521 | 96 section about the <link linkend="skin-file-menu">skin menu</link> for |
97 details). | |
98 </para> | |
99 </listitem> | |
9675 | 100 </itemizedlist> |
101 </para> | |
102 | |
103 <para> | |
21521 | 104 There is an important thing not mentioned yet: For buttons, potmeters and |
105 menu entries to work, <application>MPlayer</application> must know what to | |
106 do if they are clicked. This is done by <link linkend="skin-gui">messages</link> | |
107 (events). For these items you must define the messages to be generated when | |
108 they are clicked. | |
9675 | 109 </para> |
110 </sect2> | |
111 | |
29242
75dce2e34e81
Move image formats section to a more appropriate place.
diego
parents:
26958
diff
changeset
|
112 <sect2 id="skin-overview-formats"> |
75dce2e34e81
Move image formats section to a more appropriate place.
diego
parents:
26958
diff
changeset
|
113 <title>Image formats</title> |
75dce2e34e81
Move image formats section to a more appropriate place.
diego
parents:
26958
diff
changeset
|
114 |
75dce2e34e81
Move image formats section to a more appropriate place.
diego
parents:
26958
diff
changeset
|
115 <para>Images must be truecolor (24 or 32 bpp) PNGs.</para> |
75dce2e34e81
Move image formats section to a more appropriate place.
diego
parents:
26958
diff
changeset
|
116 <para> |
75dce2e34e81
Move image formats section to a more appropriate place.
diego
parents:
26958
diff
changeset
|
117 In the main window and in the playbar (see below) you can use images with |
75dce2e34e81
Move image formats section to a more appropriate place.
diego
parents:
26958
diff
changeset
|
118 `transparency': Regions filled with the color #FF00FF (magenta) are fully |
75dce2e34e81
Move image formats section to a more appropriate place.
diego
parents:
26958
diff
changeset
|
119 transparent when viewed by <application>MPlayer</application>. This means |
75dce2e34e81
Move image formats section to a more appropriate place.
diego
parents:
26958
diff
changeset
|
120 that you can even have shaped windows if your X server has the XShape extension. |
75dce2e34e81
Move image formats section to a more appropriate place.
diego
parents:
26958
diff
changeset
|
121 </para> |
75dce2e34e81
Move image formats section to a more appropriate place.
diego
parents:
26958
diff
changeset
|
122 </sect2> |
75dce2e34e81
Move image formats section to a more appropriate place.
diego
parents:
26958
diff
changeset
|
123 |
21521 | 124 <!-- ********** --> |
125 | |
9675 | 126 <sect2 id="skin-files"> |
127 <title>Files</title> | |
21521 | 128 |
9675 | 129 <para> |
130 You need the following files to build a skin: | |
131 <itemizedlist> | |
132 <listitem><para> | |
133 The configuration file named <link linkend="skin-file">skin</link> tells | |
11540 | 134 <application>MPlayer</application> how to put different parts of the skin |
135 together and what to do if you click somewhere in the window. | |
9675 | 136 </para></listitem> |
137 <listitem><para> | |
138 The background image for the main window. | |
139 </para></listitem> | |
140 <listitem><para> | |
141 Images for the items in the main window (including one or more font | |
142 description files needed to draw labels). | |
143 </para></listitem> | |
144 <listitem><para> | |
145 The image to be displayed in the subwindow (optional). | |
146 </para></listitem> | |
147 <listitem><para> | |
148 Two images for the skin menu (they are needed only if you want to create | |
149 a menu). | |
150 </para></listitem> | |
151 </itemizedlist> | |
152 With the exception of the skin configuration file, you can name the other | |
153 files whatever you want (but note that font description files must have | |
154 a <filename>.fnt</filename> extension). | |
155 </para> | |
156 </sect2> | |
157 </sect1> | |
12815 | 158 |
21521 | 159 |
160 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> | |
161 | |
162 | |
9675 | 163 <sect1 id="skin-file"> |
164 <title>The skin file</title> | |
21521 | 165 |
9675 | 166 <para> |
167 As mentioned above, this is the skin configuration file. It is line oriented; | |
21521 | 168 comment lines start with a '<literal>;</literal>' character at the beginning of |
169 the line (only spaces and tabs are allowed before the '<literal>;</literal>'). | |
9675 | 170 </para> |
171 | |
172 <para> | |
173 The file is made up of sections. Each section describes the skin for an | |
174 application and has the following form: | |
175 <programlisting> | |
176 section = <replaceable>section name</replaceable> | |
177 . | |
178 . | |
179 . | |
180 end | |
181 </programlisting> | |
182 </para> | |
183 | |
184 <para> | |
21521 | 185 Currently there is only one application, so you need only one section: its name |
186 is <emphasis role="bold">movieplayer</emphasis>. | |
10111 | 187 </para> |
188 | |
189 <para> | |
190 Within this section each window is described by a block of the following form: | |
191 <programlisting> | |
192 window = <replaceable>window name</replaceable> | |
193 . | |
194 . | |
195 . | |
196 end | |
197 </programlisting> | |
198 </para> | |
199 | |
200 <para> | |
9675 | 201 where <replaceable>window name</replaceable> can be one of these strings: |
202 <itemizedlist> | |
21521 | 203 <listitem><para> |
204 <emphasis role="bold">main</emphasis> - for the main window | |
205 </para></listitem> | |
206 <listitem><para> | |
207 <emphasis role="bold">sub</emphasis> - for the subwindow | |
208 </para></listitem> | |
209 <listitem><para> | |
32872 | 210 <emphasis role="bold">playbar</emphasis> - for the playbar |
21521 | 211 </para></listitem> |
212 <listitem><para> | |
32872 | 213 <emphasis role="bold">menu</emphasis> - for the skin menu |
21521 | 214 </para></listitem> |
9675 | 215 </itemizedlist> |
216 </para> | |
217 | |
218 <para> | |
32872 | 219 (The sub, playbar and menu blocks are optional - you do not need to decorate |
220 the subwindow, have a playbar or create a menu. A default menu is always | |
221 available by a right mouse button click.) | |
9675 | 222 </para> |
223 | |
224 <para> | |
225 Within a window block, you can define each item for the window by a line in | |
226 this form: | |
227 <programlisting>item = parameter</programlisting> | |
228 Where <literal>item</literal> is a string that identifies the type of the GUI | |
229 item, <literal>parameter</literal> is a numeric or textual value (or a list of | |
230 values separated by commas). | |
231 </para> | |
232 | |
233 <para> | |
234 Putting the above together, the whole file looks something like this: | |
235 <programlisting> | |
236 section = movieplayer | |
237 window = main | |
238 ; ... items for main window ... | |
239 end | |
240 | |
241 window = sub | |
242 ; ... items for subwindow ... | |
243 end | |
12815 | 244 |
9675 | 245 window = menu |
246 ; ... items for menu ... | |
247 end | |
248 | |
249 window = playbar | |
250 ; ... items for playbar ... | |
251 end | |
252 end | |
253 </programlisting> | |
254 </para> | |
255 | |
256 <para> | |
257 The name of an image file must be given without leading directories - images | |
17974
9a5a62f480e6
Rename the default GUI skins directory from 'Skin' to 'skins', keeping
diego
parents:
17276
diff
changeset
|
258 are searched for in the <filename class="directory">skins</filename> directory. |
9675 | 259 You may (but you need not) specify the extension of the file. If the file does |
11540 | 260 not exist, <application>MPlayer</application> tries to load the file |
9675 | 261 <filename><filename>.<ext></filename>, where <literal>png</literal> |
262 and <literal>PNG</literal> are tried for <filename><ext></filename> | |
263 (in this order). The first matching file will be used. | |
264 </para> | |
265 | |
266 <para> | |
21521 | 267 Here is an example to make this clear. Suppose that you have an image called |
268 <filename>main.png</filename> that you use for the main window: | |
269 <programlisting>base = main, -1, -1</programlisting> | |
270 <application>MPlayer</application> tries to load <filename>main</filename>, | |
271 <filename>main.png</filename>, <filename>main.PNG</filename> files. | |
272 </para> | |
273 | |
274 <para> | |
275 Finally some words about positioning. The main window and the subwindow can be | |
276 placed in the different corners of the screen by giving <literal>X</literal> | |
277 and <literal>Y</literal> coordinates. <literal>0</literal> is top or left, | |
9675 | 278 <literal>-1</literal> is center and <literal>-2</literal> is right or bottom, as |
279 shown in this illustration: | |
280 <informalfigure> | |
281 <screen> | |
282 (0, 0)----(-1, 0)----(-2, 0) | |
283 | | | | |
284 | | | | |
285 (0,-1)----(-1,-1)----(-2,-1) | |
286 | | | | |
287 | | | | |
288 (0,-2)----(-1,-2)----(-2,-2) | |
289 </screen> | |
290 </informalfigure> | |
291 </para> | |
292 | |
21521 | 293 <!-- ********** --> |
9675 | 294 |
295 <sect2 id="skin-file-main"> | |
296 <title>Main window and playbar</title> | |
21521 | 297 |
9675 | 298 <para> |
299 Below is the list of entries that can be used in the | |
11444
d6ef9000aed5
removed for added consistency, we do not use them anywhere else.
diego
parents:
10913
diff
changeset
|
300 '<literal>window = main</literal>' ... '<literal>end</literal>', |
d6ef9000aed5
removed for added consistency, we do not use them anywhere else.
diego
parents:
10913
diff
changeset
|
301 and the '<literal>window = playbar</literal>' ... '<literal>end</literal>' |
9675 | 302 blocks. |
303 </para> | |
304 | |
305 <variablelist> | |
306 <varlistentry> | |
307 <term><literal> | |
308 <anchor id="skin-main-base"/>base = image, X, Y | |
309 </literal></term> | |
21521 | 310 <listitem> |
311 <para> | |
312 Lets you specify the background image to be used for the main window. | |
313 The window will appear at the given <literal>X,Y</literal> position on | |
314 the screen The window will have the size of the image. | |
315 </para> | |
316 <note><para> | |
317 These coordinates do not currently work for the display window. | |
318 </para></note> | |
319 <warning><para>Transparent regions in the image (colored #FF00FF) appear black | |
320 on X servers without the XShape extension. The image's width must be dividable | |
321 by 8.</para></warning> | |
322 </listitem> | |
9675 | 323 </varlistentry> |
324 | |
325 <varlistentry> | |
326 <term><literal> | |
327 <anchor id="skin-button"/>button = image, X, Y, width, height, message | |
328 </literal></term> | |
21521 | 329 <listitem> |
330 <para> | |
331 Place a button of <literal>width</literal> * <literal>height</literal> size at | |
332 position <literal>X,Y</literal>. The specified <literal>message</literal> is | |
333 generated when the button is clicked. The image given by | |
334 <literal>image</literal> must have three parts below each other (according to | |
335 the possible states of the button), like this: | |
336 </para> | |
337 <informalfigure> | |
338 <screen> | |
9675 | 339 +------------+ |
340 | pressed | | |
341 +------------+ | |
342 | released | | |
343 +------------+ | |
344 | disabled | | |
21521 | 345 +------------+<!-- |
346 --></screen> | |
347 </informalfigure> | |
9675 | 348 </listitem> |
349 </varlistentry> | |
350 | |
351 <varlistentry> | |
352 <term><literal> | |
353 <anchor id="skin-decoration"/>decoration = enable|disable | |
354 </literal></term> | |
21521 | 355 <listitem> |
356 <para> | |
357 Enable or disable window manager decoration of the main window. Default is | |
358 <emphasis role="bold">disable</emphasis>. | |
359 </para> | |
360 <note><para> | |
361 This doesn't work for the display window, there is no need to. | |
362 </para></note> | |
9675 | 363 </listitem> |
364 </varlistentry> | |
365 | |
366 <varlistentry> | |
367 <term><literal> | |
368 <anchor id="skin-hpotmeter"/>hpotmeter = button, bwidth, bheight, phases, numphases, default, X, Y, width, height, message | |
369 </literal></term> | |
370 <listitem><para> | |
21521 | 371 </para></listitem> |
9675 | 372 </varlistentry> |
373 | |
374 <varlistentry> | |
375 <term><literal> | |
376 <anchor id="skin-vpotmeter"/>vpotmeter = button, bwidth, bheight, phases, numphases, default, X, Y, width, height, message | |
377 </literal></term> | |
378 <listitem><para> | |
21521 | 379 Place a horizontal (hpotmeter) or vertical (vpotmeter) potmeter of |
380 <literal>width</literal> * <literal>height</literal> size at position | |
381 <literal>X,Y</literal>. The image can be divided into different parts for the | |
382 different phases of the potmeter (for example, you can have a pot for volume | |
383 control that turns from green to red while its value changes from the minimum | |
384 to the maximum.). <literal>hpotmeter</literal> can have a button that can be | |
385 dragged horizontally. The parameters are: | |
386 <itemizedlist> | |
387 <listitem><para> | |
388 <literal>button</literal> - the image to be used for the | |
9675 | 389 button (must have three parts below each other, like in case of |
390 <link linkend="skin-button">button</link>) | |
21521 | 391 </para></listitem> |
392 <listitem><para> | |
393 <literal>bwidth</literal>, <literal>bheight</literal> - size | |
9675 | 394 of the button |
21521 | 395 </para></listitem> |
396 <listitem><para> | |
397 <literal>phases</literal> - the image to be used for the | |
398 different phases of the hpotmeter. A special value of <literal>NULL</literal> | |
399 can be used if you want no such image. The image must be divided into | |
400 <literal>numphases</literal> parts vertically like this: | |
401 <informalfigure><screen> | |
9675 | 402 +------------+ |
403 | phase #1 | | |
404 +------------+ | |
405 | phase #2 | | |
406 +------------+ | |
407 ... | |
408 +------------+ | |
409 | phase #n | | |
21521 | 410 +------------+<!-- |
411 --></screen></informalfigure> | |
412 </para></listitem> | |
413 <listitem><para> | |
414 <literal>numphases</literal> - number of phases stored in the | |
9675 | 415 <literal>phases</literal> image |
21521 | 416 </para></listitem> |
417 <listitem><para> | |
418 <literal>default</literal> - default value for hpotmeter | |
9675 | 419 (in the range <literal>0</literal> to <literal>100</literal>) |
21521 | 420 </para></listitem> |
421 <listitem><para> | |
422 <literal>X</literal>, <literal>Y</literal> - position for the hpotmeter | |
423 </para></listitem> | |
424 <listitem><para> | |
425 <literal>width</literal>, <literal>height</literal> - width and height | |
9675 | 426 of the <literal>hpotmeter</literal> |
21521 | 427 </para></listitem> |
428 <listitem><para> | |
429 <literal>message</literal> - the message to be generated when the | |
9675 | 430 value of <literal>hpotmeter</literal> is changed |
21521 | 431 </para></listitem> |
432 </itemizedlist> | |
433 </para></listitem> | |
9675 | 434 </varlistentry> |
435 | |
436 <varlistentry> | |
437 <term><literal> | |
438 <anchor id="skin-potmeter"/>potmeter = phases, numphases, default, X, Y, width, height, message | |
439 </literal></term> | |
440 <listitem><para> | |
21521 | 441 A <literal>hpotmeter</literal> without a button. (I guess it is meant to be |
442 turned around, but it reacts to horizontal dragging only.) For the description | |
443 of the parameters see <link linkend="skin-hpotmeter">hpotmeter</link>. | |
444 <literal>phases</literal> can be <literal>NULL</literal>, but it is quite | |
445 useless, since you cannot see where the <literal>potmeter</literal> is set. | |
446 </para></listitem> | |
9675 | 447 </varlistentry> |
448 | |
449 <varlistentry> | |
450 <term><literal> | |
32740 | 451 <anchor id="skin-font"/>font = fontfile |
9675 | 452 </literal></term> |
453 <listitem><para> | |
21521 | 454 Defines a font. <literal>fontfile</literal> is the name of a font description |
455 file with a <filename>.fnt</filename> extension (do not specify the extension | |
32740 | 456 here) and is used to refer to the font |
21521 | 457 (see <link linkend="skin-dlabel">dlabel</link> |
458 and <link linkend="skin-slabel">slabel</link>). Up to 25 fonts can be defined. | |
459 </para></listitem> | |
9675 | 460 </varlistentry> |
461 | |
462 <varlistentry> | |
463 <term><literal> | |
32740 | 464 <anchor id="skin-slabel"/>slabel = X, Y, fontfile, "text" |
9675 | 465 </literal></term> |
466 <listitem><para> | |
21521 | 467 Place a static label at the position <literal>X,Y</literal>. |
468 <literal>text</literal> is displayed using the font identified by | |
32740 | 469 <literal>fontfile</literal>. The text is just a raw string |
21521 | 470 (<literal>$x</literal> variables do not work) that must be enclosed between |
21596 | 471 double quotes (but the " character cannot be part of the text). The |
32740 | 472 label is displayed using the font identified by <literal>fontfile</literal>. |
21521 | 473 </para></listitem> |
9675 | 474 </varlistentry> |
475 | |
476 <varlistentry> | |
477 <term><literal> | |
32910 | 478 <anchor id="skin-dlabel"/>dlabel = X, Y, width, align, fontfile, "text" |
9675 | 479 </literal></term> |
480 <listitem> | |
21521 | 481 <para> |
482 Place a dynamic label at the position <literal>X,Y</literal>. The label is | |
32910 | 483 called dynamic because its text is refreshed periodically. The maximum width |
484 of the label is given by <literal>width</literal> (its height is the height | |
21521 | 485 of a character). If the text to be displayed is wider than that, it will be |
486 scrolled, | |
487 otherwise it is aligned within the specified space by the value of the | |
488 <literal>align</literal> parameter: <literal>0</literal> is for right, | |
489 <literal>1</literal> is for center, <literal>2</literal> is for left. | |
490 </para> | |
491 <para> | |
492 The text to be displayed is given by <literal>text</literal>: It must be | |
21596 | 493 written between double quotes (but the " character cannot be part of the |
21521 | 494 text). The label is displayed using the font identified by |
32740 | 495 <literal>fontfile</literal>. You can use the following variables in the text: |
21521 | 496 </para> |
9675 | 497 |
21521 | 498 <informaltable> |
499 <tgroup cols="2"> | |
500 <thead> | |
30990 | 501 <row><entry>Variable</entry><entry>Meaning</entry></row> |
21521 | 502 </thead> |
503 <tbody> | |
504 <row> | |
505 <entry>$1</entry> | |
506 <entry>play time in <emphasis>hh:mm:ss</emphasis> format</entry> | |
507 </row> | |
508 <row> | |
30990 | 509 <entry>$2</entry> |
510 <entry>play time in <emphasis>mmmm:ss</emphasis> format</entry> | |
21521 | 511 </row> |
512 <row> | |
30990 | 513 <entry>$3</entry> |
514 <entry>play time in <emphasis>hh</emphasis> format (hours)</entry> | |
21521 | 515 </row> |
516 <row> | |
30990 | 517 <entry>$4</entry> |
518 <entry>play time in <emphasis>mm</emphasis> format (minutes)</entry> | |
21521 | 519 </row> |
520 <row> | |
30990 | 521 <entry>$5</entry> |
522 <entry>play time in <emphasis>ss</emphasis> format (seconds)</entry> | |
21521 | 523 </row> |
524 <row> | |
30990 | 525 <entry>$6</entry> |
526 <entry>movie length in <emphasis>hh:mm:ss</emphasis> format</entry> | |
21521 | 527 </row> |
528 <row> | |
30990 | 529 <entry>$7</entry> |
530 <entry>movie length in <emphasis>mmmm:ss</emphasis> format</entry> | |
21521 | 531 </row> |
532 <row> | |
30990 | 533 <entry>$8</entry> |
534 <entry>play time in <emphasis>h:mm:ss</emphasis> format</entry> | |
21521 | 535 </row> |
536 <row> | |
30990 | 537 <entry>$v</entry> |
538 <entry>volume in <emphasis>xxx.xx</emphasis>% format</entry> | |
21521 | 539 </row> |
540 <row> | |
30990 | 541 <entry>$V</entry> |
542 <entry>volume in <emphasis>xxx.xx</emphasis> format</entry> | |
21521 | 543 </row> |
544 <row> | |
30990 | 545 <entry>$b</entry> |
546 <entry>balance in <emphasis>xxx.xx</emphasis>% format</entry> | |
21521 | 547 </row> |
548 <row> | |
30990 | 549 <entry>$B</entry> |
550 <entry>balance in <emphasis>xxx.xx</emphasis> format</entry> | |
21521 | 551 </row> |
552 <row> | |
30990 | 553 <entry>$$</entry> |
554 <entry>the $ character</entry> | |
21521 | 555 </row> |
556 <row> | |
30990 | 557 <entry>$a</entry> |
558 <entry>a character according to the audio type (none: <literal>n</literal>, | |
559 mono: <literal>m</literal>, stereo: <literal>t</literal>)</entry> | |
21521 | 560 </row> |
561 <row> | |
30990 | 562 <entry>$t</entry> |
563 <entry>track number (in playlist)</entry> | |
21521 | 564 </row> |
565 <row> | |
30990 | 566 <entry>$o</entry> |
567 <entry>filename</entry> | |
21521 | 568 </row> |
569 <row> | |
30990 | 570 <entry>$f</entry> |
571 <entry>filename in lower case</entry> | |
21521 | 572 </row> |
573 <row> | |
30990 | 574 <entry>$F</entry> |
575 <entry>filename in upper case</entry> | |
21521 | 576 </row> |
577 <row> | |
30990 | 578 <entry>$T</entry> |
579 <entry> | |
580 a character according to the stream type (file: <literal>f</literal>, | |
581 Video CD: <literal>v</literal>, DVD: <literal>d</literal>, | |
582 URL: <literal>u</literal>) | |
583 </entry> | |
21521 | 584 </row> |
585 <row> | |
30990 | 586 <entry>$p</entry> |
21521 | 587 <entry>the <keycap>p</keycap> character (if a movie is playing and the font |
588 has the <keycap>p</keycap> character)</entry> | |
589 </row> | |
590 <row> | |
591 <entry>$s</entry> | |
592 <entry>the <keycap>s</keycap> character (if the movie is stopped and the | |
593 font has the <keycap>s</keycap> character)</entry> | |
594 </row> | |
595 <row> | |
596 <entry>$e</entry> | |
597 <entry>the <keycap>e</keycap> character (if playback is paused and the font | |
598 has the <keycap>e</keycap> character)</entry> | |
599 </row> | |
600 <row> | |
601 <entry>$x</entry> | |
602 <entry>movie width</entry> | |
603 </row> | |
604 <row> | |
605 <entry>$y</entry> | |
606 <entry>movie height</entry> | |
607 </row> | |
608 <row> | |
609 <entry>$C</entry> | |
610 <entry>name of the codec used</entry> | |
611 </row> | |
612 </tbody> | |
613 </tgroup> | |
614 </informaltable> | |
9675 | 615 |
21521 | 616 <note><para> |
617 The <literal>$a, $T, $p, $s</literal> and <literal>$e</literal> | |
618 variables all return characters that should be displayed as special symbols | |
619 (for example, <keycap>e</keycap> is for the pause symbol that usually looks | |
620 something like ||). You should have a font for normal characters and | |
621 a different font for symbols. See the section about | |
622 <link linkend="skin-fonts-symbols">symbols</link> for more information. | |
623 </para></note> | |
624 </listitem> | |
9675 | 625 </varlistentry> |
626 </variablelist> | |
21521 | 627 </sect2> |
9675 | 628 |
21521 | 629 <!-- ********** --> |
9675 | 630 |
631 <sect2 id="skin-file-subwindow"> | |
632 <title>Subwindow</title> | |
21521 | 633 |
9675 | 634 <para> |
635 The following entries can be used in the | |
636 '<literal>window = sub</literal>' . . . '<literal>end</literal>' block. | |
637 </para> | |
638 | |
639 <variablelist> | |
640 <varlistentry> | |
641 <term><literal> | |
642 <anchor id="skin-sub-base"/>base = image, X, Y, width, height | |
643 </literal></term> | |
644 <listitem><para> | |
21521 | 645 The image to be displayed in the window. The window will appear at the given |
646 <literal>X,Y</literal> position on the screen (<literal>0,0</literal> is the | |
647 top left corner). You can specify <literal>-1</literal> for center and | |
648 <literal>-2</literal> for right (<literal>X</literal>) and bottom | |
649 (<literal>Y</literal>). The window will be as large as the image. | |
650 <literal>width</literal> and <literal>height</literal> | |
651 denote the size of the window; they are optional (if they are missing, the | |
652 window is the same size as the image). | |
653 </para></listitem> | |
9675 | 654 </varlistentry> |
655 | |
656 <varlistentry> | |
657 <term><literal> | |
658 <anchor id="skin-background"/>background = R, G, B | |
659 </literal></term> | |
660 <listitem><para> | |
21521 | 661 Lets you set the background color. It is useful if the image is smaller than |
662 the window. <literal>R</literal>, <literal>G</literal> and | |
663 <literal>B</literal> specifies the red, green and blue component of the color | |
664 (each of them is a decimal number from 0 to 255). | |
665 </para></listitem> | |
9675 | 666 </varlistentry> |
667 </variablelist> | |
668 </sect2> | |
669 | |
21521 | 670 <!-- ********** --> |
671 | |
9675 | 672 <sect2 id="skin-file-menu"> |
673 <title>Skin menu</title> | |
21521 | 674 |
9675 | 675 <para> |
676 As mentioned earlier, the menu is displayed using two images. Normal menu | |
677 entries are taken from the image specified by the <literal>base</literal> item, | |
678 while the currently selected entry is taken from the image specified by the | |
679 <literal>selected</literal> item. You must define the position and size of each | |
680 menu entry through the menu item. | |
681 </para> | |
682 | |
683 <para> | |
684 The following entries can be used in the | |
685 '<literal>window = menu</literal>'. . .'<literal>end</literal>' block. | |
686 </para> | |
687 | |
688 <variablelist> | |
689 <varlistentry> | |
690 <term><literal> | |
691 <anchor id="skin-menu-base"/>base = image | |
692 </literal></term> | |
693 <listitem><para> | |
21521 | 694 The image for normal menu entries. |
695 </para></listitem> | |
9675 | 696 </varlistentry> |
697 | |
698 <varlistentry> | |
699 <term><literal> | |
700 <anchor id="skin-selected"/>selected = image | |
701 </literal></term> | |
702 <listitem><para> | |
21521 | 703 The image showing the menu with all entries selected. |
704 </para></listitem> | |
9675 | 705 </varlistentry> |
706 | |
707 <varlistentry> | |
708 <term><literal> | |
709 <anchor id="skin-menu"/>menu = X, Y, width, height, message | |
710 </literal></term> | |
711 <listitem><para> | |
21521 | 712 Defines the <literal>X,Y</literal> position and the size of a menu entry in |
713 the image. <literal>message</literal> is the message to be generated when the | |
714 mouse button is released over the entry. | |
715 </para></listitem> | |
9675 | 716 </varlistentry> |
717 </variablelist> | |
718 </sect2> | |
719 </sect1> | |
720 | |
21521 | 721 |
722 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> | |
723 | |
724 | |
9675 | 725 <sect1 id="skin-fonts"> |
726 <title>Fonts</title> | |
727 <para> | |
728 As mentioned in the section about the parts of a skin, a font is defined by an | |
21521 | 729 image and a description file. You can place the characters anywhere in the |
730 image, but make sure that their position and size is given in the description | |
731 file exactly. | |
9675 | 732 </para> |
733 | |
734 <para> | |
735 The font description file (with <filename>.fnt</filename> extension) can have | |
736 comment lines starting with '<literal>;</literal>'. The file must have a line | |
737 in the form | |
738 <anchor id="skin-font-image"/> | |
739 <programlisting>image = <replaceable>image</replaceable></programlisting> | |
740 Where <literal><replaceable>image</replaceable></literal> is the name of the | |
741 image file to be used for the font (you do not have to specify the extension). | |
742 <anchor id="skin-font-char"/> | |
21596 | 743 <programlisting>"char" = X, Y, width, height</programlisting> |
9675 | 744 Here <literal>X</literal> and <literal>Y</literal> specify the position of the |
745 <literal>char</literal> character in the image (<literal>0,0</literal> is the | |
746 upper left corner). <literal>width</literal> and <literal>height</literal> are | |
32734
cc58a1e919d9
Allow character in the font description file to be in UTF-8.
ib
parents:
30990
diff
changeset
|
747 the dimensions of the character in pixels. The character may be in UTF-8 |
cc58a1e919d9
Allow character in the font description file to be in UTF-8.
ib
parents:
30990
diff
changeset
|
748 encoding. |
9675 | 749 </para> |
750 | |
751 <para> | |
752 This example defines the A, B, C characters using <filename>font.png</filename>. | |
753 <programlisting> | |
21596 | 754 ; Can be "font" instead of "font.png". |
9675 | 755 image = font.png |
756 | |
757 ; Three characters are enough for demonstration purposes :-) | |
21596 | 758 "A" = 0,0, 7,13 |
759 "B" = 7,0, 7,13 | |
760 "C" = 14,0, 7,13 | |
9675 | 761 </programlisting> |
762 </para> | |
763 | |
21521 | 764 <!-- ********** --> |
765 | |
9675 | 766 <sect2 id="skin-fonts-symbols"> |
767 <title>Symbols</title> | |
21521 | 768 |
9675 | 769 <para> |
770 Some characters have special meanings when returned by some of the variables | |
771 used in <link linkend="skin-dlabel">dlabel</link>. These characters are meant | |
772 to be shown as symbols so that things like a nice DVD logo can be displayed | |
773 instead of the character '<literal>d</literal>' for a DVD stream. | |
774 </para> | |
21521 | 775 |
9675 | 776 <para> |
777 The following table lists all the characters that can be used to display | |
778 symbols (and thus require a different font). | |
779 </para> | |
780 | |
781 <informaltable> | |
782 <tgroup cols="2"> | |
783 <thead> | |
784 <row><entry>Character</entry><entry>Symbol</entry></row> | |
785 </thead> | |
786 <tbody> | |
21521 | 787 <row><entry><keycap>p</keycap></entry><entry>play</entry></row> |
788 <row><entry><keycap>s</keycap></entry><entry>stop</entry></row> | |
789 <row><entry><keycap>e</keycap></entry><entry>pause</entry></row> | |
790 <row><entry><keycap>n</keycap></entry><entry>no sound</entry></row> | |
791 <row><entry><keycap>m</keycap></entry><entry>mono sound</entry></row> | |
792 <row><entry><keycap>t</keycap></entry><entry>stereo sound</entry></row> | |
793 <row><entry><keycap>f</keycap></entry><entry>stream is a file</entry></row> | |
794 <row><entry><keycap>v</keycap></entry><entry>stream is a Video CD</entry></row> | |
795 <row><entry><keycap>d</keycap></entry><entry>stream is a DVD</entry></row> | |
796 <row><entry><keycap>u</keycap></entry><entry>stream is a URL</entry></row> | |
9675 | 797 </tbody> |
798 </tgroup> | |
799 </informaltable> | |
800 </sect2> | |
801 </sect1> | |
802 | |
21521 | 803 |
804 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> | |
805 | |
806 | |
9675 | 807 <sect1 id="skin-gui"> |
808 <title>GUI messages</title> | |
21521 | 809 |
9675 | 810 <para> |
811 These are the messages that can be generated by buttons, potmeters and | |
812 menu entries. | |
813 </para> | |
814 | |
815 <variablelist> | |
816 <title>Playback control:</title> | |
817 <varlistentry> | |
818 <term><emphasis role="bold">evNext</emphasis></term> | |
819 <listitem><para> | |
21521 | 820 Jump to next track in the playlist. |
821 </para></listitem> | |
9675 | 822 </varlistentry> |
823 | |
824 <varlistentry> | |
825 <term><emphasis role="bold">evPause</emphasis></term> | |
826 <listitem><para> | |
21521 | 827 Forms a switch together with <literal>evPlaySwitchToPause</literal>. They can |
828 be used to have a common play/pause button. Both messages should be assigned | |
829 to buttons displayed at the very same position in the window. This message | |
830 pauses playing and the image for the <literal>evPlaySwitchToPause</literal> | |
831 button is displayed (to indicate that the button can be pressed to continue | |
832 playing). | |
833 </para></listitem> | |
9675 | 834 </varlistentry> |
835 | |
836 <varlistentry> | |
837 <term><emphasis role="bold">evPlay</emphasis></term> | |
838 <listitem><para> | |
21521 | 839 Start playing. |
840 </para></listitem> | |
9675 | 841 </varlistentry> |
842 | |
843 <varlistentry> | |
844 <term><emphasis role="bold">evPlaySwitchToPause</emphasis></term> | |
845 <listitem><para> | |
21521 | 846 The opposite of <literal>evPauseSwitchToPlay</literal>. This message starts |
847 playing and the image for the <literal>evPauseSwitchToPlay</literal> button | |
848 is displayed (to indicate that the button can be pressed to pause playing). | |
849 </para></listitem> | |
9675 | 850 </varlistentry> |
851 | |
852 <varlistentry> | |
853 <term><emphasis role="bold">evPrev</emphasis></term> | |
854 <listitem><para> | |
21521 | 855 Jump to previous track in the playlist. |
856 </para></listitem> | |
9675 | 857 </varlistentry> |
858 | |
859 <varlistentry> | |
860 <term><emphasis role="bold">evStop</emphasis></term> | |
861 <listitem><para> | |
21521 | 862 Stop playing. |
863 </para></listitem> | |
9675 | 864 </varlistentry> |
865 </variablelist> | |
866 | |
867 <variablelist> | |
868 <title>Seeking:</title> | |
869 <varlistentry> | |
870 <term><emphasis role="bold">evBackward10sec</emphasis></term> | |
871 <listitem><para> | |
21521 | 872 Seek backward 10 seconds. |
873 </para></listitem> | |
9675 | 874 </varlistentry> |
875 | |
876 <varlistentry> | |
877 <term><emphasis role="bold">evBackward1min</emphasis></term> | |
878 <listitem><para> | |
21521 | 879 Seek backward 1 minute. |
880 </para></listitem> | |
9675 | 881 </varlistentry> |
882 | |
883 <varlistentry> | |
884 <term><emphasis role="bold">evBackward10min</emphasis></term> | |
885 <listitem><para> | |
21521 | 886 Seek backward 10 minutes. |
887 </para></listitem> | |
9675 | 888 </varlistentry> |
889 | |
890 <varlistentry> | |
891 <term><emphasis role="bold">evForward10sec</emphasis></term> | |
892 <listitem><para> | |
21521 | 893 Seek forward 10 seconds. |
894 </para></listitem> | |
9675 | 895 </varlistentry> |
896 | |
897 <varlistentry> | |
898 <term><emphasis role="bold">evForward1min</emphasis></term> | |
899 <listitem><para> | |
21521 | 900 Seek forward 1 minute. |
901 </para></listitem> | |
9675 | 902 </varlistentry> |
903 | |
904 <varlistentry> | |
905 <term><emphasis role="bold">evForward10min</emphasis></term> | |
906 <listitem><para> | |
21521 | 907 Seek forward 10 minutes. |
908 </para></listitem> | |
9675 | 909 </varlistentry> |
910 | |
911 <varlistentry> | |
912 <term><emphasis role="bold">evSetMoviePosition</emphasis></term> | |
913 <listitem><para> | |
21521 | 914 Seek to position (can be used by a potmeter; the |
915 relative value (0-100%) of the potmeter is used). | |
916 </para></listitem> | |
9675 | 917 </varlistentry> |
918 </variablelist> | |
919 | |
920 <variablelist> | |
921 <title>Video control:</title> | |
922 <varlistentry> | |
14589 | 923 <term><emphasis role="bold">evHalfSize</emphasis></term> |
924 <listitem><para> | |
21521 | 925 Set the movie window to half size. |
926 </para></listitem> | |
14589 | 927 </varlistentry> |
928 <varlistentry> | |
9675 | 929 <term><emphasis role="bold">evDoubleSize</emphasis></term> |
930 <listitem><para> | |
21521 | 931 Set the movie window to double size. |
932 </para></listitem> | |
9675 | 933 </varlistentry> |
934 <varlistentry> | |
935 <term><emphasis role="bold">evFullScreen</emphasis></term> | |
936 <listitem><para> | |
21521 | 937 Switch fullscreen mode on/off. |
938 </para></listitem> | |
9675 | 939 </varlistentry> |
940 <varlistentry> | |
941 <term><emphasis role="bold">evNormalSize</emphasis></term> | |
942 <listitem><para> | |
21521 | 943 Set the movie window to its normal size. |
944 </para></listitem> | |
9675 | 945 </varlistentry> |
946 </variablelist> | |
947 | |
948 <variablelist> | |
949 <title>Audio control:</title> | |
950 <varlistentry> | |
951 <term><emphasis role="bold">evDecAudioBufDelay</emphasis></term> | |
952 <listitem><para> | |
21521 | 953 Decrease audio buffer delay. |
954 </para></listitem> | |
9675 | 955 </varlistentry> |
956 | |
957 <varlistentry> | |
958 <term><emphasis role="bold">evDecBalance</emphasis></term> | |
959 <listitem><para> | |
21521 | 960 Decrease balance. |
961 </para></listitem> | |
9675 | 962 </varlistentry> |
963 | |
964 <varlistentry> | |
965 <term><emphasis role="bold">evDecVolume</emphasis></term> | |
966 <listitem><para> | |
21521 | 967 Decrease volume. |
968 </para></listitem> | |
9675 | 969 </varlistentry> |
970 | |
971 <varlistentry> | |
972 <term><emphasis role="bold">evIncAudioBufDelay</emphasis></term> | |
973 <listitem><para> | |
21521 | 974 Increase audio buffer delay. |
975 </para></listitem> | |
9675 | 976 </varlistentry> |
977 | |
978 <varlistentry> | |
979 <term><emphasis role="bold">evIncBalance</emphasis></term> | |
980 <listitem><para> | |
21521 | 981 Increase balance. |
982 </para></listitem> | |
9675 | 983 </varlistentry> |
984 | |
985 <varlistentry> | |
986 <term><emphasis role="bold">evIncVolume</emphasis></term> | |
987 <listitem><para> | |
21521 | 988 Increase volume. |
989 </para></listitem> | |
9675 | 990 </varlistentry> |
991 | |
992 <varlistentry> | |
993 <term><emphasis role="bold">evMute</emphasis></term> | |
994 <listitem><para> | |
21521 | 995 Mute/unmute the sound. |
996 </para></listitem> | |
9675 | 997 </varlistentry> |
998 | |
999 <varlistentry> | |
1000 <term><emphasis role="bold">evSetBalance</emphasis></term> | |
1001 <listitem><para> | |
21521 | 1002 Set balance (can be used by a potmeter; the |
1003 relative value (0-100%) of the potmeter is used). | |
1004 </para></listitem> | |
9675 | 1005 </varlistentry> |
1006 | |
1007 <varlistentry> | |
1008 <term><emphasis role="bold">evSetVolume</emphasis></term> | |
1009 <listitem><para> | |
21521 | 1010 Set volume (can be used by a potmeter; the relative |
1011 value (0-100%) of the potmeter is used). | |
1012 </para></listitem> | |
9675 | 1013 </varlistentry> |
1014 </variablelist> | |
1015 | |
1016 <variablelist> | |
1017 <title>Miscellaneous:</title> | |
1018 <varlistentry> | |
1019 <term><emphasis role="bold">evAbout</emphasis></term> | |
1020 <listitem><para> | |
21521 | 1021 Open the about window. |
1022 </para></listitem> | |
9675 | 1023 </varlistentry> |
1024 | |
1025 <varlistentry> | |
1026 <term><emphasis role="bold">evDropSubtitle</emphasis></term> | |
1027 <listitem><para> | |
21521 | 1028 Disables the currently used subtitle. |
1029 </para></listitem> | |
9675 | 1030 </varlistentry> |
1031 | |
1032 <varlistentry> | |
1033 <term><emphasis role="bold">evEqualizer</emphasis></term> | |
1034 <listitem><para> | |
21521 | 1035 Turn the equalizer on/off. |
1036 </para></listitem> | |
9675 | 1037 </varlistentry> |
1038 | |
1039 <varlistentry> | |
1040 <term><emphasis role="bold">evExit</emphasis></term> | |
1041 <listitem><para> | |
21521 | 1042 Quit the program. |
1043 </para></listitem> | |
9675 | 1044 </varlistentry> |
1045 | |
1046 <varlistentry> | |
1047 <term><emphasis role="bold">evIconify</emphasis></term> | |
1048 <listitem><para> | |
21521 | 1049 Iconify the window. |
1050 </para></listitem> | |
9675 | 1051 </varlistentry> |
1052 | |
1053 <varlistentry> | |
1054 <term><emphasis role="bold">evLoad</emphasis></term> | |
1055 <listitem><para> | |
21521 | 1056 Load a file (by opening a file browser window, where you can choose a file). |
1057 </para></listitem> | |
9675 | 1058 </varlistentry> |
1059 | |
1060 <varlistentry> | |
1061 <term><emphasis role="bold">evLoadPlay</emphasis></term> | |
1062 <listitem><para> | |
21521 | 1063 Does the same as <literal>evLoad</literal>, but it automatically starts |
1064 playing after the file is loaded. | |
1065 </para></listitem> | |
9675 | 1066 </varlistentry> |
1067 | |
1068 <varlistentry> | |
1069 <term><emphasis role="bold">evLoadSubtitle</emphasis></term> | |
1070 <listitem><para> | |
26958 | 1071 Loads a subtitle file (with the file selector). |
21521 | 1072 </para></listitem> |
9675 | 1073 </varlistentry> |
1074 | |
1075 <varlistentry> | |
1076 <term><emphasis role="bold">evLoadAudioFile</emphasis></term> | |
1077 <listitem><para> | |
26958 | 1078 Loads an audio file (with the file selector). |
21521 | 1079 </para></listitem> |
9675 | 1080 </varlistentry> |
1081 | |
1082 <varlistentry> | |
1083 <term><emphasis role="bold">evNone</emphasis></term> | |
1084 <listitem><para> | |
21521 | 1085 Empty message, it has no effect (except maybe in Subversion versions :-)). |
1086 </para></listitem> | |
9675 | 1087 </varlistentry> |
1088 | |
1089 <varlistentry> | |
13752
e193600132d5
Important typo noticed by Piero di Vita <scognito at libero dot it>
diego
parents:
12815
diff
changeset
|
1090 <term><emphasis role="bold">evPlaylist</emphasis></term> |
9675 | 1091 <listitem><para> |
21521 | 1092 Open/close the playlist window. |
1093 </para></listitem> | |
9675 | 1094 </varlistentry> |
1095 | |
1096 <varlistentry> | |
1097 <term><emphasis role="bold">evPlayDVD</emphasis></term> | |
1098 <listitem><para> | |
21521 | 1099 Tries to open the disc in the given DVD-ROM drive. |
1100 </para></listitem> | |
9675 | 1101 </varlistentry> |
1102 | |
1103 <varlistentry> | |
1104 <term><emphasis role="bold">evPlayVCD</emphasis></term> | |
1105 <listitem><para> | |
21521 | 1106 Tries to open the disc in the given CD-ROM drive. |
1107 </para></listitem> | |
9675 | 1108 </varlistentry> |
1109 | |
1110 <varlistentry> | |
1111 <term><emphasis role="bold">evPreferences</emphasis></term> | |
1112 <listitem><para> | |
21521 | 1113 Open the preferences window. |
1114 </para></listitem> | |
9675 | 1115 </varlistentry> |
1116 | |
1117 <varlistentry> | |
1118 <term><emphasis role="bold">evSetAspect</emphasis></term> | |
1119 <listitem><para> | |
21521 | 1120 Sets displayed image aspect. |
1121 </para></listitem> | |
9675 | 1122 </varlistentry> |
1123 | |
1124 <varlistentry> | |
1125 <term><emphasis role="bold">evSetURL</emphasis></term> | |
1126 <listitem><para> | |
21521 | 1127 Displays the URL dialog window. |
1128 </para></listitem> | |
9675 | 1129 </varlistentry> |
1130 | |
1131 <varlistentry> | |
1132 <term><emphasis role="bold">evSkinBrowser</emphasis></term> | |
1133 <listitem><para> | |
21521 | 1134 Open the skin browser window. |
1135 </para></listitem> | |
9675 | 1136 </varlistentry> |
1137 </variablelist> | |
21521 | 1138 </sect1> |
9675 | 1139 |
21521 | 1140 |
1141 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> | |
1142 | |
9675 | 1143 |
17276 | 1144 <sect1 id="skin-quality"> |
1145 <title>Creating quality skins</title> | |
1146 | |
1147 <para> | |
1148 So you have read up on creating skins for the | |
1149 <application>MPlayer</application> GUI, done your best with the | |
1150 <application>Gimp</application> and wish to submit your skin to us? | |
1151 Read on for some guidelines to avoid common mistakes and produce | |
1152 a high quality skin. | |
1153 </para> | |
1154 | |
1155 <para> | |
1156 We want skins that we add to our repository to conform to certain | |
1157 quality standards. There are also a number of things that you can do | |
1158 to make our lives easier. | |
1159 </para> | |
1160 | |
1161 <para> | |
1162 As an example you can look at the <systemitem>Blue</systemitem> skin, | |
1163 it satisfies all the criteria listed below since version 1.5. | |
1164 </para> | |
1165 | |
1166 <itemizedlist> | |
21521 | 1167 <listitem><para> |
1168 Each skin should come with a | |
17276 | 1169 <filename>README</filename> file that contains information about |
1170 you, the author, copyright and license notices and anything else | |
1171 you wish to add. If you wish to have a changelog, this file is a | |
21521 | 1172 good place. |
1173 </para></listitem> | |
17276 | 1174 |
21521 | 1175 <listitem><para> |
1176 There should be a file <filename>VERSION</filename> | |
17276 | 1177 with nothing more than the version number of the skin on a single |
21521 | 1178 line (e.g. 1.0). |
1179 </para></listitem> | |
17276 | 1180 |
21521 | 1181 <listitem><para> |
1182 Horizontal and vertical controls (sliders like volume | |
17276 | 1183 or position) should have the center of the knob properly centered on |
1184 the middle of the slider. It should be possible to move the knob to | |
21521 | 1185 both ends of the slider, but not past it. |
1186 </para></listitem> | |
17276 | 1187 |
21521 | 1188 <listitem><para> |
1189 Skin elements should have the right sizes declared | |
17276 | 1190 in the skin file. If this is not the case you can click outside of |
1191 e.g. a button and still trigger it or click inside its area and not | |
21521 | 1192 trigger it. |
1193 </para></listitem> | |
17276 | 1194 |
21521 | 1195 <listitem><para> |
1196 The <filename>skin</filename> file should be | |
17276 | 1197 prettyprinted and not contain tabs. Prettyprinted means that the |
21521 | 1198 numbers should line up neatly in columns. |
1199 </para></listitem> | |
17276 | 1200 </itemizedlist> |
1201 | |
1202 </sect1> | |
9675 | 1203 </appendix> |