From 76481ab23e60c6956afd947bf3f8c8ed7cfddfc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0t=C4=9Bp=C3=A1n=20N=C4=9Bmec?= Date: Tue, 26 Jul 2011 23:47:37 +0200 Subject: [PATCH] Autogenerate :h dialog-list. --- common/content/dactyl.js | 11 ++++++++- melodactyl/locale/en-US/gui.xml | 24 ------------------- pentadactyl/locale/en-US/gui.xml | 41 -------------------------------- teledactyl/locale/en-US/gui.xml | 30 ----------------------- 4 files changed, 10 insertions(+), 96 deletions(-) delete mode 100644 pentadactyl/locale/en-US/gui.xml delete mode 100644 teledactyl/locale/en-US/gui.xml diff --git a/common/content/dactyl.js b/common/content/dactyl.js index 2bf1be5c..5f7ee1db 100644 --- a/common/content/dactyl.js +++ b/common/content/dactyl.js @@ -838,9 +838,18 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), { template.map(iter(), util.identity) }, <>{"\n\n"}) + '\n']; - addTags("index", util.httpGet("dactyl://help-overlay/index").responseXML); + overlayMap["gui"] = ['text/xml;charset=UTF-8', + '\n' + + '\n' + + '
\n' + + template.map(config.dialogs, function ([name, val]) + ((!val[2]) || (val[2] && val[2]())) && + <>
{name}
{val[0]}
, <>{"\n"}) + + '
\n
']; + + this.helpInitialized = true; } }, diff --git a/melodactyl/locale/en-US/gui.xml b/melodactyl/locale/en-US/gui.xml index fd788b60..c4d308c8 100644 --- a/melodactyl/locale/en-US/gui.xml +++ b/melodactyl/locale/en-US/gui.xml @@ -7,30 +7,6 @@ xmlns="&xmlns.dactyl;" xmlns:html="&xmlns.html;"> -
-
about
About &dactyl.host;
-
addons
Manage Add-ons
-
checkupdates
Check for updates
-
cleardata
Clear private data
-
cookies
List your cookies
-
console
JavaScript console
-
dominspector
DOM Inspector
-
downloads
Manage Downloads
-
jumpto
Jump to a media item
-
newsmartplaylist
Create a new smart playlist
-
openfile
Open the file selector dialog
-
pagesource
View page source
-
places
Places Organizer: Manage your bookmarks and history
-
preferences
Show &dactyl.host; preferences dialog
-
printsetup
Setup the page size and orientation before printing
-
print
Show print dialog
-
saveframe
Save frame to disk
-
savepage
Save page to disk
-
searchengines
Manage installed search engines
-
selectionsource
View selection source
-
subscribe
Add a new subscription
-
- :dpcl :dpclose :dpclose pane diff --git a/pentadactyl/locale/en-US/gui.xml b/pentadactyl/locale/en-US/gui.xml deleted file mode 100644 index 1c4e9fbf..00000000 --- a/pentadactyl/locale/en-US/gui.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - -
-
about
About Mozilla &dactyl.host;
-
addbookmark
Add bookmark for the current page
-
addons
Manage Add-ons
-
bookmarks
List your bookmarks
-
checkupdates
Check for updates
-
cookies
List your cookies
-
console
JavaScript console
-
customizetoolbar
Customize the Toolbar
-
dominspector
DOM Inspector
-
downloads
Manage Downloads
-
history
List your history
-
import
Import Preferences, Bookmarks, History, etc. from other browsers
-
openfile
Open the file selector dialog
-
pageinfo
Show information about the current page
-
pagesource
View page source
-
passwords
Passwords dialog
-
places
Places Organizer: Manage your bookmarks and history
-
preferences
Show &dactyl.host; preferences dialog
-
printpreview
Preview the page before printing
-
printsetup
Setup the page size and orientation before printing
-
print
Show print dialog
-
saveframe
Save frame to disk
-
savepage
Save page to disk
-
searchengines
Manage installed search engines
-
selectionsource
View selection source
-
venkman
The JavaScript debugger
-
- -
- - diff --git a/teledactyl/locale/en-US/gui.xml b/teledactyl/locale/en-US/gui.xml deleted file mode 100644 index 4f8b449d..00000000 --- a/teledactyl/locale/en-US/gui.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - -
-
about
About &dactyl.host;
-
addons
Manage Add-ons
-
addressbook
Address book
-
checkupdates
Check for updates
-
console
JavaScript console
-
dominspector
DOM Inspector
-
downloads
Manage Downloads
-
openfile
Open the file selector dialog
-
pageinfo
Show information about the current page
-
pagesource
View page source
-
preferences
Show &dactyl.host; preferences dialog
-
printsetup
Setup the page size and orientation before printing
-
print
Show print dialog
-
saveframe
Save frame to disk
-
savepage
Save page to disk
-
- -
- -