mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-30 23:35:46 +01:00
Fix :dialog entries.
This commit is contained in:
@@ -63,45 +63,58 @@ const config = { //{{{
|
|||||||
["XulmusLeavePre", "Triggered before exiting Xulmus, just before destroying each module"],
|
["XulmusLeavePre", "Triggered before exiting Xulmus, just before destroying each module"],
|
||||||
["XulmusLeave", "Triggered before exiting Xulmus"]],
|
["XulmusLeave", "Triggered before exiting Xulmus"]],
|
||||||
|
|
||||||
|
// TODO: remove those which don't make sense, can't be provided.
|
||||||
dialogs: [
|
dialogs: [
|
||||||
["about", "About Songbird",
|
["about", "About Songbird",
|
||||||
function () { window.openDialog("chrome://browser/content/aboutDialog.xul", "_blank", "chrome,dialog,modal,centerscreen"); }],
|
function () { window.openDialog("chrome://songbird/content/xul/about.xul", "_blank", "chrome,dialog,modal,centerscreen"); }],
|
||||||
|
/*
|
||||||
["addbookmark", "Add bookmark for the current page",
|
["addbookmark", "Add bookmark for the current page",
|
||||||
function () { PlacesCommandHook.bookmarkCurrentPage(true, PlacesUtils.bookmarksRootId); }],
|
function () { PlacesCommandHook.bookmarkCurrentPage(true, PlacesUtils.bookmarksRootId); }],
|
||||||
|
*/
|
||||||
["addons", "Manage Add-ons",
|
["addons", "Manage Add-ons",
|
||||||
function () { window.BrowserOpenAddonsMgr(); }],
|
function () { SBOpenPreferences("paneAddons"); }],
|
||||||
|
/*
|
||||||
["bookmarks", "List your bookmarks",
|
["bookmarks", "List your bookmarks",
|
||||||
function () { window.openDialog("chrome://browser/content/bookmarks/bookmarksPanel.xul", "Bookmarks", "dialog,centerscreen,width=600,height=600"); }],
|
function () { window.openDialog("chrome://browser/content/bookmarks/bookmarksPanel.xul", "Bookmarks", "dialog,centerscreen,width=600,height=600"); }],
|
||||||
|
*/
|
||||||
["checkupdates", "Check for updates",
|
["checkupdates", "Check for updates",
|
||||||
function () { window.checkForUpdates(); }],
|
function () { window.checkForUpdates(); }],
|
||||||
["cleardata", "Clear private data",
|
["cleardata", "Clear private data",
|
||||||
function () { Cc[GLUE_CID].getService(Ci.nsIBrowserGlue).sanitize(window || null); }],
|
function () { Sanitizer.showUI(); }],
|
||||||
["cookies", "List your cookies",
|
["cookies", "List your cookies",
|
||||||
function () { window.toOpenWindowByType("Browser:Cookies", "chrome://browser/content/preferences/cookies.xul", "chrome,dialog=no,resizable"); }],
|
function () { window.toOpenWindowByType("Browser:Cookies", "chrome://browser/content/preferences/cookies.xul", "chrome,dialog=no,resizable"); }],
|
||||||
["console", "JavaScript console",
|
["console", "JavaScript console",
|
||||||
function () { window.toJavaScriptConsole(); }],
|
function () { window.toJavaScriptConsole(); }],
|
||||||
|
/*
|
||||||
["customizetoolbar", "Customize the Toolbar",
|
["customizetoolbar", "Customize the Toolbar",
|
||||||
function () { window.BrowserCustomizeToolbar(); }],
|
function () { window.BrowserCustomizeToolbar(); }],
|
||||||
|
*/
|
||||||
["dominspector", "DOM Inspector",
|
["dominspector", "DOM Inspector",
|
||||||
function () { try { window.inspectDOMDocument(content.document); } catch (e) { liberator.echoerr("DOM Inspector extension not installed"); } }],
|
function () { try { window.inspectDOMDocument(content.document); } catch (e) { liberator.echoerr("DOM Inspector extension not installed"); } }],
|
||||||
["downloads", "Manage Downloads",
|
["downloads", "Manage Downloads",
|
||||||
function () { window.toOpenWindowByType("Download:Manager", "chrome://mozapps/content/downloads/downloads.xul", "chrome,dialog=no,resizable"); }],
|
function () { window.toOpenWindowByType("Download:Manager", "chrome://mozapps/content/downloads/downloads.xul", "chrome,dialog=no,resizable"); }],
|
||||||
|
/*
|
||||||
["history", "List your history",
|
["history", "List your history",
|
||||||
function () { window.openDialog("chrome://browser/content/history/history-panel.xul", "History", "dialog,centerscreen,width=600,height=600"); }],
|
function () { window.openDialog("chrome://browser/content/history/history-panel.xul", "History", "dialog,centerscreen,width=600,height=600"); }],
|
||||||
["import", "Import Preferences, Bookmarks, History, etc. from other browsers",
|
["import", "Import Preferences, Bookmarks, History, etc. from other browsers",
|
||||||
function () { window.BrowserImport(); }],
|
function () { window.BrowserImport(); }],
|
||||||
|
*/
|
||||||
["openfile", "Open the file selector dialog",
|
["openfile", "Open the file selector dialog",
|
||||||
function () { window.BrowserOpenFileWindow(); }],
|
function () { SBFileOpen(); }],
|
||||||
|
/*
|
||||||
["pageinfo", "Show information about the current page",
|
["pageinfo", "Show information about the current page",
|
||||||
function () { window.BrowserPageInfo(); }],
|
function () { window.BrowserPageInfo(); }],
|
||||||
|
*/
|
||||||
["pagesource", "View page source",
|
["pagesource", "View page source",
|
||||||
function () { window.BrowserViewSourceOfDocument(content.document); }],
|
function () { window.BrowserViewSourceOfDocument(content.document); }],
|
||||||
["places", "Places Organizer: Manage your bookmarks and history",
|
["places", "Places Organizer: Manage your bookmarks and history",
|
||||||
function () { PlacesCommandHook.showPlacesOrganizer(ORGANIZER_ROOT_BOOKMARKS); }],
|
function () { PlacesCommandHook.showPlacesOrganizer(ORGANIZER_ROOT_BOOKMARKS); }],
|
||||||
["preferences", "Show Firefox preferences dialog",
|
["preferences", "Show Firefox preferences dialog",
|
||||||
function () { window.openPreferences(); }],
|
function () { window.openPreferences(); }],
|
||||||
|
/*
|
||||||
["printpreview", "Preview the page before printing",
|
["printpreview", "Preview the page before printing",
|
||||||
function () { PrintUtils.printPreview(onEnterPrintPreview, onExitPrintPreview); }],
|
function () { PrintUtils.printPreview(onEnterPrintPreview, onExitPrintPreview); }],
|
||||||
|
*/
|
||||||
["printsetup", "Setup the page size and orientation before printing",
|
["printsetup", "Setup the page size and orientation before printing",
|
||||||
function () { PrintUtils.showPageSetup(); }],
|
function () { PrintUtils.showPageSetup(); }],
|
||||||
["print", "Show print dialog",
|
["print", "Show print dialog",
|
||||||
@@ -382,6 +395,8 @@ const config = { //{{{
|
|||||||
},
|
},
|
||||||
{ argCount: "0" });
|
{ argCount: "0" });
|
||||||
|
|
||||||
|
// TODO: service/content pane and right sidebar manipulation commands? --djk
|
||||||
|
/*
|
||||||
// TODO: move sidebar commands to ui.js?
|
// TODO: move sidebar commands to ui.js?
|
||||||
commands.add(["sbcl[ose]"],
|
commands.add(["sbcl[ose]"],
|
||||||
"Close the sidebar window",
|
"Close the sidebar window",
|
||||||
@@ -423,6 +438,7 @@ const config = { //{{{
|
|||||||
completer: function (context) completion.sidebar(context),
|
completer: function (context) completion.sidebar(context),
|
||||||
literal: 0
|
literal: 0
|
||||||
});
|
});
|
||||||
|
*/
|
||||||
|
|
||||||
commands.add(["winc[lose]", "wc[lose]"],
|
commands.add(["winc[lose]", "wc[lose]"],
|
||||||
"Close window",
|
"Close window",
|
||||||
|
|||||||
Reference in New Issue
Block a user