チェンジセット 68 : branches

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

fixes #4
これもとりあえずだがコミット。
変更したらその場で反映するタイプ。キャンセルボタンはない。

パス:
branches/release-1.0
ファイル:
4 追加
4 変更

凡例:

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

    r60 r68  
    2424                <statusbarpanel id="vocalofx-menuroot" class="statusbarpanel-menu-iconic" src=""> 
    2525                <menupopup id="vocalofx-popup"> 
    26                         <menuitem id="vocalofx-about" label="about ..." oncommand="vocalofx.openAboutDialog();"/> 
    27                         <menuitem id="vocalofx-config" label="config ..." oncommand="vocalofx.openConfigDialog();"/> 
     26                        <menuitem id="vocalofx-icecream" collapsed="true" label="icecream" oncommand="vocalofx.openIcecream();"/> 
     27                        <menuitem id="vocalofx-onecup" collapsed="true" label="onecup" oncommand="vocalofx.openOnecup();"/> 
     28                        <menuitem id="vocalofx-readme" label="README" oncommand="vocalofx.openReadMe();"/> 
     29                        <menuitem id="vocalofx-config" label="設定" oncommand="vocalofx.openConfigDialog();"/> 
    2830                        <menu id="vocalofx-tool-menu" label="&vocalofx.tool_menu.label;"> 
    2931                        <menupopup id="vocalofx-tool-popup"> 
  • branches/release-1.0/chrome/content/vocalofx.js

    r67 r68  
    1010        TOOL_PROPERTY_POSITION: "extensions.vocalofx.tool.position", 
    1111        TOOL_PROPERTY_STARTUP: "extensions.vocalofx.tool.startup", 
     12        TOOL_PROPERTY_TOOL_ONSTARTUP: "extensions.vocalofx.tool_onstartup", 
    1213        TOOL_PROPERTY_PIAPROGM_ALERT: "extensions.vocalofx.tool_piaprogm_alert", 
    1314        TOOLDIALOG_URL: "chrome://vocalofx/content/tool/tool.xul", 
     
    250251                } 
    251252 
     253                var tool_onstartup = this.pref.getBoolPref(this.TOOL_PROPERTY_TOOL_ONSTARTUP); 
    252254                var tool_popup = document.getElementById("vocalofx-tool-popup"); 
    253255                var tools = this.tool_properties.getString("toolmenu").split(","); 
     
    259261                        tool_popup.appendChild(menuitem); 
    260262                        try{ 
    261                                 if(this.pref.getBoolPref(this.TOOL_PROPERTY_STARTUP + "." + tools[i])){ 
     263                                if(tool_onstartup && this.pref.getBoolPref(this.TOOL_PROPERTY_STARTUP + "." + tools[i])){ 
    262264                                        this.openVocalofxTool(tools[i]); 
    263265                                } 
     
    294296                        menuitem.setAttribute("oncommand", "vocalofx.selectVocalofxSkinPallet('" + pallets[i] + "')"); 
    295297                        skin_popup.appendChild(menuitem); 
     298                } 
     299 
     300                var icecream = document.getElementById("vocalofx-icecream"); 
     301                var onecup = document.getElementById("vocalofx-onecup"); 
     302                icecream.collapsed = true; 
     303                onecup.collapsed = true; 
     304                if(category == "kaito"){ 
     305                        icecream.collapsed = false; 
     306                } 
     307                if(category == "meiko"){ 
     308                        onecup.collapsed = false; 
    296309                } 
    297310        } 
     
    320333        } 
    321334        , 
     335        openIcecream: function(){ 
     336                window.openNewTabWith("about:icecream"); 
     337        } 
     338        , 
     339        openOnecup: function(){ 
     340                window.openNewTabWith("about:onecup"); 
     341        } 
     342        , 
     343        openReadMe: function(){ 
     344                window.openNewTabWith("about:vocalofx"); 
     345        } 
     346        , 
    322347        openAboutDialog: function(){ 
    323348                var config = "chrome://vocalofx/content/about.xul"; 
  • branches/release-1.0/defaults/preferences/vocalofx.js

    r67 r68  
    2424pref("extensions.vocalofx.skin_theme_alert", true); 
    2525pref("extensions.vocalofx.tool_piaprogm_alert", true); 
     26pref("extensions.vocalofx.tool_onstartup", true); 
    2627pref("extensions.vocalofx.alert_addon.personas@christopher.beard", true); 
    2728pref("extensions.vocalofx.alert_addon.greengoo@goo.ne.jp", true); 
  • branches/release-1.0/install.rdf

    r53 r68  
    33        <Description about="urn:mozilla:install-manifest"> 
    44                <em:id>vocalofx@rayflood.org</em:id> 
    5                 <em:version>1.0</em:version> 
     5                <em:version>1.0pre</em:version> 
    66                <em:type>2</em:type> 
    77 
     
    1212                <em:iconURL>chrome://vocalofx/content/icons/Firemiku_icon32.png</em:iconURL> 
    1313                <em:aboutURL>chrome://vocalofx/content/about.xul</em:aboutURL> 
     14                <em:optionsURL>chrome://vocalofx/content/config.xul</em:optionsURL> 
    1415 
    1516                <em:localized>