Mercurial > mplayer.hg
annotate DOCS/skin.html @ 9057:99a3ab65891d
sync
author | gabucino |
---|---|
date | Tue, 21 Jan 2003 21:11:57 +0000 |
parents | 7b6b7fb76965 |
children | b840039be057 |
rev | line source |
---|---|
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
1982 | 2 <html> |
3 <head> | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
4 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
6882
f3f87f6bf5cf
Added a uniform title: something - MPlayer - The Movie Player for Linux.
diego
parents:
6726
diff
changeset
|
5 <title>Creating Skins - MPlayer - The Movie Player for Linux</title> |
6395 | 6 <link rel="stylesheet" type="text/css" href="default.css"> |
1982 | 7 <style type="text/css"> |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
8 em.note {color: green; |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
9 font-style: normal;} |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
10 em.warn {color: red; |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
11 font-style: normal;} |
1982 | 12 </style> |
13 </head> | |
14 | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
15 <body> |
1982 | 16 |
17 <h1 align="center">MPlayer skin format</h1> | |
18 | |
19 <hr> | |
20 | |
21 <h2>Contents</h2> | |
22 | |
23 <ul type=disc> | |
24 <li><a href="#intro">1 Introduction</a></li> | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
25 <li><a href="#overview">2 Overview</a> |
1982 | 26 <ul type=circle> |
27 <li><a href="#dirs">2.1 Directories</a></li> | |
28 <li><a href="#images">2.2 Images</a></li> | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
29 <li><a href="#components">2.3 Skin components</a></li> |
1982 | 30 <li><a href="#files">2.4 Files</a></li> |
31 </ul> | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
32 </li> |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
33 <li><a href="#skin">3 The <code>skin</code> file</a> |
1982 | 34 <ul type=circle> |
35 <li><a href="#mainwin">3.1 Main window</a></li> | |
36 <li><a href="#subwindow">3.2 Subwindow</a></li> | |
37 <li><a href="#skinmenu">3.3 Skin menu</a></li> | |
38 </ul> | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
39 </li> |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
40 <li><a href="#fonts">4 Fonts</a> |
1982 | 41 <ul type=circle> |
42 <li><a href="#symbols">4.1 Symbols</a></li> | |
43 </ul> | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
44 </li> |
1982 | 45 <li><a href="#guimsg">Appendix A: GUI messages</a></li> |
46 </ul> | |
47 | |
48 <hr> | |
49 | |
50 <div align=center> | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
51 Last modified: 2002/05/24 |
1982 | 52 </div> |
53 | |
54 <hr> | |
55 | |
56 <h2><a name="intro">1 Introduction</a></h2> | |
57 | |
7814 | 58 The purpose of this document is to describe the MPlayer skin format. |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
59 The information contained here might be wrong, for |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
60 |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
61 <ol type="a"> |
8432 | 62 <li>It is not me who wrote the GUI.</li> |
63 <li>The GUI is not finished.</li> | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
64 <li>I might be wrong.</li> |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
65 </ol> |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
66 |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
67 So do not be surprised if something does not work as described here. |
1982 | 68 |
69 <p> | |
70 Thanks to <em>Zoltán Ponekker</em> for his help. | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
71 </p> |
1982 | 72 |
73 <p> | |
74 <em>András Mohari <mayday@freemail.hu></em> | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
75 </p> |
1982 | 76 |
77 | |
78 <h2><a name="overview">2 Overview</a></h2> | |
79 | |
80 It does not really have anything to do with the skin format, but you should | |
7814 | 81 know that MPlayer has <b>no</b> builtin skin, so <b>at least one skin |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
82 must be installed in order to be able to use the GUI.</b> |
1982 | 83 |
84 | |
85 <h3><a name="dirs">2.1 Directories</a></h3> | |
86 | |
87 The directories searched for skins are (in order): | |
88 <pre> | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
89 $(DATADIR)/Skin/ |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
90 $(PREFIX)/share/mplayer/Skin/ |
1982 | 91 ~/.mplayer/Skin/ |
92 </pre> | |
93 | |
94 <p> | |
7814 | 95 Note that the first path may vary according to the way MPlayer was |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
96 configured (see the <code>--prefix</code> and <code>--datadir</code> arguments |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
97 of the <code>configure</code> script). |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
98 </p> |
1982 | 99 |
100 Every skin is installed into its own directory under one of the directories | |
101 listed above, for example: | |
102 <pre> | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
103 $(PREFIX)/share/mplayer/Skin/default/ |
1982 | 104 </pre> |
105 | |
106 | |
107 <h3><a name="images">2.2 Image formats</a></h3> | |
108 | |
8432 | 109 Images must be truecolor (24 or 32 bpp) PNGs. |
1982 | 110 |
111 <p> | |
9057 | 112 In the main window and in the playbar (see below) you can use images with `transparency': |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
113 Regions filled with the color #FF00FF (<font color="#FF00FF">magenta</font>) |
7814 | 114 are fully transparent when viewed by MPlayer. This means that you can even |
1982 | 115 have shaped windows if your X server has the XShape extension. |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
116 </p> |
1982 | 117 |
118 | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
119 <h3><a name="components">2.3 Skin components</a></h3> |
1982 | 120 |
121 Skins are quite free-format (unlike the fixed-format skins of | |
122 Winamp/XMMS, for example), so it is up to you to create something great. | |
123 | |
124 <p> | |
125 Currently there are three windows to be decorated: the | |
9057 | 126 <a href="#mainwin">main window</a>, the <a href="#subwindow">subwindow</a>, the |
127 <a href="#mainwin">playbar</a>, and | |
1982 | 128 the <a href="#skinmenu">skin menu</a> (which can be activated by a right |
129 click). | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
130 </p> |
1982 | 131 |
132 <ul> | |
133 <li> | |
9057 | 134 The <b>main window</b> and/or the <b>playbar</b> is where you can control MPlayer. The background of |
1982 | 135 the window is an image. Various items can (and must) be |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
136 placed in the window: <em>buttons</em>, <em>potmeters</em> (sliders) and |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
137 <em>labels</em>. For every item, you must |
1982 | 138 specify its position and size. |
139 | |
140 <p> | |
141 A <b>button</b> has three states (pressed, released, | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
142 disabled), thus its image must be divided into three parts vertically. |
1982 | 143 See the <a href="#main.button">button</a> item for details. |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
144 </p> |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
145 |
1982 | 146 <p> |
147 A <b>potmeter</b> (mainly used for the seek bar and volume/balance | |
148 control) can have any number of phases by dividing its image into different | |
149 parts below each other. | |
150 See <a href="#main.hpotmeter">hpotmeter</a> and | |
151 <a href="#main.potmeter">potmeter</a> for details. | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
152 </p> |
1982 | 153 |
154 <p> | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
155 <b>Labels</b> are a bit special: The characters needed to draw them are taken |
1982 | 156 from an image file, and the characters in the image are described |
157 by a <a href="#fonts">font description file</a>. | |
158 The latter is a plain text file which specifies | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
159 the x,y position and size of each character in the image (the |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
160 image file and its font description file form a font <em>together</em>). |
1982 | 161 See <a href="#main.dlabel">dlabel</a> and <a href="#main.slabel">slabel</a> |
162 for details. | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
163 </p> |
1982 | 164 |
165 <p> | |
166 <em class=note> | |
167 <b>Note:</b> all images can have full transparency as described in the | |
8316 | 168 section about <a href="#images">image formats</a>. If the X Server doesn't |
169 support the XShape extension, the parts marked transparent will be black. If | |
170 you'd like to use this feature, the width of the main window's background image | |
171 must be dividable by 8. | |
1982 | 172 </em> |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
173 </p> |
1982 | 174 </li> |
175 | |
176 <li> | |
177 The <b>subwindow</b> is where the movie appears. It can display a specified | |
178 image if there is no movie loaded (it is quite boring to have an empty | |
179 window :-)) | |
180 <em class=note><b>Note:</b> transparency | |
181 is <b>not allowed</b> here.</em> | |
182 </li> | |
183 | |
184 <li> | |
7814 | 185 The <b>skin menu</b> is just a way to control MPlayer by means of |
1982 | 186 menu entries. Two images are required for the menu: one of them is the base |
187 image that shows the menu in its normal state, the other one is used to | |
188 display the selected entries. When you pop up the menu, the first image is | |
189 shown. If you move the mouse over the menu entries, the currently selected | |
190 entry is copied from the second image over the menu entry below the mouse | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
191 pointer (the second image is never shown as a whole). |
1982 | 192 <p> |
193 A menu entry is defined by its position and size in the image (see the | |
194 section about the <a href="#skinmenu">skin menu</a> for details). | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
195 </p> |
1982 | 196 </li> |
197 </ul> | |
198 | |
199 <p> | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
200 There is an important thing not mentioned yet: For buttons, potmeters and |
7814 | 201 menu entries to work, MPlayer must know what to do if they are clicked. |
1982 | 202 This is done by <a href="#guimsg">messages</a> (events). For these items |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
203 you must define the messages to be generated when they are clicked. |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
204 </p> |
1982 | 205 |
206 <h3><a name="files">2.4 Files</a></h3> | |
207 | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
208 You need the following files to build a skin: |
1982 | 209 <ul> |
210 <li> | |
7814 | 211 The configuration file named <a href="#skin">skin</a> tells MPlayer how |
1982 | 212 to put different parts of the skin together and what to do if you click |
213 somewhere in the window. | |
214 </li> | |
215 <li>The background image for the main window.</li> | |
216 <li>Images for the items in the main window (including one or more font | |
217 description files needed to draw labels).</li> | |
218 <li>The image to be displayed in the subwindow (optional).</li> | |
219 <li>Two images for the skin menu (they are needed only if you want to create | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
220 a menu).</li> |
1982 | 221 </ul> |
222 | |
223 With the exception of the skin configuration file, you can name the other | |
224 files whatever you want (but note that font description files must have | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
225 a <code>.fnt</code> extension). |
1982 | 226 |
227 | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
228 <h2><a name="skin">3 The <code>skin</code> file</a></h2> |
1982 | 229 |
230 <p> | |
231 As mentioned above, this is the skin configuration file. | |
232 It is line oriented; comment lines start with a '<code>;</code>' character | |
233 at the beginning of the line (only spaces and tabs are allowed before the | |
234 '<code>;</code>'). | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
235 </p> |
1982 | 236 |
237 <p> | |
238 The file is made up of sections. Each section describes the skin for an | |
239 application and has the following form: | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
240 </p> |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
241 |
1982 | 242 <table border=1 width="100%"><tr bgcolor=silver><td><pre> |
243 section = <i>section name</i> | |
244 . | |
245 . | |
246 . | |
247 end | |
248 </pre></td></tr></table> | |
249 | |
250 <p> | |
251 Currently there is only one application, so you need only one section: | |
252 its name is <b>movieplayer</b>. | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
253 </p> |
1982 | 254 |
255 <p> | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
256 Within this section each window is described by a block of the following form: |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
257 </p> |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
258 |
1982 | 259 <table border=1 width="100%"><tr bgcolor=silver><td><pre> |
260 window = <i>window name</i> | |
261 . | |
262 . | |
263 . | |
264 end | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
265 </pre></td></tr></table> |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
266 |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
267 <p> |
1982 | 268 where <i>window name</i> can be one of these strings: |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
269 </p> |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
270 |
1982 | 271 <ul> |
272 <li><b>main</b> - for the main window</li> | |
273 <li><b>sub</b> - for the subwindow</li> | |
274 <li><b>menu</b> - for the skin menu</li> | |
9057 | 275 <li><b>playbar</b> - playbar</li> |
1982 | 276 </ul> |
277 | |
278 <p> | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
279 (The sub and menu blocks are optional - you do not need to create a menu or |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
280 decorate the subwindow.) |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
281 </p> |
1982 | 282 |
283 <p> | |
284 Within a window block, you can define each item for the window | |
285 by a line in this form: | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
286 </p> |
1982 | 287 |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
288 <dl> |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
289 <dt> |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
290 <b><code>item = parameter</code></b> |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
291 </dt> |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
292 <dd> |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
293 Where <code>item</code> is a string that identifies the type of the GUI item, |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
294 <code>parameter</code> is a numeric or textual value (or a list of values |
1982 | 295 separated by commas). |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
296 </dd> |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
297 </dl> |
1982 | 298 |
299 <p> | |
300 Putting the above together, the whole file looks something like this: | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
301 </p> |
1982 | 302 |
303 <table border=1 width="100%"><tr bgcolor=silver><td><pre> | |
304 section = movieplayer | |
305 window = main | |
306 ; ... items for main window ... | |
307 end | |
308 | |
309 window = sub | |
310 ; ... items for subwindow ... | |
311 end | |
312 | |
313 window = menu | |
8316 | 314 ; ... items for menu ... |
1982 | 315 end |
9057 | 316 |
317 window = playbar | |
318 ; ... items for playbar ... | |
319 end | |
1982 | 320 end |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
321 </pre></td></tr></table> |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
322 |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
323 <p> |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
324 The name of an image file must be given without leading directories - images are |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
325 searched for in the <code>Skin</code> directory. You may (but you need not) |
7814 | 326 specify the extension of the file. If the file does not exist, MPlayer |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
327 tries to load the file <code><filename>.<ext></code>, where |
8316 | 328 <code>png</code> and <code>PNG</code> are tried for <code><ext></code> |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
329 (in this order). The first matching file will be used. |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
330 </p> |
1982 | 331 |
332 <p> | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
333 Finally some words about positioning. The main window and the subwindow can be |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
334 placed in the different corners of the screen by giving <code>X</code> and |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
335 <code>Y</code> coordinates. <code>0</code> is top or left, <code>-1</code> is |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
336 center and <code>-2</code> is right or bottom, as shown in this illustration: |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
337 </p> |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
338 |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
339 <pre> |
1982 | 340 |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
341 (0, 0)----(-1, 0)----(-2, 0) |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
342 | | | |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
343 | | | |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
344 (0,-1)----(-1,-1)----(-2,-1) |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
345 | | | |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
346 | | | |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
347 (0,-2)----(-1,-2)----(-2,-2) |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
348 |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
349 </pre> |
1982 | 350 |
351 <table border=1 cellpadding=5 width="100%"><tr bgcolor="#ffffcc"><td> | |
352 Here is an example to make this clear. Suppose that you have an image called | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
353 <code>main.png</code> that you use for the main window: |
1982 | 354 <blockquote> |
355 <pre> | |
356 base = main, -1, -1 | |
357 </pre> | |
358 </blockquote> | |
359 | |
8316 | 360 MPlayer tries to load <code>main</code>, <code>main.png</code>, |
361 <code>main.PNG</code> files. | |
1982 | 362 <br> |
363 </td></tr></table> | |
364 | |
365 | |
9057 | 366 <h3><a name="mainwin">3.1 Main window and playbar</a></h3> |
1982 | 367 |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
368 Below is the list of entries that can be used in the |
9057 | 369 '<code>window = main</code>' . . . '<code>end</code>', and the |
370 '<code>window = playbar</code>' . . '<code>end</code>' blocks. | |
1982 | 371 |
372 <dl> | |
373 <dt><a name="main.base"> | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
374 <b><code>base = image, X, Y</code></b> |
1982 | 375 </a></dt> |
376 <dd> | |
377 Lets you specify the background image to be used for the main window. | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
378 The window will appear at the given <code>X,Y</code> position on the screen |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
379 The window will have the size of the image. |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
380 <div> |
1982 | 381 <em class=warn> |
9057 | 382 <b>Note:</b> this coordinating doesn't work for the display window currently. |
383 </em> | |
384 <br> | |
385 <em class=warn> | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
386 <b>Warning:</b> Transparent regions in the image (colored #FF00FF) appear |
8316 | 387 black on X servers without the XShape extension. The image's width must be |
388 dividable by 8. | |
1982 | 389 </em> |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
390 </div> |
1982 | 391 </dd> |
392 | |
393 <dt><a name="main.button"> | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
394 <b><code>button = image, X, Y, width, height, message</code></b></a></dt> |
1982 | 395 <dd> |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
396 Place a button of <code>width</code> * <code>height</code> size at position |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
397 <code>X</code>,<code>Y</code>. The specified <code>message</code> is generated |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
398 when the button is clicked. The image given by <code>image</code> must have |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
399 three parts below each other (according to the possible states of the button), |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
400 like this: |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
401 <pre> |
1982 | 402 +------------+ |
403 | pressed | | |
404 +------------+ | |
405 | released | | |
406 +------------+ | |
407 | disabled | | |
408 +------------+ | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
409 </pre> |
1982 | 410 </dd> |
411 | |
412 <dt><a name="main.decoration"> | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
413 <b><code>decoration = enable|disable</code></b> |
1982 | 414 </a></dt> |
415 <dd> | |
416 Enable or disable window manager decoration of the main window. Default | |
417 is <b>disable</b>. | |
9057 | 418 <br> |
419 <br> | |
420 <em class=warn> | |
421 <b>Note:</b> This doesn't work for the display window, there is no need to. | |
422 </em> | |
423 <br> | |
1982 | 424 </dd> |
425 | |
426 <dt> | |
427 <a name="main.hpotmeter"> | |
428 <b> | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
429 <code>hpotmeter = button, bwidth, bheight, phases, numphases, default, X, Y, width, height, message</code> |
9057 | 430 <br> |
431 <code>vpotmeter = button, bwidth, bheight, phases, numphases, default, X, Y, width, height, message</code> | |
1982 | 432 </b> |
433 </a> | |
434 </dt> | |
435 <dd> | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
436 Place a horizontal potmeter of <code>width</code> * <code>height</code> size |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
437 at position <code>X</code>,<code>Y</code>. The image can be divided into |
1982 | 438 different parts for the different phases of the potmeter (for example, |
439 you can have a pot for volume control that turns from green to red | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
440 while its value changes from the minimum to the maximum.). |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
441 <code>hpotmeter</code> can have a button that can be dragged horizontally. |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
442 |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
443 <div>The parameters are:</div> |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
444 |
1982 | 445 <ul> |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
446 <li><code>button</code> - the image to be used for the button |
1982 | 447 (must have three parts below each other, like in case of |
448 <a href="#main.button">button</a>)</li> | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
449 <li><code>bwidth</code>, <code>bheight</code> - size of the button</li> |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
450 <li><code>phases</code> - The image to be used for the different phases of the |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
451 hpotmeter. A special value of <code>NULL</code> can be used if you want |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
452 no such image. The image must be divided into <code>numphases</code> parts |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
453 vertically like this: |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
454 <pre> |
1982 | 455 +------------+ |
456 | phase #1 | | |
457 +------------+ | |
458 | phase #2 | | |
459 +------------+ | |
460 ... | |
461 +------------+ | |
462 | phase #n | | |
463 +------------+ | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
464 </pre> |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
465 </li> |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
466 <li><code>numphases</code> - number of phases stored in the <code>phases</code> |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
467 image</li> |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
468 <li><code>default</code> - default value for hpotmeter (in the range 0 to |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
469 100)</li> |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
470 <li><code>X</code>, <code>Y</code> - position for the hpotmeter</li> |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
471 <li><code>width</code>, <code>height</code> - width and height of the |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
472 <code>hpotmeter</code></li> |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
473 <li><code>message</code> - the message to be generated when the value of |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
474 <code>hpotmeter</code> is changed</li> |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
475 </ul> |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
476 |
1982 | 477 </dd> |
478 | |
479 <dt><a name="main.potmeter"> | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
480 <b><code>potmeter = phases, numphases, default, X, Y, width, height, message</code></b> |
1982 | 481 </a></dt> |
482 <dd> | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
483 A <code>hpotmeter</code> without a button. (I guess it is meant to be turned |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
484 around, but it reacts to horizontal dragging only.) |
1982 | 485 For the description of the parameters see |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
486 <a href="#main.hpotmeter">hpotmeter</a>. <code>phases</code> can be |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
487 <code>NULL</code>, but it is quite useless, since you cannot see where |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
488 the <code>potmeter</code> is set. |
1982 | 489 </dd> |
490 | |
491 <dt><a name="main.font"> | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
492 <b><code>font = fontfile, fontid</code></b> |
1982 | 493 </a></dt> |
494 <dd> | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
495 Defines a font. <code>fontfile</code> is the name of a font description file |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
496 with a <code>.fnt</code> extension (<b>do not</b> specify the extension here). |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
497 <code>fontid</code> is used to refer to the font |
1982 | 498 (see <a href="#main.dlabel">dlabel</a> and <a href="#main.slabel">slabel</a>). |
499 Up to 25 fonts can be defined. | |
500 </dd> | |
501 | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
502 <dt><a name="main.slabel"> |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
503 <b><code>slabel = X, Y, fontid, "text"</code></b> |
1982 | 504 </a></dt> |
505 <dd> | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
506 Place a static label at the position <code>X</code>,<code>Y</code>. |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
507 <code>text</code> is displayed using the font identified by <code>fontid</code>. |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
508 The text is just a raw string (<code>$x</code> variables do not work) that must |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
509 be enclosed between double quotes (but the <code>"</code> character cannot be |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
510 part of the text). The label is displayed using the font identified by |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
511 <code>fontid</code>. |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
512 </dd> |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
513 |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
514 <dt><a name="main.dlabel"> |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
515 <b><code>dlabel = X, Y, length, align, fontid, "text"</code></b> |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
516 </a></dt> |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
517 <dd> |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
518 Place a dynamic label at the position <code>X</code>,<code>Y</code>. The label is |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
519 called dynamic because its text is refreshed periodically. The maximum length of |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
520 the label is given by <code>length</code> (its height is the height of a |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
521 character). If the text to be displayed is wider than that, it will be scrolled, |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
522 otherwise it is aligned within the specified space by the value of the |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
523 <code>align</code> parameter: <code>0</code> is for right, <code>1</code> is for |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
524 center, <code>2</code> is for left. |
1982 | 525 <br> |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
526 The text to be displayed is given by <code>text</code>: It must be written |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
527 between double quotes (but the <code>"</code> character cannot be part of the |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
528 text). The label is displayed using the font identified by <code>fontid</code>. |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
529 You can use the following variables in the text: |
1982 | 530 |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
531 <table align="center" border="1"> |
1982 | 532 <tr align=center><th>Variable</th><th align=left>Meaning</th></tr> |
533 <tr><td align=center><kbd>$1</kbd></td> | |
534 <td>play time in <em>hh:mm:ss</em> format</td></tr> | |
535 <tr><td align=center><kbd>$2</kbd></td> | |
536 <td>play time in <em>mmmm:ss</em> format</td></tr> | |
537 <tr><td align=center><kbd>$3</kbd></td> | |
538 <td>play time in <em>hh</em> format (hours)</td></tr> | |
539 <tr><td align=center><kbd>$4</kbd></td> | |
540 <td>play time in <em>mm</em> format (minutes)</td></tr> | |
541 <tr><td align=center><kbd>$5</kbd></td> | |
542 <td>play time in <em>ss</em> format (seconds)</td></tr> | |
543 <tr><td align=center><kbd>$6</kbd></td> | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
544 <td>movie length in <em>hh:mm:ss</em> format</td></tr> |
1982 | 545 <tr><td align=center><kbd>$7</kbd></td> |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
546 <td>movie length in <em>mmmm:ss</em> format</td></tr> |
1982 | 547 <tr><td align=center><kbd>$8</kbd></td> |
548 <td>play time in <em>h:mm:ss</em> format</td></tr> | |
549 <tr><td align=center><kbd>$v</kbd></td> | |
550 <td>volume in <em>xxx.xx%</em> format</td></tr> | |
551 <tr><td align=center><kbd>$V</kbd></td> | |
552 <td>volume in <em>xxx.x</em> format</td></tr> | |
553 <tr><td align=center><kbd>$b</kbd></td> | |
554 <td>balance in <em>xxx.xx%</em> format</td></tr> | |
555 <tr><td align=center><kbd>$B</kbd></td> | |
556 <td>balance in <em>xxx.x</em> format</td></tr> | |
557 <tr><td align=center><kbd>$$</kbd></td> | |
558 <td>the <kbd>$</kbd> character</td></tr> | |
559 <tr><td align=center><kbd>$a</kbd></td> | |
560 <td>a character according to the audio type (none: <code>n</code>, | |
561 mono: <code>m</code>, stereo: <code>t</code>)</td></tr> | |
562 <tr><td align=center><kbd>$t</kbd></td> | |
563 <td>track number (in playlist)</td></tr> | |
564 <tr><td align=center><kbd>$o</kbd></td> | |
565 <td>filename</td></tr> | |
566 <tr><td align=center><kbd>$f</kbd></td> | |
567 <td>filename in lower case</td></tr> | |
568 <tr><td align=center><kbd>$F</kbd></td> | |
569 <td>filename in upper case</td></tr> | |
570 <tr><td align=center><kbd>$T</kbd></td> | |
571 <td>a character according to the stream type (file: <code>f</code>, | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
572 Video CD: <code>v</code>, DVD: <code>d</code>, URL: <code>u</code>) |
1982 | 573 </td></tr> |
574 <tr><td align=center><kbd>$p</kbd></td> | |
575 <td>the "p" character (if a movie is playing and the font has the "p" | |
576 character) | |
577 </td></tr> | |
578 <tr><td align=center><kbd>$s</kbd></td> | |
579 <td>the "s" character (if the movie is stopped and the font has the "s" | |
580 character) | |
581 </td></tr> | |
582 <tr><td align=center><kbd>$e</kbd></td> | |
583 <td>the "e" character (if playback is paused and the font has the "e" | |
584 character) | |
585 </td></tr> | |
8316 | 586 <tr><td align=center><kbd>$x</kbd></td> |
587 <td>movie width | |
588 </td></tr> | |
589 <tr><td align=center><kbd>$y</kbd></td> | |
590 <td>movie height | |
591 </td></tr> | |
592 <tr><td align=center><kbd>$C</kbd></td> | |
8432 | 593 <td>name of the codec used |
8316 | 594 </td></tr> |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
595 </table> |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
596 |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
597 <em class="note"> |
1982 | 598 <b>Note:</b> The <kbd>$a</kbd>, <kbd>$T</kbd>, <kbd>$p</kbd>, <kbd>$s</kbd> |
599 and <kbd>$e</kbd> variables all return characters that should be displayed | |
600 as special symbols (for example, "e" is for the pause symbol that usually | |
601 looks something like <code>||</code>). You should have a font for normal | |
602 characters and a different font for symbols. | |
603 See the section about <a href="#symbols">symbols</a> for more information. | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
604 </em> |
1982 | 605 </dd> |
606 </dl> | |
607 | |
608 | |
609 <h3><a name="subwindow">3.2 Subwindow</a></h3> | |
610 | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
611 The following entries can be used in the |
1982 | 612 '<code>window = sub</code>' . . . '<code>end</code>' block. |
613 | |
614 <dl> | |
615 <dt><a name="sub.base"> | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
616 <b><code>base = image, X, Y, width, height</code></b> |
1982 | 617 </a></dt> |
618 <dd> | |
619 The image to be displayed in the window. | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
620 The window will appear at the given <code>X</code>,<code>Y</code> position |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
621 on the screen (<code>0,0</code> is the top left corner). You can specify |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
622 <code>-1</code> for center and <code>-2</code> for right (<code>X</code>) and |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
623 bottom (<code>Y</code>). The window will be as large as the image. |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
624 <code>width</code> and <code>height</code> denote the size of the window; they |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
625 are optional (if they are missing, the window is the same size as the image). |
1982 | 626 </dd> |
627 | |
628 <dt><a name="sub.background"> | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
629 <b><code>background = R, G, B</code></b> |
1982 | 630 </a></dt> |
631 <dd> | |
632 Lets you set the background color. It is useful if the image is smaller than | |
633 the window. | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
634 <code>R</code>, <code>G</code> and <code>B</code> specifies the red, green and blue |
1982 | 635 component of the color (each of them is a decimal number from 0 to 255). |
636 </dd> | |
637 </dl> | |
638 | |
639 | |
640 <h3><a name="skinmenu">3.3 Skin menu</a></h3> | |
641 | |
642 As mentioned earlier, the menu is displayed using two images. | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
643 Normal menu entries are taken from the image specified by the <code>base</code> |
1982 | 644 item, while the currently selected entry is taken from the image specified |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
645 by the <code>selected</code> item. You must define the position and size of each |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
646 menu entry through the <code>menu</code> item. |
1982 | 647 |
648 <p> | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
649 These are the entries that can be used in the '<code>window = menu</code>' |
1982 | 650 . . . '<code>end</code>' block. |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
651 </p> |
1982 | 652 |
653 <dl> | |
654 <dt><a name="menu.base"> | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
655 <b><code>base = image</code></b> |
1982 | 656 </a></dt> |
657 <dd> | |
658 The image for normal menu entries. | |
659 </dd> | |
660 | |
661 <dt><a name="menu.selected"> | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
662 <b><code>selected = image</code></b> |
1982 | 663 </a></dt> |
664 <dd> | |
665 The image showing the menu with all entries selected. | |
666 </dd> | |
667 | |
668 <dt><a name="menu.menu"> | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
669 <b><code>menu = X, Y, width, height, message</code></b> |
1982 | 670 </a></dt> |
671 <dd> | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
672 Defines the <code>X,Y</code> position and the size of a menu entry in |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
673 the image. <code>message</code> is the message to be generated when |
1982 | 674 the mouse button is released over the entry. |
675 </dd> | |
676 </dl> | |
677 | |
678 | |
679 <h2><a name="fonts">4 Fonts</a></h2> | |
680 | |
681 As mentioned in the section about the parts of a skin, a font is defined | |
682 by an image and a description | |
683 file. You can place the characters anywhere in the image, but make sure that | |
684 their position and size is given in the description file exactly. | |
685 | |
686 <p> | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
687 The font description file (with <code>.fnt</code> extension) can have comment |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
688 lines starting with '<code>;</code>'. The file must have a line in the form |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
689 </p> |
1982 | 690 |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
691 <dl> |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
692 <dt><a name="font.image"> |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
693 <b><code>image = image</code></b> |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
694 </a></dt> |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
695 <dd> |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
696 Where <code>image</code> is the name of the image file to be used for |
1982 | 697 the font (you do not have to specify the extension). |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
698 </dd> |
1982 | 699 |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
700 <dt><a name="font.char"> |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
701 <b><code>"char" = X, Y, width, height</code></b> |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
702 </a></dt> |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
703 <dd> |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
704 Here <code>X</code> and <code>Y</code> specify the position of the |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
705 <code>char</code> character in the image (<code>0,0</code> is the upper left |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
706 corner). <code>width</code> and <code>height</code> are the dimensions of the |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
707 character in pixels. |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
708 </dd> |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
709 </dl> |
1982 | 710 |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
711 This example defines the A, B, C characters using <code>font.png</code>. |
1982 | 712 <table width="100%" border=1><tr bgcolor=silver><td><pre> |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
713 ; Can be "font" instead of "font.png". |
1982 | 714 image = font.png |
715 | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
716 ; Three characters are enough for demonstration purposes :-) |
1982 | 717 "A" = 0,0, 7,13 |
718 "B" = 7,0, 7,13 | |
719 "C" = 14,0, 7,13 | |
720 </pre></td></tr></table> | |
721 | |
722 | |
723 <h3><a name="symbols">4.1 Symbols</a></h3> | |
724 | |
725 Some characters have special meanings when returned by some of the variables | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
726 used in <a href="#main.dlabel">dlabel</a>. These characters are meant to be |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
727 shown as symbols so that things like a nice DVD logo can be displayed instead |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
728 of the character 'd' for a DVD stream. |
1982 | 729 |
730 <p> | |
731 The following table lists all the characters that can be used to display | |
732 symbols (and thus require a different font). | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
733 </p> |
1982 | 734 |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
735 <table align="center" border="1"> |
1982 | 736 <tr><th align=center>Character</th><th align=left>Symbol</th></tr> |
737 <tr><td align=center><kbd>p</kbd></td> | |
738 <td align=left>play</td></tr> | |
739 <tr><td align=center><kbd>s</kbd></td> | |
740 <td align=left>stop</td></tr> | |
741 <tr><td align=center><kbd>e</kbd></td> | |
742 <td align=left>pause</td></tr> | |
743 <tr><td align=center><kbd>n</kbd></td> | |
744 <td align=left>no sound</td></tr> | |
745 <tr><td align=center><kbd>m</kbd></td> | |
746 <td align=left>mono sound</td></tr> | |
747 <tr><td align=center><kbd>t</kbd></td> | |
748 <td align=left>stereo sound</td></tr> | |
749 <tr><td align=center><kbd>f</kbd></td> | |
750 <td align=left>stream is a file</td></tr> | |
751 <tr><td align=center><kbd>v</kbd></td> | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
752 <td align=left>stream is a Video CD</td></tr> |
1982 | 753 <tr><td align=center><kbd>d</kbd></td> |
754 <td align=left>stream is a DVD</td></tr> | |
755 <tr><td align=center><kbd>u</kbd></td> | |
756 <td align=left>stream is a URL</td></tr> | |
757 </table> | |
758 | |
759 | |
760 <h2><a name="guimsg">Appendix A: GUI messages</a></h2> | |
761 | |
762 These are the messages that can be generated by buttons, potmeters and | |
763 menu entries. | |
764 | |
765 <p> | |
766 <em class=note> | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
767 <b>Note:</b> Some of the messages might not work as expected (or not work at |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
768 all). As you know, the GUI is under development.</em> |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
769 </p> |
1982 | 770 |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
771 |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
772 <h3>Playback control:</h3> |
1982 | 773 <blockquote> |
774 <dl> | |
775 <dt><b>evNext</b> | |
776 <dd>Jump to next track in the playlist. | |
777 | |
778 <dt><b>evPause</b> | |
779 <dd>Pause playing. | |
780 | |
781 <dt><b>evPauseSwitchToPlay</b> | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
782 <dd>Forms a switch together with <code>evPlaySwitchToPause</code>. They can be |
1982 | 783 used to have a common play/pause button. Both messages should be assigned |
784 to buttons displayed at the very same position in the window. This | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
785 message pauses playing and the image for the <code>evPlaySwitchToPause</code> button |
1982 | 786 is displayed (to indicate that the button can be pressed to continue playing). |
787 | |
788 <dt><b>evPlay</b> | |
789 <dd>Start playing. | |
790 | |
791 <dt><b>evPlaySwitchToPause</b> | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
792 <dd>The opposite of <code>evPauseSwitchToPlay</code>. This message starts playing |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
793 and the image for the <code>evPauseSwitchToPlay</code> button is displayed (to |
1982 | 794 indicate that the button can be pressed to pause playing). |
795 | |
796 <dt><b>evPrev</b> | |
797 <dd>Jump to previous track in the playlist. | |
798 | |
799 <dt><b>evStop</b> | |
800 <dd>Stop playing. | |
801 </dl> | |
802 </blockquote> | |
803 | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
804 |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
805 <h3>Seeking:</h3> |
1982 | 806 <blockquote> |
807 <dl> | |
808 <dt><b>evBackward10sec</b> | |
809 <dt><b>evBackward1min</b> | |
810 <dt><b>evBackward10min</b> | |
811 <dd>Seek backward 10 seconds / 1 minute / 10 minutes. | |
812 | |
813 <dt><b>evForward10sec</b> | |
814 <dt><b>evForward1min</b> | |
815 <dt><b>evForward10min</b> | |
816 <dd>Seek forward 10 seconds / 1 minute / 10 minutes. | |
817 | |
818 <dt><b>evSetMoviePosition</b> | |
819 <dd>Seek to position (can be used by a potmeter; the relative | |
820 value (0-100%) of the potmeter is used). | |
821 </dl> | |
822 </blockquote> | |
823 | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
824 |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
825 <h3>Video control:</h3> |
1982 | 826 <blockquote> |
827 <dl> | |
828 <dt><b>evDoubleSize</b> | |
829 <dd>Set the movie window to double size. | |
830 | |
831 <dt><b>evFullScreen</b> | |
832 <dd>Switch fullscreen mode on/off. | |
833 | |
834 <dt><b>evNormalSize</b> | |
835 <dd>Set the movie window to its normal size. | |
836 </dl> | |
837 </blockquote> | |
838 | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
839 |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
840 <h3>Audio control:</h3> |
1982 | 841 <blockquote> |
842 <dl> | |
843 <dt><b>evDecAudioBufDelay</b> | |
844 <dd>Decrease audio buffer delay. | |
845 | |
846 <dt><b>evDecBalance</b> | |
847 <dd>Decrease balance. | |
848 | |
849 <dt><b>evDecVolume</b> | |
850 <dd>Decrease volume. | |
851 | |
852 <dt><b>evIncAudioBufDelay</b> | |
853 <dd>Increase audio buffer delay. | |
854 | |
855 <dt><b>evIncBalance</b> | |
856 <dd>Increase balance. | |
857 | |
858 <dt><b>evIncVolume</b> | |
859 <dd>Increase volume. | |
860 | |
861 <dt><b>evMute</b> | |
862 <dd>Mute/unmute the sound. | |
863 | |
864 <dt><b>evSetBalance</b> | |
865 <dd>Set balance (can be used by a potmeter; the relative | |
866 value (0-100%) of the potmeter is used). | |
867 | |
868 <dt><b>evSetVolume</b> | |
869 <dd>Set volume (can be used by a potmeter; the relative | |
870 value (0-100%) of the potmeter is used). | |
871 </dl> | |
872 </blockquote> | |
873 | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
874 |
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
875 <h3>Miscellaneous:</h3> |
1982 | 876 <blockquote> |
877 <dl> | |
878 <dt><b>evAbout</b> | |
879 <dd>Open the about window. | |
880 | |
8316 | 881 <dt><b>evDropSubtitle</b> |
882 <dd>Disables the currently used subtitle. | |
883 | |
6726 | 884 <dt><b>evEqualizer</b> |
1982 | 885 <dd>Turn the equalizer on/off. |
886 | |
887 <dt><b>evExit</b> | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
888 <dd>Quit the program. |
1982 | 889 |
890 <dt><b>evIconify</b> | |
891 <dd>Iconify the window. | |
892 | |
893 <dt><b>evLoad</b> | |
894 <dd>Load a file (by opening a file browser window, where you can choose a | |
895 file). | |
896 | |
897 <dt><b>evLoadPlay</b> | |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
898 <dd>Does the same as <code>evLoad</code>, but it automatically starts |
1982 | 899 playing after the file is loaded. |
900 | |
8316 | 901 <dt><b>evLoadSubtitle</b> |
902 <dd>Loads a subtitle file (with the fileselector) | |
903 | |
904 <dt><b>evLoadAudioFile</b> | |
905 <dd>Loads an audio file (with the fileselector) | |
906 | |
1982 | 907 <dt><b>evNone</b> |
6271
b85d324d4503
Grammar, spellchecking and HTML fixups as usual, as well as an explanatory
diego
parents:
1982
diff
changeset
|
908 <dd>Empty message, it has no effect (except maybe in CVS versions :-)). |
1982 | 909 |
910 <dt><b>evPlayList</b> | |
911 <dd>Open/close the playlist window. | |
912 | |
8316 | 913 <dt><b>evPlayDVD</b> |
8432 | 914 <dd>Tries to open the disc in the given DVD-ROM drive. |
8316 | 915 |
916 <dt><b>evPlayVCD</b> | |
8432 | 917 <dd>Tries to open the disc in the given CD-ROM drive. |
8316 | 918 |
1982 | 919 <dt><b>evPreferences</b> |
920 <dd>Open the preferences window. | |
921 | |
8316 | 922 <dt><b>evSetAspect</b> |
923 <dd>Sets displayed image aspect. | |
924 | |
925 <dt><b>evSetURL</b> | |
926 <dd>Displays the URL dialog window. | |
927 | |
1982 | 928 <dt><b>evSkinBrowser</b> |
929 <dd>Open the skin browser window. | |
930 </dl> | |
931 </blockquote> | |
932 | |
933 </body> | |
934 </html> |