阅读:7043回复:8
小小的图形化设置界面
小小默认的图形化界面设置比较简单,多数功能需要靠用户自行在配置文档中进行设置。鉴于此种情况,多数用户需要有一个漫长的学习和掉坑的过程。
针对此种情况,小小作者其实也开发了一种自定义图形化界面的功能,只是不被用户注意。 从今天开始,这个功能被彻底解放了。 由于无法上传附件(不知道为什么),只能将代码直接粘贴到此了 1、将以下代码区域复制到记事本等文本编辑器中,另存为:config.xml 2、将此文件复制到“.yong”目录下。 3、给yong.ini的[main]下增加一行代码。config=config.xml 4、重启小小主程序即可,打开设置功能,就是全新的界面。 ---------------------------------------以下是代码区域--------------------------------- <window pos="550,450" text="小小输入法" visible="0"> <tree pos="0,0,140,450" visible="1"> <item text="输入法" init="LoadIMList();" action="ShowPage(page-im);"/> <item text="全局配置" action="ShowPage(page-all);"/> <item text="高级" action="ShowPage(page-high);"/> <item text="皮肤" action="ShowPage(page-skin);"/> <item text="候选窗" action="ShowPage(page-cand);"/> <item text="状态栏" action="ShowPage(page-status);"/> <item text="快捷键" action="ShowPage(page-key);"/> <item text="服务" action="ShowPage(page-service);"/> </tree> <sep pos="150,400,380,2" visible="1"/> <button pos="330,410,60,30" text="应用" action="ApplyConfig();"/> <button pos="410,410,60,30" text="确定" action="ApplyConfig();ExitConfig();"/> <panel id="page-im" pos="140,0,400,400"> <label pos="20,10,100,30" text="汉字过滤"/> <list pos="160,10,140,30" config="IM filter"> <item data="0" text="不过滤"/> <item data="1" text="过滤"/> <item data="1,1" text="严格过滤"/> </list> <label pos="20,40,100,30" text="小键盘行为"/> <list pos="160,40,140,30" config="IM keypad"> <item data="0" text="作为编码"/> <item data="1" text="不作为编码"/> <item data="2" text="出数字"/> </list> <label pos="20,70,100,30" text="回车键行为"/> <list pos="160,70,140,30" config="IM enter"> <item data="default" text="上屏编码"/> <item data="clear" text="清空编码"/> <item data="commit" text="上屏首选"/> </list> <label pos="20,100,100,30" text="空格键行为"/> <list pos="160,100,140,30" config="IM space"> <item data="default" text="默认"/> <item data="full" text="全角"/> </list> <label pos="20,130,100,30" text="数字键行为"/> <list pos="160,130,140,30" config="IM num"> <item data="push" text="推送"/> <item data="NONE" text="禁用"/> </list> <check pos="20,160,70,30" text="预编辑" config="IM onspot"/> <list pos="160,160,140,30" config="IM preedit"> <item data="0" text="首选项"/> <item data="1" text="编码"/> </list> <check pos="20,190,120,30" text="打简出繁" config="IM s2t"/> <check pos="160,190,120,30" text="简繁一对多转换" config="IM s2t_m"/> <check pos="20,220,120,30" text="自启动" win="1" init="CheckAutoStart();" save="SaveAutoStart();"/> </panel> <panel id="page-all" pos="140,0,400,400"> <label pos="20,10,100,30" text="自动调频"/> <list pos="160,10,140,30" config="IM auto_move"> <item data="NONE" text="禁用"/> <item data="1" text="快速"/> <item data="2" text="慢速"/> </list> <label pos="20,40,100,30" text="单字模式"/> <list pos="160,40,140,30" config="table zi_mode"> <item data="NONE" text="禁用"/> <item data="1" text="纯单字,不可切换"/> <item data="2" text="正常,可与单字切换"/> <item data="3" text="默认单字,可与正常切换"/> </list> <label pos="20,70,100,30" text="加载辅助码表"/> <list pos="160,70,140,30" config="table adict"> <item data="NONE" text="禁用"/> <item data="1" text="加载"/> </list> <label pos="20,100,100,30" text="自造词来源"/> <list pos="160,100,140,30" config="IM select"> <item data="PRIMARY" text="鼠标选择"/> <item data="CLIPBOARD" text="剪切板"/> </list> <label pos="20,130,120,30" text="默认启动(外挂)"/> <list pos="160,130,140,30" config="IM enable"> <item data="0" text="不启动"/> <item data="1" text="启动"/> </list> <label pos="20,160,100,30" text="联想"/> <list pos="160,160,140,30" config="IM legend"> <item data="0" text="不启动"/> <item data="1" text="启动"/> </list> <label pos="20,190,100,30" text="输入方式"/> <list pos="160,190,140,30" config="IM output"> <item data="0" text="默认"/> <item data="1" text="剪切板"/> <item data="2" text="浮动窗口"/> <item data="3" text="模拟按键"/> </list> <label pos="20,220,120,30" text="大写锁定标点状态"/> <list pos="160,220,140,30" config="IM caps_bd"> <item data="0" text="全角"/> <item data="1" text="半角"/> </list> <label pos="20,250,100,30" text="SHIFT输出"/> <list pos="160,250,140,30" config="IM ABCD"> <item data="0" text="候选框状态"/> <item data="1" text="直接上屏"/> </list> <label pos="20,280,100,30" text="默认英文"/> <list pos="160,280,140,30" config="IM lang"> <item data="0" text="中文"/> <item data="1" text="英文"/> </list> <label pos="20,310,120,30" text="辅助码表选项个数"/> <list pos="160,310,140,30" config="IM cand_a"> <item data="1"/> <item data="2"/> <item data="3"/> <item data="4"/> <item data="5"/> <item data="6"/> <item data="7"/> <item data="8"/> <item data="9"/> <item data="10"/> </list> <label pos="20,340,120,30" text="中英切换编码上屏"/> <list pos="160,340,140,30" config="IM CNen_commit"> <item data="0" text="停留候选框"/> <item data="1" text="编码上屏"/> </list> <label pos="20,370,120,30" text="自动调频的码长"/> <list pos="160,370,140,30" config="IM auto_move_len"> <item data="1"/> <item data="2"/> <item data="3"/> <item data="4"/> <item data="5"/> <item data="6"/> <item data="7"/> <item data="8"/> <item data="9"/> <item data="10"/> </list> </panel> <panel id="page-high" pos="140,0,400,400"> <label pos="20,10,100,30" text="万能键"/> <edit pos="160,10,140,30" config="table wildcard"/> <label pos="20,40,100,30" text="标点"/> <edit pos="160,40,140,30" config="IM biaodian"/> <label pos="20,70,100,30" text="历史记录"/> <edit pos="160,70,140,30" config="IM history"/> <label pos="20,100,100,30" text="编码展开提示"/> <edit pos="160,100,140,30" config="IM key_desc"/> <label pos="20,130,100,30" text="帮助文件"/> <edit pos="160,130,140,30" config="main help"/> <label pos="20,160,100,30" text="重复输入"/> <edit pos="160,160,140,30" config="key repeat"/> <label pos="20,190,100,30" text="码表编辑器"/> <edit pos="160,190,140,30" config="table edit"/> <label pos="20,220,100,30" text="配置编辑器"/> <edit pos="160,220,140,30" config="main edit"/> <label pos="20,250,100,30" text="分词库"/> <edit pos="160,250,140,30" config="table dicts"/> <label pos="20,280,100,30" text="键盘布局"/> <edit pos="160,280,140,30" config="IM layout"/> </panel> <panel id="page-skin" visible="0" pos="140,0,400,400"> <label pos="20,10,80,30" text="选择皮肤"/> <list id="skin-name" pos="110,10,130,30" config="IM skin 0" init="LoadSkinList();PreviewSkin(skin-name,skin-style,skin-status,skin-input);" action="PreviewSkin(skin-name,skin-style,skin-status,skin-input);"/> <list id="skin-style" pos="250,10,60,30" config="IM skin 1" init="InitDefault();PreviewSkin(skin-name,skin-style,skin-status,skin-input);" action="PreviewSkin(skin-name,skin-style,skin-status,skin-input);"> <item data="" text="默认"/> <item data="1" text="单行"/> <item data="0" text="两行"/> <item data="2" text="多行"/> </list> <image id="skin-status" pos="20,45,300,100" visible="1"/> <image id="skin-input" pos="20,150,300,200" visible="1"/> </panel> <panel id="page-cand" visible="0" pos="140,0,400,400"> <label pos="20,10,100,30" text="候选项个数"/> <list pos="160,10,140,30" config="IM cand"> <item data="2"/> <item data="3"/> <item data="4"/> <item data="5"/> <item data="6"/> <item data="7"/> <item data="8"/> <item data="9"/> <item data="10"/> </list> <label pos="20,40,100,30" text="候选项字数"/> <edit pos="160,40,140,30" config="input strip"/> <check pos="20,70,100,30" text="字体" config="input font" init="InitFont(font);" save="SaveFont(font);"/> <font id="font" pos="160,70,140,30" config="input font"/> <label pos="20,100,100,30" text="显示方法"/> <list pos="160,100,140,30" config="input noshow"> <item data="0" text="需要时显示"/> <item data="1" text="不显示"/> <item data="2" text="一直显示"/> </list> <label pos="20,130,100,30" text="临时显示键"/> <edit pos="160,130,140,30" config="key ishow"/> <check pos="20,160,100,30" text="编码提示" config="input hint"/> <check pos="160,160,100,30" text="不光标跟随" config="input root"/> <check pos="300,160,100,30" text="新光标跟随" config="input a_caret"/> <label pos="20,190,100,30" text="候选框偏移"/> <edit pos="160,190,140,30" config="input offset"/> <label pos="20,220,120,30" text="自动隐藏重码显示"/> <edit pos="160,220,140,30" config="input auto_show"/> <label pos="20,250,100,30" text="候选显示设置"/> <combo pos="160,250,140,30" config="input select"> <item data="1. 2. 3. 4. 5. 6. 7. 8. 9. 10. "/> <item data="1: 2: 3: 4: 5: 6: 7: 8: 9: 10: "/> <item data="1、 2、 3、 4、 5、 6、 7、 8、 9、 10、 "/> </combo> </panel> <panel id="page-status" visible="0" pos="140,0,400,400"> <check pos="20,10,200,30" text="显示托盘图标" config="main tray"/> <check pos="20,40,200,30" text="不显示状态栏" config="main noshow"/> <check pos="20,70,200,30" text="状态栏半透明" config="main tran"/> <check pos="20,100,200,30" text="键盘操作提示" config="main tip"/> <label pos="20,130,100,30" text="临时显示键"/> <edit pos="140,130,140,30" config="key mshow"/> <label pos="20,160,100,30" text="状态栏位置"/> <combo pos="140,160,140,30" config="main pos" init="InitStatusPos();" save="SaveStatusPos();"> <item data="0" text="右下"/> <item data="1" text="顶部居中"/> <item data="2" text="左下"/> <item data="SW*0.70,Sh*0.005"/> </combo> </panel> <panel id="page-key" visible="0" pos="140,0,400,400"> <label pos="10,10,100,30" text="打开/关闭"/> <edit pos="90,10,130,30" config="key trigger"/> <label pos="10,40,100,30" text="切换输入法"/> <edit pos="90,40,130,30" config="key switch"/> <label pos="10,70,100,30" text="中英文切换"/> <edit pos="90,70,130,30" config="key CNen"/> <label pos="10,100,100,30" text="翻页"/> <combo pos="90,100,130,30" config="key page"> <item data="- ="/> <item data=", ."/> <item data="PGUP PGDN"/> <item data="SHIFT_TAB TAB"/> </combo> <label pos="10,130,120,30" text="23重码选择"/> <combo pos="90,130,130,30" config="key select"> <item data="LSHIFT RSHIFT"/> <item data="LCTRL RCTRL"/> <item data="; '"/> </combo> <label pos="10,160,100,30" text="调用字根图"/> <edit pos="90,160,130,30" config="key keymap"/> <label pos="10,190,100,30" text="临时英语"/> <edit pos="90,190,130,30" config="key tEN"/> <label pos="10,220,100,30" text="以词定字"/> <combo pos="90,220,130,30" config="key w2c"> <item data="[ ]"/> <item data="LCTRL RCTRL"/> <item data="; '"/> </combo> <label pos="10,250,100,30" text="调词频"/> <combo pos="90,250,130,30" config="key move"> <item data="CTRL_UP CTRL_DOWN"/> <item data="LCTRL RCTRL"/> <item data="; '"/> </combo> <label pos="10,280,100,30" text="增词"/> <combo pos="90,280,130,30" config="key add"> <item data="CTRL_="/> <item data="CTRL_INSERT"/> </combo> <label pos="10,310,100,30" text="删词"/> <combo pos="90,310,130,30" config="key del"> <item data="CTRL_-"/> <item data="CTRL_DELETE"/> </combo> <label pos="10,340,100,30" text="编码查询"/> <edit pos="90,340,130,30" config="key query"/> <label pos="10,370,100,30" text="文字替换"/> <edit pos="90,370,130,30" config="key crab"/> <label pos="230,10,100,25" text="简繁转换"/> <edit pos="295,10,100,25" config="key s2t"/> <label pos="230,40,100,25" text="字典查询"/> <edit pos="295,40,100,25" config="key dict"/> <label pos="230,70,100,25" text="软键盘"/> <edit pos="295,70,100,25" config="key keyboard"/> <label pos="230,100,100,25" text="朗读"/> <edit pos="295,100,100,25" config="key speak"/> <label pos="230,130,100,25" text="切换默认"/> <edit pos="295,130,100,25" config="key switch_default"/> <label pos="230,160,100,25" text="汉字过滤"/> <edit pos="295,160,100,25" config="key filter"/> <label pos="230,190,100,25" text="调整长度"/> <edit pos="295,190,100,25" config="key py_switch"/> <label pos="230,220,100,25" text="笔画引导"/> <edit pos="295,220,100,25" config="key bihua"/> <label pos="230,250,100,25" text="单字模式"/> <edit pos="295,250,100,25" config="key zi_switch"/> <label pos="230,280,100,25" text="重码选择"/> <edit pos="295,280,100,25" config="key select_n"/> <label pos="230,310,100,25" text="按键替换"/> <edit pos="295,310,100,25" config="key replace"/> <label pos="230,340,100,25" text="一键简拼"/> <edit pos="295,340,100,25" config="key py_simple"/> <label pos="230,370,100,25" text="中英标点"/> <edit pos="295,370,100,25" config="key biaodian"/> </panel> <panel id="page-cloud" visible="0" pos="140,0,400,400"> <label pos="20,10,100,30" text="服务"/> <list pos="140,10,140,30" config="xxxx arg"> <item data="baidu" text="百度"/> <item data="google" text="谷歌"/> <item data="engkoo" text="微软"/> </list> <label pos="20,40,100,30" text="双拼"/> <list pos="140,40,140,30" config="xxxx sp" init="LoadSPList();"/> <label pos="20,70,100,30" text="本地拼音"/> <edit pos="140,70,140,30" config="xxxx pinyin"/> <label pos="20,100,100,30" text="用户文件"/> <edit pos="140,100,140,30" config="xxxx user"/> <label pos="20,130,100,30" text="辅助码"/> <edit pos="140,130,140,30" config="xxxx assist"/> <label pos="20,160,100,30" text="选择皮肤"/> <list id="skin-name-cloud" pos="140,160,140,30" config="xxxx skin 0" init="LoadSkinList();PreviewSkin(skin-name-cloud,skin-style-cloud,skin-status-cloud,skin-input-cloud);" action="PreviewSkin(skin-name-cloud,skin-style-cloud,skin-status-cloud,skin-input-cloud);"/> <list id="skin-style-cloud" pos="300,160,60,30" config="xxxx skin 1" init="InitDefault();PreviewSkin(skin-name-cloud,skin-style-cloud,skin-status-cloud,skin-input-cloud);" action="PreviewSkin(skin-name-cloud,skin-style-cloud,skin-status-cloud,skin-input-cloud);"> <item data="" text="默认"/> <item data="1" text="单行"/> <item data="0" text="两行"/> <item data="2" text="多行"/> </list> <image id="skin-status-cloud" pos="20,200,300,100" visible="1"/> <image id="skin-input-cloud" pos="20,250,300,200" visible="1"/> </panel> <panel id="page-mb" visible="0" pos="140,0,450,400"> <label pos="10,10,100,25" text="分词库"/> <edit pos="80,10,130,25" config="xxxx dicts"/> <label pos="10,40,100,25" text="字根图"/> <edit pos="80,40,130,25" config="xxxx keymap"/> <label pos="10,100,100,25" text="配置文件"/> <edit pos="80,100,130,25" config="xxxx overlay"/> <check pos="225,190,100,25" text="并击使能" config="xxxx bing"/> <label pos="225,10,100,25" text="自动清除"/> <list pos="290,10,100,25" config="xxxx auto_clear"> <item data="" text="禁用"/> <item data="2"/> <item data="3"/> <item data="4"/> <item data="5"/> <item data="6"/> <item data="7"/> <item data="8"/> <item data="9"/> <item data="10"/> </list> <label pos="225,40,100,25" text="自动英文"/> <list pos="290,40,100,25" config="xxxx auto_english"> <item data="" text="禁用"/> <item data="1" text="小于码长空码时"/> <item data="2" text="空码时"/> </list> <label pos="225,70,100,25" text="成词提示"/> <list pos="290,70,100,25" config="xxxx tip_exist"> <item data="0" text="不提示"/> <item data="1" text="提示"/> </list> <label pos="225,100,100,25" text="简码提示"/> <list pos="290,100,100,25" config="xxxx tip_simple"> <item data="0" text="不提示"/> <item data="1" text="提示"/> <item data="2" text="提示?"/> <item data="3" text="三重简提示"/> </list> <label pos="225,130,100,25" text="提示音"/> <list pos="290,130,100,25" config="xxxx beep"> <item data="none" text="无"/> <item data="empty" text="空码"/> <item data="multi" text="重码"/> <item data="empty,multi" text="全部"/> </list> <label pos="225,160,100,25" text="默认全角"/> <list pos="290,160,100,25" config="xxxx corner"> <item data="none" text="半角"/> <item data="full" text="全角"/> </list> <label pos="10,70,100,25" text="自动造词"/> <edit pos="80,70,130,25" config="xxxx auto_phrase"/> <label pos="10,130,100,25" text="辅助码表"/> <edit pos="80,130,130,25" config="xxxx quick"/> <label pos="10,160,100,25" text="固顶词库"/> <edit pos="80,160,130,25" config="xxxx pin"/> <label pos="10,190,100,25" text="帮助文件"/> <edit pos="80,190,130,25" config="xxxx help"/> <label pos="10,220,100,25" text="选择皮肤"/> <list id="skin-name-mb" pos="80,220,130,25" config="xxxx skin 0" init="LoadSkinList();PreviewSkin(skin-name-mb,skin-style-mb,skin-status-mb,skin-input-mb);" action="PreviewSkin(skin-name-mb,skin-style-mb,skin-status-mb,skin-input-mb);"/> <list id="skin-style-mb" pos="225,220,60,25" config="xxxx skin 1" init="InitDefault();PreviewSkin(skin-name-mb,skin-style-mb,skin-status-mb,skin-input-mb);" action="PreviewSkin(skin-name-mb,skin-style-mb,skin-status-mb,skin-input-mb);"> <item data="" text="默认"/> <item data="1" text="单行"/> <item data="0" text="两行"/> <item data="2" text="多行"/> </list> <image id="skin-status-mb" pos="10,260,300,100" visible="1"/> <image id="skin-input-mb" pos="10,310,300,200" visible="1"/> </panel> <panel id="page-pinyin" visible="0" pos="140,0,400,400"> <label pos="20,10,100,30" text="分词库"/> <edit pos="140,10,140,30" config="xxxx dicts"/> <label pos="20,40,100,30" text="双拼"/> <list id="py-sp" pos="140,40,140,30" config="xxxx sp" init="LoadSPList();" action="ChangePYConfig(py-sp,py-overlay);"/> <label pos="20,70,100,30" text="配置文件"/> <edit id="py-overlay" pos="140,70,140,30" config="xxxx overlay"/> <label pos="20,100,100,30" text="选择皮肤"/> <list id="skin-name-pinyin" pos="140,100,140,30" config="xxxx skin 0" init="LoadSkinList();PreviewSkin(skin-name-pinyin,skin-style-pinyin,skin-status-pinyin,skin-input-pinyin);" action="PreviewSkin(skin-name-pinyin,skin-style-pinyin,skin-status-pinyin,skin-input-pinyin);"/> <list id="skin-style-pinyin" pos="300,100,60,30" config="xxxx skin 1" init="InitDefault();PreviewSkin(skin-name-pinyin,skin-style-pinyin,skin-status-pinyin,skin-input-pinyin);" action="PreviewSkin(skin-name-pinyin,skin-style-pinyin,skin-status-pinyin,skin-input-pinyin);"> <item data="" text="默认"/> <item data="1" text="单行"/> <item data="0" text="两行"/> <item data="2" text="多行"/> </list> <image id="skin-status-pinyin" pos="20,140,300,100" visible="1"/> <image id="skin-input-pinyin" pos="20,190,300,400" visible="1"/> </panel> <panel id="page-service" visible="0" pos="140,0,400,400"> <button pos="20,10,60,30" text="同步" action="LaunchSync();"/> <label pos="20,50,60,30" text="用户"/> <edit pos="90,50,160,30" config="sync user"/> <label pos="20,90,60,30" text="密钥"/> <edit pos="90,90,160,30" config="sync sid"/> </panel> </window> |
|
最新喜欢:mty |
4楼#
发布于:2021-09-04 19:07
|
|
5楼#
发布于:2021-09-06 06:19
|
|
|
7楼#
发布于:2021-09-14 12:13
|
|