annotate DOCS/zh/skin.html @ 16407:ba2b36441de7

Avoid some short forms, some consistency, wording and typo fixes.
author diego
date Tue, 06 Sep 2005 16:36:26 +0000
parents e193600132d5
children 9a5a62f480e6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
2 <html>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
3 <head>
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
4 <meta http-equiv="Content-Type" content="text/html; charset=gbk">
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
5 <title>制作Skin -- MPlayer -- Linux下的电影播放器</title>
9512
883f38591d47 now all translations link to ../default.css
gabucino
parents: 9332
diff changeset
6 <link rel="stylesheet" type="text/css" href="../default.css">
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
7 <style type="text/css">
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
8 em.note {color: green;
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
9 font-style: normal;}
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
10 em.warn {color: red;
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
11 font-style: normal;}
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
12 </style>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
13 </head>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
14
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
15 <body>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
16
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
17
9080
e7aad3a3bb7c sync by <hephooey@fastmail.fm>
diego
parents: 7597
diff changeset
18 <h1>附录D - MPlayer skin的格式</h1>
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
19 <p>本文件的目的是描述MPlayer的skin的格式。这里所包含的信息可能不对,因为</p>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
20
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
21 <ol type="a">
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
22 <li>GUI不是我写的</li>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
23 <li>GUI还没有完成</li>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
24 <li>我可能搞错了</li>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
25 </ol>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
26
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
27 <p>因此如果某个功能与它在这里被描述的工作方式不一样,不用大惊小怪</p>。
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
28
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
29 <p>谢谢<em>Zolt醤 Ponekker</em>的帮助。</p>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
30
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
31 <p><em>Andr醩 Mohari &lt;mayday@freemail.hu&gt;</em></p>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
32
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
33
9080
e7aad3a3bb7c sync by <hephooey@fastmail.fm>
diego
parents: 7597
diff changeset
34 <h2><a name="overview">D.1 综述</a></h2>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
35
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
36 <p>这虽然与skin的格式扯不上什么关系,但是你应该了解MPlayer有<b>没有</b>内建的皮肤,
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
37 因此<b>为了能够使用GUI必须安装至少一种皮肤。</b></p>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
38
9080
e7aad3a3bb7c sync by <hephooey@fastmail.fm>
diego
parents: 7597
diff changeset
39 <h3><a name="dirs">D.1.1 目录</a></h3>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
40
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
41 <p>skin的搜索目录(按顺序)是:</p>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
42 <pre>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
43 $(DATADIR)/Skin/
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
44 $(PREFIX)/share/mplayer/Skin/
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
45 ~/.mplayer/Skin/
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
46 </pre>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
47
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
48 <p>注意,第一个路径倚赖于MPlayer的安装配置(见<code>configure</code>脚本
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
49 的<code>--prefix</code>和<code>--datadir</code>的参数)。</p>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
50
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
51 <p>所有的skin被安装到上面列出的一个目录下的自己的目录中,例如:</p>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
52 <pre>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
53 $(PREFIX)/share/mplayer/Skin/default/
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
54 </pre>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
55
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
56
9080
e7aad3a3bb7c sync by <hephooey@fastmail.fm>
diego
parents: 7597
diff changeset
57 <h3><a name="images">D.1.2 图像格式</a></h3>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
58
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
59 <p>图像必须是真彩的(24或者32bpp)PNG图片。</p>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
60
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
61 <p>在主窗口(见下面)中你能使用包含“透明色”的图像:用颜色#FF00FF(<font color="#FF00FF">深红</font>)
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
62 填充的区域在MPlayer看来是完全透明的。这意味着你甚至能改变窗口外形如果你的X服务器有XShape扩展。</p>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
63
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
64
9080
e7aad3a3bb7c sync by <hephooey@fastmail.fm>
diego
parents: 7597
diff changeset
65 <h3><a name="components">D.1.3 Skin的组成部分</a></h3>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
66
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
67 <p>Skin的格式是十分自由的(不是像Winamp/XMMS的那种固定格式的皮肤),所以能不能做出些东西取决于你。</p>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
68
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
69 <p>目前有三个要被修饰的窗口:<a href="#mainwin">主窗口</a>,<a href="#subwindow">副窗口</a>,<a href="#mainwin">播放条</a>和
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
70 <a href="#skinmenu">Skin菜单</a>(右键单击弹出)。</p>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
71
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
72 <ul>
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
73 <li><p><b>主窗口</b>和/或者<b>播放条</b>是你控制MPlayer的地方。窗口的背景是图像。各种项目可以(而且必须)被放置在这里:
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
74 <em>按钮</em>,<em>滑动条</em>和<em>标签</em>。对于每一个项目,你都必须指定其位置和大小。</p>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
75
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
76 <p>一个<b>按钮</b>有三种状态(按下,释放,禁止),所以按钮图像必须垂直地划分成三部分。
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
77 细节参见<a href="#main.button">按钮</a>项目。</p>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
78
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
79 <p><b>滑动条</b>(主要用于搜寻条和音量/平衡控制)可以有任意多的状态只要你把图像分成上下排列的足够多份。
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
80 细节参见<a href="#main.hpotmeter">hpotmeter</a>和<a href="#main.potmeter">potmeter</a>。</p>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
81
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
82 <p><b>标签</b>有一点特殊:字符需要从图像文件中绘制,而图像中的字符用<a href="#fonts">字体描述文件</a>描述。
9080
e7aad3a3bb7c sync by <hephooey@fastmail.fm>
diego
parents: 7597
diff changeset
83 后者一个纯文本文件规定图像中每一字符的x,y坐标和大小(图像文件和他的字体描述文件<em>共同</em>
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
84 组成一个字体)。细节参见<a href="#main.dlabel">dlabel</a>和<a href="#main.slabel">slabel</a>。</p>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
85
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
86 <p><em class=note><b>注意:</b>所有图像都能像<a href="#images">图像格式</a>一节中说明的使用透明色。如果X Server不支持
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
87 XShape扩展,透明的部分将显示为黑色。如果你想使用这个特性,主窗口背景图像的宽度应该能被8整除。</em></p>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
88 </li>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
89
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
90 <li><p><b>subwindow</b>是电影显示的地方。如果没有载入电影它将显示一个指定的图像(空的窗口太无聊了:-))
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
91 <em class=note><b>注意:</b>在这里<b>不允许</b>使用透明色。</em></p>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
92 </li>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
93
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
94 <li><p><b>skin菜单</b>仅仅是提供一个通过菜单控制MPlayer的方法。菜单需要两个图像:一个是基础图像
9080
e7aad3a3bb7c sync by <hephooey@fastmail.fm>
diego
parents: 7597
diff changeset
95 用来显示菜单的正常状态,另一个用来显示被选择的项目。当菜单弹出时,显示第一个图像。如果你把鼠标在
e7aad3a3bb7c sync by <hephooey@fastmail.fm>
diego
parents: 7597
diff changeset
96 菜单条目上移动,当前选择的项目从第二个图像中复制并覆盖到当前鼠标指针下面的菜单项目上。
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
97 (第二个图像从来不作为整体来显示)。</p>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
98
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
99 <p>一个菜单选项用图像中的位置和大小定义(细节参见<a href="#skinmenu">skin菜单</a>)。</p>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
100 </li>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
101 </ul>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
102
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
103 <p>还有一件重要的事情没有提到:为了使按钮,滑动条和菜单项工作,MPlayer必须知道如果他们被点击
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
104 的话应该做什么。这是利用<a href="#guimsg">消息</a>(事件)机制完成的。对于这些项目,你必须定义当
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
105 他们被点击时将会产生的消息。</p>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
106
9080
e7aad3a3bb7c sync by <hephooey@fastmail.fm>
diego
parents: 7597
diff changeset
107 <h3><a name="files">D.1.4 文件</a></h3>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
108
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
109 <p>你需要制作下列的文件构成一个skin:</p>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
110
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
111 <ul>
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
112 <li>一个配置文件称为<a href="#skin">skin</a>,告诉MPlayer如何将skin的不同部分放在一起,
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
113 以及如果你在窗口中某处点击的话应该做什么。</li>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
114 <li>主窗口的背景图像。</li>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
115 <li>主窗口上代表物件的图像(包括一个或更多字体描述文件用来显示标签)。</li>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
116 <li>在副窗口中显示的图像(可选)。</li>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
117 <li>skin菜单的两个图像(仅当你想要创建菜单时才需要他们)。</li>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
118 </ul>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
119
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
120 <p>除了skin的配置文件之外,你能给其它文件起随便什么名字(但字体描述文件必须以<code>.fnt</code>为扩展名)。</p>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
121
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
122
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
123 <h2><a name="skinfile">D.2 skin文件</a></h2>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
124
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
125 <p>如上所述,这是skin的配置文件。
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
126 它是基于行的;注释行必须以'<code>;</code>'开头(只有空格和tab可以放在'<code>;</code>'之前)。</p>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
127
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
128 <p>文件由section组成。每一段描述一个程序的skin,使用下列的形式:</p>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
129
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
130 <table border=1 width="100%">
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
131 <tr bgcolor=silver>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
132 <td>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
133 <pre>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
134 section = <i>section name</i>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
135 .
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
136 .
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
137 .
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
138 end
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
139 </pre>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
140 </td>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
141 </tr>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
142 </table>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
143
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
144 <p>目前只有一个程序,所以你只需要一个section:
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
145 它的名称是<b>movieplayer</b>。</p>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
146
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
147 <p>这个段中每个窗口用下列形式的块描述:</p>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
148
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
149 <table border=1 width="100%">
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
150 <tr bgcolor=silver>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
151 <td>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
152 <pre>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
153 window = <i>window name</i>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
154 .
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
155 .
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
156 .
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
157 end
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
158 </pre>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
159 </td>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
160 </tr>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
161 </table>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
162
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
163 <p>其中<i>window name</i>可以是下面各字串中的一项:</p>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
164
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
165 <ul>
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
166 <li><b>main</b> -- 对于主窗口</li>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
167 <li><b>sub</b> -- 对于副窗口</li>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
168 <li><b>menu</b> -- 对于skin菜单</li>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
169 <li><b>playbar</b> - 播放条</li>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
170 </ul>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
171
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
172 <p>(副窗口和skin菜单块是可选的 -- 你不一定要创建菜单或者修饰副窗口 )。</p>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
173
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
174 <p>在一个窗口的描述块内,你能用下列形式的一行定义窗口中的每一项目:</p>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
175
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
176 <dl>
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
177 <dt><b><code>item = parameter</code></b></dt>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
178 <dd>其中<code>item</code>是定义GUI项目的类型的字串,<code>parameter</code>是一个数字或者文字值
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
179 (或者一组用逗号分开的值的列表)。</dd>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
180 </dl>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
181
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
182 <p>把上述的放在一起,整个文件看起来就有点像这样:</p>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
183
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
184 <table border=1 width="100%">
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
185 <tr bgcolor=silver>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
186 <td>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
187 <pre>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
188 section = movieplayer
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
189 window = main
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
190 ; ... items for main window ...
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
191 end
9614
05b3a03fdd8f Sync by <hephooey@fastmail.fm>.
diego
parents: 9512
diff changeset
192
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
193 window = sub
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
194 ; ... items for subwindow ...
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
195 end
9614
05b3a03fdd8f Sync by <hephooey@fastmail.fm>.
diego
parents: 9512
diff changeset
196
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
197 window = menu
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
198 ; ... items for skin menu ...
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
199 end
9080
e7aad3a3bb7c sync by <hephooey@fastmail.fm>
diego
parents: 7597
diff changeset
200
e7aad3a3bb7c sync by <hephooey@fastmail.fm>
diego
parents: 7597
diff changeset
201 window = playbar
e7aad3a3bb7c sync by <hephooey@fastmail.fm>
diego
parents: 7597
diff changeset
202 ; ... items for playbar ...
e7aad3a3bb7c sync by <hephooey@fastmail.fm>
diego
parents: 7597
diff changeset
203 end
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
204 end
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
205 </pre>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
206 </td>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
207 </tr>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
208 </table>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
209
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
210 <p>图像文件的名称必须不带目录名 -- 图像在<code>Skin</code>目录中被搜索。你能(但是并不需要)规定扩展名。
9080
e7aad3a3bb7c sync by <hephooey@fastmail.fm>
diego
parents: 7597
diff changeset
211 如果文件不存在,MPlayer将试图装载<code>&lt;filename&gt;.&lt;ext&gt;</code>文件,
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
212 <code>&lt;ext&gt;</code>可以是<code>png</code>或者<code>PNG</code>(按这个顺序尝试)。第一个匹配文件将被使用。</p>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
213
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
214 <p>最后是一些用来定位的语句。主窗口和副窗口可以放置在屏幕的不同的角落,通过给定<code>X</code>和<code>Y</code>坐标。
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
215 <code>0</code>代表顶端或左端,<code>-1</code>代表中心然后<code>-2</code>代表右边或底部:</p>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
216
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
217 <pre>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
218
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
219 (0, 0)----(-1, 0)----(-2, 0)
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
220 | | |
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
221 | | |
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
222 (0,-1)----(-1,-1)----(-2,-1)
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
223 | | |
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
224 | | |
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
225 (0,-2)----(-1,-2)----(-2,-2)
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
226
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
227 </pre>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
228
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
229 <table border=1 cellpadding=5 width="100%">
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
230 <tr bgcolor="#ffffcc">
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
231 <td>这里有个例子可以把这个搞清楚。假设你有个叫<code>main.png</code>的图像用来做主窗口:
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
232 <blockquote>
9614
05b3a03fdd8f Sync by <hephooey@fastmail.fm>.
diego
parents: 9512
diff changeset
233 <code>base = main, -1, -1</code>
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
234 </blockquote>
9614
05b3a03fdd8f Sync by <hephooey@fastmail.fm>.
diego
parents: 9512
diff changeset
235 MPlayer将尝试装载<code>main</code>,<code>main.png</code>,<code>main.PNG</code>文件。
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
236 </td>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
237 </tr>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
238 </table>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
239
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
240
9080
e7aad3a3bb7c sync by <hephooey@fastmail.fm>
diego
parents: 7597
diff changeset
241 <h3><a name="mainwindow">D.2.1 主窗口和播放条</a></h3>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
242
9614
05b3a03fdd8f Sync by <hephooey@fastmail.fm>.
diego
parents: 9512
diff changeset
243 <p>下面是所有能用于'<code>window = main</code>' .&nbsp;.&nbsp;. '<code>end</code>'和'<code>window
05b3a03fdd8f Sync by <hephooey@fastmail.fm>.
diego
parents: 9512
diff changeset
244 = playbar</code>' &nbsp;.&nbsp;. '<code>end</code>'块中的项目的列表。</p>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
245
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
246 <dl>
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
247 <dt><a name="main.base"><b><code>base = image, X, Y</code></b></a></dt>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
248 <dd>指定用于主窗口的背景图像。窗口将显示在屏幕上的<code>X,Y</code>位置,窗口的大小与图像相同。
9614
05b3a03fdd8f Sync by <hephooey@fastmail.fm>.
diego
parents: 9512
diff changeset
249 <div><em class=warn><b>注意:</b>这些参数目前对显示窗口不起作用。</em></div>
05b3a03fdd8f Sync by <hephooey@fastmail.fm>.
diego
parents: 9512
diff changeset
250 <div><em class=warn><b>警告:</b>图像中的透明区域(彩色的#FF00FF )在没有XShape扩展的X服务器上是
05b3a03fdd8f Sync by <hephooey@fastmail.fm>.
diego
parents: 9512
diff changeset
251 黑色的。图像的宽度必须能被8整除。</em> </div>
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
252 </dd>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
253
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
254 <dt><a name="main.button"><b><code>button = image, X, Y, width, height, message</code></b></a></dt>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
255 <dd>将一个大小为<code>width</code>*<code>height</code>的按钮放置在<code>X</code>,<code>Y</code>的位置。
9080
e7aad3a3bb7c sync by <hephooey@fastmail.fm>
diego
parents: 7597
diff changeset
256 指定的<code>message</code>将在按钮被点击时产生。被<code>image</code>制定的图像必须有从上到下三个部分
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
257 (根据按钮的可能状态),像这样:
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
258 <pre>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
259 +------------+
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
260 | pressed |
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
261 +------------+
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
262 | released |
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
263 +------------+
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
264 | disabled |
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
265 +------------+
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
266 </pre>
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
267 </dd>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
268
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
269 <dt><a name="main.decoration"><b><code>decoration = enable|disable</code></b></a></dt>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
270 <dd>允许或禁止window manager修饰主窗口。缺省设定是<b>禁止</b>。<br><br>
9614
05b3a03fdd8f Sync by <hephooey@fastmail.fm>.
diego
parents: 9512
diff changeset
271 <div><em class="warn"><b>注意:</b>这对显示窗口无效,它们不需要。</em><div>
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
272 </dd>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
273
9614
05b3a03fdd8f Sync by <hephooey@fastmail.fm>.
diego
parents: 9512
diff changeset
274 <dt><a name="main.hpotmeter"><b><code>hpotmeter = button, bwidth, bheight, phases, numphases, default,
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
275 X, Y, width, height, message</code><br><code>vpotmeter = button, bwidth, bheight, phases, numphases, default,
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
276 X, Y, width, height, message</code></b></a></dt>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
277 <dd>在<code>X</code>,<code>Y</code>位置放置一个大小为<code>width</code>*<code>height</code>的水平滑动条。
9080
e7aad3a3bb7c sync by <hephooey@fastmail.fm>
diego
parents: 7597
diff changeset
278 所用的图像可以划分成不同的部分用来显示滑动条的不同状态(例如,你能做一个音量滑动条,当音量从最小变到最大时,
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
279 滑动条的颜色从绿色变成红色。)。<code>hpotmeter</code>可以有一个能被水平拖曳的按钮。
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
280
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
281 <div>参数是:</div>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
282
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
283 <ul>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
284 <li><code>button</code> -- 用于按钮的图像(必须有从上到下三部分,跟<a href="#main.button">button</a>中一样)</li>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
285 <li><code>bwidth</code>,<code>bheight</code> -- 按钮的大小</li>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
286 <li><code>phases</code> -- 用于hpotmeter的不同的状态的图像。如果你想不要这样的图像可以使用一个特殊的值<code>NULL</code>。
9080
e7aad3a3bb7c sync by <hephooey@fastmail.fm>
diego
parents: 7597
diff changeset
287 图像必须像这样被垂直划分成<code>numphases</code>个部分:
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
288 <pre>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
289 +------------+
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
290 | phase #1 |
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
291 +------------+
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
292 | phase #2 |
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
293 +------------+
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
294 ...
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
295 +------------+
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
296 | phase #n |
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
297 +------------+
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
298 </pre>
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
299 </li>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
300 <li><code>numphases</code> -- <code>phase</code>图像中储存的状态的数量</li>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
301 <li><code>default</code> -- hpotmeter的缺省值(范围0到100)</li>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
302 <li><code>X</code>,<code>Y</code> -- hpotmeter的位置</li>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
303 <li><code>width</code>,<code>height</code> -- <code>hpotmeter</code>的宽度和高度</li>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
304 <li><code>message</code> -- 当<code>hpotmeter</code>的值改变时产生的消息</li>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
305 </ul>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
306
9614
05b3a03fdd8f Sync by <hephooey@fastmail.fm>.
diego
parents: 9512
diff changeset
307 </dd>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
308
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
309 <dt><a name="main.potmeter"><b><code>potmeter = phases, numphases, default, X, Y, width, height, message</code></b></a></dt>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
310 <dd>没有按钮的<code>hpotmeter</code>。(我猜它是用来旋转,但它只对水平拖拽作出反应)。
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
311 描述参数参见<a href="#main.hpotmeter">hpotmeter</a>。<code>phases</code>能设为<code>NULL</code>,
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
312 但这实在没什么用处,因为那样你就看不到<code>potmeter</code>在哪里了。</dd>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
313
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
314 <dt><a name="main.font"><b><code>font = fontfile, fontid</code></b></a></dt>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
315 <dd>定义一个字体。<code>fontfile</code>是以<code>.fnt</code>为扩展名的字体描述文件的名字(<b>不要</b>加上扩展名)。
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
316 <code>fontid</code>用来代表这种字体(见<a href="#main.dlabel">dlabel</a>和<a href="#main.slabel">slabel</a>)。
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
317 可以定义25个字体。</dd>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
318
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
319 <dt><a name="main.slabel"><b><code>slabel = X, Y, fontid, "text"</code></b></a></dt>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
320 <dd>在<code>X</code>,<code>Y</code>位置放置一个静态的标签。<code>text</code>将用<code>fontid</code>代表的字体显示。
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
321 text只能是无格式文本(<code>$x</code>之类的变量不起作用)而且必须封在一对双引号中(但是<code>"</code>字符不能是text的一部分)。
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
322 标签使用由<code>fontid</code>代表的字体显示。</dd>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
323
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
324 <dt><a name="main.dlabel"><b><code>dlabel = X, Y, length, align, fontid, "text"</code></b></a></dt>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
325 <dd>在<code>X</code>,<code>Y</code>位置放置一个动态的标签。标签被称为动态的,因为它的text周期性地刷新。标签的最大限度长度由
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
326 <code>leghth</code>给定(它的高度是字符的高度)。如果将要显示的text比给定的宽度宽,它将滚动显示,否则它将在指定的空间之内按
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
327 <code>align</code>参数的值对齐显示:<code>0</code>表示靠右对齐,<code>1</code>表示居中对齐,<code>2</code>表示靠左对齐。<br>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
328 要显示的文本由<code>text</code>给定:text必须封在一对双引号中(但是<code>"</code>字符不能是text的一部分)。标签使用由
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
329 <code>fontid</code>代表的字体显示。你能在文本中使用下列变量:
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
330
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
331 <table align="center" border="1">
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
332 <tr align=center><th>Variable</th><th align=left>Meaning</th></tr>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
333 <tr><td align=center><kbd>$1</kbd></td>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
334 <td><em>hh:mm:ss</em>格式的播放时间</td></tr>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
335 <tr><td align=center><kbd>$2</kbd></td>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
336 <td><em>mmmm:ss</em>格式的播放时间</td></tr>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
337 <tr><td align=center><kbd>$3</kbd></td>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
338 <td><em>hh</em>(小时)格式的播放时间</td></tr>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
339 <tr><td align=center><kbd>$4</kbd></td>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
340 <td><em>mm</em>(分)格式的播放时间</td></tr>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
341 <tr><td align=center><kbd>$5</kbd></td>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
342 <td><em>ss</em>(秒)格式的播放时间</td></tr>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
343 <tr><td align=center><kbd>$6</kbd></td>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
344 <td><em>hh:mm:ss</em>格式的电影长度</td></tr>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
345 <tr><td align=center><kbd>$7</kbd></td>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
346 <td><em>mmmm:ss</em>格式的电影长度</td></tr>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
347 <tr><td align=center><kbd>$8</kbd></td>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
348 <td><em>h:mm:ss</em>格式的电影长度</td></tr>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
349 <tr><td align=center><kbd>$v</kbd></td>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
350 <td><em>xxx.xx%</em>格式的音量</td></tr>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
351 <tr><td align=center><kbd>$V</kbd></td>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
352 <td><em>xxx.x</em>格式的音量</td></tr>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
353 <tr><td align=center><kbd>$b</kbd></td>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
354 <td><em>xxx.xx%</em>格式的声道平衡</td></tr>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
355 <tr><td align=center><kbd>$B</kbd></td>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
356 <td><em>xxx.x</em>格式的声道平衡</td></tr>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
357 <tr><td align=center><kbd>$$</kbd></td>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
358 <td><kbd>$</kbd>字符</td></tr>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
359 <tr><td align=center><kbd>$a</kbd></td>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
360 <td>一个代表音频格式的字母(none: <code>n</code>,mono: <code>m</code>,stereo: <code>t</code>)</td></tr>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
361 <tr><td align=center><kbd>$t</kbd></td>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
362 <td>track号(在播放列表中)</td></tr>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
363 <tr><td align=center><kbd>$o</kbd></td>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
364 <td>文件名</td></tr>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
365 <tr><td align=center><kbd>$f </kbd></td>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
366 <td>小写格式文件名</td></tr>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
367 <tr><td align=center><kbd>$F </kbd></td>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
368 <td>大写格式文件名</td></tr>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
369 <tr><td align=center><kbd>$T</kbd></td>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
370 <td>一个代表媒体流类型的字幕(文件: <code>f</code>,Video CD: <code>v</code>,DVD: <code>d</code>,URL: <code>u</code>)</td></tr>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
371 <tr><td align=center><kbd>$p</kbd></td>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
372 <td>"p"字符(如果电影正在播放并且字体中有"p"这个字符)</td></tr>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
373 <tr><td align=center><kbd>$s </kbd></td>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
374 <td>"s"字符(如果电影停止播放并且字体中有"s"这个字符)</td></tr>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
375 <tr><td align=center><kbd>$e</kbd></td>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
376 <td>"e"字符(如果playback被暂停并且字体中有"e"这个字符)</td></tr>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
377 <tr><td align=center><kbd>$x</kbd></td>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
378 <td>电影宽度</td></tr>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
379 <tr><td align=center><kbd>$y</kbd></td>
9614
05b3a03fdd8f Sync by <hephooey@fastmail.fm>.
diego
parents: 9512
diff changeset
380 <td>电影高度</td></tr>
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
381 <tr><td align=center><kbd>$C</kbd></td>
9614
05b3a03fdd8f Sync by <hephooey@fastmail.fm>.
diego
parents: 9512
diff changeset
382 <td>使用的编解码器的名字</td></tr>
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
383 </table>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
384
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
385 <em class="note"><b>注意:</b><kbd>$a</kbd>,<kbd>$T</kbd>,<kbd>$p</kbd>,<kbd>$s</kbd>和<kbd>$e</kbd>变量都返回应该被显示作为特殊的符号
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
386 (例如,"e"通常代表像<code>||</code>这样的暂停符号)的字符。你应该有一个正常字符的字体以及另一个用于符号的不同的字体。
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
387 更多信息参见<a href="#symbols">符号</a>部分。</em>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
388 </dd>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
389 </dl>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
390
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
391
9080
e7aad3a3bb7c sync by <hephooey@fastmail.fm>
diego
parents: 7597
diff changeset
392 <h3><a name="subwindow">D.2.2 副窗口</a></h3>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
393
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
394 <p>下列的项目能用于'<code>window = sub</code>' .&nbsp;.&nbsp;. '<code>end</code>'块。<p>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
395
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
396 <dl>
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
397 <dt><a name="sub.base"> <b><code>base = image, X, Y, width, height</code></b></a></dt>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
398 <dd>在副窗口中将要显示的图像。窗口将在屏幕给定的<code>X</code>,<code>Y</code>位置出现(<code>0,0</code>是左上角)。
9080
e7aad3a3bb7c sync by <hephooey@fastmail.fm>
diego
parents: 7597
diff changeset
399 你能用<code>-1</code>指定中心<code>-2</code>指定右边(<code>X</code>)和底部(<code>Y</code>)。窗口将和图像一样大。
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
400 <code>width</code>和<code>height</code>指定窗口的大小; 他们是可选的(如果没有他们,窗口是与图像同样的大小)。</dd>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
401
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
402 <dt><a name="sub.background"><b><code>background = R, G, B</code></b></a></dt>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
403 <dd>让你设置背景颜色。它在图像小于窗口时有用。
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
404 <code>R</code>,<code>G</code>和<code>B</code>规定颜色的的红,绿和蓝色的组成部分(它们中每一个都是从0到255的十进制数字)。</dd>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
405 </dl>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
406
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
407
9080
e7aad3a3bb7c sync by <hephooey@fastmail.fm>
diego
parents: 7597
diff changeset
408 <h3><a name="skinmenu">D.2.3 Skin菜单</a></h3>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
409
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
410 <p>如前所述,菜单用两个图像显示。
9080
e7aad3a3bb7c sync by <hephooey@fastmail.fm>
diego
parents: 7597
diff changeset
411 正常的菜单条目从<code>base</code>项指定的图像中获得,当前选择的条目则从<code>selected</code>项指定的图像中获得。
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
412 你必须通过<code>menu</code>项定义每个菜单条目的位置和大小。</p>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
413
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
414 <p>这些是能用于'<code>window = menu</code>'.&nbsp;.&nbsp;. '<code>end</code>'之间的项目。</p>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
415
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
416 <dl>
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
417 <dt><a name="menu.base"><b><code>base = image</code></b></a></dt>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
418 <dd>正常的菜单条目的图像。</dd>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
419
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
420 <dt><a name="menu.selected"><b><code>selected = image</code></b></a></dt>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
421 <dd>所有条目都被选择的菜单的图像。</dd>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
422
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
423 <dt><a name="menu.menu"><b><code>menu = X, Y, width, height, essage</code></b></a></dt>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
424 <dd>定义图像中一个菜单条目的<code>X,Y</code>位置和大小。当鼠标在该条目上被释放时产生<code>message</code>消息。</dd>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
425 </dl>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
426
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
427
9080
e7aad3a3bb7c sync by <hephooey@fastmail.fm>
diego
parents: 7597
diff changeset
428 <h2><a name="fonts">D.3 字体</a></h2>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
429
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
430 <p>就象在关于skin的各部分的一节中论及的,字体由一个图像和一个描述文件定义。你能将字符放置在图像中的任何地方,
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
431 但是必须确保他们的位置和大小被精确的提交给描述文件。</p>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
432
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
433 <p>字体描述文件随着(以<code>.fnt</code>为扩展名)能有以'<code>;</code>'开始的注释行。文件必须有像这样的行</p>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
434
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
435 <dl>
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
436 <dt><a name="font.image"><b><code>image = image</code></b></a></dt>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
437 <dd>其中<code>image</code>是用于字体的图像文件的名字(你不必制定扩展名)。</dd>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
438
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
439 <dt><a name="font.char"><b><code>"char" = X, Y, width, height</code></b></a></dt>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
440 <dd>这里<code>X</code>和<code>Y</code>指定<code>char</code>字符在图像中的位置(<code>0,0</code>表示左上
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
441 角)。<code>width</code>和<code>height</code>是字符的尺寸,以象素为单位。</dd>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
442 </dl>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
443
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
444 <p>这个例子中用<code>font.png</code>定义A,B,C三个字符。</p>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
445 <table width="100%" border=1>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
446 <tr bgcolor=silver>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
447 <td>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
448 <pre>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
449 ; Can be "font" instead of "font.png".
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
450 image = font.png
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
451
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
452 ; Three characters are enough for demonstration purposes :-)
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
453 "A" = 0,0, 7,13
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
454 "B" = 7,0, 7,13
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
455 "C" = 14,0, 7,13
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
456 </pre>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
457 </td>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
458 </tr>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
459 </table>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
460
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
461
9080
e7aad3a3bb7c sync by <hephooey@fastmail.fm>
diego
parents: 7597
diff changeset
462 <h3><a name="symbols">D.3.1 符号</a></h3>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
463
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
464 <p><a href="#main.dlabel">dlabel</a>中使用的一些变量返回的一些字符有特殊的意义。这些字符应该被显示为符号,
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
465 使得播放DVD时显示一个漂亮的DVD logo而不是字符‘d’。</p>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
466
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
467 <p>下列的表格列出所有能被用来显示符号的字符(所以要求另一种字体)。</p>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
468
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
469 <table align="center" border="1">
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
470 <tr><th align=center>字符</th><th align=left>符号</th></tr>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
471 <tr><td align=center><kbd>p</kbd></td>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
472 <td align=left>播放</td></tr>
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
473 <tr><td align=center><kbd>s</kbd></td>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
474 <td align=left>停止</td></tr>
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
475 <tr><td align=center><kbd>e</kbd></td>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
476 <td align=left>暂停</td></tr>
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
477 <tr><td align=center><kbd>n</kbd></td>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
478 <td align=left>无声</td></tr>
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
479 <tr><td align=center><kbd>m</kbd></td>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
480 <td align=left>单声道</td></tr>
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
481 <tr><td align=center><kbd>t</kbd></td>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
482 <td align=left>立体声</td></tr>
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
483 <tr><td align=center><kbd>f</kbd></td>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
484 <td align=left>媒体流是文件</td></tr>
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
485 <tr><td align=center><kbd>v</kbd></td>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
486 <td align=left>媒体流是Video CD</td></tr>
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
487 <tr><td align=center><kbd>d</kbd></td>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
488 <td align=left>媒体流是DVD</td></tr>
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
489 <tr><td align=center><kbd>u</kbd></td>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
490 <td align=left>媒体流是URL</td></tr>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
491 </table>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
492
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
493
9080
e7aad3a3bb7c sync by <hephooey@fastmail.fm>
diego
parents: 7597
diff changeset
494 <h2><a name="guimsg">D.4: GUI信息</a></h2>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
495
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
496 <p>这些是能被按钮,滑动条和菜单项产生的消息。</p>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
497
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
498 <p><em class=note><b>注意:</b>一些信息可能不像所预想的那样工作(或者根本不工作)。你也知道,GUI还在开发中。</em></p>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
499
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
500
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
501 <h3>Playback控制:</h3>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
502 <blockquote>
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
503 <dl>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
504 <dt><b>evNext</b></dt>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
505 <dd>跳到播放列表中下一个track。</dd>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
506
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
507 <dt><b>evPause</b></dt>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
508 <dd>暂停播放。</dd>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
509
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
510 <dt><b>evPauseSwitchToPlay</b></dt>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
511 <dd>与<code>evPlaySwitchToPause</code>一起形成开关。他们能用来实现普通的播放/暂停按钮。两条信息应该被分配到
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
512 窗口中同一位置的两个按钮上。这条信息暂停播放并使<code>evPlaySwitchToPause</code>按钮的图像显示出来(表明点击按钮能继续播放)。</dd>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
513
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
514 <dt><b>evPlay</b></dt>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
515 <dd>开始播放。</dd>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
516
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
517 <dt><b>evPlaySwitchToPause</b></dt>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
518 <dd>与<code>evPauseSwitchToPlay</code>对应的消息。这条信息开始播放并使<code>evPauseSwitchToPlay</code>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
519 按钮的图像显示出来(表明点击按钮能暂停播放)。</dd>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
520
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
521 <dt><b>evPrev</b></dt>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
522 <dd>跳到播放列表中上一个track。</dd>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
523
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
524 <dt><b>evStop</b></dt>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
525 <dd>停止播放。</dd>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
526 </dl>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
527 </blockquote>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
528
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
529
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
530 <h3>搜索:</h3>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
531 <blockquote>
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
532 <dl>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
533 <dt><b>evBackward10sec </b></dt>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
534 <dt><b>evBackward1min </b></dt>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
535 <dt><b>evBackward10min </b></dt>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
536 <dd>向后搜索10秒/1分钟/10分钟。</dd>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
537
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
538 <dt><b>evForward10sec</b></dt>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
539 <dt><b>evForward1min</b></dt>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
540 <dt><b>evForward10min</b></dt>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
541 <dd>向前搜索10秒/1分钟/10分钟。</dd>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
542
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
543 <dt><b>evSetMoviePosition </b></dt>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
544 <dd>搜索到制定位置(能被滑动条使用;使用与滑动条相关的值( 0-100% ))。</dd>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
545 </dl>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
546 </blockquote>
9614
05b3a03fdd8f Sync by <hephooey@fastmail.fm>.
diego
parents: 9512
diff changeset
547
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
548
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
549 <h3>视频控制:</h3>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
550 <blockquote>
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
551 <dl>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
552 <dt><b>evDoubleSize化</b></dt>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
553 <dd>把电影窗口置为双倍大小。</dd>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
554
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
555 <dt><b>evFullScreen </b></dt>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
556 <dd>切换全屏方式。</dd>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
557
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
558 <dt><b>evNormalSize化</b></dt>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
559 <dd>把电影窗口置为正常大小。</dd>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
560 </dl>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
561 </blockquote>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
562
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
563
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
564 <h3>音频控制:</h3>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
565 <blockquote>
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
566 <dl>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
567 <dt><b>evDecAudioBufDelay</b></dt>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
568 <dd>减少音频缓冲延迟。</dd>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
569
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
570 <dt><b>evDecBalance</b></dt>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
571 <dd>减少声道平衡。</dd>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
572
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
573 <dt><b>evDecVolume</b></dt>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
574 <dd>减少音量。</dd>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
575
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
576 <dt><b>evIncAudioBufDelay</b></dt>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
577 <dd>增加音频缓冲延迟。</dd>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
578
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
579 <dt><b>evIncBalance</b></dt>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
580 <dd>增加声道平衡。</dd>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
581
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
582 <dt><b>evIncVolume</b></dt>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
583 <dd>增加音量。</dd>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
584
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
585 <dt><b>evMute</b></dt>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
586 <dd>禁音/取消禁音。</dd>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
587
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
588 <dt><b>evSetBalance</b></dt>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
589 <dd>设置声道平衡(能被滑动条使用;使用与滑动条相关的值( 0-100% ))。</dd>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
590
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
591 <dt><b>evSetVolume</b></dt>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
592 <dd>设置音量(能被滑动条使用;使用与滑动条相关的值( 0-100% ))。</dd>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
593 </dl>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
594 </blockquote>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
595
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
596
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
597 <h3>其他:</h3>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
598 <blockquote>
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
599 <dl>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
600 <dt><b>evAbout</b></dt>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
601 <dd>打开关于窗口。</dt>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
602
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
603 <dt><b>evEqualizer</b></dt>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
604 <dd>打开/关闭均衡器。</dd>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
605
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
606 <dt><b>evExit</b></dt>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
607 <dd>退出程序。</dd>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
608
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
609 <dt><b>evIconify</b></dt>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
610 <dd>窗口图标化。</dd>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
611
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
612 <dt><b>evLoad</b></dt>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
613 <dd>装载文件(打开一个文件浏览窗口,你能在其中选择文件)。</dd>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
614
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
615 <dt><b>evLoadPlay</b></dt>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
616 <dd>功能与<code>evLoad</code>一样,但是它在文件之后装载自动地开始播放。</dd>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
617
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
618 <dt><b>evNone</b></dt>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
619 <dd>空信息,它没有效果(也许CVS版本除外:-))。</dd>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
620
13752
e193600132d5 Important typo noticed by Piero di Vita <scognito at libero dot it>
diego
parents: 9614
diff changeset
621 <dt><b>evPlaylist</b></dt>
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
622 <dd>打开/关闭播放列表窗口。</dd>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
623
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
624 <dt><b>evPlayDVD</b></dt>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
625 <dd>尝试打开指定的DVD-ROM驱动器中的碟片。</dd>
9080
e7aad3a3bb7c sync by <hephooey@fastmail.fm>
diego
parents: 7597
diff changeset
626
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
627 <dt><b>evPlayVCD</b></dt>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
628 <dd>尝试打开指定的CD-ROM驱动器中的碟片。</dd>
9080
e7aad3a3bb7c sync by <hephooey@fastmail.fm>
diego
parents: 7597
diff changeset
629
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
630 <dt><b>evPreferences</b></dt>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
631 <dd>打开选项设置窗口。</dd>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
632
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
633 <dt><b>evSetAspect</b></dt>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
634 <dd>设置显示图像的屏幕高宽比。</dd>
9080
e7aad3a3bb7c sync by <hephooey@fastmail.fm>
diego
parents: 7597
diff changeset
635
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
636 <dt><b>evSetURL</b></dt>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
637 <dd>显示URL对话窗口。</dd>
9080
e7aad3a3bb7c sync by <hephooey@fastmail.fm>
diego
parents: 7597
diff changeset
638
e7aad3a3bb7c sync by <hephooey@fastmail.fm>
diego
parents: 7597
diff changeset
639
9268
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
640 <dt><b>evSkinBrowser</b></dt>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
641 <dd>打开skin浏览器窗口。</dd>
a76b8962c0bd Sync by Lu Ran <hephooey@fastmail.fm>.
diego
parents: 9080
diff changeset
642 </dl>
7597
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
643 </blockquote>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
644
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
645 </body>
363959276ef2 by cvs hephooey@fastmail.fm
jaf
parents:
diff changeset
646 </html>