チェンジセット 86

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

fixes #35
タブとウィンドウで選択できるように修正。設定画面も実装済み。
本体のコードで気になるところ修正。

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

凡例:

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

    r77 r86  
    77const USE_ALLPARET = "use_allparet"; 
    88const TOOL_ONSTARTUP = "tool_onstartup"; 
     9const TOOL_TO_WINDOW = "tool_opento_window"; 
    910const PIAPROGM_BUTTON = "piapro_gm.button"; 
    1011const PIAPROGM_NOTINST = "piapro_gm.notinstalled"; 
     
    1617const SKIN_PROPERTY_ICONS = "extensions.vocalofx.skin_icons."; 
    1718const TOOL_PROPERTY_STARTUP = "extensions.vocalofx.tool_onstartup"; 
     19const TOOL_PROPERTY_TO_WINDOW = "extensions.vocalofx.tool_opento_window"; 
    1820const SPLASH_PROPERTY_SCREEN = "extensions.vocalofx.skin_splash.screen"; 
    1921const SPLASH_PROPERTY_VOICE = "extensions.vocalofx.skin_splash.voice"; 
     
    7476        tool_onstartup.checked = !prefBrc2.getBoolPref(TOOL_PROPERTY_STARTUP); 
    7577 
     78        var tool_opento_window = document.getElementById(TOOL_TO_WINDOW); 
     79        tool_opento_window.addEventListener("command", observe, true); 
     80        tool_opento_window.checked = prefBrc2.getBoolPref(TOOL_PROPERTY_TO_WINDOW); 
     81 
    7682        var use_allparet = document.getElementById(USE_ALLPARET); 
    7783        use_allparet.addEventListener("command", observe, true); 
     
    112118                prefBrc2.setBoolPref(TOOL_PROPERTY_STARTUP, !target.checked); 
    113119        } 
     120        else if(target.id == TOOL_TO_WINDOW){ 
     121                prefBrc2.setBoolPref(TOOL_PROPERTY_TO_WINDOW, target.checked); 
     122        } 
    114123        else if(target.id == USE_ALLPARET){ 
    115124                prefBrc2.setBoolPref(SKIN_PROPERTY_USE_ALLPARET, target.checked); 
     
    132141                , document.getElementById("splash_voice") 
    133142                , document.getElementById("tool_onstartup") 
     143                , document.getElementById("tool_opento_window") 
    134144                , document.getElementById("use_allparet") 
    135145                ]; 
  • branches/release-1.0/chrome/content/config.xul

    r77 r86  
    5959                <checkbox id="splash_voice" label="&vocalofx.config.other.splash_voice.label;"/> 
    6060                <checkbox id="tool_onstartup" label="&vocalofx.config.other.tool_onstartup.label;"/> 
     61                <checkbox id="tool_opento_window" label="&vocalofx.config.other.tool_opento_window.label;"/> 
    6162                <checkbox id="use_allparet" label="&vocalofx.config.other.use_allparet.label;"/> 
    6263                <hbox><label id="piapro_gm.label" style="padding-top:0.5em;" value="&vocalofx.config.other.piapro_gm.label;"/><button id="piapro_gm.button" label="&vocalofx.config.other.piapro_gm.button;" oncommand="openPiaprogmDialog();"/></hbox> 
  • branches/release-1.0/chrome/content/vocalofx.js

    r85 r86  
    1111        TOOL_PROPERTY_TOOL_ONSTARTUP: "extensions.vocalofx.tool_onstartup", 
    1212        TOOL_PROPERTY_PIAPROGM_ALERT: "extensions.vocalofx.tool_piaprogm_alert", 
     13        TOOL_PROPERTY_TO_WINDOW: "extensions.vocalofx.tool_opento_window", 
    1314        ICONCLASS_TOOL: "vocalofx-tool", 
    1415        ICONCLASS_SKIN_PALLET: "vocalofx-skin-pallet", 
     
    346347        , 
    347348        openFromToolDialog: function(aSubject){ 
     349                if(this.pref.getBoolPref(this.TOOL_PROPERTY_TO_WINDOW)){ 
     350                        return; 
     351                } 
     352 
    348353                if(this.watcher.activeWindow.location == this.TOOLDIALOG_URL){ 
    349354                        var intervalID = setInterval(function(){ 
     
    383388                        break; 
    384389                        default: 
    385                                 window.openNewTabWith("about:vocalofx"); 
    386                         break; 
    387                         } 
    388                 } 
    389                 catch(e){ 
    390                         window.openNewTabWith("about:vocalofx"); 
     390                                this.openReadMe(); 
     391                        break; 
     392                        } 
     393                } 
     394                catch(e){ 
     395                        this.openReadMe(); 
    391396                } 
    392397        } 
  • branches/release-1.0/chrome/locale/en-US/vocalofx.dtd

    r82 r86  
    2828<!ENTITY vocalofx.config.other.splash_voice.label "Be quiet Splash Screen"> 
    2929<!ENTITY vocalofx.config.other.tool_onstartup.label "Don't display Tool on startup"> 
     30<!ENTITY vocalofx.config.other.tool_opento_window.label "Open link in new window from Tool"> 
    3031<!ENTITY vocalofx.config.other.use_allparet.label "Allways use all coloring"> 
    3132<!ENTITY vocalofx.config.other.piapro_gm.label "PIAPRO user assist tool"> 
  • branches/release-1.0/chrome/locale/ja/vocalofx.dtd

    r77 r86  
    2828<!ENTITY vocalofx.config.other.splash_voice.label "スプラッシュスクリーンでしゃべらせない"> 
    2929<!ENTITY vocalofx.config.other.tool_onstartup.label "各ツールを自動起動しない"> 
     30<!ENTITY vocalofx.config.other.tool_opento_window.label "ツールからのリンクを新しいウィンドウで開く"> 
    3031<!ENTITY vocalofx.config.other.use_allparet.label "常に全ての配色を選択できる"> 
    3132<!ENTITY vocalofx.config.other.piapro_gm.label "ピアプロユーザー支援ツールを"> 
  • branches/release-1.0/defaults/preferences/vocalofx.js

    r85 r86  
    2525pref("extensions.vocalofx.tool_piaprogm_alert", true); 
    2626pref("extensions.vocalofx.tool_onstartup", true); 
     27pref("extensions.vocalofx.tool_opento_window", false); 
    2728pref("extensions.vocalofx.alert_addon.personas@christopher.beard", true); 
    2829pref("extensions.vocalofx.alert_addon.greengoo@goo.ne.jp", true);