チェンジセット 60
- 更新日時:
- 2009/07/09 00:29:42 (3 年 前)
- パス:
- branches/release-1.0
- ファイル:
-
- 8 変更
-
chrome/content/about.js (変更) (1 diff)
-
chrome/content/about.xul (変更) (1 diff)
-
chrome/content/overlay.xul (変更) (1 diff)
-
chrome/content/splash.js (変更) (1 diff)
-
chrome/content/splash.xul (変更) (1 diff)
-
chrome/content/vocalofx.js (変更) (3 diff)
-
components/vocalofx.js (変更) (1 diff)
-
defaults/preferences/vocalofx.js (変更) (1 diff)
凡例:
- 変更なし
- 追加
- 削除
-
branches/release-1.0/chrome/content/about.js
r53 r60 104 104 window.opener.openURL(aEvent.target.getAttribute("homepageURL")); 105 105 } 106 107 function openSplashScreen(){ 108 var splash = "chrome://vocalofx/content/splash.xul"; 109 var option = "chrome,centerscreen,alwaysRaised=yes,titlebar=no,modal=yes"; 110 window.openDialog(splash, "vocalofx-splash", option, -1); 111 } -
branches/release-1.0/chrome/content/about.xul
r46 r60 17 17 <vbox id="clientBox" flex="1"> 18 18 <hbox> 19 <image src='chrome://vocalofx/content/icons/Firemiku_icon64.png' width='64' height='64' />19 <image src='chrome://vocalofx/content/icons/Firemiku_icon64.png' width='64' height='64' ondblclick="openSplashScreen();"/> 20 20 <vbox pack="end"> 21 21 <label id="extensionName" crop="right"/> -
branches/release-1.0/chrome/content/overlay.xul
r54 r60 24 24 <statusbarpanel id="vocalofx-menuroot" class="statusbarpanel-menu-iconic" src=""> 25 25 <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 28 <menu id="vocalofx-tool-menu" label="&vocalofx.tool_menu.label;"> 27 29 <menupopup id="vocalofx-tool-popup"> -
branches/release-1.0/chrome/content/splash.js
r45 r60 3 3 4 4 function init(){ 5 var sound = Cc["@mozilla.org/sound;1"].createInstance(Ci.nsISound); 6 var ios = Cc["@mozilla.org/network/io-service;1"].getService(Ci.nsIIOService); 7 var url = ios.newURI("chrome://vocalofx/content/splash.wav", null, null); 8 sound.init(); 9 sound.play(url); 10 var timeoutID = setTimeout(function(){ 11 clearTimeout(timeoutID); 12 window.close(); 13 }, 3000); 5 var pref = Cc["@mozilla.org/preferences-service;1"].getService(Ci.nsIPrefBranch2); 6 7 var image = pref.getCharPref("extensions.vocalofx.skin_splash.screen"); 8 var width = pref.getIntPref("extensions.vocalofx.skin_splash.screen_width"); 9 var height = pref.getIntPref("extensions.vocalofx.skin_splash.screen_height"); 10 if(!image){ 11 image = "chrome://vocalofx/content/icons/eclipse-3.4.png"; 12 width = 455; 13 height = 295; 14 } 15 var screen = document.getElementById("screen"); 16 screen.src = image; 17 screen.width = width; 18 screen.height = height; 19 20 var voice = pref.getCharPref("extensions.vocalofx.skin_splash.voice"); 21 if(voice){ 22 var sound = Cc["@mozilla.org/sound;1"].createInstance(Ci.nsISound); 23 var ios = Cc["@mozilla.org/network/io-service;1"].getService(Ci.nsIIOService); 24 var url = ios.newURI(voice, null, null); 25 sound.init(); 26 sound.play(url); 27 } 28 29 if(!window.arguments){ 30 var timeoutID = setTimeout(function(){ 31 clearTimeout(timeoutID); 32 window.close(); 33 }, 3000); 34 } 14 35 } -
branches/release-1.0/chrome/content/splash.xul
r45 r60 3 3 <!DOCTYPE dialog SYSTEM "chrome://vocalofx/locale/vocalofx.dtd"> 4 4 <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" 5 id="vocalofx-splash" onload="init();" >5 id="vocalofx-splash" onload="init();" hidechrome="true"> 6 6 <script type="application/x-javascript" src="chrome://vocalofx/content/splash.js"/> 7 <stringbundleset>8 <stringbundle id="vocalofx-properties" src="chrome://vocalofx/locale/vocalofx.properties"/>9 </stringbundleset>10 7 <keyset> 11 8 <key keycode="VK_ESCAPE" oncommand="window.close();"/> 12 9 </keyset> 13 10 14 <image src="chrome://vocalofx/content/icons/eclipse-3.4.png"/>11 <image id="screen" onclick="window.close();"/> 15 12 </window> -
branches/release-1.0/chrome/content/vocalofx.js
r59 r60 1 1 var vocalofx = { 2 2 SKINPREF_OBSERVER: "extensions.vocalofx.skin_", 3 SKIN_PROPERTY_ICONS: "extensions.vocalofx.skin_icons _",3 SKIN_PROPERTY_ICONS: "extensions.vocalofx.skin_icons.", 4 4 SKIN_PROPERTY_IMAGE: "extensions.vocalofx.skin_image", 5 5 SKIN_PROPERTY_POSITION: "extensions.vocalofx.skin_position", … … 14 14 CHROME_TOOL: "chrome://vocalofx/content/tool/", 15 15 CHROME_SKIN: "chrome://vocalofx/content/skin/", 16 SKIN_ATTRIBUTE: "vocalofx_skin",17 16 BROWSER_ONLOAD: "load", 18 17 BROWSER_UNONLOAD: "unload", … … 321 320 } 322 321 , 322 openAboutDialog: function(){ 323 var config = "chrome://vocalofx/content/about.xul"; 324 var option = "chrome,dependent=yes,close=yes,minimizable=yes,centerscreen"; 325 window.openDialog(config, "vocalofx-about", option); 326 } 327 , 328 openConfigDialog: function(){ 329 var config = "chrome://vocalofx/content/config.xul"; 330 var option = "chrome,dependent=yes,close=yes,minimizable=yes,centerscreen"; 331 window.openDialog(config, "vocalofx-config", option); 332 } 333 , 323 334 init: function(){ 324 335 window.removeEventListener(this.BROWSER_ONLOAD, this, false); -
branches/release-1.0/components/vocalofx.js
r45 r60 14 14 15 15 handle: function(commandLine){ 16 var watcher = Cc['@mozilla.org/embedcomp/window-watcher;1'].getService(Ci.nsIWindowWatcher); 17 watcher.openWindow(null, "chrome://vocalofx/content/splash.xul", "vocalofx_splash", "chrome,centerscreen,alwaysRaised=yes,titlebar=no", null); 16 var pref = Cc["@mozilla.org/preferences-service;1"].getService(Ci.nsIPrefBranch2); 17 if(pref.getCharPref("extensions.vocalofx.skin_splash.screen")){ 18 var watcher = Cc['@mozilla.org/embedcomp/window-watcher;1'].getService(Ci.nsIWindowWatcher); 19 watcher.openWindow(null, "chrome://vocalofx/content/splash.xul", "vocalofx-splash", "chrome,centerscreen,alwaysRaised=yes,titlebar=no,modal=yes", null); 20 } 18 21 } 19 22 }; -
branches/release-1.0/defaults/preferences/vocalofx.js
r59 r60 8 8 pref("extensions.vocalofx.skin_pallet.meiko", "meiko1"); 9 9 pref("extensions.vocalofx.skin_pallet.kaito", "kaito1"); 10 pref("extensions.vocalofx.skin_icons_back-button", "back-button-rin"); 11 pref("extensions.vocalofx.skin_icons_forward-button", "forward-button-len"); 12 pref("extensions.vocalofx.skin_icons_back-forward-dropmarker", "back-forward-dropmarker-arrow-dn"); 13 pref("extensions.vocalofx.skin_icons_home-button", "home-button-spa"); 14 pref("extensions.vocalofx.skin_icons_bookmarks-button", "bookmarks-button-score"); 15 pref("extensions.vocalofx.skin_icons_throbber", "throbber-hachune"); 16 pref("extensions.vocalofx.skin_icons_favicon", "favicon-negi"); 17 pref("extensions.vocalofx.skin_icons_bookmark-item", "bookmark-item-negiroller"); 18 pref("extensions.vocalofx.skin_icons_sidebar-treechildren", "sidebar-treechildren-negiroller"); 10 pref("extensions.vocalofx.skin_icons.back-button", "back-button-rin"); 11 pref("extensions.vocalofx.skin_icons.forward-button", "forward-button-len"); 12 pref("extensions.vocalofx.skin_icons.back-forward-dropmarker", "back-forward-dropmarker-arrow-dn"); 13 pref("extensions.vocalofx.skin_icons.home-button", "home-button-spa"); 14 pref("extensions.vocalofx.skin_icons.bookmarks-button", "bookmarks-button-score"); 15 pref("extensions.vocalofx.skin_icons.throbber", "throbber-hachune"); 16 pref("extensions.vocalofx.skin_icons.favicon", "favicon-negi"); 17 pref("extensions.vocalofx.skin_icons.bookmark-item", "bookmark-item-negiroller"); 18 pref("extensions.vocalofx.skin_icons.sidebar-treechildren", "sidebar-treechildren-negiroller"); 19 pref("extensions.vocalofx.skin_splash.screen", "chrome://vocalofx/content/icons/Firemiku_about.png"); 20 pref("extensions.vocalofx.skin_splash.screen_width", 300); 21 pref("extensions.vocalofx.skin_splash.screen_height", 216); 22 pref("extensions.vocalofx.skin_splash.voice", "chrome://vocalofx/content/splash.wav"); 19 23 pref("extensions.vocalofx.skin_pallet_alert", true); 20 24 pref("extensions.vocalofx.skin_theme_alert", true);
