Groups
Groups
Sign in
Groups
Groups
osd-lyrics
Conversations
About
Send feedback
Help
关于配置选项
8 views
Skip to first unread message
Tiger Soldier
unread,
Jun 15, 2009, 5:45:27 AM
6/15/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to osd-l...@googlegroups.com
程序弄得差不多了,该开始弄配置的东西了
现在可配置的东西还很少,基本集中顺OSD window里
目前能配置的有:
OSD window的位置(ol_osd_window_set_alignment)
OSD window的大小(ol_osd_window_resize)
歌词字体和大小(ol_osd_window_set_font_family、ol_osd_window_set_font_size)
歌词的对齐方式(ol_osd_window_set_line_alignment)
关于配置的构想:
一个配置文件模块,负责配置文件的读取
一个配置类模块,定义存储配置的数据结构,以及所需要的通用函数
配置UI,使用glade来设计
配置是singleton的
配置文件保存在~/.config/osd-lyrics/osd-lyrics.conf中
未来可能可以配置的内容:
歌词的查找目录
歌词下载引擎
歌词显示的行数(单行/双行)
大家来讨论一下吧
Guomin Chen
unread,
Jun 15, 2009, 6:01:53 AM
6/15/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to osd-l...@googlegroups.com
如果接口已经作出来的话,应该不是太难弄出来,glade好像有很多现成的模板
2009/6/15 Tiger Soldier
<
tiger...@gmail.com
>
Tiger Soldier
unread,
Jun 15, 2009, 9:01:57 AM
6/15/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to osd-l...@googlegroups.com
没那么简单。配置文件如何操作,配置对象如何与已有的模块交互,配置各字段的命名,这都需要讨论
2009/6/15 Guomin Chen
<
sarlmo...@gmail.com
>
Tiger Soldier
unread,
Jun 17, 2009, 4:39:51 AM
6/17/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to osd-l...@googlegroups.com
发现Glib里有两个好东西,可以简化很多工作:
GKeyFile:
http://library.gnome.org/devel/glib/2.20/glib-Key-value-file-parser.html
,就是配置文件的Parser
File Utils:
http://library.gnome.org/devel/glib/2.20/glib-File-Utilities.html
,文件操作,什么获取用户目录啊创建配置文件所在目录之类的
另:我在写配置操作类
2009/6/15 Tiger Soldier
<
tiger...@gmail.com
>
Reply all
Reply to author
Forward
0 new messages