From cb5e238dc71b1bb53aadc2093cbe4c600de8cdc3 Mon Sep 17 00:00:00 2001 From: "mostafah%oeone.com" Date: Wed, 16 Jul 2003 20:32:59 +0000 Subject: [PATCH] Adding in files needed for Mozilla Sunbird ( Calendar stand alone app ) git-svn-id: svn://10.0.0.236/trunk@144905 18797224-902f-48f8-a5cc-f745e15eee43 --- .../resources/content/aboutDialog.xul | 83 +++++++++++++ .../calendar/resources/content/calendar.js | 11 ++ .../calendar/resources/content/pref/pref.xul | 110 ++++++++++++++++++ .../calendar/resources/content/sunbird.png | Bin 0 -> 23225 bytes .../resources/content/sunbird_small.png | Bin 0 -> 2330 bytes mozilla/calendar/resources/jar.mn | 4 + 6 files changed, 208 insertions(+) create mode 100644 mozilla/calendar/resources/content/aboutDialog.xul create mode 100644 mozilla/calendar/resources/content/pref/pref.xul create mode 100644 mozilla/calendar/resources/content/sunbird.png create mode 100644 mozilla/calendar/resources/content/sunbird_small.png diff --git a/mozilla/calendar/resources/content/aboutDialog.xul b/mozilla/calendar/resources/content/aboutDialog.xul new file mode 100644 index 00000000000..55a79d78776 --- /dev/null +++ b/mozilla/calendar/resources/content/aboutDialog.xul @@ -0,0 +1,83 @@ + + + + + + +%brandDTD; + +%aboutDialogDTD; +]> + + + + + + + + + + + + + + /* XXXBlake This is a workaround. I find that if I try to use href and I open + About as a modal dialog, a new browser window opens when I click the link + but the page doesn't load in it. */ + ©right; + + + + diff --git a/mozilla/calendar/resources/content/calendar.js b/mozilla/calendar/resources/content/calendar.js index 363cb881e68..783a6b6c072 100644 --- a/mozilla/calendar/resources/content/calendar.js +++ b/mozilla/calendar/resources/content/calendar.js @@ -1452,3 +1452,14 @@ function changeDisplayToDoInViewCheckbox( menuindex ) { } gCalendarWindow.currentView.refreshEvents( ); } + +function openAboutDialog() +{ + window.openDialog("chrome://calendar/content/aboutDialog.xul", "About", "modal,centerscreen,chrome,resizable=no"); +} + +function openPreferences() +{ + openDialog("chrome://calendar/content/pref/pref.xul","PrefWindow", + "chrome,titlebar,resizable,modal"); +} diff --git a/mozilla/calendar/resources/content/pref/pref.xul b/mozilla/calendar/resources/content/pref/pref.xul new file mode 100644 index 00000000000..5500747f8f7 --- /dev/null +++ b/mozilla/calendar/resources/content/pref/pref.xul @@ -0,0 +1,110 @@ + + + + + + %prefDTD; + + %calendarPrefsOverlayDTD; +]> + + + + + + +