Mercurial > mplayer.hg
annotate DOCS/xml/en/skin.xml @ 36024:a9e5f317d6e4
Move gtkFindCList() to tools.c.
Additionally, rename it gtkFindInCList().
author | ib |
---|---|
date | Sun, 31 Mar 2013 18:30:30 +0000 |
parents | c9d3bf288d36 |
children | 28ea255e40ce |
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 |
34697 | 23 <link linkend="skin-file-subwindow">video window</link>, the |
9675 | 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> | |
34697 | 76 The <emphasis role="bold">video window</emphasis> is where the video appears. It |
9675 | 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> | |
34697 | 145 The image to be displayed in the video window (optional). |
9675 | 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; | |
33068 | 168 comments start with a '<literal>;</literal>' character and continue until |
33080 | 169 the end of the line, or start with a '<literal>#</literal>' character at the |
170 beginning of the line (in that case only spaces and tabs are allowed before the | |
171 '<literal>#</literal>'). | |
9675 | 172 </para> |
173 | |
174 <para> | |
175 The file is made up of sections. Each section describes the skin for an | |
176 application and has the following form: | |
177 <programlisting> | |
178 section = <replaceable>section name</replaceable> | |
179 . | |
180 . | |
181 . | |
182 end | |
183 </programlisting> | |
184 </para> | |
185 | |
186 <para> | |
21521 | 187 Currently there is only one application, so you need only one section: its name |
188 is <emphasis role="bold">movieplayer</emphasis>. | |
10111 | 189 </para> |
190 | |
191 <para> | |
192 Within this section each window is described by a block of the following form: | |
193 <programlisting> | |
194 window = <replaceable>window name</replaceable> | |
195 . | |
196 . | |
197 . | |
198 end | |
199 </programlisting> | |
200 </para> | |
201 | |
202 <para> | |
9675 | 203 where <replaceable>window name</replaceable> can be one of these strings: |
204 <itemizedlist> | |
21521 | 205 <listitem><para> |
206 <emphasis role="bold">main</emphasis> - for the main window | |
207 </para></listitem> | |
208 <listitem><para> | |
34697 | 209 <emphasis role="bold">video</emphasis> - for the video window |
21521 | 210 </para></listitem> |
211 <listitem><para> | |
32872 | 212 <emphasis role="bold">playbar</emphasis> - for the playbar |
21521 | 213 </para></listitem> |
214 <listitem><para> | |
32872 | 215 <emphasis role="bold">menu</emphasis> - for the skin menu |
21521 | 216 </para></listitem> |
9675 | 217 </itemizedlist> |
218 </para> | |
219 | |
220 <para> | |
34697 | 221 (The video, playbar and menu blocks are optional - you do not need to decorate |
222 the video window, have a playbar or create a menu. A default menu is always | |
32872 | 223 available by a right mouse button click.) |
9675 | 224 </para> |
225 | |
226 <para> | |
227 Within a window block, you can define each item for the window by a line in | |
228 this form: | |
229 <programlisting>item = parameter</programlisting> | |
230 Where <literal>item</literal> is a string that identifies the type of the GUI | |
231 item, <literal>parameter</literal> is a numeric or textual value (or a list of | |
232 values separated by commas). | |
233 </para> | |
234 | |
235 <para> | |
236 Putting the above together, the whole file looks something like this: | |
237 <programlisting> | |
238 section = movieplayer | |
239 window = main | |
240 ; ... items for main window ... | |
241 end | |
242 | |
34697 | 243 window = video |
244 ; ... items for video window ... | |
9675 | 245 end |
12815 | 246 |
9675 | 247 window = menu |
248 ; ... items for menu ... | |
249 end | |
250 | |
251 window = playbar | |
252 ; ... items for playbar ... | |
253 end | |
254 end | |
255 </programlisting> | |
256 </para> | |
257 | |
258 <para> | |
259 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
|
260 are searched for in the <filename class="directory">skins</filename> directory. |
9675 | 261 You may (but you need not) specify the extension of the file. If the file does |
11540 | 262 not exist, <application>MPlayer</application> tries to load the file |
9675 | 263 <filename><filename>.<ext></filename>, where <literal>png</literal> |
264 and <literal>PNG</literal> are tried for <filename><ext></filename> | |
265 (in this order). The first matching file will be used. | |
266 </para> | |
267 | |
268 <para> | |
34697 | 269 Finally some words about positioning. The main window and the video window can be |
21521 | 270 placed in the different corners of the screen by giving <literal>X</literal> |
271 and <literal>Y</literal> coordinates. <literal>0</literal> is top or left, | |
9675 | 272 <literal>-1</literal> is center and <literal>-2</literal> is right or bottom, as |
273 shown in this illustration: | |
274 <informalfigure> | |
275 <screen> | |
276 (0, 0)----(-1, 0)----(-2, 0) | |
277 | | | | |
278 | | | | |
279 (0,-1)----(-1,-1)----(-2,-1) | |
280 | | | | |
281 | | | | |
282 (0,-2)----(-1,-2)----(-2,-2) | |
283 </screen> | |
284 </informalfigure> | |
285 </para> | |
286 | |
33174 | 287 <para> |
288 Here is an example to make this clear. Suppose that you have an image called | |
289 <filename>main.png</filename> that you use for the main window: | |
290 <programlisting>base = main, -1, -1</programlisting> | |
291 <application>MPlayer</application> tries to load <filename>main</filename>, | |
292 <filename>main.png</filename>, <filename>main.PNG</filename> files and centers it. | |
293 </para> | |
294 | |
21521 | 295 <!-- ********** --> |
9675 | 296 |
297 <sect2 id="skin-file-main"> | |
298 <title>Main window and playbar</title> | |
21521 | 299 |
9675 | 300 <para> |
301 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
|
302 '<literal>window = main</literal>' ... '<literal>end</literal>', |
d6ef9000aed5
removed for added consistency, we do not use them anywhere else.
diego
parents:
10913
diff
changeset
|
303 and the '<literal>window = playbar</literal>' ... '<literal>end</literal>' |
9675 | 304 blocks. |
305 </para> | |
306 | |
307 <variablelist> | |
308 <varlistentry> | |
309 <term><literal> | |
310 <anchor id="skin-main-base"/>base = image, X, Y | |
311 </literal></term> | |
21521 | 312 <listitem> |
313 <para> | |
314 Lets you specify the background image to be used for the main window. | |
315 The window will appear at the given <literal>X,Y</literal> position on | |
33210 | 316 the screen. It will have the size of the image. |
21521 | 317 </para> |
318 <warning><para>Transparent regions in the image (colored #FF00FF) appear black | |
319 on X servers without the XShape extension. The image's width must be dividable | |
320 by 8.</para></warning> | |
321 </listitem> | |
9675 | 322 </varlistentry> |
323 | |
324 <varlistentry> | |
325 <term><literal> | |
326 <anchor id="skin-button"/>button = image, X, Y, width, height, message | |
327 </literal></term> | |
21521 | 328 <listitem> |
329 <para> | |
330 Place a button of <literal>width</literal> * <literal>height</literal> size at | |
331 position <literal>X,Y</literal>. The specified <literal>message</literal> is | |
332 generated when the button is clicked. The image given by | |
333 <literal>image</literal> must have three parts below each other (according to | |
334 the possible states of the button), like this: | |
335 </para> | |
336 <informalfigure> | |
337 <screen> | |
9675 | 338 +------------+ |
339 | pressed | | |
340 +------------+ | |
341 | released | | |
342 +------------+ | |
343 | disabled | | |
21521 | 344 +------------+<!-- |
345 --></screen> | |
346 </informalfigure> | |
35787 | 347 <para> |
348 A special value of <literal>NULL</literal> can be used if you want no <literal>image</literal>. | |
349 </para> | |
9675 | 350 </listitem> |
351 </varlistentry> | |
352 | |
353 <varlistentry> | |
354 <term><literal> | |
355 <anchor id="skin-decoration"/>decoration = enable|disable | |
356 </literal></term> | |
21521 | 357 <listitem> |
358 <para> | |
359 Enable or disable window manager decoration of the main window. Default is | |
360 <emphasis role="bold">disable</emphasis>. | |
361 </para> | |
362 <note><para> | |
33176 | 363 This isn't available for the playbar. |
21521 | 364 </para></note> |
9675 | 365 </listitem> |
366 </varlistentry> | |
367 | |
368 <varlistentry> | |
369 <term><literal> | |
370 <anchor id="skin-hpotmeter"/>hpotmeter = button, bwidth, bheight, phases, numphases, default, X, Y, width, height, message | |
371 </literal></term> | |
372 <listitem><para> | |
21521 | 373 </para></listitem> |
9675 | 374 </varlistentry> |
375 | |
376 <varlistentry> | |
377 <term><literal> | |
378 <anchor id="skin-vpotmeter"/>vpotmeter = button, bwidth, bheight, phases, numphases, default, X, Y, width, height, message | |
379 </literal></term> | |
380 <listitem><para> | |
21521 | 381 Place a horizontal (hpotmeter) or vertical (vpotmeter) potmeter of |
382 <literal>width</literal> * <literal>height</literal> size at position | |
383 <literal>X,Y</literal>. The image can be divided into different parts for the | |
384 different phases of the potmeter (for example, you can have a pot for volume | |
385 control that turns from green to red while its value changes from the minimum | |
386 to the maximum.). <literal>hpotmeter</literal> can have a button that can be | |
387 dragged horizontally. The parameters are: | |
388 <itemizedlist> | |
389 <listitem><para> | |
390 <literal>button</literal> - the image to be used for the | |
9675 | 391 button (must have three parts below each other, like in case of |
35787 | 392 <link linkend="skin-button">button</link>). A special value of |
393 <literal>NULL</literal> can be used if you want no image. | |
21521 | 394 </para></listitem> |
395 <listitem><para> | |
396 <literal>bwidth</literal>, <literal>bheight</literal> - size | |
9675 | 397 of the button |
21521 | 398 </para></listitem> |
399 <listitem><para> | |
400 <literal>phases</literal> - the image to be used for the | |
401 different phases of the hpotmeter. A special value of <literal>NULL</literal> | |
402 can be used if you want no such image. The image must be divided into | |
403 <literal>numphases</literal> parts vertically like this: | |
404 <informalfigure><screen> | |
9675 | 405 +------------+ |
406 | phase #1 | | |
407 +------------+ | |
408 | phase #2 | | |
409 +------------+ | |
410 ... | |
411 +------------+ | |
412 | phase #n | | |
21521 | 413 +------------+<!-- |
414 --></screen></informalfigure> | |
415 </para></listitem> | |
416 <listitem><para> | |
417 <literal>numphases</literal> - number of phases stored in the | |
9675 | 418 <literal>phases</literal> image |
21521 | 419 </para></listitem> |
420 <listitem><para> | |
421 <literal>default</literal> - default value for hpotmeter | |
9675 | 422 (in the range <literal>0</literal> to <literal>100</literal>) |
21521 | 423 </para></listitem> |
424 <listitem><para> | |
425 <literal>X</literal>, <literal>Y</literal> - position for the hpotmeter | |
426 </para></listitem> | |
427 <listitem><para> | |
428 <literal>width</literal>, <literal>height</literal> - width and height | |
9675 | 429 of the <literal>hpotmeter</literal> |
21521 | 430 </para></listitem> |
431 <listitem><para> | |
432 <literal>message</literal> - the message to be generated when the | |
9675 | 433 value of <literal>hpotmeter</literal> is changed |
21521 | 434 </para></listitem> |
435 </itemizedlist> | |
436 </para></listitem> | |
9675 | 437 </varlistentry> |
438 | |
439 <varlistentry> | |
440 <term><literal> | |
441 <anchor id="skin-potmeter"/>potmeter = phases, numphases, default, X, Y, width, height, message | |
442 </literal></term> | |
443 <listitem><para> | |
21521 | 444 A <literal>hpotmeter</literal> without a button. (I guess it is meant to be |
445 turned around, but it reacts to horizontal dragging only.) For the description | |
446 of the parameters see <link linkend="skin-hpotmeter">hpotmeter</link>. | |
447 <literal>phases</literal> can be <literal>NULL</literal>, but it is quite | |
448 useless, since you cannot see where the <literal>potmeter</literal> is set. | |
449 </para></listitem> | |
9675 | 450 </varlistentry> |
451 | |
452 <varlistentry> | |
453 <term><literal> | |
32740 | 454 <anchor id="skin-font"/>font = fontfile |
9675 | 455 </literal></term> |
456 <listitem><para> | |
21521 | 457 Defines a font. <literal>fontfile</literal> is the name of a font description |
458 file with a <filename>.fnt</filename> extension (do not specify the extension | |
32740 | 459 here) and is used to refer to the font |
21521 | 460 (see <link linkend="skin-dlabel">dlabel</link> |
461 and <link linkend="skin-slabel">slabel</link>). Up to 25 fonts can be defined. | |
462 </para></listitem> | |
9675 | 463 </varlistentry> |
464 | |
465 <varlistentry> | |
466 <term><literal> | |
32740 | 467 <anchor id="skin-slabel"/>slabel = X, Y, fontfile, "text" |
9675 | 468 </literal></term> |
469 <listitem><para> | |
21521 | 470 Place a static label at the position <literal>X,Y</literal>. |
471 <literal>text</literal> is displayed using the font identified by | |
32740 | 472 <literal>fontfile</literal>. The text is just a raw string |
21521 | 473 (<literal>$x</literal> variables do not work) that must be enclosed between |
21596 | 474 double quotes (but the " character cannot be part of the text). The |
32740 | 475 label is displayed using the font identified by <literal>fontfile</literal>. |
21521 | 476 </para></listitem> |
9675 | 477 </varlistentry> |
478 | |
479 <varlistentry> | |
480 <term><literal> | |
32910 | 481 <anchor id="skin-dlabel"/>dlabel = X, Y, width, align, fontfile, "text" |
9675 | 482 </literal></term> |
483 <listitem> | |
21521 | 484 <para> |
485 Place a dynamic label at the position <literal>X,Y</literal>. The label is | |
32910 | 486 called dynamic because its text is refreshed periodically. The maximum width |
487 of the label is given by <literal>width</literal> (its height is the height | |
21521 | 488 of a character). If the text to be displayed is wider than that, it will be |
489 scrolled, | |
490 otherwise it is aligned within the specified space by the value of the | |
491 <literal>align</literal> parameter: <literal>0</literal> is for right, | |
492 <literal>1</literal> is for center, <literal>2</literal> is for left. | |
493 </para> | |
494 <para> | |
495 The text to be displayed is given by <literal>text</literal>: It must be | |
21596 | 496 written between double quotes (but the " character cannot be part of the |
21521 | 497 text). The label is displayed using the font identified by |
32740 | 498 <literal>fontfile</literal>. You can use the following variables in the text: |
21521 | 499 </para> |
9675 | 500 |
21521 | 501 <informaltable> |
502 <tgroup cols="2"> | |
503 <thead> | |
30990 | 504 <row><entry>Variable</entry><entry>Meaning</entry></row> |
21521 | 505 </thead> |
506 <tbody> | |
507 <row> | |
508 <entry>$1</entry> | |
33896 | 509 <entry>elapsed time in <emphasis>hh:mm:ss</emphasis> format</entry> |
21521 | 510 </row> |
511 <row> | |
30990 | 512 <entry>$2</entry> |
33896 | 513 <entry>elapsed time in <emphasis>mmmm:ss</emphasis> format</entry> |
21521 | 514 </row> |
515 <row> | |
30990 | 516 <entry>$3</entry> |
33896 | 517 <entry>elapsed time in <emphasis>hh</emphasis> format (hours)</entry> |
21521 | 518 </row> |
519 <row> | |
30990 | 520 <entry>$4</entry> |
33896 | 521 <entry>elapsed time in <emphasis>mm</emphasis> format (minutes)</entry> |
21521 | 522 </row> |
523 <row> | |
30990 | 524 <entry>$5</entry> |
33896 | 525 <entry>elapsed time in <emphasis>ss</emphasis> format (seconds)</entry> |
21521 | 526 </row> |
527 <row> | |
30990 | 528 <entry>$6</entry> |
33896 | 529 <entry>running time in <emphasis>hh:mm:ss</emphasis> format</entry> |
21521 | 530 </row> |
531 <row> | |
30990 | 532 <entry>$7</entry> |
33896 | 533 <entry>running time in <emphasis>mmmm:ss</emphasis> format</entry> |
21521 | 534 </row> |
535 <row> | |
30990 | 536 <entry>$8</entry> |
33896 | 537 <entry>elapsed time in <emphasis>h:mm:ss</emphasis> format</entry> |
21521 | 538 </row> |
539 <row> | |
30990 | 540 <entry>$v</entry> |
541 <entry>volume in <emphasis>xxx.xx</emphasis>% format</entry> | |
21521 | 542 </row> |
543 <row> | |
30990 | 544 <entry>$V</entry> |
545 <entry>volume in <emphasis>xxx.xx</emphasis> format</entry> | |
21521 | 546 </row> |
547 <row> | |
30990 | 548 <entry>$b</entry> |
549 <entry>balance in <emphasis>xxx.xx</emphasis>% format</entry> | |
21521 | 550 </row> |
551 <row> | |
30990 | 552 <entry>$B</entry> |
553 <entry>balance in <emphasis>xxx.xx</emphasis> format</entry> | |
21521 | 554 </row> |
555 <row> | |
30990 | 556 <entry>$$</entry> |
557 <entry>the $ character</entry> | |
21521 | 558 </row> |
559 <row> | |
30990 | 560 <entry>$a</entry> |
33177 | 561 <entry>a character according to the audio type (none: <keycap>n</keycap>, |
562 mono: <keycap>m</keycap>, stereo: <keycap>t</keycap>)</entry> | |
21521 | 563 </row> |
564 <row> | |
30990 | 565 <entry>$t</entry> |
34387 | 566 <entry>track number (DVD, VCD, CD or playlist)</entry> |
21521 | 567 </row> |
568 <row> | |
30990 | 569 <entry>$o</entry> |
570 <entry>filename</entry> | |
21521 | 571 </row> |
572 <row> | |
30990 | 573 <entry>$f</entry> |
574 <entry>filename in lower case</entry> | |
21521 | 575 </row> |
576 <row> | |
30990 | 577 <entry>$F</entry> |
578 <entry>filename in upper case</entry> | |
21521 | 579 </row> |
580 <row> | |
30990 | 581 <entry>$T</entry> |
582 <entry> | |
33177 | 583 a character according to the stream type (file: <keycap>f</keycap>, |
34387 | 584 CD: <keycap>a</keycap>, Video CD: <keycap>v</keycap>, DVD: <keycap>d</keycap>, |
33177 | 585 URL: <keycap>u</keycap>) |
30990 | 586 </entry> |
21521 | 587 </row> |
588 <row> | |
33616 | 589 <entry>$p</entry> |
33177 | 590 <entry>the <keycap>p</keycap> character (if a movie is playing)</entry> |
21521 | 591 </row> |
592 <row> | |
593 <entry>$s</entry> | |
33177 | 594 <entry>the <keycap>s</keycap> character (if the movie is stopped)</entry> |
21521 | 595 </row> |
596 <row> | |
597 <entry>$e</entry> | |
33177 | 598 <entry>the <keycap>e</keycap> character (if playback is paused)</entry> |
21521 | 599 </row> |
600 <row> | |
601 <entry>$x</entry> | |
33896 | 602 <entry>video width</entry> |
21521 | 603 </row> |
604 <row> | |
605 <entry>$y</entry> | |
33896 | 606 <entry>video height</entry> |
21521 | 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> |
33616 | 617 The <literal>$a, $T, $p, $s</literal> and <literal>$e</literal> |
21521 | 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"> | |
34697 | 632 <title>Video window</title> |
21521 | 633 |
9675 | 634 <para> |
635 The following entries can be used in the | |
34697 | 636 '<literal>window = video</literal>' . . . '<literal>end</literal>' block. |
9675 | 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> | |
33175 | 645 The image to be displayed in the window. The window will be as large as the image. |
21521 | 646 <literal>width</literal> and <literal>height</literal> |
647 denote the size of the window; they are optional (if they are missing, the | |
648 window is the same size as the image). | |
35787 | 649 A special value of <literal>NULL</literal> can be used if you want no image |
650 (in which case <literal>width</literal> and <literal>height</literal> are | |
651 mandatory). | |
33218
f0c2a62e3e89
Position windows initially at coordinates given in skin file.
ib
parents:
33210
diff
changeset
|
652 </para></listitem> |
9675 | 653 </varlistentry> |
654 | |
655 <varlistentry> | |
656 <term><literal> | |
657 <anchor id="skin-background"/>background = R, G, B | |
658 </literal></term> | |
659 <listitem><para> | |
21521 | 660 Lets you set the background color. It is useful if the image is smaller than |
661 the window. <literal>R</literal>, <literal>G</literal> and | |
662 <literal>B</literal> specifies the red, green and blue component of the color | |
663 (each of them is a decimal number from 0 to 255). | |
664 </para></listitem> | |
9675 | 665 </varlistentry> |
666 </variablelist> | |
667 </sect2> | |
668 | |
21521 | 669 <!-- ********** --> |
670 | |
9675 | 671 <sect2 id="skin-file-menu"> |
672 <title>Skin menu</title> | |
21521 | 673 |
9675 | 674 <para> |
675 As mentioned earlier, the menu is displayed using two images. Normal menu | |
676 entries are taken from the image specified by the <literal>base</literal> item, | |
677 while the currently selected entry is taken from the image specified by the | |
678 <literal>selected</literal> item. You must define the position and size of each | |
679 menu entry through the menu item. | |
680 </para> | |
681 | |
682 <para> | |
683 The following entries can be used in the | |
684 '<literal>window = menu</literal>'. . .'<literal>end</literal>' block. | |
685 </para> | |
686 | |
687 <variablelist> | |
688 <varlistentry> | |
689 <term><literal> | |
690 <anchor id="skin-menu-base"/>base = image | |
691 </literal></term> | |
692 <listitem><para> | |
21521 | 693 The image for normal menu entries. |
694 </para></listitem> | |
9675 | 695 </varlistentry> |
696 | |
697 <varlistentry> | |
698 <term><literal> | |
699 <anchor id="skin-selected"/>selected = image | |
700 </literal></term> | |
701 <listitem><para> | |
21521 | 702 The image showing the menu with all entries selected. |
703 </para></listitem> | |
9675 | 704 </varlistentry> |
705 | |
706 <varlistentry> | |
707 <term><literal> | |
708 <anchor id="skin-menu"/>menu = X, Y, width, height, message | |
709 </literal></term> | |
710 <listitem><para> | |
21521 | 711 Defines the <literal>X,Y</literal> position and the size of a menu entry in |
712 the image. <literal>message</literal> is the message to be generated when the | |
713 mouse button is released over the entry. | |
714 </para></listitem> | |
9675 | 715 </varlistentry> |
716 </variablelist> | |
717 </sect2> | |
718 </sect1> | |
719 | |
21521 | 720 |
721 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> | |
722 | |
723 | |
9675 | 724 <sect1 id="skin-fonts"> |
725 <title>Fonts</title> | |
726 <para> | |
727 As mentioned in the section about the parts of a skin, a font is defined by an | |
21521 | 728 image and a description file. You can place the characters anywhere in the |
729 image, but make sure that their position and size is given in the description | |
730 file exactly. | |
9675 | 731 </para> |
732 | |
733 <para> | |
734 The font description file (with <filename>.fnt</filename> extension) can have | |
33080 | 735 comments like the skin configuration file starting with '<literal>;</literal>' |
736 (or '<literal>#</literal>', but only at the beginning of the line). The file must have a line | |
9675 | 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 | |
33864
1b795ff832d6
Clarify the encoding to be used in the font description file.
ib
parents:
33616
diff
changeset
|
747 the dimensions of the character in pixels. The character <literal>char</literal> |
1b795ff832d6
Clarify the encoding to be used in the font description file.
ib
parents:
33616
diff
changeset
|
748 shall be in UTF-8 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> | |
34360 | 787 <row><entry><keycap>p</keycap></entry><entry>play</entry></row> |
21521 | 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> | |
34387 | 794 <row><entry><keycap>a</keycap></entry><entry>stream is a CD</entry></row> |
21521 | 795 <row><entry><keycap>v</keycap></entry><entry>stream is a Video CD</entry></row> |
796 <row><entry><keycap>d</keycap></entry><entry>stream is a DVD</entry></row> | |
797 <row><entry><keycap>u</keycap></entry><entry>stream is a URL</entry></row> | |
9675 | 798 </tbody> |
799 </tgroup> | |
800 </informaltable> | |
801 </sect2> | |
802 </sect1> | |
803 | |
21521 | 804 |
805 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> | |
806 | |
807 | |
9675 | 808 <sect1 id="skin-gui"> |
809 <title>GUI messages</title> | |
21521 | 810 |
9675 | 811 <para> |
812 These are the messages that can be generated by buttons, potmeters and | |
813 menu entries. | |
814 </para> | |
815 | |
816 <variablelist> | |
34318 | 817 <varlistentry> |
818 <term><emphasis role="bold">evNone</emphasis></term> | |
819 <listitem><para> | |
820 Empty message, it has no effect. | |
821 </para></listitem> | |
822 </varlistentry> | |
34661 | 823 </variablelist> |
34318 | 824 |
34661 | 825 <variablelist> |
9675 | 826 <title>Playback control:</title> |
827 <varlistentry> | |
34318 | 828 <term><emphasis role="bold">evPlay</emphasis></term> |
829 <listitem><para> | |
830 Start playing. | |
831 </para></listitem> | |
832 </varlistentry> | |
833 | |
834 <varlistentry> | |
835 <term><emphasis role="bold">evStop</emphasis></term> | |
836 <listitem><para> | |
837 Stop playing. | |
838 </para></listitem> | |
839 </varlistentry> | |
840 | |
841 <varlistentry> | |
842 <term><emphasis role="bold">evPause</emphasis></term> | |
843 <listitem><para> | |
844 Pause playing. | |
845 </para></listitem> | |
846 </varlistentry> | |
847 | |
848 <varlistentry> | |
849 <term><emphasis role="bold">evPrev</emphasis></term> | |
850 <listitem><para> | |
851 Jump to previous track in the playlist. | |
852 </para></listitem> | |
853 </varlistentry> | |
854 | |
855 <varlistentry> | |
9675 | 856 <term><emphasis role="bold">evNext</emphasis></term> |
857 <listitem><para> | |
21521 | 858 Jump to next track in the playlist. |
859 </para></listitem> | |
9675 | 860 </varlistentry> |
861 | |
862 <varlistentry> | |
34318 | 863 <term><emphasis role="bold">evLoad</emphasis></term> |
864 <listitem><para> | |
865 Load a file (by opening a file browser window, where you can choose a file). | |
866 </para></listitem> | |
867 </varlistentry> | |
868 | |
869 <varlistentry> | |
870 <term><emphasis role="bold">evLoadPlay</emphasis></term> | |
9675 | 871 <listitem><para> |
34318 | 872 Does the same as <literal>evLoad</literal>, but it automatically starts |
873 playing after the file is loaded. | |
874 </para></listitem> | |
875 </varlistentry> | |
876 | |
877 <varlistentry> | |
878 <term><emphasis role="bold">evLoadAudioFile</emphasis></term> | |
879 <listitem><para> | |
880 Loads an audio file (with the file selector). | |
881 </para></listitem> | |
882 </varlistentry> | |
883 | |
884 <varlistentry> | |
885 <term><emphasis role="bold">evLoadSubtitle</emphasis></term> | |
886 <listitem><para> | |
887 Loads a subtitle file (with the file selector). | |
21521 | 888 </para></listitem> |
9675 | 889 </varlistentry> |
890 | |
891 <varlistentry> | |
34318 | 892 <term><emphasis role="bold">evDropSubtitle</emphasis></term> |
893 <listitem><para> | |
894 Disables the currently used subtitle. | |
895 </para></listitem> | |
896 </varlistentry> | |
897 | |
898 <varlistentry> | |
899 <term><emphasis role="bold">evPlaylist</emphasis></term> | |
900 <listitem><para> | |
901 Open/close the playlist window. | |
902 </para></listitem> | |
903 </varlistentry> | |
904 | |
905 <varlistentry> | |
34387 | 906 <term><emphasis role="bold">evPlayCD</emphasis></term> |
907 <listitem><para> | |
908 Tries to open the disc in the given CD-ROM drive. | |
909 </para></listitem> | |
910 </varlistentry> | |
911 | |
912 <varlistentry> | |
34318 | 913 <term><emphasis role="bold">evPlayVCD</emphasis></term> |
9675 | 914 <listitem><para> |
34318 | 915 Tries to open the disc in the given CD-ROM drive. |
916 </para></listitem> | |
917 </varlistentry> | |
918 | |
919 <varlistentry> | |
920 <term><emphasis role="bold">evPlayDVD</emphasis></term> | |
921 <listitem><para> | |
922 Tries to open the disc in the given DVD-ROM drive. | |
923 </para></listitem> | |
924 </varlistentry> | |
925 | |
926 <varlistentry> | |
34324 | 927 <term><emphasis role="bold">evLoadURL</emphasis></term> |
34318 | 928 <listitem><para> |
929 Displays the URL dialog window. | |
21521 | 930 </para></listitem> |
9675 | 931 </varlistentry> |
932 | |
933 <varlistentry> | |
934 <term><emphasis role="bold">evPlaySwitchToPause</emphasis></term> | |
935 <listitem><para> | |
21521 | 936 The opposite of <literal>evPauseSwitchToPlay</literal>. This message starts |
937 playing and the image for the <literal>evPauseSwitchToPlay</literal> button | |
938 is displayed (to indicate that the button can be pressed to pause playing). | |
939 </para></listitem> | |
9675 | 940 </varlistentry> |
941 | |
942 <varlistentry> | |
34318 | 943 <term><emphasis role="bold">evPauseSwitchToPlay</emphasis></term> |
9675 | 944 <listitem><para> |
34318 | 945 Forms a switch together with <literal>evPlaySwitchToPause</literal>. They can |
946 be used to have a common play/pause button. Both messages should be assigned | |
947 to buttons displayed at the very same position in the window. This message | |
948 pauses playing and the image for the <literal>evPlaySwitchToPause</literal> | |
949 button is displayed (to indicate that the button can be pressed to continue | |
950 playing). | |
21521 | 951 </para></listitem> |
9675 | 952 </varlistentry> |
34661 | 953 </variablelist> |
9675 | 954 |
955 <variablelist> | |
956 <title>Seeking:</title> | |
957 <varlistentry> | |
958 <term><emphasis role="bold">evBackward10sec</emphasis></term> | |
959 <listitem><para> | |
21521 | 960 Seek backward 10 seconds. |
961 </para></listitem> | |
9675 | 962 </varlistentry> |
963 | |
964 <varlistentry> | |
965 <term><emphasis role="bold">evBackward1min</emphasis></term> | |
966 <listitem><para> | |
21521 | 967 Seek backward 1 minute. |
968 </para></listitem> | |
9675 | 969 </varlistentry> |
970 | |
971 <varlistentry> | |
972 <term><emphasis role="bold">evBackward10min</emphasis></term> | |
973 <listitem><para> | |
21521 | 974 Seek backward 10 minutes. |
975 </para></listitem> | |
9675 | 976 </varlistentry> |
977 | |
978 <varlistentry> | |
979 <term><emphasis role="bold">evForward10sec</emphasis></term> | |
980 <listitem><para> | |
21521 | 981 Seek forward 10 seconds. |
982 </para></listitem> | |
9675 | 983 </varlistentry> |
984 | |
985 <varlistentry> | |
986 <term><emphasis role="bold">evForward1min</emphasis></term> | |
987 <listitem><para> | |
21521 | 988 Seek forward 1 minute. |
989 </para></listitem> | |
9675 | 990 </varlistentry> |
991 | |
992 <varlistentry> | |
993 <term><emphasis role="bold">evForward10min</emphasis></term> | |
994 <listitem><para> | |
21521 | 995 Seek forward 10 minutes. |
996 </para></listitem> | |
9675 | 997 </varlistentry> |
998 | |
999 <varlistentry> | |
1000 <term><emphasis role="bold">evSetMoviePosition</emphasis></term> | |
1001 <listitem><para> | |
21521 | 1002 Seek to position (can be used by a potmeter; the |
1003 relative value (0-100%) of the potmeter is used). | |
1004 </para></listitem> | |
9675 | 1005 </varlistentry> |
1006 </variablelist> | |
1007 | |
1008 <variablelist> | |
1009 <title>Video control:</title> | |
1010 <varlistentry> | |
14589 | 1011 <term><emphasis role="bold">evHalfSize</emphasis></term> |
1012 <listitem><para> | |
33896 | 1013 Set the video window to half size. |
21521 | 1014 </para></listitem> |
14589 | 1015 </varlistentry> |
1016 <varlistentry> | |
9675 | 1017 <term><emphasis role="bold">evDoubleSize</emphasis></term> |
1018 <listitem><para> | |
33896 | 1019 Set the video window to double size. |
21521 | 1020 </para></listitem> |
9675 | 1021 </varlistentry> |
1022 <varlistentry> | |
1023 <term><emphasis role="bold">evFullScreen</emphasis></term> | |
1024 <listitem><para> | |
21521 | 1025 Switch fullscreen mode on/off. |
1026 </para></listitem> | |
9675 | 1027 </varlistentry> |
1028 <varlistentry> | |
1029 <term><emphasis role="bold">evNormalSize</emphasis></term> | |
1030 <listitem><para> | |
33896 | 1031 Set the video window to its normal size. |
21521 | 1032 </para></listitem> |
9675 | 1033 </varlistentry> |
34323
60aabad1ff2a
Add evSetAspect to the skin documentation on GUI messages (where
ib
parents:
34318
diff
changeset
|
1034 <varlistentry> |
60aabad1ff2a
Add evSetAspect to the skin documentation on GUI messages (where
ib
parents:
34318
diff
changeset
|
1035 <term><emphasis role="bold">evSetAspect</emphasis></term> |
60aabad1ff2a
Add evSetAspect to the skin documentation on GUI messages (where
ib
parents:
34318
diff
changeset
|
1036 <listitem><para> |
60aabad1ff2a
Add evSetAspect to the skin documentation on GUI messages (where
ib
parents:
34318
diff
changeset
|
1037 Set the video window to its original aspect ratio. |
60aabad1ff2a
Add evSetAspect to the skin documentation on GUI messages (where
ib
parents:
34318
diff
changeset
|
1038 </para></listitem> |
60aabad1ff2a
Add evSetAspect to the skin documentation on GUI messages (where
ib
parents:
34318
diff
changeset
|
1039 </varlistentry> |
9675 | 1040 </variablelist> |
1041 | |
1042 <variablelist> | |
1043 <title>Audio control:</title> | |
1044 <varlistentry> | |
1045 <term><emphasis role="bold">evDecVolume</emphasis></term> | |
1046 <listitem><para> | |
21521 | 1047 Decrease volume. |
1048 </para></listitem> | |
9675 | 1049 </varlistentry> |
1050 | |
1051 <varlistentry> | |
34318 | 1052 <term><emphasis role="bold">evIncVolume</emphasis></term> |
9675 | 1053 <listitem><para> |
34318 | 1054 Increase volume. |
21521 | 1055 </para></listitem> |
9675 | 1056 </varlistentry> |
1057 | |
1058 <varlistentry> | |
34318 | 1059 <term><emphasis role="bold">evSetVolume</emphasis></term> |
9675 | 1060 <listitem><para> |
34318 | 1061 Set volume (can be used by a potmeter; the relative |
1062 value (0-100%) of the potmeter is used). | |
21521 | 1063 </para></listitem> |
9675 | 1064 </varlistentry> |
1065 | |
1066 <varlistentry> | |
1067 <term><emphasis role="bold">evMute</emphasis></term> | |
1068 <listitem><para> | |
21521 | 1069 Mute/unmute the sound. |
1070 </para></listitem> | |
9675 | 1071 </varlistentry> |
1072 | |
1073 <varlistentry> | |
1074 <term><emphasis role="bold">evSetBalance</emphasis></term> | |
1075 <listitem><para> | |
21521 | 1076 Set balance (can be used by a potmeter; the |
1077 relative value (0-100%) of the potmeter is used). | |
1078 </para></listitem> | |
9675 | 1079 </varlistentry> |
1080 | |
1081 <varlistentry> | |
34318 | 1082 <term><emphasis role="bold">evEqualizer</emphasis></term> |
9675 | 1083 <listitem><para> |
34318 | 1084 Turn the equalizer on/off. |
21521 | 1085 </para></listitem> |
9675 | 1086 </varlistentry> |
1087 </variablelist> | |
1088 | |
1089 <variablelist> | |
1090 <title>Miscellaneous:</title> | |
1091 <varlistentry> | |
1092 <term><emphasis role="bold">evAbout</emphasis></term> | |
1093 <listitem><para> | |
21521 | 1094 Open the about window. |
1095 </para></listitem> | |
9675 | 1096 </varlistentry> |
1097 | |
1098 <varlistentry> | |
34318 | 1099 <term><emphasis role="bold">evPreferences</emphasis></term> |
9675 | 1100 <listitem><para> |
34318 | 1101 Open the preferences window. |
21521 | 1102 </para></listitem> |
9675 | 1103 </varlistentry> |
1104 | |
1105 <varlistentry> | |
34318 | 1106 <term><emphasis role="bold">evSkinBrowser</emphasis></term> |
9675 | 1107 <listitem><para> |
34318 | 1108 Open the skin browser window. |
21521 | 1109 </para></listitem> |
9675 | 1110 </varlistentry> |
1111 | |
1112 <varlistentry> | |
34458 | 1113 <term><emphasis role="bold">evMenu</emphasis></term> |
1114 <listitem><para> | |
1115 Open the (default) menu. | |
1116 </para></listitem> | |
1117 </varlistentry> | |
1118 | |
1119 <varlistentry> | |
9675 | 1120 <term><emphasis role="bold">evIconify</emphasis></term> |
1121 <listitem><para> | |
21521 | 1122 Iconify the window. |
1123 </para></listitem> | |
9675 | 1124 </varlistentry> |
1125 | |
1126 <varlistentry> | |
34318 | 1127 <term><emphasis role="bold">evExit</emphasis></term> |
9675 | 1128 <listitem><para> |
34318 | 1129 Quit the program. |
21521 | 1130 </para></listitem> |
9675 | 1131 </varlistentry> |
1132 </variablelist> | |
21521 | 1133 </sect1> |
9675 | 1134 |
21521 | 1135 |
1136 <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> | |
1137 | |
9675 | 1138 |
17276 | 1139 <sect1 id="skin-quality"> |
1140 <title>Creating quality skins</title> | |
1141 | |
1142 <para> | |
1143 So you have read up on creating skins for the | |
1144 <application>MPlayer</application> GUI, done your best with the | |
1145 <application>Gimp</application> and wish to submit your skin to us? | |
1146 Read on for some guidelines to avoid common mistakes and produce | |
1147 a high quality skin. | |
1148 </para> | |
1149 | |
1150 <para> | |
1151 We want skins that we add to our repository to conform to certain | |
1152 quality standards. There are also a number of things that you can do | |
1153 to make our lives easier. | |
1154 </para> | |
1155 | |
1156 <para> | |
1157 As an example you can look at the <systemitem>Blue</systemitem> skin, | |
1158 it satisfies all the criteria listed below since version 1.5. | |
1159 </para> | |
1160 | |
1161 <itemizedlist> | |
21521 | 1162 <listitem><para> |
1163 Each skin should come with a | |
17276 | 1164 <filename>README</filename> file that contains information about |
1165 you, the author, copyright and license notices and anything else | |
1166 you wish to add. If you wish to have a changelog, this file is a | |
21521 | 1167 good place. |
1168 </para></listitem> | |
17276 | 1169 |
21521 | 1170 <listitem><para> |
1171 There should be a file <filename>VERSION</filename> | |
17276 | 1172 with nothing more than the version number of the skin on a single |
21521 | 1173 line (e.g. 1.0). |
1174 </para></listitem> | |
17276 | 1175 |
21521 | 1176 <listitem><para> |
1177 Horizontal and vertical controls (sliders like volume | |
17276 | 1178 or position) should have the center of the knob properly centered on |
1179 the middle of the slider. It should be possible to move the knob to | |
21521 | 1180 both ends of the slider, but not past it. |
1181 </para></listitem> | |
17276 | 1182 |
21521 | 1183 <listitem><para> |
1184 Skin elements should have the right sizes declared | |
17276 | 1185 in the skin file. If this is not the case you can click outside of |
1186 e.g. a button and still trigger it or click inside its area and not | |
21521 | 1187 trigger it. |
1188 </para></listitem> | |
17276 | 1189 |
21521 | 1190 <listitem><para> |
1191 The <filename>skin</filename> file should be | |
17276 | 1192 prettyprinted and not contain tabs. Prettyprinted means that the |
21521 | 1193 numbers should line up neatly in columns. |
1194 </para></listitem> | |
17276 | 1195 </itemizedlist> |
1196 | |
1197 </sect1> | |
9675 | 1198 </appendix> |