チェンジセット 77

差分発生行の前後
無視リスト:
更新日時:
2009/08/23 22:51:09 (2 年 前)
更新者:
h
ログメッセージ:

refs #4
初期設定ボタン実装。

パス:
branches/release-1.0/chrome
ファイル:
3 変更

凡例:

変更なし
追加
削除
  • branches/release-1.0/chrome/content/config.js

    r75 r77  
    121121        for(var i = 0; i < checks.length; i++){ 
    122122                checks[i].checked = onoff; 
    123                 var aSubject = {target:checks[i]}; 
    124                 observe(aSubject, null, null); 
     123                checks[i].doCommand(); 
     124        } 
     125} 
     126 
     127function setDefault(){ 
     128        document.getElementById("icons_all_on").doCommand(); 
     129        document.getElementById("addon_all_on").doCommand(); 
     130        var other = 
     131                [ document.getElementById("splash_screen") 
     132                , document.getElementById("splash_voice") 
     133                , document.getElementById("tool_onstartup") 
     134                , document.getElementById("use_allparet") 
     135                ]; 
     136        for(var i = 0; i < other.length; i++){ 
     137                other[i].checked = false; 
     138                other[i].doCommand(); 
    125139        } 
    126140} 
  • branches/release-1.0/chrome/content/config.xul

    r75 r77  
    88 
    99<dialog id="vocalofx-config" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" 
    10  title="&vocalofx.config.title;" buttons="accept" onload="init();" onaccept="close();"> 
     10 title="&vocalofx.config.title;" buttons="accept,extra1" onload="init();" onaccept="close();" 
     11 buttonlabelextra1="&vocalofx.config.dialogextra1.label;" ondialogextra1="setDefault();"> 
    1112 
    1213        <script type="application/x-javascript" src="chrome://vocalofx/content/config.js"/> 
     
    2829        <groupbox> 
    2930                <caption label="&vocalofx.config.icons.label;"/> 
    30                 <hbox><button label="On" oncommand="setCheckboxes('icons', true);"/><button label="Off" oncommand="setCheckboxes('icons', false);"/></hbox> 
     31                <hbox><button id="icons_all_on" label="On" oncommand="setCheckboxes('icons', true);"/><button id="icons_all_off" label="Off" oncommand="setCheckboxes('icons', false);"/></hbox> 
    3132                <checkbox class="icons" id="back-forward-button" label="&vocalofx.config.icons.back-forward-button.label;"/> 
    3233                <checkbox class="icons" id="home-button" label="&vocalofx.config.icons.home-button.label;"/> 
     
    3940        <groupbox> 
    4041                <caption label="&vocalofx.config.addon.label;"/> 
    41                 <hbox><button label="On" oncommand="setCheckboxes('addon', true);"/><button label="Off" oncommand="setCheckboxes('addon', false);"/></hbox> 
     42                <hbox><button id="addon_all_on" label="On" oncommand="setCheckboxes('addon', true);"/><button id="addon_all_off" label="Off" oncommand="setCheckboxes('addon', false);"/></hbox> 
    4243                <checkbox class="addon" id="{972ce4c6-7e08-4474-a285-3208198ce6fd}" label="&vocalofx.config.addon.defaulttheme.label;"/> 
    4344                <checkbox class="addon" id="personas@christopher.beard" label="&vocalofx.config.addon.personas.label;"/> 
  • branches/release-1.0/chrome/locale/ja/vocalofx.dtd

    r75 r77  
    66<!ENTITY vocalofx.config.dialogheader.title "ぼかろFx"> 
    77<!ENTITY vocalofx.config.dialogheader.description "設定"> 
     8<!ENTITY vocalofx.config.dialogextra1.label "初期設定に戻す"> 
    89<!ENTITY vocalofx.config.icons.label "ボタン/アイコンを変更する"> 
    910<!ENTITY vocalofx.config.icons.back-forward-button.label "「進む」「戻る」ボタン">