チェンジセット 60

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

いろいろやりかけだが、とりあえず一旦コミット。

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

凡例:

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

    r53 r60  
    104104        window.opener.openURL(aEvent.target.getAttribute("homepageURL")); 
    105105} 
     106 
     107function 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  
    1717        <vbox id="clientBox" flex="1"> 
    1818                <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();"/> 
    2020                        <vbox pack="end"> 
    2121                                <label id="extensionName" crop="right"/> 
  • branches/release-1.0/chrome/content/overlay.xul

    r54 r60  
    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();"/> 
    2628                        <menu id="vocalofx-tool-menu" label="&vocalofx.tool_menu.label;"> 
    2729                        <menupopup id="vocalofx-tool-popup"> 
  • branches/release-1.0/chrome/content/splash.js

    r45 r60  
    33 
    44function 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        } 
    1435} 
  • branches/release-1.0/chrome/content/splash.xul

    r45 r60  
    33<!DOCTYPE dialog SYSTEM "chrome://vocalofx/locale/vocalofx.dtd"> 
    44<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"> 
    66        <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> 
    107        <keyset> 
    118                <key keycode="VK_ESCAPE" oncommand="window.close();"/> 
    129        </keyset> 
    1310 
    14         <image src="chrome://vocalofx/content/icons/eclipse-3.4.png"/> 
     11        <image id="screen" onclick="window.close();"/> 
    1512</window> 
  • branches/release-1.0/chrome/content/vocalofx.js

    r59 r60  
    11var vocalofx = { 
    22        SKINPREF_OBSERVER: "extensions.vocalofx.skin_", 
    3         SKIN_PROPERTY_ICONS: "extensions.vocalofx.skin_icons_", 
     3        SKIN_PROPERTY_ICONS: "extensions.vocalofx.skin_icons.", 
    44        SKIN_PROPERTY_IMAGE: "extensions.vocalofx.skin_image", 
    55        SKIN_PROPERTY_POSITION: "extensions.vocalofx.skin_position", 
     
    1414        CHROME_TOOL: "chrome://vocalofx/content/tool/", 
    1515        CHROME_SKIN: "chrome://vocalofx/content/skin/", 
    16         SKIN_ATTRIBUTE: "vocalofx_skin", 
    1716        BROWSER_ONLOAD: "load", 
    1817        BROWSER_UNONLOAD: "unload", 
     
    321320        } 
    322321        , 
     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        , 
    323334        init: function(){ 
    324335                window.removeEventListener(this.BROWSER_ONLOAD, this, false); 
  • branches/release-1.0/components/vocalofx.js

    r45 r60  
    1414 
    1515        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                } 
    1821        } 
    1922}; 
  • branches/release-1.0/defaults/preferences/vocalofx.js

    r59 r60  
    88pref("extensions.vocalofx.skin_pallet.meiko", "meiko1"); 
    99pref("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"); 
     10pref("extensions.vocalofx.skin_icons.back-button", "back-button-rin"); 
     11pref("extensions.vocalofx.skin_icons.forward-button", "forward-button-len"); 
     12pref("extensions.vocalofx.skin_icons.back-forward-dropmarker", "back-forward-dropmarker-arrow-dn"); 
     13pref("extensions.vocalofx.skin_icons.home-button", "home-button-spa"); 
     14pref("extensions.vocalofx.skin_icons.bookmarks-button", "bookmarks-button-score"); 
     15pref("extensions.vocalofx.skin_icons.throbber", "throbber-hachune"); 
     16pref("extensions.vocalofx.skin_icons.favicon", "favicon-negi"); 
     17pref("extensions.vocalofx.skin_icons.bookmark-item", "bookmark-item-negiroller"); 
     18pref("extensions.vocalofx.skin_icons.sidebar-treechildren", "sidebar-treechildren-negiroller"); 
     19pref("extensions.vocalofx.skin_splash.screen", "chrome://vocalofx/content/icons/Firemiku_about.png"); 
     20pref("extensions.vocalofx.skin_splash.screen_width", 300); 
     21pref("extensions.vocalofx.skin_splash.screen_height", 216); 
     22pref("extensions.vocalofx.skin_splash.voice", "chrome://vocalofx/content/splash.wav"); 
    1923pref("extensions.vocalofx.skin_pallet_alert", true); 
    2024pref("extensions.vocalofx.skin_theme_alert", true);