diff --git a/calendar/resources/jar.mn b/calendar/resources/jar.mn index db833376770..2f9e3744e33 100644 --- a/calendar/resources/jar.mn +++ b/calendar/resources/jar.mn @@ -97,6 +97,7 @@ calendar.jar: content/calendar/pref/timezonePrefs.xul (content/pref/timezonePrefs.xul) content/calendar/pref/wsm.js (content/pref/wsm.js) * content/calendar/pref/nsPrefWindow.js (content/pref/nsPrefWindow.js) +* locale/en-US/calendar/aboutDialog.dtd (locale/en-US/aboutDialog.dtd) locale/en-US/calendar/calendar.dtd (locale/en-US/calendar.dtd) locale/en-US/calendar/calendar.properties (locale/en-US/calendar.properties) locale/en-US/calendar/categories.properties (locale/en-US/categories.properties) diff --git a/calendar/resources/locale/en-US/aboutDialog.dtd b/calendar/resources/locale/en-US/aboutDialog.dtd new file mode 100644 index 00000000000..0aa64771dd0 --- /dev/null +++ b/calendar/resources/locale/en-US/aboutDialog.dtd @@ -0,0 +1,76 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/calendar/sunbird/base/content/about-sunbird.png b/calendar/sunbird/base/content/about-sunbird.png index 73f05b173ef..e69de29bb2d 100644 Binary files a/calendar/sunbird/base/content/about-sunbird.png and b/calendar/sunbird/base/content/about-sunbird.png differ diff --git a/calendar/sunbird/base/content/aboutCredits.png b/calendar/sunbird/base/content/aboutCredits.png new file mode 100644 index 00000000000..e69de29bb2d diff --git a/calendar/sunbird/base/content/aboutDialog.css b/calendar/sunbird/base/content/aboutDialog.css index 373431f7d00..005e0faa4e7 100644 --- a/calendar/sunbird/base/content/aboutDialog.css +++ b/calendar/sunbird/base/content/aboutDialog.css @@ -1,18 +1,65 @@ +/* +# -*- Mode: Java; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 2 -*- +# ***** BEGIN LICENSE BLOCK ***** +# Version: MPL 1.1/GPL 2.0/LGPL 2.1 +# +# The contents of this file are subject to the Mozilla Public License Version +# 1.1 (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# http://www.mozilla.org/MPL/ +# +# Software distributed under the License is distributed on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License +# for the specific language governing rights and limitations under the +# License. +# +# The Original Code is Mozilla Firefox about dialog. +# +# The Initial Developer of the Original Code is +# Kevin Gerich and Stephen Horlander. +# Portions created by the Initial Developer are Copyright (C) 2004 +# the Initial Developer. All Rights Reserved. +# +# Contributor(s):Matthew Willis +# +# Alternatively, the contents of this file may be used under the terms of +# either the GNU General Public License Version 2 or later (the "GPL"), or +# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), +# in which case the provisions of the GPL or the LGPL are applicable instead +# of those above. If you wish to allow use of your version of this file only +# under the terms of either the GPL or the LGPL, and not to allow others to +# use your version of this file under the terms of the MPL, indicate your +# decision by deleting the provisions above and replace them with the notice +# and other provisions required by the GPL or the LGPL. If you do not delete +# the provisions above, a recipient may use your version of this file under +# the terms of any one of the MPL, the GPL or the LGPL. +# +# ***** END LICENSE BLOCK ***** +*/ + #aboutDialog { padding: 0px 0px 10px 0px; } #clientBox { + background-color: #FFFFFF; background-image: url("chrome://calendar/content/about-sunbird.png"); background-repeat: no-repeat; - background-color: #FFFFFF; padding-top: 203px; color: #000000; } - #brandName { - font-weight: bold; font-size: larger; - } + #version { + font-weight: bold; + color: #909090; + margin: 1em 0px 10px 17px; + } + + #copyright { + color: #000000; + margin: 0px 16px 3px 16px; + text-align: justify; + } #detailsBox { padding: 8px 10px 10px 8px; @@ -25,18 +72,15 @@ padding: 1px 0px 1px 3px; -moz-appearance: none; overflow: hidden; - #ifdef XP_MACOSX height: 3.8em; #else height: 2.4em; #endif - border: none; } - #groove { - margin-top: 0px; + #creditsBox { } #creditsIframe { @@ -44,14 +88,8 @@ -moz-user-select: none; } - #version { - font-weight: bold; - color: #909090; - margin: 1em 0px 10px 17px; - } - - #copyright { - margin: 0px 0px 3px 16px; + #groove { + margin-top: 0px; } button[dlgtype="extra2"] { diff --git a/calendar/sunbird/base/content/aboutDialog.js b/calendar/sunbird/base/content/aboutDialog.js new file mode 100644 index 00000000000..8487876bf37 --- /dev/null +++ b/calendar/sunbird/base/content/aboutDialog.js @@ -0,0 +1,81 @@ +/* -*- Mode: Java; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* ***** BEGIN LICENSE BLOCK ***** + * Version: MPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is Mozilla Firefox about dialog. + * + * The Initial Developer of the Original Code is + * Blake Ross (blaker@netscape.com). + * Portions created by the Initial Developer are Copyright (C) 2002 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): Matthew Willis + * + * Alternatively, the contents of this file may be used under the terms of + * either the GNU General Public License Version 2 or later (the "GPL"), or + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the MPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the LGPL or the GPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the MPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** */ + +function init(aEvent) +{ + if (aEvent.target != document) + return; + var userAgentField = document.getElementById("userAgent"); + userAgentField.value = navigator.userAgent; + + var button = document.documentElement.getButton("extra2"); + button.setAttribute("label", document.documentElement.getAttribute("creditslabel")); + gSelectedPage = 0; + button.addEventListener("command", switchPage, false); + + document.documentElement.getButton("accept").focus(); +} + +function uninit(aEvent) +{ + if (aEvent.target != document) + return; + var iframe = document.getElementById("creditsIframe"); + iframe.setAttribute("src", ""); +} + +function switchPage(aEvent) +{ + var button = aEvent.target; + if (button.localName != "button") + return; + + var iframe = document.getElementById("creditsIframe"); + if (gSelectedPage == 0) { + iframe.setAttribute("src", "chrome://calendar/content/credits.xhtml"); + button.setAttribute("label", document.documentElement.getAttribute("aboutlabel")); + gSelectedPage = 1; + } + else { + iframe.setAttribute("src", ""); + button.setAttribute("label", document.documentElement.getAttribute("creditslabel")); + gSelectedPage = 0; + } + var modes = document.getElementById("modes"); + modes.setAttribute("selectedIndex", gSelectedPage); +} + diff --git a/calendar/sunbird/base/content/aboutDialog.xul b/calendar/sunbird/base/content/aboutDialog.xul index 8dcb135a926..e43b9cc1548 100644 --- a/calendar/sunbird/base/content/aboutDialog.xul +++ b/calendar/sunbird/base/content/aboutDialog.xul @@ -1,5 +1,6 @@ - + @@ -43,39 +44,42 @@ %brandDTD; - -%calendarMenuOverlayDTD; + +%aboutDialogDTD; ]> - + - + + + + +
+ +
+ +
+

