- 更新日時:
- 2009/08/23 19:55:14 (3 年 前)
- パス:
- branches/release-1.0/chrome/content
- ファイル:
-
- 2 変更
-
config.js (変更) (4 diff)
-
config.xul (変更) (3 diff)
凡例:
- 変更なし
- 追加
- 削除
-
branches/release-1.0/chrome/content/config.js
r68 r73 5 5 const SPLASH_SCREEN = "splash_screen"; 6 6 const SPLASH_VOICE = "splash_voice"; 7 const USE_ALLPARET = "use_allparet"; 7 8 const TOOL_STARTUP = "tool_onstartup"; 8 9 … … 14 15 const SPLASH_PROPERTY_SCREEN = "extensions.vocalofx.skin_splash.screen"; 15 16 const SPLASH_PROPERTY_VOICE = "extensions.vocalofx.skin_splash.voice"; 17 const SKIN_PROPERTY_USE_ALLPARET = "extensions.vocalofx.skin_use_allparet"; 16 18 17 19 var icons_default = … … 67 69 tool_onstartup.addEventListener("command", observe, true); 68 70 tool_onstartup.checked = !prefBrc2.getBoolPref(TOOL_PROPERTY_STARTUP); 71 72 var use_allparet = document.getElementById(USE_ALLPARET); 73 use_allparet.addEventListener("command", observe, true); 74 use_allparet.checked = prefBrc2.getBoolPref(SKIN_PROPERTY_USE_ALLPARET); 69 75 } 70 76 … … 96 102 prefBrc2.setBoolPref(TOOL_PROPERTY_STARTUP, !target.checked); 97 103 } 104 else if(target.id == USE_ALLPARET){ 105 prefBrc2.setBoolPref(SKIN_PROPERTY_USE_ALLPARET, target.checked); 106 } 107 } 108 109 function setCheckboxes(clazz, onoff){ 110 var checks = document.getElementsByClassName(clazz); 111 for(var i = 0; i < checks.length; i++){ 112 checks[i].checked = onoff; 113 var aSubject = {target:checks[i]}; 114 observe(aSubject, null, null); 115 } 98 116 } 99 117 -
branches/release-1.0/chrome/content/config.xul
r71 r73 28 28 <groupbox> 29 29 <caption label="&vocalofx.config.icons.label;"/> 30 <hbox><button label="On" oncommand="setCheckboxes('icons', true);"/><button label="Off" oncommand="setCheckboxes('icons', false);"/></hbox> 30 31 <checkbox class="icons" id="back-forward-button" label="&vocalofx.config.icons.back-forward-button.label;"/> 31 32 <checkbox class="icons" id="home-button" label="&vocalofx.config.icons.home-button.label;"/> … … 38 39 <groupbox> 39 40 <caption label="&vocalofx.config.addon.label;"/> 41 <hbox><button label="On" oncommand="setCheckboxes('addon', true);"/><button label="Off" oncommand="setCheckboxes('addon', false);"/></hbox> 40 42 <checkbox class="addon" id="{972ce4c6-7e08-4474-a285-3208198ce6fd}" label="&vocalofx.config.addon.defaulttheme.label;"/> 41 43 <checkbox class="addon" id="personas@christopher.beard" label="&vocalofx.config.addon.personas.label;"/> … … 56 58 <checkbox id="splash_voice" label="&vocalofx.config.other.splash_voice.label;"/> 57 59 <checkbox id="tool_onstartup" label="&vocalofx.config.other.tool_onstartup.label;"/> 58 <!--59 60 <checkbox id="use_allparet" label="&vocalofx.config.other.use_allparet.label;"/> 60 -->61 61 <hbox><label id="piapro_gm.label" style="padding-top:0.5em;" value="&vocalofx.config.other.piapro_gm.label;"/><button label="&vocalofx.config.other.piapro_gm.button;" oncommand="openPiaprogmDialog();"/></hbox> 62 62 </groupbox>
