mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-06 21:24:48 +01:00
Autogenerate :h dialog-list.
This commit is contained in:
@@ -838,9 +838,18 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
|
|||||||
template.map(iter(), util.identity)
|
template.map(iter(), util.identity)
|
||||||
}</dl>, <>{"\n\n"}</>) +
|
}</dl>, <>{"\n\n"}</>) +
|
||||||
'\n</overlay>'];
|
'\n</overlay>'];
|
||||||
|
|
||||||
addTags("index", util.httpGet("dactyl://help-overlay/index").responseXML);
|
addTags("index", util.httpGet("dactyl://help-overlay/index").responseXML);
|
||||||
|
|
||||||
|
overlayMap["gui"] = ['text/xml;charset=UTF-8',
|
||||||
|
'<?xml version="1.0"?>\n' +
|
||||||
|
'<overlay xmlns="' + NS + '">\n' +
|
||||||
|
'<dl insertafter="dialog-list">\n' +
|
||||||
|
template.map(config.dialogs, function ([name, val])
|
||||||
|
((!val[2]) || (val[2] && val[2]())) &&
|
||||||
|
<><dt>{name}</dt><dd>{val[0]}</dd></>, <>{"\n"}</>) +
|
||||||
|
'</dl>\n</overlay>'];
|
||||||
|
|
||||||
|
|
||||||
this.helpInitialized = true;
|
this.helpInitialized = true;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -7,30 +7,6 @@
|
|||||||
xmlns="&xmlns.dactyl;"
|
xmlns="&xmlns.dactyl;"
|
||||||
xmlns:html="&xmlns.html;">
|
xmlns:html="&xmlns.html;">
|
||||||
|
|
||||||
<dl tag="dialog-list" replace="dialog-list">
|
|
||||||
<dt>about</dt> <dd>About &dactyl.host;</dd>
|
|
||||||
<dt>addons</dt> <dd>Manage Add-ons</dd>
|
|
||||||
<dt>checkupdates</dt> <dd>Check for updates</dd>
|
|
||||||
<dt>cleardata</dt> <dd>Clear private data</dd>
|
|
||||||
<dt>cookies</dt> <dd>List your cookies</dd>
|
|
||||||
<dt>console</dt> <dd>JavaScript console</dd>
|
|
||||||
<dt>dominspector</dt> <dd>DOM Inspector</dd>
|
|
||||||
<dt>downloads</dt> <dd>Manage Downloads</dd>
|
|
||||||
<dt>jumpto</dt> <dd>Jump to a media item</dd>
|
|
||||||
<dt>newsmartplaylist</dt><dd>Create a new smart playlist</dd>
|
|
||||||
<dt>openfile</dt> <dd>Open the file selector dialog</dd>
|
|
||||||
<dt>pagesource</dt> <dd>View page source</dd>
|
|
||||||
<dt>places</dt> <dd>Places Organizer: Manage your bookmarks and history</dd>
|
|
||||||
<dt>preferences</dt> <dd>Show &dactyl.host; preferences dialog</dd>
|
|
||||||
<dt>printsetup</dt> <dd>Setup the page size and orientation before printing</dd>
|
|
||||||
<dt>print</dt> <dd>Show print dialog</dd>
|
|
||||||
<dt>saveframe</dt> <dd>Save frame to disk</dd>
|
|
||||||
<dt>savepage</dt> <dd>Save page to disk</dd>
|
|
||||||
<dt>searchengines</dt> <dd>Manage installed search engines</dd>
|
|
||||||
<dt>selectionsource</dt> <dd>View selection source</dd>
|
|
||||||
<dt>subscribe</dt> <dd>Add a new subscription</dd>
|
|
||||||
</dl>
|
|
||||||
|
|
||||||
<item replace=":sbcl">
|
<item replace=":sbcl">
|
||||||
<tags>:dpcl :dpclose</tags>
|
<tags>:dpcl :dpclose</tags>
|
||||||
<spec>:dpcl<oa>ose</oa> <a>pane</a></spec>
|
<spec>:dpcl<oa>ose</oa> <a>pane</a></spec>
|
||||||
|
|||||||
@@ -1,41 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<?xml-stylesheet type="text/xsl" href="dactyl://content/help.xsl"?>
|
|
||||||
|
|
||||||
<!DOCTYPE overlay SYSTEM "dactyl://content/dtd">
|
|
||||||
|
|
||||||
<overlay
|
|
||||||
xmlns="&xmlns.dactyl;"
|
|
||||||
xmlns:html="&xmlns.html;">
|
|
||||||
|
|
||||||
<dl tag="dialog-list" replace="dialog-list">
|
|
||||||
<dt>about</dt> <dd>About Mozilla &dactyl.host;</dd>
|
|
||||||
<dt>addbookmark</dt> <dd>Add bookmark for the current page</dd>
|
|
||||||
<dt>addons</dt> <dd>Manage Add-ons</dd>
|
|
||||||
<dt>bookmarks</dt> <dd>List your bookmarks</dd>
|
|
||||||
<dt>checkupdates</dt> <dd>Check for updates</dd>
|
|
||||||
<dt>cookies</dt> <dd>List your cookies</dd>
|
|
||||||
<dt>console</dt> <dd>JavaScript console</dd>
|
|
||||||
<dt>customizetoolbar</dt><dd>Customize the Toolbar</dd>
|
|
||||||
<dt>dominspector</dt> <dd>DOM Inspector</dd>
|
|
||||||
<dt>downloads</dt> <dd>Manage Downloads</dd>
|
|
||||||
<dt>history</dt> <dd>List your history</dd>
|
|
||||||
<dt>import</dt> <dd>Import Preferences, Bookmarks, History, etc. from other browsers</dd>
|
|
||||||
<dt>openfile</dt> <dd>Open the file selector dialog</dd>
|
|
||||||
<dt>pageinfo</dt> <dd>Show information about the current page</dd>
|
|
||||||
<dt>pagesource</dt> <dd>View page source</dd>
|
|
||||||
<dt>passwords</dt> <dd>Passwords dialog</dd>
|
|
||||||
<dt>places</dt> <dd>Places Organizer: Manage your bookmarks and history</dd>
|
|
||||||
<dt>preferences</dt> <dd>Show &dactyl.host; preferences dialog</dd>
|
|
||||||
<dt>printpreview</dt> <dd>Preview the page before printing</dd>
|
|
||||||
<dt>printsetup</dt> <dd>Setup the page size and orientation before printing</dd>
|
|
||||||
<dt>print</dt> <dd>Show print dialog</dd>
|
|
||||||
<dt>saveframe</dt> <dd>Save frame to disk</dd>
|
|
||||||
<dt>savepage</dt> <dd>Save page to disk</dd>
|
|
||||||
<dt>searchengines</dt> <dd>Manage installed search engines</dd>
|
|
||||||
<dt>selectionsource</dt> <dd>View selection source</dd>
|
|
||||||
<dt>venkman</dt> <dd>The JavaScript debugger</dd>
|
|
||||||
</dl>
|
|
||||||
|
|
||||||
</overlay>
|
|
||||||
|
|
||||||
<!-- vim:se sts=4 sw=4 et: -->
|
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<?xml-stylesheet type="text/xsl" href="dactyl://content/help.xsl"?>
|
|
||||||
|
|
||||||
<!DOCTYPE overlay SYSTEM "dactyl://content/dtd">
|
|
||||||
|
|
||||||
<overlay
|
|
||||||
xmlns="&xmlns.dactyl;"
|
|
||||||
xmlns:html="&xmlns.html;">
|
|
||||||
|
|
||||||
<dl tag="dialog-list" replace="dialog-list">
|
|
||||||
<dt>about</dt> <dd>About &dactyl.host;</dd>
|
|
||||||
<dt>addons</dt> <dd>Manage Add-ons</dd>
|
|
||||||
<dt>addressbook</dt> <dd>Address book</dd>
|
|
||||||
<dt>checkupdates</dt> <dd>Check for updates</dd>
|
|
||||||
<dt>console</dt> <dd>JavaScript console</dd>
|
|
||||||
<dt>dominspector</dt> <dd>DOM Inspector</dd>
|
|
||||||
<dt>downloads</dt> <dd>Manage Downloads</dd>
|
|
||||||
<dt>openfile</dt> <dd>Open the file selector dialog</dd>
|
|
||||||
<dt>pageinfo</dt> <dd>Show information about the current page</dd>
|
|
||||||
<dt>pagesource</dt> <dd>View page source</dd>
|
|
||||||
<dt>preferences</dt> <dd>Show &dactyl.host; preferences dialog</dd>
|
|
||||||
<dt>printsetup</dt> <dd>Setup the page size and orientation before printing</dd>
|
|
||||||
<dt>print</dt> <dd>Show print dialog</dd>
|
|
||||||
<dt>saveframe</dt> <dd>Save frame to disk</dd>
|
|
||||||
<dt>savepage</dt> <dd>Save page to disk</dd>
|
|
||||||
</dl>
|
|
||||||
|
|
||||||
</overlay>
|
|
||||||
|
|
||||||
<!-- vim:se sts=4 sw=4 et: -->
|
|
||||||
Reference in New Issue
Block a user