Changeset 1078
- Timestamp:
- 2008-09-09 02:50:09 (2 months ago)
- Files:
-
- trunk/chrome/content/about/about.html (added)
- trunk/chrome/content/about/about.xul (modified) (2 diffs)
- trunk/chrome/content/about/notice.xul (modified) (1 diff)
- trunk/chrome/content/common/overlayFunctions.js (modified) (1 diff)
- trunk/chrome/content/dta/addurl.js (modified) (3 diffs)
- trunk/chrome/content/dta/addurl.xul (modified) (3 diffs)
- trunk/chrome/content/dta/manager.js (modified) (1 diff)
- trunk/chrome/content/dta/manager.xul (modified) (2 diffs)
- trunk/chrome/content/dta/select.js (modified) (1 diff)
- trunk/chrome/content/dta/select.xul (modified) (3 diffs)
- trunk/chrome/content/integration/elements.js (modified) (1 diff)
- trunk/chrome/content/integration/elements.xul (modified) (2 diffs)
- trunk/chrome/content/preferences/advPane.xul (modified) (1 diff)
- trunk/chrome/content/preferences/filtersPane.xul (modified) (1 diff)
- trunk/chrome/content/preferences/interfacePane.xul (modified) (1 diff)
- trunk/chrome/content/preferences/mainPane.xul (modified) (1 diff)
- trunk/chrome/content/preferences/prefs.js (modified) (2 diffs)
- trunk/chrome/content/preferences/prefs.xul (modified) (2 diffs)
- trunk/chrome/content/preferences/privacyPane.xul (modified) (1 diff)
- trunk/chrome/help (deleted)
- trunk/chrome/locale/en-US/addurl.dtd (modified) (1 diff)
- trunk/chrome/locale/en-US/common.dtd (modified) (1 diff)
- trunk/chrome/locale/en-US/menu.dtd (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/chrome/content/about/about.xul
r985 r1078 64 64 > 65 65 <script type="application/x-javascript" src="chrome://dta/content/common/overlayFunctions.js"/> 66 <script type="application/x-javascript" src="chrome://help/content/contextHelp.js"/>67 66 68 67 <script type="application/x-javascript"><![CDATA[ … … 80 79 } 81 80 function openNotice() { 82 if ('openHelp' in window) { 83 openHelp('About_Privacy','chrome://dta-help/content/help.rdf'); 84 } 85 else { 86 openTab('chrome://dta-help/content/about.html#privacy'); 87 } 81 openTab('chrome://dta/content/about/about.html#privacy'); 88 82 } 89 83 ]]></script> trunk/chrome/content/about/notice.xul
r993 r1078 63 63 <stringbundle src="chrome://dta/locale/notice.properties"/> 64 64 </stringbundleset> 65 <iframe id="frame" src="chrome://dta -help/content/about.html" flex="1"/>65 <iframe id="frame" src="chrome://dta/content/about/about.html" flex="1"/> 66 66 </dialog> trunk/chrome/content/common/overlayFunctions.js
r1069 r1078 394 394 } 395 395 var DTA_Mediator = { 396 _m: Components.classes["@mozilla.org/appshell/window-mediator;1"].getService(Components.interfaces.nsIWindowMediator), 397 _ios: Components.classes["@mozilla.org/network/io-service;1"].getService(Components.interfaces.nsIIOService), 398 396 _m: Components.classes["@mozilla.org/appshell/window-mediator;1"] 397 .getService(Components.interfaces.nsIWindowMediator), 398 _ios: Components.classes["@mozilla.org/network/io-service;1"] 399 .getService(Components.interfaces.nsIIOService), 399 400 400 401 getMostRecent: function(name) { trunk/chrome/content/dta/addurl.js
r1071 r1078 249 249 250 250 var Dialog = { 251 multiHelp: true,252 251 load: function DTA_load() { 253 252 try { 254 $('DownThemAll').getButton('help').hidden = !('openHelp' in window);255 253 256 254 this.ddDirectory = $("directory"); … … 280 278 $('batcheslabel').style.display = 'none'; 281 279 $('batches').collapsed = true; 282 this.multiHelp = false;283 280 } 284 281 var referrer = DTA_AddingFunctions.isLinkOpenable(a.referrer) ? a.referrer : null; … … 336 333 } 337 334 }, 338 help: function DTA_help(event) {339 var topic = event.originalTarget.getAttribute('topic');340 if (!this.multiHelp) {341 topic = 'AddUrl';342 }343 if (topic) {344 openHelp(topic, 'chrome://dta-help/content/help.rdf');345 }346 else {347 $('popupHelp').showPopup($('DownThemAll').getButton('help'), -1, -1, "popup");348 }349 },350 351 335 download: function DTA_download(start) { 352 336 trunk/chrome/content/dta/addurl.xul
r1071 r1078 34 34 ondialogaccept="return Dialog.download(true);" 35 35 ondialogextra1="return Dialog.download(false);" 36 buttons="accept, extra1, cancel, help"36 buttons="accept,extra1,cancel" 37 37 buttonlabelaccept="&start.label;" 38 38 buttonlabelextra1="&queue.label;" 39 ondialoghelp="Dialog.help(event);"40 39 > 41 42 <popupset>43 <popup id="popupHelp">44 <menuitem topic="AddUrl" oncommand="Dialog.help(event);" label="&help.adding.label;"/>45 <menuitem topic="Batches" oncommand="Dialog.help(event);" label="&help.batches.label;"/>46 </popup>47 </popupset>48 40 49 41 <script type="application/x-javascript" src="chrome://dta/content/common/overlayFunctions.js"/> … … 54 46 <script type="application/x-javascript" src="chrome://global/content/nsDragAndDrop.js"/> 55 47 <script type="application/x-javascript" src="chrome://global/content/nsTransferable.js"/> 56 <script type="application/x-javascript" src="chrome://help/content/contextHelp.js"/>57 48 58 49 <stringbundleset> … … 67 58 <dialogheader id="logo" title="&add.value;" chromedir="&locale.dir;"/> 68 59 <description class="header" id="descr">&desc.value; <html:span id="batcheslabel">&desc.batches.value;</html:span></description> 69 <vbox id="batches" context="popupHelp">60 <vbox id="batches"> 70 61 <label flex="1">&examples.value;</label> 71 62 <label class="monospace indent">.../mygallery[A:C]/photo[001:100:2].jpg</label> trunk/chrome/content/dta/manager.js
r1069 r1078 147 147 ); 148 148 149 document.getElementById("dtaHelp").hidden = !("openHelp" in window);150 151 149 (function autofit() { 152 150 let de = document.documentElement; trunk/chrome/content/dta/manager.xul
r1070 r1078 45 45 <script type="application/javascript" src="chrome://dta/content/dta/manager/imex.js" /> 46 46 47 <script type="application/x-javascript" src="chrome://help/content/contextHelp.js"/>48 47 <script type="application/x-javascript" src="chrome://global/content/nsDragAndDrop.js"/> 49 48 <script type="application/x-javascript" src="chrome://global/content/nsTransferable.js"/> … … 193 192 <statusbar id="footer" chromedir="&locale.dir;"> 194 193 <statusbarpanel id="statusText" label="" flex="1" /> 195 <statusbarpanel id="dtaHelp" class="statusbarpanel-iconic-text" label="&dtahelp;" onclick="openHelp('Manager','chrome://dta-help/content/help.rdf');" src="chrome://dta/skin/common/help.png" />196 194 <statusbarpanel id="options" class="statusbarpanel-iconic-text" label="&options.label;" onclick="DTA_showPreferences();" src="chrome://dta/skin/common/prefs.png" /> 197 195 </statusbar> trunk/chrome/content/dta/select.js
r1073 r1078 329 329 load: function DTA_load() { 330 330 331 // no help available?332 $("dtaHelp").hidden = !("openHelp" in window);333 334 331 // construct or dropdowns. 335 332 this.ddFilter = $('filter'); trunk/chrome/content/dta/select.xul
r1062 r1078 38 38 <script type="application/javascript" src="chrome://dta/content/dta/select.js" /> 39 39 40 <script type="application/x-javascript" src="chrome://help/content/contextHelp.js"/>41 42 40 <script src="chrome://global/content/nsDragAndDrop.js"/> 43 41 <script src="chrome://global/content/nsTransferable.js"/> … … 54 52 <key keycode="VK_RETURN" oncommand="Dialog.download(true);"/> 55 53 <key keycode="VK_ENTER" oncommand="Dialog.download(true);"/> 56 <key id="kHelp" modifiers="accel" key="H" oncommand="openHelp('introduction','chrome://dta-help/content/help.rdf');"/>57 54 </keyset> 58 55 … … 145 142 <statusbar id="footer"> 146 143 <statusbarpanel id="status" flex="1" /> 147 <statusbarpanel id="dtaHelp" class="statusbarpanel-iconic-text" label="&dtahelp;" onclick="openHelp('Select','chrome://dta-help/content/help.rdf');" src="chrome://dta/skin/common/help.png" />148 144 <statusbarpanel id="options" class="statusbarpanel-iconic-text" label="&options.label;" onclick="DTA_showPreferences();" src="chrome://dta/skin/common/prefs.png" /> 149 145 </statusbar> trunk/chrome/content/integration/elements.js
r1044 r1078 678 678 this.toolsBase.parentNode.insertBefore(cur, this.toolsBase); 679 679 } 680 document.getElementById('dtaToolsHelp').hidden = !('openHelp' in window);681 }682 }catch(ex) {680 } 681 } 682 catch(ex) { 683 683 DTA_debug.log("DTATools(): ", ex); 684 684 } trunk/chrome/content/integration/elements.xul
r926 r1078 45 45 <script type="application/x-javascript" src="chrome://global/content/nsDragAndDrop.js"/> 46 46 <script type="application/x-javascript" src="chrome://global/content/nsTransferable.js"/> 47 <script type="application/x-javascript" src="chrome://help/content/contextHelp.js"/>48 47 49 48 <menu image="chrome://dta/skin/common/dta.png" id="dtaCtxCompact" label="DownThemAll!" class="menu-iconic"> … … 111 110 <menuitem id="dtaToolsPrefs" oncommand="DTA_showPreferences();" 112 111 label="&dta-pref.label;" image="chrome://dta/skin/common/prefs.png" class="menuitem-iconic" /> 113 <menuitem id="dtaToolsHelp" oncommand="openHelp('introduction','chrome://dta-help/content/help.rdf');"114 label="&dta-help.label;" image="chrome://dta/skin/common/help.png" class="menuitem-iconic" />115 112 <menuitem id="dtaToolsAbout" oncommand="window.openDialog('chrome://dta/content/about/about.xul','_blank','chrome,centerscreen,modal');" 116 113 label="&dta-about.label;" image="chrome://dta/skin/common/about.png" class="menuitem-iconic" /> trunk/chrome/content/preferences/advPane.xul
r1046 r1078 16 16 label="&advancedpane.label;" 17 17 orient="vertical" 18 helpURI="chrome://dta-help/content/help.rdf"19 helpTopic="Preferences_Advanced"20 18 onpaneload="Advanced.load();" 21 19 > trunk/chrome/content/preferences/filtersPane.xul
r796 r1078 15 15 label="&filterspane.label;" 16 16 onpaneload="Filters.load();" 17 helpURI="chrome://dta-help/content/help.rdf"18 helpTopic="Preferences_Filters"19 17 flex="1" 20 18 > trunk/chrome/content/preferences/interfacePane.xul
r1066 r1078 15 15 id="paneInterface" 16 16 label="&uipane.label;" 17 helpURI="chrome://dta-help/content/help.rdf"18 helpTopic="Preferences_UI"19 17 onpaneload="Interface.init();" 20 18 > trunk/chrome/content/preferences/mainPane.xul
r990 r1078 15 15 label="&mainpane.label;" 16 16 onpaneload="Main.load();" 17 helpURI="chrome://dta-help/content/help.rdf"18 helpTopic="Preferences_Main"19 17 > 20 18 trunk/chrome/content/preferences/prefs.js
r1069 r1078 112 112 }, 113 113 showNotice: function() { 114 if ('openHelp' in window) { 115 openHelp('About_Privacy','chrome://dta-help/content/help.rdf'); 116 } 117 else { 118 DTA_Mediator.openTab('chrome://dta-help/content/about.html#privacy'); 119 } 114 DTA_Mediator.openTab('chrome://dta/content/about/about.html#privacy'); 120 115 } 121 116 }; … … 462 457 // XXX 463 458 } 464 },465 showHelp: function() {466 if ('openHelp' in window) {467 return;468 }469 DTA_Mediator.openTab('chrome://dta-help/content/preferences.html');470 459 } 471 460 } trunk/chrome/content/preferences/prefs.xul
r1048 r1078 27 27 windowtype="DTA:Preferences" 28 28 title="&dtaPreferences.title;" 29 buttons="accept,cancel,extra2 "29 buttons="accept,cancel,extra2,help" 30 30 buttonlabelextra2="&buttonlabelextra2;" 31 31 ondialogextra2="Prefs.restoreAll();" 32 ondialoghelp="Prefs.showHelp();"33 32 persist="lastSelected screenX screenY" 34 33 onload="Prefs.load();" … … 47 46 <script type="application/javascript" src="chrome://dta/content/common/internalFunctions.js"/> 48 47 <script type="application/javascript" src="chrome://dta/content/preferences/prefs.js"/> 49 <script type="application/x-javascript" src="chrome://help/content/contextHelp.js"/>50 48 </prefwindow> trunk/chrome/content/preferences/privacyPane.xul
r1066 r1078 17 17 onpaneload="Privacy.load();" 18 18 orient="vertical" 19 helpURI="chrome://dta-help/content/help.rdf"20 helpTopic="Preferences_Privacy"21 19 > 22 20 <preferences> trunk/chrome/locale/en-US/addurl.dtd
r584 r1078 4 4 <!ENTITY desc.batches.value "You can also use batch descriptors to download multiple files at one time."> 5 5 <!ENTITY examples.value "Examples:"> 6 <!ENTITY help.batches.label "Batch Downloads">7 <!ENTITY help.adding.label "Adding URLs">trunk/chrome/locale/en-US/common.dtd
r862 r1078 11 11 12 12 <!ENTITY options.label "Preferences"> 13 <!ENTITY dtahelp "Help!">14 13 15 14 <!ENTITY url.value "URL"> trunk/chrome/locale/en-US/menu.dtd
r874 r1078 1 1 <!ENTITY dta-pref.label "Preferences"> 2 2 <!ENTITY dta-about.label "About dTa!"> 3 <!ENTITY dta-help.label "Help Contents">4 3 <!ENTITY dta-manager-button "Manager"> 5 4 <!ENTITY dta-tb-all.label "All tabs">
