зеркало из https://github.com/mozilla/pjs.git
Bug 303570 Remove obsolete gICalLib and gEventSource r=mvl npotb
This commit is contained in:
Родитель
4e66c16579
Коммит
55b7fe30db
|
@ -46,9 +46,6 @@
|
|||
* AUTHOR
|
||||
* Garth Smedley
|
||||
*
|
||||
* REQUIRED INCLUDES
|
||||
* <script type="application/x-javascript" src="chrome://calendar/content/calendarEvent.js"/>
|
||||
*
|
||||
* NOTES
|
||||
* Code for the calendar.
|
||||
*
|
||||
|
@ -78,12 +75,6 @@ var gDateMade = "2002052213-cal"
|
|||
// turn on debuging
|
||||
var gDebugCalendar = false;
|
||||
|
||||
// ICal Library
|
||||
var gICalLib = null;
|
||||
|
||||
// calendar event data source see penCalendarEvent.js
|
||||
var gEventSource = null;
|
||||
|
||||
// single global instance of CalendarWindow
|
||||
var gCalendarWindow;
|
||||
|
||||
|
@ -135,9 +126,6 @@ var calendarsToPublish = new Array();
|
|||
|
||||
function calendarInit()
|
||||
{
|
||||
// XXX remove this eventually
|
||||
gICalLib = new Object();
|
||||
|
||||
// set up the CalendarWindow instance
|
||||
|
||||
gCalendarWindow = new CalendarWindow();
|
||||
|
@ -205,10 +193,6 @@ function calendarFinish()
|
|||
finishCalendarToDoUnifinder();
|
||||
|
||||
finishCalendarManager();
|
||||
|
||||
gCalendarWindow.close();
|
||||
|
||||
gICalLib.removeObserver( gEventSource.alarmObserver );
|
||||
}
|
||||
|
||||
function launchPreferences()
|
||||
|
@ -652,23 +636,6 @@ function compareItems( aObject1, aObject2 ){
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* useful to get the new version of an item
|
||||
* in order to check if it changed
|
||||
*/
|
||||
function fetchItem( aObject ){
|
||||
try{
|
||||
if ( isToDo(aObject) ) {
|
||||
return gICalLib.fetchTodo( aObject.id );
|
||||
} else {
|
||||
return gICalLib.fetchEvent( aObject.id );
|
||||
}
|
||||
}catch(er){
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defaults null start/end date based on selected date in current view.
|
||||
* Defaults calendarFile to the selected calendar file.
|
||||
|
@ -981,12 +948,6 @@ function closeCalendar()
|
|||
}
|
||||
|
||||
|
||||
function reloadApplication()
|
||||
{
|
||||
gEventSource.calendarManager.refreshAllRemoteCalendars();
|
||||
}
|
||||
|
||||
|
||||
/** PUBLIC
|
||||
*
|
||||
* Print events using a stylesheet.
|
||||
|
@ -1033,7 +994,6 @@ function print()
|
|||
{
|
||||
var args = new Object();
|
||||
|
||||
args.eventSource = gEventSource;
|
||||
args.selectedEvents = gCalendarWindow.EventSelection.selectedEvents ;
|
||||
args.selectedDate=gNewDateVariable = gCalendarWindow.getSelectedDate();
|
||||
|
||||
|
|
|
@ -227,7 +227,6 @@
|
|||
|
||||
<script type="application/x-javascript" src="chrome://calendar/content/calendarUtils.js"/>
|
||||
<script type="application/x-javascript" src="chrome://calendar/content/calendar.js"/>
|
||||
<script type="application/x-javascript" src="chrome://calendar/content/calendarEvent.js"/>
|
||||
<script type="application/x-javascript" src="chrome://calendar/content/calendarSelection.js"/>
|
||||
<script type="application/x-javascript" src="chrome://calendar/content/calendarWindow.js"/>
|
||||
<script type="application/x-javascript" src="chrome://calendar/content/mouseoverPreviews.js"/>
|
||||
|
|
|
@ -193,18 +193,6 @@ function CalendarWindow( )
|
|||
ccalendar.addObserver(calendarObserver);
|
||||
}
|
||||
|
||||
/** PUBLIC
|
||||
*
|
||||
* You must call this when you have finished with the CalendarWindow.
|
||||
* Removes the observer from the data source.
|
||||
*/
|
||||
|
||||
CalendarWindow.prototype.close = function calWin_close( )
|
||||
{
|
||||
//gICalLib.removeObserver( this.calendarEventDataSourceObserver );
|
||||
}
|
||||
|
||||
|
||||
/** PUBLIC
|
||||
*
|
||||
* Switch to the day view if it isn't already the current view
|
||||
|
|
|
@ -97,9 +97,6 @@ calendarPrefObserver.prototype =
|
|||
|
||||
case "calendar.alarms.showmissed":
|
||||
if( subject.getBoolPref( prefName ) ) {
|
||||
//this triggers the alarmmanager if show missed is turned on
|
||||
gICalLib.batchMode = true;
|
||||
gICalLib.batchMode = false;
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
|
@ -1,70 +0,0 @@
|
|||
<?xml version="1.0"?>
|
||||
<!-- ***** 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 OEone Calendar Code, released October 31st, 2001.
|
||||
-
|
||||
- The Initial Developer of the Original Code is
|
||||
- OEone Corporation.
|
||||
- Portions created by the Initial Developer are Copyright (C) 2001
|
||||
- the Initial Developer. All Rights Reserved.
|
||||
-
|
||||
- Contributor(s): Garth Smedley <garths@oeone.com>
|
||||
-
|
||||
- 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 ***** -->
|
||||
|
||||
<?xml-stylesheet href="chrome://navigator/skin/" type="text/css"?>
|
||||
|
||||
|
||||
<!-- Begin main dialog window -->
|
||||
<window
|
||||
id="test-send-command-window"
|
||||
title="Test Send Command"
|
||||
width="490"
|
||||
height="532"
|
||||
orient="vertical"
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||
|
||||
<!-- JS Includes -->
|
||||
<script type="application/x-javascript" src="chrome://penglobal/content/test/jsunit/app/jsUnitCore.js"></script>
|
||||
<script type="application/x-javascript" src="chrome://penglobal/content/test/jsunit/app/jsUnitUtility.js"></script>
|
||||
<script type="application/x-javascript" src="chrome://penglobal/content/test/jsunit/app/jsUnitAsync.js"></script>
|
||||
<script type="application/x-javascript" src="chrome://global/content/strres.js"/>
|
||||
<script type="application/x-javascript" src="chrome://jslib/content/jslib.js"/>
|
||||
<script type="application/x-javascript" src="chrome://jslib/content/io/fileUtils.js"/>
|
||||
<script type="application/x-javascript" src="chrome://penglobal/content/jslib/libraries/io/dir.js"/>
|
||||
<script type="application/x-javascript" src="chrome://penglobal/content/jslib/libraries/io/io.js"/>
|
||||
<script type="application/x-javascript" src="chrome://penglobal/content/jslib/libraries/io/file.js"/>
|
||||
<script type="application/x-javascript" src="chrome://penglobal/content/penFileUtils.js"></script>
|
||||
<script type="application/x-javascript" src="chrome://calendar/content/dateUtils.js"/>
|
||||
<script type="application/x-javascript" src="chrome://penglobal/content/ParseUtils.js"></script>
|
||||
<script type="application/x-javascript" src="chrome://calendar/content/calendarEvent.js"></script>
|
||||
<script type="application/x-javascript" src="chrome://calendar/content/test/testCalendarEvent.js"></script>
|
||||
|
||||
|
||||
<description> Calendar Event Testing </description>
|
||||
|
||||
|
||||
</window>
|
|
@ -216,7 +216,6 @@ function prepareCalendarUnifinder( )
|
|||
|
||||
function finishCalendarUnifinder( )
|
||||
{
|
||||
//gICalLib.removeObserver( unifinderEventDataSourceObserver );
|
||||
var ccalendar = getDisplayComposite();
|
||||
ccalendar.removeObserver(unifinderObserver);
|
||||
}
|
||||
|
@ -356,7 +355,7 @@ function clearSearchTimer( )
|
|||
}
|
||||
|
||||
/*
|
||||
** This function returns the event table. The event table also gets set in the gEventSource
|
||||
** This function returns the event table.
|
||||
*/
|
||||
|
||||
function changeEventFilter( event )
|
||||
|
|
|
@ -11,11 +11,9 @@ calendar.jar:
|
|||
content/calendar/calendar-alarm-widget.xml (/calendar/base/content/calendar-alarm-widget.xml)
|
||||
content/calendar/calendarUtils.js (content/calendarUtils.js)
|
||||
* content/calendar/calendar.xul (content/calendar.xul)
|
||||
content/calendar/calendarEvent.js (content/calendarEvent.js)
|
||||
content/calendar/calExtOverlay.js (content/calExtOverlay.js)
|
||||
content/calendar/calExtOverlay.xul (content/calExtOverlay.xul)
|
||||
content/calendar/calendarMail.js (content/calendarMail.js)
|
||||
content/calendar/calendarManager.js (content/calendarManager.js)
|
||||
content/calendar/calendarManagement.js (content/calendarManagement.js)
|
||||
content/calendar/calendarOverlay.js (content/calendarOverlay.js)
|
||||
content/calendar/calendarOverlay.xul (content/calendarOverlay.xul)
|
||||
|
|
|
@ -76,7 +76,6 @@
|
|||
|
||||
<script type="application/x-javascript" src="chrome://calendar/content/calendar.js"/>
|
||||
<script type="application/x-javascript" src="chrome://calendar/content/calendarUtils.js"/>
|
||||
<script type="application/x-javascript" src="chrome://calendar/content/calendarEvent.js"/>
|
||||
<script type="application/x-javascript" src="chrome://calendar/content/calendarSelection.js"/>
|
||||
<script type="application/x-javascript" src="chrome://calendar/content/calendarWindow.js"/>
|
||||
<script type="application/x-javascript" src="chrome://calendar/content/mouseoverPreviews.js"/>
|
||||
|
|
Загрузка…
Ссылка в новой задаче