annotate DOCS/Chinese/skin.html @ 7748:18f7389bc822

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