From d7d3bff4083684b8f700e0c7d13033e7c6888cb1 Mon Sep 17 00:00:00 2001 From: "law%netscape.com" Date: Wed, 28 Apr 1999 00:30:08 +0000 Subject: [PATCH] Add new unknownContent.xul dialog --- xpfe/browser/src/Makefile.in | 2 +- xpfe/browser/src/makefile.win | 87 ++++++++++++------------ xpfe/browser/src/unknownContent.xul | 102 ++++++++++++++++++++++++++++ 3 files changed, 148 insertions(+), 43 deletions(-) create mode 100644 xpfe/browser/src/unknownContent.xul diff --git a/xpfe/browser/src/Makefile.in b/xpfe/browser/src/Makefile.in index f16ec5367916..225564f55d3d 100644 --- a/xpfe/browser/src/Makefile.in +++ b/xpfe/browser/src/Makefile.in @@ -36,7 +36,7 @@ EXPORT_RESOURCE_SAMPLES = \ $(srcdir)/dialogs.css \ $(srcdir)/navigator.css \ $(srcdir)/navigator.xul \ - $(srcdir)/saveToDisk.xul \ + $(srcdir)/unknownContent.xul \ $(srcdir)/viewSource.xul \ $(srcdir)/downloadProgress.xul \ $(srcdir)/downloadProgress.css \ diff --git a/xpfe/browser/src/makefile.win b/xpfe/browser/src/makefile.win index 4a55844f629c..8c957841a4e6 100644 --- a/xpfe/browser/src/makefile.win +++ b/xpfe/browser/src/makefile.win @@ -61,51 +61,54 @@ LLIBS= \ include <$(DEPTH)\config\rules.mak> +# Define this so nobody can screw it up. +DISTRES=$(DIST)\bin\res\samples + install:: $(DLL) $(MAKE_INSTALL) $(DLL) $(DIST)\bin - $(MAKE_INSTALL) appshell.html $(DIST)\bin\res\samples - $(MAKE_INSTALL) status.html $(DIST)\bin\res\samples - $(MAKE_INSTALL) status.xul $(DIST)\bin\res\samples - $(MAKE_INSTALL) toolbar.xml $(DIST)\bin\res\samples - $(MAKE_INSTALL) BrowserInitPage.html $(DIST)\bin\res\samples - $(MAKE_INSTALL) contentframe.html $(DIST)\bin\res\samples - $(MAKE_INSTALL) sidebar.html $(DIST)\bin\res\samples - $(MAKE_INSTALL) xul.css $(DIST)\bin\res\samples - $(MAKE_INSTALL) dialogs.css $(DIST)\bin\res\samples - $(MAKE_INSTALL) navigator.css $(DIST)\bin\res\samples - $(MAKE_INSTALL) navigator.xul $(DIST)\bin\res\samples - $(MAKE_INSTALL) viewSource.xul $(DIST)\bin\res\samples - $(MAKE_INSTALL) saveToDisk.xul $(DIST)\bin\res\samples - $(MAKE_INSTALL) NetSupportUserPassword.xul $(DIST)\bin\res\samples - $(MAKE_INSTALL) downloadProgress.xul $(DIST)\bin\res\samples - $(MAKE_INSTALL) downloadProgress.css $(DIST)\bin\res\samples - $(MAKE_INSTALL) navigator-mozillazine0.css $(DIST)\bin\res\samples - $(MAKE_INSTALL) navigator-test1.xul $(DIST)\bin\res\samples - $(MAKE_INSTALL) navigator-goofy.css $(DIST)\bin\res\samples - $(MAKE_INSTALL) navigator-shiny.css $(DIST)\bin\res\samples - $(MAKE_INSTALL) raindrops_light.gif $(DIST)\bin\res\samples - $(MAKE_INSTALL) skindemo.xul $(DIST)\bin\res\samples + $(MAKE_INSTALL) appshell.html $(DISTRES) + $(MAKE_INSTALL) status.html $(DISTRES) + $(MAKE_INSTALL) status.xul $(DISTRES) + $(MAKE_INSTALL) toolbar.xml $(DISTRES) + $(MAKE_INSTALL) BrowserInitPage.html $(DISTRES) + $(MAKE_INSTALL) contentframe.html $(DISTRES) + $(MAKE_INSTALL) sidebar.html $(DISTRES) + $(MAKE_INSTALL) xul.css $(DISTRES) + $(MAKE_INSTALL) dialogs.css $(DISTRES) + $(MAKE_INSTALL) navigator.css $(DISTRES) + $(MAKE_INSTALL) navigator.xul $(DISTRES) + $(MAKE_INSTALL) viewSource.xul $(DISTRES) + $(MAKE_INSTALL) unknownContent.xul $(DISTRES) + $(MAKE_INSTALL) NetSupportUserPassword.xul $(DISTRES) + $(MAKE_INSTALL) downloadProgress.xul $(DISTRES) + $(MAKE_INSTALL) downloadProgress.css $(DISTRES) + $(MAKE_INSTALL) navigator-mozillazine0.css $(DISTRES) + $(MAKE_INSTALL) navigator-test1.xul $(DISTRES) + $(MAKE_INSTALL) navigator-goofy.css $(DISTRES) + $(MAKE_INSTALL) navigator-shiny.css $(DISTRES) + $(MAKE_INSTALL) raindrops_light.gif $(DISTRES) + $(MAKE_INSTALL) skindemo.xul $(DISTRES) clobber:: rm -f $(DIST)\bin\$(DLLNAME).dll - rm -f $(DIST)\res\samples\appshell.html - rm -f $(DIST)\res\samples\status.html - rm -f $(DIST)\res\samples\status.xul - rm -f $(DIST)\res\samples\BrowserInitPage.html - rm -f $(DIST)\res\samples\contentframe.html - rm -f $(DIST)\res\samples\sidebar.html - rm -f $(DIST)\res\samples\xul.css - rm -f $(DIST)\res\samples\navigator.xul - rm -f $(DIST)\res\samples\viewSource.xul - rm -f $(DIST)\res\samples\saveToDisk.xul - rm -f $(DIST)\res\samples\downloadProgress.xul - rm -f $(DIST)\res\samples\downloadProgress.css - rm -f $(DIST)\res\samples\dialogs.css - rm -f $(DIST)\res\samples\navigator.css - rm -f $(DIST)\res\samples\navigator-mozillazine0.css - rm -f $(DIST)\res\samples\navigator-test1.xul - rm -f $(DIST)\res\samples\navigator-goofy.css - rm -f $(DIST)\res\samples\navigator-shiny.css - rm -f $(DIST)\res\samples\raindrops_light.gif - rm -f $(DIST)\bin\res\samples\NetSupportUserPassword.xul + rm -f $(DISTRES)\appshell.html + rm -f $(DISTRES)\status.html + rm -f $(DISTRES)\status.xul + rm -f $(DISTRES)\BrowserInitPage.html + rm -f $(DISTRES)\contentframe.html + rm -f $(DISTRES)\sidebar.html + rm -f $(DISTRES)\xul.css + rm -f $(DISTRES)\navigator.xul + rm -f $(DISTRES)\viewSource.xul + rm -f $(DISTRES)\unknownContent.xul + rm -f $(DISTRES)\downloadProgress.xul + rm -f $(DISTRES)\downloadProgress.css + rm -f $(DISTRES)\dialogs.css + rm -f $(DISTRES)\navigator.css + rm -f $(DISTRES)\navigator-mozillazine0.css + rm -f $(DISTRES)\navigator-test1.xul + rm -f $(DISTRES)\navigator-goofy.css + rm -f $(DISTRES)\navigator-shiny.css + rm -f $(DISTRES)\raindrops_light.gif + rm -f $(DISTRES)\NetSupportUserPassword.xul diff --git a/xpfe/browser/src/unknownContent.xul b/xpfe/browser/src/unknownContent.xul new file mode 100644 index 000000000000..7a81ea8429f7 --- /dev/null +++ b/xpfe/browser/src/unknownContent.xul @@ -0,0 +1,102 @@ + + + + + + + + + + + + + + + + var data; + var dialog; + + function initData() { + // Create data object and initialize. + data = new Object; + data.location = document.getElementById("data.location"); + data.contentType = document.getElementById("data.contentType"); + data.execute = document.getElementById("data.execute"); + } + + function initDialog() { + // Create dialog object and initialize. + dialog = new Object; + dialog.contentType = document.getElementById("dialog.contentType"); + dialog.more = document.getElementById("dialog.more"); + dialog.pick = document.getElementById("dialog.pick"); + dialog.save = document.getElementById("dialog.save"); + dialog.cancel = document.getElementById("dialog.cancel"); + } + + function loadDialog() { + // Set initial dialog field contents. + dialog.contentType.childNodes[0].nodeValue = " " + data.contentType.getAttribute( "value" ); + } + + function onLoad() { + // Init data. + initData(); + + // Init dialog. + initDialog(); + + // Fill dialog. + loadDialog(); + } + + function more() { + dump( "unknownContent::more not implemented\n" ); + } + + function pick() { + dump( "unknownContent::pick not implemented\n" ); + } + + function save() { + // Execute "save to disk" logic. + data.execute.setAttribute("command","save"); + } + + function cancel() { + // Close the window. + data.execute.setAttribute("command","close"); + } + + + + + + + You have started to download a file of type + + contentType goes here + + + + + + + More Info... + + + Pick App... + + + Save File... + + + Cancel + + + + +