&brandFullName;™ +
&brandMotto;
+

+ +
+

&credit.manage;

+
    +
  • Mostafa Hosseini
  • +
+
+ +
+

&credit.core;

+
    +
  • gekacheka
  • +
  • Mostafa Hosseini
  • +
  • Dan Mosedale
  • +
  • Stuart Parmenter
  • +
  • Mike Shaver
  • +
  • Michiel van Leeuwen
  • +
  • Vladimir Vukicevic
  • +
  • Matthew Willis
  • +
+ +
+

&credit.theme;

+
    +
  • Mark Carson
  • +
  • Matthew Willis
  • +
+
+ +
+

&credit.web;

+
    +
  • Simon Paquet
  • +
+
+ + &credit.translation; +
+ + +
+

&credit.thanks;

+
    +
  • Axentra Corporation
  • +
  • Oracle Corporation
  • +
  • MozillaZine Community
  • +
  • MozillaZine
  • +
  • MozDev
  • +
+
+ +

&credit.powered; Gecko™

+ +

+ &brandFullName;™ &license.part0; copyright ©1998-2005 &license.part1; + &license.contrib;, + &license.part2; + Mozilla Public License + &license.and; + Netscape Public License&license.part3;

+ +

+ Portions of this software are Copyright ©1994 The Regents of the + University of California. All Rights Reserved.

+ +

+ This software may contain portions that are Copyright ©1998-2004 + SupportSoft, Inc. All Rights Reserved.

+ +

+ Mozilla Sunbird™ and the Sunbird logo are trademarks of the Mozilla + Foundation. You are not granted rights or licenses to the trademarks + of the Mozilla Foundation or any party, including without limitation the + Sunbird name or logo.

+ +

+ U.S. GOVERNMENT END USERS. The Software is a “commercial item,” + as that term is defined in 48 C.F.R. 2.101 (Oct. 1995), consisting of + “commercial computer software” and “commercial computer software + documentation,” as such terms are used in 48 C.F.R. 12.212 (Sept. 1995). + Consistent with 48 C.F.R. 12.212 and 48 C.F.R. 227.7202-1 through + 227.7202-4 (June 1995), all U.S. Government End Users acquire the + Software with only those rights set forth herein.

+ +
+ +
+ +
+ + +