- 更新日時:
- 2009/07/14 01:46:40 (3 年 前)
- パス:
- branches/release-1.0
- ファイル:
-
- 3 追加
- 1 削除
- 6 変更
-
chrome/content/alert.js (追加)
-
chrome/content/alert.xul (追加)
-
chrome/content/tool/piapro_gm.js (変更) (4 diff)
-
chrome/content/tool/piapro_gm.xul (変更) (1 diff)
-
chrome/content/update.js (削除)
-
chrome/content/vocalofx.js (変更) (1 diff)
-
components/vocalofx-startup.js (追加)
-
components/vocalofx.js (変更) (2 diff)
-
defaults/preferences/vocalofx.js (変更) (1 diff)
-
modules/common.js (変更) (1 diff)
凡例:
- 変更なし
- 追加
- 削除
-
branches/release-1.0/chrome/content/tool/piapro_gm.js
r19 r67 1 const Cc = Components.classes; 2 const Ci = Components.interfaces; 1 3 const TOOL_PROPERTY_PIAPROGM_ALERT = "extensions.vocalofx.tool_piaprogm_alert"; 2 4 const PIAPRO_GMSCRIPTS = [ … … 11 13 12 14 function openPiaproGMInstall(){ 13 pref = window.arguments[0];15 pref = Cc["@mozilla.org/preferences-service;1"].getService(Ci.nsIPrefBranch); 14 16 vocalofx_properties = document.getElementById("vocalofx-properties"); 15 17 } … … 42 44 function install(script){ 43 45 install_failed = true; 44 var ioSvc = Components.classes["@mozilla.org/network/io-service;1"] 45 .getService(Components.interfaces.nsIIOService); 46 var ioSvc = Cc["@mozilla.org/network/io-service;1"].getService(Ci.nsIIOService); 46 47 var uri_ = ioSvc.newURI(script, null, null); 47 48 var req_ = new XMLHttpRequest(); 48 49 req_.onload = function(){ 49 var config = Components.classes["@greasemonkey.mozdev.org/greasemonkey-service;1"] 50 .getService(Components.interfaces.gmIGreasemonkeyService) 51 .wrappedJSObject.config; 50 var config = Cc["@greasemonkey.mozdev.org/greasemonkey-service;1"].getService(Ci.gmIGreasemonkeyService).wrappedJSObject.config; 52 51 var source = req_.responseText; 53 52 var script = config.parse(source, uri_); 54 var file = Components.classes["@mozilla.org/file/directory_service;1"] 55 .getService(Components.interfaces.nsIProperties) 56 .get("TmpD", Components.interfaces.nsILocalFile); 53 var file = Cc["@mozilla.org/file/directory_service;1"].getService(Ci.nsIProperties).get("TmpD", Ci.nsILocalFile); 57 54 var base = script.name.replace(/[^A-Z0-9_]/gi, "").toLowerCase(); 58 55 file.append(base + ".user.js"); 59 file.createUnique(Components.interfaces.nsILocalFile.NORMAL_FILE_TYPE, 0640); 60 var converter = Components.classes["@mozilla.org/intl/scriptableunicodeconverter"] 61 .createInstance(Components.interfaces.nsIScriptableUnicodeConverter); 56 file.createUnique(Ci.nsILocalFile.NORMAL_FILE_TYPE, 0640); 57 var converter = Cc["@mozilla.org/intl/scriptableunicodeconverter"].createInstance(Ci.nsIScriptableUnicodeConverter); 62 58 converter.charset = "UTF-8"; 63 59 source = converter.ConvertFromUnicode(source); 64 var ws = Components.classes["@mozilla.org/network/file-output-stream;1"] 65 .createInstance(Components.interfaces.nsIFileOutputStream); 60 var ws = Cc["@mozilla.org/network/file-output-stream;1"].createInstance(Ci.nsIFileOutputStream); 66 61 ws.init(file, 0x02 | 0x08 | 0x20, 420, -1); 67 62 ws.write(source, source.length); … … 79 74 } 80 75 } 81 82 function loadHomepage(aEvent){83 window.opener.openUILinkIn(aEvent.target.getAttribute("homepageURL"), "tab");84 } -
branches/release-1.0/chrome/content/tool/piapro_gm.xul
r19 r67 19 19 <separator/> 20 20 <label style="margin-left: 2em;" value="&vocalofx.piapro_gm.poweredby;"/> 21 <label style="margin-left: 2em;" value="&vocalofx.piapro_gm.homepage;" 22 class="text-link" onclick="loadHomepage(event);" 23 homepageURL="&vocalofx.piapro_gm.homepage;" 24 tooltiptext="&vocalofx.piapro_gm.homepage;"/> 21 <label style="margin-left: 2em;" value="&vocalofx.piapro_gm.homepage;"/> 25 22 <separator/> 26 23 </dialog> -
branches/release-1.0/chrome/content/vocalofx.js
r60 r67 334 334 init: function(){ 335 335 window.removeEventListener(this.BROWSER_ONLOAD, this, false); 336 vocalofx_update.check();337 336 338 337 var Cc = Components.classes; -
branches/release-1.0/components/vocalofx.js
r64 r67 2 2 const Ci = Components.interfaces; 3 3 Components.utils.import("resource://gre/modules/XPCOMUtils.jsm"); 4 5 var ios=Cc["@mozilla.org/network/io-service;1"].getService(Ci.nsIIOService)6 var resProt=ios.getProtocolHandler("resource").QueryInterface(Ci.nsIResProtocolHandler)7 var modulesDir=__LOCATION__.parent.parent8 modulesDir.append("modules")9 resProt.setSubstitution("p4v-jsm",ios.newFileURI(modulesDir))10 4 11 5 function VocaloFxSplash(){} … … 18 12 19 13 helpInfo: this.classDescription, 20 21 14 handle: function(commandLine){ 22 15 var pref = Cc["@mozilla.org/preferences-service;1"].getService(Ci.nsIPrefBranch2); -
branches/release-1.0/defaults/preferences/vocalofx.js
r61 r67 21 21 pref("extensions.vocalofx.skin_splash.screen_height", 295); 22 22 pref("extensions.vocalofx.skin_splash.voice", "chrome://vocalofx/content/splash/miku_kidou.wav"); 23 pref("extensions.vocalofx.skin_pallet_alert", true);23 pref("extensions.vocalofx.skin_pallet_alert", false); 24 24 pref("extensions.vocalofx.skin_theme_alert", true); 25 25 pref("extensions.vocalofx.tool_piaprogm_alert", true); 26 pref("extensions.vocalofx.alert_addon.personas@christopher.beard", true); 27 pref("extensions.vocalofx.alert_addon.greengoo@goo.ne.jp", true); 28 pref("extensions.vocalofx.alert_addon.splash@aldreneo.com", true); 29 pref("extensions.vocalofx.alert_addon.abouticecream@mozilla.org", true); 30 pref("extensions.vocalofx.alert_addon.{b065cadc-711c-4074-a257-63df8e2128d7}", true); 31 pref("extensions.vocalofx.alert_addon.{7bc0198a-a87d-4620-bbcd-33aaceea99ed}", true); 32 //pref("extensions.vocalofx.alert_addon.{c36127eb-3cfe-40dd-990e-3e72a85b43cf}", true); 33 pref("extensions.vocalofx.alert_addon.{137E6D74-4113-499b-813F-3819B3764DC9}", true); 26 34 pref("nglayout.debug.disable_xul_cache", true); -
branches/release-1.0/modules/common.js
r64 r67 16 16 17 17 var xpc={ 18 lclstr:Components.Constructor("@mozilla.org/pref-localizedstring;1","nsIPrefLocalizedString"), 19 sptAry:Components.Constructor("@mozilla.org/supports-array;1","nsISupportsArray"), 20 strbndSvc:svConstructor("@mozilla.org/intl/stringbundle;1","nsIStringBundleService"), 18 21 file:Components.Constructor("@mozilla.org/file/local;1","nsILocalFile","initWithPath"), 19 22 fp:Components.Constructor("@mozilla.org/filepicker;1","nsIFilePicker","init"), 20 23 ioSvc:svConstructor("@mozilla.org/network/io-service;1","nsIIOService2"), 21 24 prefSvc:svConstructor("@mozilla.org/preferences-service;1","nsIPrefService"), 25 prefBrc2:svConstructor("@mozilla.org/preferences-service;1","nsIPrefBranch2"), 22 26 dirSvc:svConstructor("@mozilla.org/file/directory_service;1","nsIProperties"), 23 27 xferData:Components.Constructor("@mozilla.org/widget/transferable;1","nsITransferable"),
