зеркало из https://github.com/mozilla/pjs.git
Fixing all the license header files.
This commit is contained in:
Родитель
53e5741b73
Коммит
6bcd7f89a9
|
@ -1,218 +0,0 @@
|
|||
# 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 OEone Corporation are Copyright (C) 2001
|
||||
# OEone Corporation. All Rights Reserved.
|
||||
#
|
||||
# Contributor(s): Steve Crouse (stevec@oeone.com), Garth Smedley (garths@oeone.com), Jody McIntyre (jodym@oeone.com), Mostafa Hosseini (mostafah@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 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.
|
||||
#
|
||||
#
|
||||
|
||||
#
|
||||
# Generic XPCOM component makefile
|
||||
#
|
||||
# Authors: Steve Crouse, Garth Smedley, Jody McIntyre
|
||||
#--------------------------------------------------------
|
||||
# Usage:
|
||||
#
|
||||
# make clean - remove output files, does not install
|
||||
# make - build the component and the test program, if not up to date
|
||||
# make reset - delete registration files from mozilla. good idea to run this after install
|
||||
# make install - install xpcom component into mozilla components directory
|
||||
# make uninstall - remove xpcom component from mozilla components directory
|
||||
# make dist - tars the distribution files up.
|
||||
# make test - run the test program
|
||||
#
|
||||
# By setting the following environment variable before invoking make, you can control the directories
|
||||
# that install and uninstall use:
|
||||
#
|
||||
# DESTDIR - install/uninstall directory, ( Do not add a trailing slash )
|
||||
#
|
||||
# This Makefile can be customized for use by any XPCOM component
|
||||
# by modifying some of the variables below.
|
||||
#
|
||||
# MOZZY - Provide the path to your Mozilla installation
|
||||
# MOZZYDEV - Provide the path to your Mozilla development installation
|
||||
# LIBRARY_NAME - Name of the final shared object to be built
|
||||
# IDLFILE - Components IDL file
|
||||
# IDL_OUTPUT_BASENAME - Base name of the .xpt and .h files to be generated
|
||||
# SOURCE_FILES - Source files needed to build component
|
||||
# HEADER_FILES - Header files needed to build component, used for dependencies and distribution
|
||||
# EXTRA_DISTFILES - extra files to be added to the tarball
|
||||
# TEST_PROGRAM - Name of standalone test program
|
||||
# TEST_SOURCE_FILES - Source files needed to build test program
|
||||
#
|
||||
# You can also specify additional include paths and libraries to be linked
|
||||
# in using:
|
||||
#
|
||||
# INCLUDES - Specify any additional include paths here
|
||||
# EXTRA_LIBS - Specify any additional libraries to be linked
|
||||
#
|
||||
|
||||
CC = g++
|
||||
|
||||
# Path to src directory
|
||||
#
|
||||
|
||||
SRC = .
|
||||
|
||||
# set PACKAGE and VERSION for distrbution tarball
|
||||
PACKAGE=xpcomical
|
||||
VERSION=0.1
|
||||
|
||||
# Distribution files
|
||||
# Add any extra files to go in the tarball, by default .so, .idl, .xpt and Makefile are included.
|
||||
|
||||
EXTRA_DISTFILES= caltst.xul caltst.js
|
||||
|
||||
# Path to your Mozilla installation
|
||||
#
|
||||
MOZZY = /usr/local/mozilla0.9.5
|
||||
MOZZYDEV = /usr/include/mozilla0.9.5
|
||||
|
||||
# Define the name for the final shared object file
|
||||
#
|
||||
LIBRARY_NAME = libxpical.so
|
||||
|
||||
# Define the name of the executable test program
|
||||
#
|
||||
TEST_PROGRAM = TestIcal
|
||||
TEST_SOURCE_FILES = $(SRC)/TestIcal.cpp
|
||||
|
||||
# Provide the name for the components IDL file
|
||||
#
|
||||
IDLFILE = $(SRC)/oeIICal.idl
|
||||
|
||||
# Define the base name for the generated .h and .xpt files
|
||||
#
|
||||
IDL_OUTPUT_BASENAME = oeIICal
|
||||
|
||||
# List the source files needed for building the component
|
||||
#
|
||||
|
||||
SOURCE_FILES = $(SRC)/oeICalFactory.cpp $(SRC)/oeICalImpl.cpp $(SRC)/oeICalEventImpl.cpp
|
||||
HEADER_FILES = $(SRC)/oeICalImpl.h $(SRC)/oeICalEventImpl.h
|
||||
|
||||
# List any custom include paths here
|
||||
#
|
||||
#INCLUDES = -I ./ -I../libical/src/libicalss -I../libical/src/libical -DICAL_DEBUG
|
||||
INCLUDES = -I ./ -I/usr/local/include -DICAL_DEBUG
|
||||
|
||||
# List any custom libraries to be linked here
|
||||
#
|
||||
EXTRA_LIBS = -lical -licalss
|
||||
|
||||
# Mozilla directories
|
||||
#
|
||||
MOZINCLUDES = -I $(MOZZYDEV) -I $(MOZZYDEV)/nspr -I $(MOZZYDEV)/xpcom
|
||||
MOZIDLS = $(MOZZYDEV)/idl
|
||||
MOZLIBS = $(MOZZY)
|
||||
MOZCOMPONENTS = $(MOZZY)/components
|
||||
MOZINSTALL = $(DESTDIR)/$(MOZCOMPONENTS)
|
||||
|
||||
XPIDL = /usr/bin/xpidl
|
||||
|
||||
# Standard Netscape Portable Runtime and XPCOM libraries to be linked in
|
||||
#
|
||||
NSPR_LIBS =
|
||||
XPCOM_LIBS = -L $(MOZLIBS) -lxpcom
|
||||
|
||||
LIBS = $(NSPR_LIBS) $(XPCOM_LIBS) $(EXTRA_LIBS)
|
||||
TESTLIBS = $(NSPR_LIBS) $(XPCOM_LIBS)
|
||||
|
||||
|
||||
|
||||
# Make targets
|
||||
#
|
||||
|
||||
all: $(LIBRARY_NAME) $(IDLFILE) $(TEST_PROGRAM)
|
||||
|
||||
clean:
|
||||
rm -f *.obj *.pdb *.res *.map *.lib *.exp *.o *.so *.dll *.xpt $(IDL_OUTPUT_BASENAME).h $(TEST_PROGRAM)
|
||||
|
||||
reset:
|
||||
rm -f $(MOZZY)/component.reg
|
||||
rm -f $(MOZZY)/chrome/*.rdf
|
||||
|
||||
install:
|
||||
install -d $(MOZINSTALL)/
|
||||
install $(LIBRARY_NAME) $(MOZINSTALL)/
|
||||
install $(IDL_OUTPUT_BASENAME).xpt $(MOZINSTALL)/
|
||||
|
||||
uninstall:
|
||||
rm $(MOZINSTALL)/$(LIBRARY_NAME)
|
||||
rm $(MOZINSTALL)/$(IDL_OUTPUT_BASENAME).xpt
|
||||
|
||||
test:
|
||||
export NSPR_LOG_MODULES=nsComponentManager:5;\
|
||||
export NSPR_LOG_FILE=xpcom.log;\
|
||||
export MOZILLA_FIVE_HOME=$(MOZZY);\
|
||||
export LD_LIBRARY_PATH=$(MOZZY);\
|
||||
./$(TEST_PROGRAM)
|
||||
|
||||
|
||||
# Builds xpcom shared object
|
||||
|
||||
$(LIBRARY_NAME): $(SOURCE_FILES) $(HEADER_FILES) $(IDL_OUTPUT_BASENAME)
|
||||
$(CC) -shared -o $(LIBRARY_NAME) $(SOURCE_FILES) $(INCLUDES) $(MOZINCLUDES) $(LIBS)
|
||||
|
||||
|
||||
# Generates .xpt and .h files from the IDL
|
||||
|
||||
$(IDLFILE): $(IDL_OUTPUT_BASENAME)
|
||||
|
||||
$(IDL_OUTPUT_BASENAME):
|
||||
$(XPIDL) -m typelib -w -I $(MOZIDLS) -o $(IDL_OUTPUT_BASENAME) $(IDLFILE)
|
||||
$(XPIDL) -m header -w -I $(MOZIDLS) -o $(IDL_OUTPUT_BASENAME) $(IDLFILE)
|
||||
|
||||
|
||||
# Build test program
|
||||
|
||||
$(TEST_PROGRAM) : $(TEST_SOURCE_FILES)
|
||||
$(CC) -g -o $(TEST_PROGRAM) $(TEST_SOURCE_FILES) $(MOZINCLUDES) $(INCLUDES) $(TESTLIBS) -lplds4 -lplc4 -lnspr4
|
||||
|
||||
|
||||
|
||||
|
||||
# distribution build
|
||||
|
||||
DISTFILES= $(SOURCE_FILES) $(HEADER_FILES) $(IDLFILE) $(TEST_SOURCE_FILES) Makefile $(EXTRA_DISTFILES)
|
||||
|
||||
distdir = $(PACKAGE)-$(VERSION)
|
||||
|
||||
dist: distdir
|
||||
chmod -R a+r $(distdir)
|
||||
tar czf $(distdir).tar.gz $(distdir)
|
||||
rm -rf $(distdir)
|
||||
|
||||
distdir:
|
||||
rm -rf $(distdir)
|
||||
mkdir $(distdir)
|
||||
for file in $(DISTFILES); do \
|
||||
cp -p $$file $(distdir) ;\
|
||||
done
|
|
@ -1,4 +1,4 @@
|
|||
/*
|
||||
/* ***** 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
|
||||
|
@ -11,14 +11,14 @@
|
|||
* for the specific language governing rights and limitations under the
|
||||
* License.
|
||||
*
|
||||
* The Original Code is OEone Corporation.
|
||||
* The Original Code is OEone Calendar Code, released October 31st, 2001.
|
||||
*
|
||||
* The Initial Developer of the Original Code is
|
||||
* OEone Corporation.
|
||||
* Portions created by OEone Corporation are Copyright (C) 2001
|
||||
* OEone Corporation. All Rights Reserved.
|
||||
* Portions created by the Initial Developer are Copyright (C) 2001
|
||||
* the Initial Developer. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s): Mostafa Hosseini (mostafah@oeone.com)
|
||||
* Contributor(s): Mostafa Hosseini <mostafah@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
|
||||
|
@ -32,8 +32,7 @@
|
|||
* 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 ***** */
|
||||
|
||||
#include <unistd.h>
|
||||
#include <oeIICal.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/*
|
||||
/* ***** 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
|
||||
|
@ -11,14 +11,14 @@
|
|||
* for the specific language governing rights and limitations under the
|
||||
* License.
|
||||
*
|
||||
* The Original Code is OEone Corporation.
|
||||
* The Original Code is OEone Calendar Code, released October 31st, 2001.
|
||||
*
|
||||
* The Initial Developer of the Original Code is
|
||||
* OEone Corporation.
|
||||
* Portions created by OEone Corporation are Copyright (C) 2001
|
||||
* OEone Corporation. All Rights Reserved.
|
||||
* Portions created by the Initial Developer are Copyright (C) 2001
|
||||
* the Initial Developer. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s): Mostafa Hosseini (mostafah@oeone.com)
|
||||
* Contributor(s): Mostafa Hosseini <mostafah@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
|
||||
|
@ -32,8 +32,7 @@
|
|||
* 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 ***** */
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/*
|
||||
/* ***** 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
|
||||
|
@ -11,14 +11,14 @@
|
|||
* for the specific language governing rights and limitations under the
|
||||
* License.
|
||||
*
|
||||
* The Original Code is OEone Corporation.
|
||||
* The Original Code is OEone Calendar Code, released October 31st, 2001.
|
||||
*
|
||||
* The Initial Developer of the Original Code is
|
||||
* OEone Corporation.
|
||||
* Portions created by OEone Corporation are Copyright (C) 2001
|
||||
* OEone Corporation. All Rights Reserved.
|
||||
* Portions created by the Initial Developer are Copyright (C) 2001
|
||||
* the Initial Developer. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s): Mostafa Hosseini (mostafah@oeone.com)
|
||||
* Contributor(s): Mostafa Hosseini <mostafah@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
|
||||
|
@ -32,8 +32,7 @@
|
|||
* 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 ***** */
|
||||
|
||||
#include "oeIICal.h"
|
||||
extern "C" {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/*
|
||||
/* ***** 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
|
||||
|
@ -11,14 +11,14 @@
|
|||
* for the specific language governing rights and limitations under the
|
||||
* License.
|
||||
*
|
||||
* The Original Code is OEone Corporation.
|
||||
* The Original Code is OEone Calendar Code, released October 31st, 2001.
|
||||
*
|
||||
* The Initial Developer of the Original Code is
|
||||
* OEone Corporation.
|
||||
* Portions created by OEone Corporation are Copyright (C) 2001
|
||||
* OEone Corporation. All Rights Reserved.
|
||||
* Portions created by the Initial Developer are Copyright (C) 2001
|
||||
* the Initial Developer. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s): Mostafa Hosseini (mostafah@oeone.com)
|
||||
* Contributor(s): Mostafa Hosseini <mostafah@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
|
||||
|
@ -32,8 +32,7 @@
|
|||
* 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 ***** */
|
||||
|
||||
#include "oeICalImpl.h"
|
||||
#include "oeICalEventImpl.h"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/*
|
||||
/* ***** 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
|
||||
|
@ -11,14 +11,14 @@
|
|||
* for the specific language governing rights and limitations under the
|
||||
* License.
|
||||
*
|
||||
* The Original Code is OEone Corporation.
|
||||
* The Original Code is OEone Calendar Code, released October 31st, 2001.
|
||||
*
|
||||
* The Initial Developer of the Original Code is
|
||||
* OEone Corporation.
|
||||
* Portions created by OEone Corporation are Copyright (C) 2001
|
||||
* OEone Corporation. All Rights Reserved.
|
||||
* Portions created by the Initial Developer are Copyright (C) 2001
|
||||
* the Initial Developer. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s): Mostafa Hosseini (mostafah@oeone.com)
|
||||
* Contributor(s): Mostafa Hosseini <mostafah@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
|
||||
|
@ -32,8 +32,7 @@
|
|||
* 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 ***** */
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/*
|
||||
/* ***** 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
|
||||
|
@ -11,14 +11,14 @@
|
|||
* for the specific language governing rights and limitations under the
|
||||
* License.
|
||||
*
|
||||
* The Original Code is OEone Corporation.
|
||||
* The Original Code is OEone Calendar Code, released October 31st, 2001.
|
||||
*
|
||||
* The Initial Developer of the Original Code is
|
||||
* OEone Corporation.
|
||||
* Portions created by OEone Corporation are Copyright (C) 2001
|
||||
* OEone Corporation. All Rights Reserved.
|
||||
* Portions created by the Initial Developer are Copyright (C) 2001
|
||||
* the Initial Developer. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s): Mostafa Hosseini (mostafah@oeone.com)
|
||||
* Contributor(s): Mostafa Hosseini <mostafah@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
|
||||
|
@ -32,8 +32,7 @@
|
|||
* 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 ***** */
|
||||
|
||||
#include "oeIICal.h"
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/*
|
||||
/* ***** 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
|
||||
|
@ -11,14 +11,14 @@
|
|||
* for the specific language governing rights and limitations under the
|
||||
* License.
|
||||
*
|
||||
* The Original Code is OEone Corporation.
|
||||
* The Original Code is OEone Calendar Code, released October 31st, 2001.
|
||||
*
|
||||
* The Initial Developer of the Original Code is
|
||||
* OEone Corporation.
|
||||
* Portions created by OEone Corporation are Copyright (C) 2001
|
||||
* OEone Corporation. All Rights Reserved.
|
||||
* Portions created by the Initial Developer are Copyright (C) 2001
|
||||
* the Initial Developer. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s): Mostafa Hosseini (mostafah@oeone.com)
|
||||
* Contributor(s): Mostafa Hosseini <mostafah@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
|
||||
|
@ -32,8 +32,7 @@
|
|||
* 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 ***** */
|
||||
|
||||
#include "nsISupports.idl"
|
||||
|
||||
|
|
|
@ -1,116 +0,0 @@
|
|||
/*
|
||||
* 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 Corporation.
|
||||
*
|
||||
* The Initial Developer of the Original Code is
|
||||
* OEone Corporation.
|
||||
* Portions created by OEone Corporation are Copyright (C) 2001
|
||||
* OEone Corporation. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s): Garth Smedley (garths@oeone.com) , Mike Potter (mikep@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 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.
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
var gCalendarEvent = null;
|
||||
|
||||
function onLoad()
|
||||
{
|
||||
gCalendarEvent = window.arguments[0];
|
||||
createAlarmText( gCalendarEvent );
|
||||
setupOkCancelButtons( onOkButton, 0 );
|
||||
window.resizeTo( 455, 150 );
|
||||
}
|
||||
|
||||
function createAlarmText( )
|
||||
{
|
||||
var Text = opener.penapplication.username+" has an event titled "+gCalendarEvent.title;
|
||||
var TextBox = document.getElementById( "event-message-box" );
|
||||
var HtmlInBox = document.createElement( "html" );
|
||||
var TextInBox = document.createTextNode( Text );
|
||||
HtmlInBox.appendChild( TextInBox );
|
||||
TextBox.appendChild( HtmlInBox );
|
||||
|
||||
var Text = " at "+gCalendarEvent.start;
|
||||
var TextBox = document.getElementById( "event-message-time-box" );
|
||||
var HtmlInBox = document.createElement( "html" );
|
||||
var TextInBox = document.createTextNode( Text );
|
||||
HtmlInBox.appendChild( TextInBox );
|
||||
TextBox.appendChild( HtmlInBox );
|
||||
}
|
||||
|
||||
function onOkButton( )
|
||||
{
|
||||
var RemindCheckbox = document.getElementById( "remind-again-checkbox" );
|
||||
|
||||
if ( RemindCheckbox.getAttribute( "checked" ) == "true" )
|
||||
{
|
||||
snoozeAlarm();
|
||||
}
|
||||
else
|
||||
{
|
||||
acknowledgeAlarm();
|
||||
}
|
||||
return( true );
|
||||
}
|
||||
|
||||
function acknowledgeAlarm( )
|
||||
{
|
||||
gCalendarEvent.alarmWentOff = true;
|
||||
|
||||
gCalendarEvent.snoozeTime = false;
|
||||
|
||||
//opener.gEventSource.modifyEvent( gCalendarEvent );
|
||||
|
||||
pendialog.getRoot().Root.gCalendarEventDataSource.respondAcknowledgeAlarm( gCalendarEvent );
|
||||
|
||||
return( true );
|
||||
}
|
||||
|
||||
function snoozeAlarm( )
|
||||
{
|
||||
gCalendarEvent.alarmWentOff = true;
|
||||
|
||||
var nowMS = new Date().getTime();
|
||||
|
||||
var minutesToSnooze = document.getElementById( "dialog-alarm-minutes" ).getAttribute( "value" );
|
||||
|
||||
var snoozeTime = nowMS + ( 1000 * minutesToSnooze * 60 );
|
||||
|
||||
snoozeTime = parseInt( snoozeTime );
|
||||
|
||||
//alert( snoozeTime );
|
||||
|
||||
gCalendarEvent.snoozeTime = snoozeTime;
|
||||
|
||||
gCalendarEvent.setUpAlarmTimer( this );
|
||||
|
||||
//opener.gEventSource.modifyEvent( gCalendarEvent );
|
||||
|
||||
pendialog.getRoot().Root.gCalendarEventDataSource.respondAcknowledgeAlarm( gCalendarEvent );
|
||||
|
||||
return( true );
|
||||
}
|
|
@ -1,123 +0,0 @@
|
|||
<?xml version="1.0"?>
|
||||
<!--
|
||||
- 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 OEone Corporation are Copyright (C) 2001
|
||||
- OEone Corporation. All Rights Reserved.
|
||||
-
|
||||
- Contributor(s): Garth Smedley (garths@oeone.com), Mike Potter (mikep@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.
|
||||
-
|
||||
- -->
|
||||
|
||||
<?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?>
|
||||
<?xul-overlay href="chrome://penglobal/content/dialogOverlay.xul"?>
|
||||
<?xul-overlay href="chrome://penglobal/content/datepicker-overlay.xul"?>
|
||||
<?xul-overlay href="chrome://penglobal/content/timepicker-overlay.xul"?>
|
||||
|
||||
<!-- CSS File with all styles specific to the dialog -->
|
||||
<?xml-stylesheet href="chrome://calendar/skin/ca-event-dialog.css" ?>
|
||||
|
||||
|
||||
<!-- DTD File with all strings specific to the calendar -->
|
||||
<!DOCTYPE window
|
||||
[
|
||||
<!ENTITY % dtd1 SYSTEM "chrome://penglobal/locale/global.dtd" > %dtd1;
|
||||
<!ENTITY % dtd2 SYSTEM "chrome://calendar/locale/calendar.dtd" > %dtd2;
|
||||
]>
|
||||
|
||||
|
||||
<window
|
||||
id="calendar-new-eventwindow"
|
||||
title="Internet Appliance Dialog - Calendar Alarm"
|
||||
orient="vertical"
|
||||
onload="onLoad()"
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||
|
||||
<!-- Javascript includes -->
|
||||
|
||||
<script type="application/x-javascript" src="chrome://global/content/strres.js"/>
|
||||
<script type="application/x-javascript" src="chrome://penglobal/content/dateUtils.js"/>
|
||||
<script type="application/x-javascript" src="chrome://calendar/content/ca-event-alert-dialog.js"/>
|
||||
|
||||
<!-- Picker popups -->
|
||||
|
||||
<popupset>
|
||||
<popup id="oe-date-picker-popup" popupalign="topleft" oncommand="onDatePick( this )" label="">
|
||||
</popup>
|
||||
<popup id="oe-time-picker-popup" popupalign="topleft" oncommand="onTimePick( this )" label="">
|
||||
</popup>
|
||||
</popupset>
|
||||
|
||||
<!-- The dialog -->
|
||||
|
||||
<!-- dialog-box: from dialogOverlay.xul -->
|
||||
|
||||
<vbox id="dialog-box">
|
||||
|
||||
<!-- standard-dialog-title: from dialogOverlay.xul -->
|
||||
|
||||
<box id="standard-dialog-title">
|
||||
<spring flex="1"/>
|
||||
<image id="standar-dialog-title-icon"/>
|
||||
<box id="standard-dialog-title-text-box">
|
||||
<label id="standard-dialog-title-text" value="&event.title.alarm;"/>
|
||||
</box>
|
||||
<spring flex="1"/>
|
||||
</box>
|
||||
|
||||
<!-- standard-dialog-tips: from dialogOverlay.xul Proper tip is shown in on load code-->
|
||||
|
||||
<box id="standard-dialog-tips">
|
||||
<html id="tip-new">&event.tip.alert;</html>
|
||||
</box>
|
||||
|
||||
<!-- standard-dialog-content: from dialogOverlay.xul -->
|
||||
|
||||
<vbox id="standard-dialog-content">
|
||||
<box flex="1" id="event-message-box"/>
|
||||
<box flex="1" id="event-message-time-box"/>
|
||||
<!-- <spring flex="1"/> -->
|
||||
<box id="alarm-dialog-content" collapsed="true">
|
||||
<checkbox id="remind-again-checkbox"/>
|
||||
<html>&event.alarm.checkbox.label;</html>
|
||||
<textbox id="dialog-alarm-minutes" value="5" size="4" maxlength="2"/>
|
||||
<label for="dialog-alarm-minutes" value="Minutes"/>
|
||||
|
||||
</box>
|
||||
<box>
|
||||
<spring flex="1"/>
|
||||
<button id="dialog-btn-yes" label="Ok" default="true" oncommand="doOKButton();"/>
|
||||
</box>
|
||||
</vbox>
|
||||
|
||||
<!-- standard-dialog-content -->
|
||||
|
||||
</vbox> <!-- dialog-box -->
|
||||
|
||||
</window>
|
|
@ -1,867 +0,0 @@
|
|||
/*
|
||||
* 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 Corporation.
|
||||
*
|
||||
* The Initial Developer of the Original Code is
|
||||
* OEone Corporation.
|
||||
* Portions created by OEone Corporation are Copyright (C) 2001
|
||||
* OEone Corporation. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s): Garth Smedley (garths@oeone.com) , Mike Potter (mikep@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 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.
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/***** calendar/ca-event-dialog
|
||||
* AUTHOR
|
||||
* Garth Smedley
|
||||
* REQUIRED INCLUDES
|
||||
* <script type="application/x-javascript" src="chrome://penglobal/content/dateUtils.js"/>
|
||||
* <script type="application/x-javascript" src="chrome://penglobal/content/calendarEvent.js"/>
|
||||
*
|
||||
* NOTES
|
||||
* Code for the calendar's new/edit event dialog.
|
||||
*
|
||||
* Invoke this dialog to create a new event as follows:
|
||||
|
||||
var args = new Object();
|
||||
args.mode = "new"; // "new" or "edit"
|
||||
args.onOk = <function>; // funtion to call when OK is clicked
|
||||
args.calendarEvent = calendarEvent; // newly creatd calendar event to be editted
|
||||
|
||||
calendar.openDialog("caNewEvent", "chrome://calendar/content/ca-event-dialog.xul", true, args );
|
||||
*
|
||||
* Invoke this dialog to edit an existing event as follows:
|
||||
*
|
||||
var args = new Object();
|
||||
args.mode = "edit"; // "new" or "edit"
|
||||
args.onOk = <function>; // funtion to call when OK is clicked
|
||||
args.calendarEvent = calendarEvent; // javascript object containin the event to be editted
|
||||
|
||||
calendar.openDialog("caEditEvent", "chrome://calendar/content/ca-event-dialog.xul", true, args );
|
||||
|
||||
* When the user clicks OK the onOk function will be called with a calendar event object.
|
||||
*
|
||||
*
|
||||
* IMPLEMENTATION NOTES
|
||||
**********
|
||||
*/
|
||||
|
||||
|
||||
/*-----------------------------------------------------------------
|
||||
* W I N D O W V A R I A B L E S
|
||||
*/
|
||||
|
||||
|
||||
var gDateFormatter = new DateFormater(); // used to format dates and times
|
||||
|
||||
var gEvent; // event being edited
|
||||
var gOnOkFunction; // function to be called when user clicks OK
|
||||
|
||||
var gChangeEndTime = true; //
|
||||
var gTimeDifference = 3600000; //when editing an event, we change the end time if the start time is changing. This is the difference for the event time.
|
||||
|
||||
var gMode = ''; //what mode are we in? new or edit...
|
||||
|
||||
/*-----------------------------------------------------------------
|
||||
* W I N D O W F U N C T I O N S
|
||||
*/
|
||||
|
||||
/**
|
||||
* Called when the dialog is loaded.
|
||||
*/
|
||||
|
||||
function loadCalendarEventDialog()
|
||||
{
|
||||
// Get arguments, see description at top of file
|
||||
|
||||
var args = window.arguments[0];
|
||||
|
||||
gMode = args.mode;
|
||||
|
||||
gCategoryManager = args.CategoryManager;
|
||||
|
||||
// remember function to call when OK is clicked
|
||||
|
||||
gOnOkFunction = args.onOk;
|
||||
gEvent = args.calendarEvent;
|
||||
|
||||
// mode is "new or "edit"
|
||||
// show proper header
|
||||
|
||||
if( "new" == args.mode )
|
||||
{
|
||||
var titleDataItem = document.getElementById( "data-event-title-new" );
|
||||
}
|
||||
else
|
||||
{
|
||||
var titleDataItem = document.getElementById( "data-event-title-edit" );
|
||||
}
|
||||
|
||||
var titleString = titleDataItem.getAttribute( "value" );
|
||||
var headerTitleItem = document.getElementById( "standard-dialog-title-text" );
|
||||
headerTitleItem.setAttribute( "value" , titleString );
|
||||
|
||||
// show proper tip
|
||||
|
||||
var tipNewItem = document.getElementById( "tip-new" );
|
||||
var tipEditItem = document.getElementById( "tip-edit" );
|
||||
|
||||
if( "new" == args.mode )
|
||||
{
|
||||
tipNewItem.setAttribute( "collapsed", "false" );
|
||||
tipEditItem.setAttribute( "collapsed", "true" );
|
||||
}
|
||||
else
|
||||
{
|
||||
tipNewItem.setAttribute( "collapsed", "true" );
|
||||
tipEditItem.setAttribute( "collapsed", "false" );
|
||||
}
|
||||
|
||||
|
||||
//create the category drop down
|
||||
//if( !gCategoryManager )
|
||||
// Categories = opener.gCategoryManager.getAllCategories();
|
||||
//else
|
||||
// Categories = gCategoryManager.getAllCategories();
|
||||
Categories = new Array();
|
||||
|
||||
var MenuPopup = document.getElementById( "category-field-menupopup" );
|
||||
for ( i in Categories )
|
||||
{
|
||||
var MenuItem = document.createElement( "menuitem" );
|
||||
MenuItem.setAttribute( "value", Categories[i].id );
|
||||
MenuItem.setAttribute( "label", Categories[i].name );
|
||||
MenuPopup.appendChild( MenuItem );
|
||||
}
|
||||
|
||||
// fill in fields from the event
|
||||
|
||||
setDateFieldValue( "start-date-text", gEvent.start );
|
||||
setTimeFieldValue( "start-time-text", gEvent.start );
|
||||
setTimeFieldValue( "end-time-text", gEvent.end );
|
||||
gTimeDifference = gEvent.end - gEvent.start; //the time difference in ms
|
||||
|
||||
if ( gEvent.repeatForever )
|
||||
{
|
||||
gEvent.recurEnd = new Date();
|
||||
}
|
||||
setDateFieldValue( "repeat-end-date-text", gEvent.recurEnd );
|
||||
|
||||
setFieldValue( "title-field", gEvent.title );
|
||||
setFieldValue( "description-field", gEvent.description );
|
||||
setFieldValue( "location-field", gEvent.location );
|
||||
setFieldValue( "category-field", gEvent.category );
|
||||
|
||||
setFieldValue( "all-day-event-checkbox", gEvent.allDay, "checked" );
|
||||
|
||||
setFieldValue( "private-checkbox", gEvent.privateEvent, "checked" );
|
||||
|
||||
setFieldValue( "alarm-checkbox", gEvent.alarm, "checked" );
|
||||
setFieldValue( "alarm-length-field", gEvent.alarmLength );
|
||||
setFieldValue( "alarm-length-units", gEvent.alarmUnits, "data" );
|
||||
if ( gEvent.alarmEmailAddress && gEvent.alarmEmailAddress != "" )
|
||||
{
|
||||
setFieldValue( "alarm-email-checkbox", true, "checked" );
|
||||
setFieldValue( "alarm-email-field", gEvent.alarmEmailAddress );
|
||||
}
|
||||
else
|
||||
{
|
||||
setFieldValue( "invite-checkbox", false, "checked" );
|
||||
}
|
||||
|
||||
if ( gEvent.inviteEmailAddress != undefined && gEvent.inviteEmailAddress != "" )
|
||||
{
|
||||
setFieldValue( "invite-checkbox", true, "checked" );
|
||||
setFieldValue( "invite-email-field", gEvent.inviteEmailAddress );
|
||||
}
|
||||
else
|
||||
{
|
||||
setFieldValue( "invite-checkbox", false, "checked" );
|
||||
}
|
||||
|
||||
setFieldValue( "repeat-checkbox", gEvent.repeat, "checked");
|
||||
setFieldValue( "repeat-length-field", gEvent.recurInterval );
|
||||
setFieldValue( "repeat-length-units", gEvent.repeatUnits, "value" );
|
||||
setFieldValue( "repeat-forever-radio", (gEvent.repeatForever != undefined && gEvent.repeatForever != false), "checked" );
|
||||
setFieldValue( "repeat-until-radio", (gEvent.repeatForever == undefined || gEvent.repeatForever == false), "checked" );
|
||||
|
||||
// update enabling and disabling
|
||||
|
||||
updateRepeatItemEnabled();
|
||||
updateStartEndItemEnabled();
|
||||
updateAlarmItemEnabled();
|
||||
updateInviteItemEnabled();
|
||||
|
||||
// set up OK, Cancel
|
||||
|
||||
doSetOKCancel( onOKCommand, 0 );
|
||||
|
||||
// start focus on title
|
||||
|
||||
var firstFocus = document.getElementById( "title-field" );
|
||||
firstFocus.focus();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Called when the OK button is clicked.
|
||||
*/
|
||||
|
||||
function onOKCommand()
|
||||
{
|
||||
// get values from the form and put them into the event
|
||||
|
||||
gEvent.title = getFieldValue( "title-field" );
|
||||
gEvent.description = getFieldValue( "description-field" );
|
||||
gEvent.location = getFieldValue( "location-field" );
|
||||
gEvent.category = getFieldValue( "category-field" );
|
||||
|
||||
gEvent.allDay = getFieldValue( "all-day-event-checkbox", "checked" );
|
||||
gEvent.start = getDateTimeFieldValue( "start-date-text" );
|
||||
|
||||
var startTime = getDateTimeFieldValue( "start-time-text" );
|
||||
gEvent.start.setHours( startTime.getHours() );
|
||||
gEvent.start.setMinutes( startTime.getMinutes() );
|
||||
gEvent.start.setSeconds( 0 );
|
||||
|
||||
gEvent.end = getDateTimeFieldValue( "end-time-text" );
|
||||
//do this because the end date is always the same as the start date.
|
||||
gEvent.end.setDate( gEvent.start.getDate() );
|
||||
gEvent.end.setMonth( gEvent.start.getMonth() );
|
||||
gEvent.end.setYear( gEvent.start.getFullYear() );
|
||||
|
||||
gEvent.privateEvent = getFieldValue( "private-checkbox", "checked" );
|
||||
|
||||
if( getFieldValue( "invite-checkbox", "checked" ) )
|
||||
{
|
||||
gEvent.inviteEmailAddress = getFieldValue( "invite-email-field", "value" );
|
||||
}
|
||||
else
|
||||
{
|
||||
gEvent.inviteEmailAddress = "";
|
||||
}
|
||||
gEvent.alarm = getFieldValue( "alarm-checkbox", "checked" );
|
||||
gEvent.alarmLength = getFieldValue( "alarm-length-field" );
|
||||
gEvent.alarmUnits = getFieldValue( "alarm-length-units", "value" );
|
||||
debug( "!!!-->in ca-event-dialog.js, alarmUnits is "+gEvent.alarmUnits );
|
||||
if ( getFieldValue( "alarm-email-checkbox", "checked" ) )
|
||||
{
|
||||
gEvent.alarmEmailAddress = getFieldValue( "alarm-email-field", "value" );
|
||||
debug( "!!!-->in ca-event-dialog.js, alarmEmailAddress is "+gEvent.alarmEmailAddress );
|
||||
}
|
||||
else
|
||||
{
|
||||
gEvent.alarmEmailAddress = "";
|
||||
}
|
||||
gEvent.repeat = getFieldValue( "repeat-checkbox", "checked" );
|
||||
gEvent.repeatUnits = getFieldValue( "repeat-length-units", "value" );
|
||||
gEvent.repeatForever = getFieldValue( "repeat-forever-radio", "checked" );
|
||||
gEvent.recurInterval = getFieldValue( "repeat-length-field" );
|
||||
|
||||
if( gEvent.recurInterval == 0 )
|
||||
gEvent.repeat = false;
|
||||
|
||||
gEvent.recurEnd = getDateTimeFieldValue( "repeat-end-date-text" );
|
||||
|
||||
gEvent.recurEnd = new Date( gEvent.recurEnd.getFullYear(), gEvent.recurEnd.getMonth(), gEvent.recurEnd.getDate(), gEvent.start.getHours(), gEvent.start.getMinutes() );
|
||||
|
||||
// :TODO: REALLY only do this if the alarm or start settings change.?
|
||||
gEvent.alarmWentOff = false;
|
||||
|
||||
//if the end time is later than the start time... alert the user using text from the dtd.
|
||||
if ( gEvent.end < gEvent.start && !gEvent.allDay )
|
||||
{
|
||||
alert( neStartTimeErrorAlertMessage );
|
||||
return( false );
|
||||
}
|
||||
else
|
||||
{
|
||||
// call caller's on OK function
|
||||
gOnOkFunction( gEvent );
|
||||
|
||||
// tell standard dialog stuff to close the dialog
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Called when an item with a datepicker is clicked, BEFORE the picker is shown.
|
||||
*/
|
||||
|
||||
function prepareDatePicker( dateFieldName )
|
||||
{
|
||||
// get the popup and the field we are editing
|
||||
|
||||
var datePickerPopup = document.getElementById( "oe-date-picker-popup" );
|
||||
var dateField = document.getElementById( dateFieldName );
|
||||
|
||||
// tell the date picker the date to edit.
|
||||
|
||||
datePickerPopup.setAttribute( "value", dateField.editDate );
|
||||
|
||||
// remember the date field that is to be updated by adding a
|
||||
// property "dateField" to the popup.
|
||||
|
||||
datePickerPopup.dateField = dateField;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Called when a datepicker is finished, and a date was picked.
|
||||
*/
|
||||
|
||||
function onDatePick( datepopup )
|
||||
{
|
||||
// display the new date in the textbox
|
||||
|
||||
datepopup.dateField.value = formatDate( datepopup.value );
|
||||
|
||||
// remember the new date in a property, "editDate". we created on the date textbox
|
||||
|
||||
datepopup.dateField.editDate = datepopup.value;
|
||||
|
||||
//change the end date of repeating events to today, if the new date is after today.
|
||||
|
||||
var Now = new Date();
|
||||
|
||||
if ( datepopup.value > Now )
|
||||
{
|
||||
document.getElementById( "repeat-end-date-text" ).value = formatDate( datepopup.value );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Called when an item with a time picker is clicked, BEFORE the picker is shown.
|
||||
*/
|
||||
|
||||
function prepareTimePicker( timeFieldName )
|
||||
{
|
||||
// get the popup and the field we are editing
|
||||
|
||||
var timePickerPopup = document.getElementById( "oe-time-picker-popup" );
|
||||
var timeField = document.getElementById( timeFieldName );
|
||||
|
||||
// tell the time picker the time to edit.
|
||||
|
||||
timePickerPopup.setAttribute( "value", timeField.editDate );
|
||||
|
||||
// remember the time field that is to be updated by adding a
|
||||
// property "timeField" to the popup.
|
||||
|
||||
timePickerPopup.timeField = timeField;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Called when a timepicker is finished, and a time was picked.
|
||||
*/
|
||||
|
||||
function onTimePick( timepopup )
|
||||
{
|
||||
|
||||
//get the new end time by adding on the time difference to the start time.
|
||||
newEndDate = timepopup.value.getTime() + gTimeDifference;
|
||||
|
||||
newEndDate = new Date( newEndDate );
|
||||
|
||||
if ( newEndDate.getDate() != timepopup.value.getDate() ) //if this moves us to tomorrow...
|
||||
{
|
||||
|
||||
//put us back at today, with a time of 11:55 PM.
|
||||
newEndDate = new Date( timepopup.value.getFullYear(),
|
||||
timepopup.value.getMonth(),
|
||||
timepopup.value.getDate(),
|
||||
23,
|
||||
55,
|
||||
0);
|
||||
}
|
||||
|
||||
formattedEndTime = formatTime( newEndDate );
|
||||
if( timepopup.timeField.id != "end-time-text" )
|
||||
{
|
||||
document.getElementById( "end-time-text" ).value = formattedEndTime;
|
||||
|
||||
document.getElementById( "end-time-text" ).editDate = newEndDate;
|
||||
}
|
||||
|
||||
|
||||
if ( ( timepopup.timeField.id == "end-time-text" ) )
|
||||
{
|
||||
//if we are changing the end time, change the global duration.
|
||||
var EndTime = new Date( timepopup.value.getTime() );
|
||||
var StartTimeElement = document.getElementById( "start-time-text" );
|
||||
var StartTime = StartTimeElement.editDate;
|
||||
|
||||
gTimeDifference = EndTime - StartTime; //the time difference in ms
|
||||
|
||||
if ( gTimeDifference < 0 )
|
||||
{
|
||||
gTimeDifference = 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// display the new time in the textbox
|
||||
|
||||
timepopup.timeField.value = formatTime( timepopup.value );
|
||||
|
||||
// remember the new date in a property, "editDate". we created on the time textbox
|
||||
|
||||
timepopup.timeField.editDate = timepopup.value;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Called when the repeat checkbox is clicked.
|
||||
*/
|
||||
|
||||
function commandRepeat()
|
||||
{
|
||||
updateRepeatItemEnabled();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Called when the until radio is clicked.
|
||||
*/
|
||||
|
||||
function commandUntil()
|
||||
{
|
||||
updateUntilItemEnabled();
|
||||
}
|
||||
|
||||
/**
|
||||
* Called when the all day checkbox is clicked.
|
||||
*/
|
||||
|
||||
function commandAllDay()
|
||||
{
|
||||
updateStartEndItemEnabled();
|
||||
}
|
||||
|
||||
/**
|
||||
* Called when the alarm checkbox is clicked.
|
||||
*/
|
||||
|
||||
function commandAlarm()
|
||||
{
|
||||
updateAlarmItemEnabled();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Enable/Disable Alarm items
|
||||
*/
|
||||
|
||||
function updateAlarmItemEnabled()
|
||||
{
|
||||
var alarmCheckBox = document.getElementById( "alarm-checkbox" );
|
||||
|
||||
var alarmField = document.getElementById( "alarm-length-field" );
|
||||
var alarmMenu = document.getElementById( "alarm-length-units" );
|
||||
var alarmLabel = document.getElementById( "alarm-length-text" );
|
||||
|
||||
var alarmEmailCheckbox = document.getElementById( "alarm-email-checkbox" );
|
||||
var alarmEmailField = document.getElementById( "alarm-email-field" );
|
||||
|
||||
if( alarmCheckBox.checked )
|
||||
{
|
||||
// call remove attribute beacuse some widget code checks for the presense of a
|
||||
// disabled attribute, not the value.
|
||||
|
||||
alarmField.removeAttribute( "disabled" );
|
||||
alarmMenu.removeAttribute( "disabled" );
|
||||
alarmLabel.removeAttribute( "disabled" );
|
||||
alarmEmailCheckbox.removeAttribute( "disabled" );
|
||||
}
|
||||
else
|
||||
{
|
||||
alarmField.setAttribute( "disabled", "true" );
|
||||
alarmMenu.setAttribute( "disabled", "true" );
|
||||
alarmLabel.setAttribute( "disabled", "true" );
|
||||
alarmEmailField.setAttribute( "disabled", "true" );
|
||||
|
||||
alarmEmailCheckbox.setAttribute( "disabled", "true" );
|
||||
alarmEmailCheckbox.setAttribute( "checked", false );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Called when the alarm checkbox is clicked.
|
||||
*/
|
||||
|
||||
function commandAlarmEmail()
|
||||
{
|
||||
updateAlarmEmailItemEnabled();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Enable/Disable Alarm items
|
||||
*/
|
||||
|
||||
function updateAlarmEmailItemEnabled()
|
||||
{
|
||||
var alarmCheckBox = document.getElementById( "alarm-email-checkbox" );
|
||||
|
||||
var alarmEmailField = document.getElementById( "alarm-email-field" );
|
||||
|
||||
if( alarmCheckBox.checked )
|
||||
{
|
||||
// call remove attribute beacuse some widget code checks for the presense of a
|
||||
// disabled attribute, not the value.
|
||||
|
||||
alarmEmailField.removeAttribute( "disabled" );
|
||||
}
|
||||
else
|
||||
{
|
||||
alarmEmailField.setAttribute( "disabled", "true" );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Called when the alarm checkbox is clicked.
|
||||
*/
|
||||
|
||||
function commandInvite()
|
||||
{
|
||||
updateInviteItemEnabled();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Enable/Disable Alarm items
|
||||
*/
|
||||
|
||||
function updateInviteItemEnabled()
|
||||
{
|
||||
var inviteCheckBox = document.getElementById( "invite-checkbox" );
|
||||
|
||||
var inviteField = document.getElementById( "invite-email-field" );
|
||||
|
||||
if( inviteCheckBox.checked )
|
||||
{
|
||||
// call remove attribute beacuse some widget code checks for the presense of a
|
||||
// disabled attribute, not the value.
|
||||
|
||||
inviteField.removeAttribute( "disabled" );
|
||||
}
|
||||
else
|
||||
{
|
||||
inviteField.setAttribute( "disabled", "true" );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Enable/Disable Repeat items
|
||||
*/
|
||||
|
||||
function updateRepeatItemEnabled()
|
||||
{
|
||||
var repeatCheckBox = document.getElementById( "repeat-checkbox" );
|
||||
|
||||
var repeatField = document.getElementById( "repeat-length-field" );
|
||||
var repeatMenu = document.getElementById( "repeat-length-units" );
|
||||
var repeatGroup = document.getElementById( "repeat-until-group" );
|
||||
var repeatForever = document.getElementById( "repeat-forever-radio" );
|
||||
var repeatUntil = document.getElementById( "repeat-until-radio" );
|
||||
|
||||
if( repeatCheckBox.checked )
|
||||
{
|
||||
// call remove attribute beacuse some widget code checks for the presense of a
|
||||
// disabled attribute, not the value.
|
||||
|
||||
repeatField.removeAttribute( "disabled" );
|
||||
repeatMenu.removeAttribute( "disabled" );
|
||||
repeatGroup.removeAttribute( "disabled" );
|
||||
repeatForever.removeAttribute( "disabled" );
|
||||
repeatUntil.removeAttribute( "disabled" );
|
||||
}
|
||||
else
|
||||
{
|
||||
repeatField.setAttribute( "disabled", "true" );
|
||||
repeatMenu.setAttribute( "disabled", "true" );
|
||||
repeatGroup.setAttribute( "disabled", "true" );
|
||||
repeatForever.setAttribute( "disabled", "true" );
|
||||
repeatUntil.setAttribute( "disabled", "true" );
|
||||
}
|
||||
|
||||
// update until items whenever repeat changes
|
||||
|
||||
updateUntilItemEnabled();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Enable/Disable Until items
|
||||
*/
|
||||
|
||||
function updateUntilItemEnabled()
|
||||
{
|
||||
var repeatUntilRadio = document.getElementById( "repeat-until-radio" );
|
||||
var repeatCheckBox = document.getElementById( "repeat-checkbox" );
|
||||
|
||||
var repeatEndText = document.getElementById( "repeat-end-date-text" );
|
||||
var repeatEndPicker = document.getElementById( "repeat-end-date-button" );
|
||||
|
||||
if( repeatCheckBox.checked && repeatUntilRadio.checked )
|
||||
{
|
||||
repeatEndText.removeAttribute( "disabled" );
|
||||
repeatEndText.setAttribute( "popup", "oe-date-picker-popup" );
|
||||
repeatEndPicker.removeAttribute( "disabled" );
|
||||
repeatEndPicker.setAttribute( "popup", "oe-date-picker-popup" );
|
||||
}
|
||||
else
|
||||
{
|
||||
repeatEndText.setAttribute( "disabled", "true" );
|
||||
repeatEndText.removeAttribute( "popup" );
|
||||
repeatEndPicker.setAttribute( "disabled", "true" );
|
||||
repeatEndPicker.removeAttribute( "popup" );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Enable/Disable Start/End items
|
||||
*/
|
||||
|
||||
function updateStartEndItemEnabled()
|
||||
{
|
||||
var allDayCheckBox = document.getElementById( "all-day-event-checkbox" );
|
||||
|
||||
var startTimeLabel = document.getElementById( "start-time-label" );
|
||||
var startTimePicker = document.getElementById( "start-time-button" );
|
||||
var startTimeText = document.getElementById( "start-time-text" );
|
||||
|
||||
var endTimeLabel = document.getElementById( "end-time-label" );
|
||||
var endTimePicker = document.getElementById( "end-time-button" );
|
||||
var endTimeText = document.getElementById( "end-time-text" );
|
||||
|
||||
if( allDayCheckBox.checked )
|
||||
{
|
||||
// disable popups by removing the popup attribute
|
||||
|
||||
startTimeLabel.setAttribute( "disabled", "true" );
|
||||
startTimeText.setAttribute( "disabled", "true" );
|
||||
startTimeText.removeAttribute( "popup" );
|
||||
startTimePicker.setAttribute( "disabled", "true" );
|
||||
startTimePicker.removeAttribute( "popup" );
|
||||
|
||||
endTimeLabel.setAttribute( "disabled", "true" );
|
||||
endTimeText.setAttribute( "disabled", "true" );
|
||||
endTimeText.removeAttribute( "popup" );
|
||||
endTimePicker.setAttribute( "disabled", "true" );
|
||||
endTimePicker.removeAttribute( "popup" );
|
||||
}
|
||||
else
|
||||
{
|
||||
// enable popups by setting the popup attribute
|
||||
|
||||
startTimeLabel.removeAttribute( "disabled" );
|
||||
startTimeText.removeAttribute( "disabled" );
|
||||
startTimeText.setAttribute( "popup", "oe-time-picker-popup" );
|
||||
startTimePicker.removeAttribute( "disabled" );
|
||||
startTimePicker.setAttribute( "popup", "oe-time-picker-popup" );
|
||||
|
||||
endTimeLabel.removeAttribute( "disabled" );
|
||||
endTimeText.removeAttribute( "disabled" );
|
||||
endTimeText.setAttribute( "popup", "oe-time-picker-popup" );
|
||||
endTimePicker.removeAttribute( "disabled" );
|
||||
endTimePicker.setAttribute( "popup", "oe-time-picker-popup" );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Helper function for filling the form, set the value of a property of a XUL element
|
||||
*
|
||||
* PARAMETERS
|
||||
* elementId - ID of XUL element to set
|
||||
* newValue - value to set property to ( if undefined no change is made )
|
||||
* propertyName - OPTIONAL name of property to set, default is "value", use "checked" for
|
||||
* radios & checkboxes, "data" for drop-downs
|
||||
*/
|
||||
|
||||
function setFieldValue( elementId, newValue, propertyName )
|
||||
{
|
||||
var undefined;
|
||||
|
||||
if( newValue !== undefined )
|
||||
{
|
||||
var field = document.getElementById( elementId );
|
||||
|
||||
if( propertyName )
|
||||
{
|
||||
field[ propertyName ] = newValue;
|
||||
}
|
||||
else
|
||||
{
|
||||
field.value = newValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Helper function for getting data from the form,
|
||||
* Get the value of a property of a XUL element
|
||||
*
|
||||
* PARAMETERS
|
||||
* elementId - ID of XUL element to get from
|
||||
* propertyName - OPTIONAL name of property to set, default is "value", use "checked" for
|
||||
* radios & checkboxes, "data" for drop-downs
|
||||
* RETURN
|
||||
* newValue - value of property
|
||||
*/
|
||||
|
||||
function getFieldValue( elementId, propertyName )
|
||||
{
|
||||
var field = document.getElementById( elementId );
|
||||
|
||||
if( propertyName )
|
||||
{
|
||||
return field[ propertyName ];
|
||||
}
|
||||
else
|
||||
{
|
||||
return field.value;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Helper function for getting a date/time from the form.
|
||||
* The element must have been set up with setDateFieldValue or setTimeFieldValue.
|
||||
*
|
||||
* PARAMETERS
|
||||
* elementId - ID of XUL element to get from
|
||||
* RETURN
|
||||
* newValue - Date value of element
|
||||
*/
|
||||
|
||||
|
||||
function getDateTimeFieldValue( elementId )
|
||||
{
|
||||
var field = document.getElementById( elementId );
|
||||
return field.editDate;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Helper function for filling the form, set the value of a date field
|
||||
*
|
||||
* PARAMETERS
|
||||
* elementId - ID of time textbox to set
|
||||
* newDate - Date Object to use
|
||||
*/
|
||||
|
||||
function setDateFieldValue( elementId, newDate )
|
||||
{
|
||||
// set the value to a formatted date string
|
||||
|
||||
var field = document.getElementById( elementId );
|
||||
field.value = formatDate( newDate );
|
||||
|
||||
// add an editDate property to the item to hold the Date object
|
||||
// used in onDatePick to update the date from the date picker.
|
||||
// used in getDateTimeFieldValue to get the Date back out.
|
||||
|
||||
// we clone the date object so changes made in place do not propagte
|
||||
|
||||
field.editDate = new Date( newDate );
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Helper function for filling the form, set the value of a time field
|
||||
*
|
||||
* PARAMETERS
|
||||
* elementId - ID of time textbox to set
|
||||
* newDate - Date Object to use
|
||||
*/
|
||||
|
||||
function setTimeFieldValue( elementId, newDate )
|
||||
{
|
||||
// set the value to a formatted time string
|
||||
|
||||
var field = document.getElementById( elementId );
|
||||
field.value = formatTime( newDate );
|
||||
|
||||
// add an editDate property to the item to hold the Date object
|
||||
// used in onTimePick to update the date from the time picker.
|
||||
// used in getDateTimeFieldValue to get the Date back out.
|
||||
|
||||
// we clone the date object so changes made in place do not propagte
|
||||
|
||||
field.editDate = new Date( newDate );
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Take a Date object and return a displayable date string i.e.: May 5, 1959
|
||||
* :TODO: This should be moved into DateFormater and made to use some kind of
|
||||
* locale or user date format preference.
|
||||
*/
|
||||
|
||||
function formatDate( date )
|
||||
{
|
||||
var monthDayString = gDateFormatter.getFormatedDate( date );
|
||||
|
||||
return monthDayString + ", " + date.getFullYear();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Take a Date object and return a displayable time string i.e.: 12:30 PM
|
||||
*/
|
||||
|
||||
function formatTime( time )
|
||||
{
|
||||
var timeString = gDateFormatter.getFormatedTime( time );
|
||||
return timeString;
|
||||
}
|
||||
|
||||
|
||||
function debug( Text )
|
||||
{
|
||||
dump( "\n"+ Text + "\n");
|
||||
|
||||
}
|
||||
|
|
@ -1,315 +0,0 @@
|
|||
<?xml version="1.0"?>
|
||||
<!--
|
||||
- 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 OEone Corporation are Copyright (C) 2001
|
||||
- OEone Corporation. All Rights Reserved.
|
||||
-
|
||||
- Contributor(s): Garth Smedley (garths@oeone.com), Mike Potter (mikep@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.
|
||||
-
|
||||
- -->
|
||||
|
||||
<?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?>
|
||||
|
||||
<?xul-overlay href="chrome://global/content/dialogOverlay.xul"?>
|
||||
<?xul-overlay href="chrome://penglobal/content/datepicker-overlay.xul"?>
|
||||
<?xul-overlay href="chrome://penglobal/content/timepicker-overlay.xul"?>
|
||||
|
||||
<!-- CSS File with all styles specific to the dialog -->
|
||||
<?xml-stylesheet href="chrome://calendar/skin/ca-event-dialog.css" ?>
|
||||
<?xml-stylesheet href="chrome://penglobal/skin/dialogOverlay.css" type="text/css"?>
|
||||
|
||||
|
||||
<!-- DTD File with all strings specific to the calendar -->
|
||||
<!DOCTYPE window
|
||||
[
|
||||
<!ENTITY % dtd1 SYSTEM "chrome://penglobal/locale/global.dtd" > %dtd1;
|
||||
<!ENTITY % dtd2 SYSTEM "chrome://calendar/locale/calendar.dtd" > %dtd2;
|
||||
]>
|
||||
|
||||
|
||||
<window
|
||||
id="calendar-new-eventwindow"
|
||||
title="Internet Appliance Dialog - Calendar Event"
|
||||
orient="vertical"
|
||||
onload="loadCalendarEventDialog()"
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
>
|
||||
|
||||
|
||||
<!-- Javascript DTD To Variable -->
|
||||
<script type="application/x-javascript">
|
||||
var neStartTimeErrorAlertMessage = "&newevent.starttimeerror.alertmessage;";
|
||||
</script>
|
||||
|
||||
<!-- Javascript includes -->
|
||||
|
||||
<script type="application/x-javascript" src="chrome://global/content/strres.js"/>
|
||||
<script type="application/x-javascript" src="chrome://penglobal/content/dateUtils.js"/>
|
||||
<script type="application/x-javascript" src="chrome://calendar/content/ca-event-dialog.js"/>
|
||||
|
||||
<!-- Data used in JS from dtd -->
|
||||
|
||||
<dataset>
|
||||
<data id="data-event-title-new" value="&event.title.new;" />
|
||||
<data id="data-event-title-edit" value="&event.title.edit;" />
|
||||
<data id="neStartTimeErrorAlertMessage" value="&newevent.starttimeerror.alertmessage;" />
|
||||
</dataset>
|
||||
|
||||
|
||||
<!-- Picker popups -->
|
||||
|
||||
<popupset>
|
||||
<popup id="oe-date-picker-popup" popupalign="topleft" oncommand="onDatePick( this )" value="">
|
||||
</popup>
|
||||
<popup id="oe-time-picker-popup" popupalign="topleft" oncommand="onTimePick( this )" value="">
|
||||
</popup>
|
||||
</popupset>
|
||||
|
||||
<!-- The dialog -->
|
||||
|
||||
<!-- dialog-box: from dialogOverlay.xul -->
|
||||
|
||||
<vbox id="dialog-box" flex="1">
|
||||
|
||||
<!-- standard-dialog-title: from dialogOverlay.xul -->
|
||||
|
||||
<box id="standard-dialog-title">
|
||||
<image id="standard-dialog-title-icon" insertbefore="standard-dialog-title-text-box"/>
|
||||
<spring flex="1" insertafter="standard-dialog-title-icon"/>
|
||||
<box id="standard-dialog-title-text-box" valign="middle" autostretch="never">
|
||||
<text id="standard-dialog-title-text"/>
|
||||
</box>
|
||||
<spring id="second-title-spring" flex="1" insertafter="standard-dialog-title-text-box"/>
|
||||
</box>
|
||||
|
||||
|
||||
<!-- standard-dialog-tips: from dialogOverlay.xul Proper tip is shown in on load code-->
|
||||
|
||||
<box id="standard-dialog-tips">
|
||||
<html id="tip-new" collapsed ="true" >&event.tip.new;</html>
|
||||
<html id="tip-edit" collapsed ="false">&event.tip.edit;</html>
|
||||
</box>
|
||||
|
||||
<!-- standard-dialog-content: from dialogOverlay.xul -->
|
||||
|
||||
<vbox id="standard-dialog-content" flex="1">
|
||||
|
||||
<!-- Form elements -->
|
||||
|
||||
<grid autostretch="never" flex="1">
|
||||
|
||||
<columns>
|
||||
<column />
|
||||
<column flex="1"/>
|
||||
</columns>
|
||||
|
||||
<rows>
|
||||
|
||||
<!-- Title -->
|
||||
<row autostretch="never">
|
||||
<hbox class="field-label-box-class">
|
||||
<text for="title-field" value="&newevent.title.label;"/>
|
||||
</hbox>
|
||||
<textbox id="title-field"/>
|
||||
</row>
|
||||
|
||||
<!-- Location -->
|
||||
<row autostretch="never">
|
||||
<hbox class="field-label-box-class" >
|
||||
<text for="location-field" value="&newevent.location.label;"/>
|
||||
</hbox>
|
||||
<textbox id="location-field"/>
|
||||
</row>
|
||||
|
||||
<!-- Category -->
|
||||
<row autostretch="never">
|
||||
<hbox class="field-label-box-class" >
|
||||
<text for="category-field" value="&newevent.category.label;"/>
|
||||
</hbox>
|
||||
<menulist id="category-field" label="&newevent.choosecategory.label;" value="" >
|
||||
<menupopup id="category-field-menupopup">
|
||||
<menuitem label="&newevent.nocategory.label;" value=""/>
|
||||
</menupopup>
|
||||
</menulist>
|
||||
</row>
|
||||
|
||||
<!-- Date -->
|
||||
<row autostretch="never" >
|
||||
<hbox class="field-label-box-class" >
|
||||
<text value="&newevent.date.label;"/>
|
||||
</hbox>
|
||||
<hbox id="start-date-box" autostretch="never" >
|
||||
<textbox id="start-date-text" readonly="true" onmousedown="prepareDatePicker('start-date-text')" popup="oe-date-picker-popup" popupanchor="bottomleft"/>
|
||||
<image class="four-state-image-button" id="start-date-button" onmousedown="prepareDatePicker('start-date-text')" popup="oe-date-picker-popup" popupanchor="bottomleft" />
|
||||
</hbox>
|
||||
</row>
|
||||
|
||||
|
||||
<!-- All Day -->
|
||||
<row autostretch="never">
|
||||
<spring />
|
||||
<hbox>
|
||||
<checkbox id="all-day-event-checkbox" label="&newevent.alldayevent.label;" checked="true" oncommand="commandAllDay()"/>
|
||||
</hbox>
|
||||
</row>
|
||||
|
||||
|
||||
<!-- Start -->
|
||||
<row autostretch="never">
|
||||
<hbox class="field-label-box-class" >
|
||||
<text id="start-time-label" value="&newevent.start.label;"/>
|
||||
</hbox>
|
||||
<hbox id="start-event-time-box" autostretch="never" >
|
||||
<textbox id="start-time-text" readonly="true" value="" onmousedown="prepareTimePicker('start-time-text')" popup="oe-time-picker-popup" popupanchor="bottomleft"/>
|
||||
<image class="four-state-image-button" id="start-time-button" onmousedown="prepareTimePicker('start-time-text')" popup="oe-time-picker-popup" popupanchor="bottomleft"/>
|
||||
</hbox>
|
||||
</row>
|
||||
|
||||
|
||||
<!-- End -->
|
||||
<row autostretch="never">
|
||||
<hbox class="field-label-box-class" >
|
||||
<text id="end-time-label" value="&newevent.end.label;"/>
|
||||
</hbox>
|
||||
<hbox id="end-event-time-box" autostretch="never" >
|
||||
<textbox id="end-time-text" readonly="true" value="" onmousedown="prepareTimePicker('end-time-text')" popup="oe-time-picker-popup" popupanchor="bottomleft"/>
|
||||
<image class="four-state-image-button" id="end-time-button" onmousedown="prepareTimePicker('end-time-text')" popup="oe-time-picker-popup" popupanchor="bottomleft"/>
|
||||
</hbox>
|
||||
</row>
|
||||
|
||||
|
||||
<!-- Description -->
|
||||
<row flex="1">
|
||||
<hbox class="field-label-box-class" >
|
||||
<text for="description-field" value="&newevent.description.label;"/>
|
||||
</hbox>
|
||||
<textbox id="description-field" multiline="true" rows="3" cols="30" />
|
||||
</row>
|
||||
|
||||
|
||||
<!-- Private -->
|
||||
<row autostretch="never" >
|
||||
<spring />
|
||||
<hbox>
|
||||
<checkbox id="private-checkbox" checked="false" label="&newevent.private.label;"/>
|
||||
</hbox>
|
||||
</row>
|
||||
|
||||
|
||||
<!-- Alarm -->
|
||||
<row autostretch="never">
|
||||
<spring />
|
||||
<vbox>
|
||||
<hbox id="alarm-box" autostretch="never">
|
||||
<checkbox id="alarm-checkbox" label="&newevent.alarm.label;" checked="false" oncommand="commandAlarm()"/>
|
||||
<spring id="alarm-spacer" />
|
||||
<textbox id="alarm-length-field" value="15" />
|
||||
<menulist id="alarm-length-units" label="&alarm.units.minutes;" value="minutes" >
|
||||
<menupopup >
|
||||
<menuitem label="&alarm.units.minutes;" value="minutes"/>
|
||||
<menuitem label="&alarm.units.hours;" value="hours"/>
|
||||
<menuitem label="&alarm.units.days;" value="days"/>
|
||||
</menupopup>
|
||||
</menulist>
|
||||
|
||||
<label id="alarm-length-text" for="alarm-length-field" value="&newevent.beforealarm.label;"/>
|
||||
</hbox>
|
||||
<hbox id="alarm-box-email">
|
||||
<checkbox id="alarm-email-checkbox" label="&newevent.email.label;" checked="false" oncommand="commandAlarmEmail()"/>
|
||||
<textbox id="alarm-email-field" disabled="true" size="39" value="" />
|
||||
</hbox>
|
||||
</vbox>
|
||||
</row>
|
||||
|
||||
<!-- Invite -->
|
||||
<row autostretch="never">
|
||||
<spring />
|
||||
<vbox>
|
||||
<hbox id="invite-box">
|
||||
<checkbox id="invite-checkbox" label="&newevent.invite.label;" checked="false" oncommand="commandInvite()"/>
|
||||
<spring id="invite-spacer" />
|
||||
<textbox id="invite-email-field" size="39" disabled="true"/>
|
||||
</hbox>
|
||||
</vbox>
|
||||
</row>
|
||||
|
||||
<!-- Repeat -->
|
||||
<!-- STARTING TO BE IMPLEMENTED -->
|
||||
<row autostretch="never" collapsed="false">
|
||||
<spring />
|
||||
<vbox>
|
||||
<hbox id="repeat-box" autostretch="never">
|
||||
<checkbox id="repeat-checkbox" label="&newevent.repeat.label;" checked="false" oncommand="commandRepeat()"/>
|
||||
<textbox id="repeat-length-field" value="1" />
|
||||
|
||||
<menulist id="repeat-length-units" label="&repeat.units.days;" value="days" >
|
||||
<menupopup>
|
||||
<menuitem label="&repeat.units.days;" value="days" />
|
||||
<menuitem label="&repeat.units.weeks;" value="weeks" />
|
||||
<menuitem label="&repeat.units.months;" value="months" />
|
||||
<menuitem label="&repeat.units.years;" value="years" />
|
||||
</menupopup>
|
||||
</menulist>
|
||||
</hbox>
|
||||
|
||||
|
||||
<hbox>
|
||||
<spring id="radio-spacer" />
|
||||
<radiogroup id="repeat-until-group" orient="vertical">
|
||||
<hbox>
|
||||
<radio group="repeat-until-group" id="repeat-forever-radio" checked="false" label="&newevent.forever.label;" oncommand="commandUntil()"/>
|
||||
</hbox>
|
||||
<hbox id="repeat-end-box" autostretch="never">
|
||||
<radio group="repeat-until-group" id="repeat-until-radio" checked="true" label="&newevent.until.label;" oncommand="commandUntil()"/>
|
||||
<spring id="until-spacer"/>
|
||||
<textbox id="repeat-end-date-text" readonly="true" value="" onmousedown="prepareDatePicker('repeat-end-date-text')" popup="oe-date-picker-popup" popupanchor="bottomleft"/>
|
||||
<image class="four-state-image-button" id="repeat-end-date-button" onmousedown="prepareDatePicker('repeat-end-date-text')" popup="oe-date-picker-popup" popupanchor="bottomleft"/>
|
||||
</hbox>
|
||||
|
||||
</radiogroup>
|
||||
</hbox>
|
||||
|
||||
|
||||
</vbox>
|
||||
</row>
|
||||
<!-- Repeat -->
|
||||
|
||||
</rows>
|
||||
</grid>
|
||||
|
||||
</vbox> <!-- standard-dialog-content -->
|
||||
|
||||
|
||||
<!-- Bottom Box -->
|
||||
<box id="okCancelButtonsRight"/>
|
||||
|
||||
</vbox> <!-- dialog-box -->
|
||||
|
||||
</window>
|
|
@ -1,4 +1,4 @@
|
|||
/*
|
||||
/* ***** 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
|
||||
|
@ -11,15 +11,16 @@
|
|||
* for the specific language governing rights and limitations under the
|
||||
* License.
|
||||
*
|
||||
* The Original Code is OEone Corporation.
|
||||
* The Original Code is OEone Calendar Code, released October 31st, 2001.
|
||||
*
|
||||
* The Initial Developer of the Original Code is
|
||||
* OEone Corporation.
|
||||
* Portions created by OEone Corporation are Copyright (C) 2001
|
||||
* OEone Corporation. All Rights Reserved.
|
||||
* Portions created by the Initial Developer are Copyright (C) 2001
|
||||
* the Initial Developer. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s): Garth Smedley (garths@oeone.com) , Mike Potter (mikep@oeone.com),
|
||||
* Colin Phillips (colinp@oeone.com)
|
||||
* Contributor(s): Garth Smedley <garths@oeone.com>
|
||||
* Mike Potter <mikep@oeone.com>
|
||||
* Colin Phillips <colinp@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
|
||||
|
@ -33,8 +34,7 @@
|
|||
* 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 ***** */
|
||||
|
||||
/***** calendar
|
||||
* AUTHOR
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?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
|
||||
|
@ -16,11 +16,11 @@
|
|||
-
|
||||
- The Initial Developer of the Original Code is
|
||||
- OEone Corporation.
|
||||
- Portions created by OEone Corporation are Copyright (C) 2001
|
||||
- OEone Corporation. All Rights Reserved.
|
||||
- Portions created by the Initial Developer are Copyright (C) 2001
|
||||
- the Initial Developer. All Rights Reserved.
|
||||
-
|
||||
- Contributor(s): Garth Smedley (garths@oeone.com), Mike Potter (mikep@oeone.com),
|
||||
- Colin Phillips (colinp@oeone.com)
|
||||
- Contributor(s): Garth Smedley <garths@oeone.com>
|
||||
- Mike Potter <mikep@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
|
||||
|
@ -34,7 +34,7 @@
|
|||
- 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 ***** -->
|
||||
|
||||
<!-- Style sheets -->
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/*
|
||||
/* ***** 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
|
||||
|
@ -11,14 +11,15 @@
|
|||
* for the specific language governing rights and limitations under the
|
||||
* License.
|
||||
*
|
||||
* The Original Code is OEone Corporation.
|
||||
* The Original Code is OEone Calendar Code, released October 31st, 2001.
|
||||
*
|
||||
* The Initial Developer of the Original Code is
|
||||
* OEone Corporation.
|
||||
* Portions created by OEone Corporation are Copyright (C) 2001
|
||||
* OEone Corporation. All Rights Reserved.
|
||||
* Portions created by the Initial Developer are Copyright (C) 2001
|
||||
* the Initial Developer. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s): Garth Smedley (garths@oeone.com) , Mike Potter (mikep@oeone.com)
|
||||
* Contributor(s): Garth Smedley <garths@oeone.com>
|
||||
* Mike Potter <mikep@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
|
||||
|
@ -32,8 +33,7 @@
|
|||
* 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 ***** */
|
||||
|
||||
/*-----------------------------------------------------------------
|
||||
* DayView Class subclass of CalendarView
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?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
|
||||
|
@ -17,10 +17,11 @@
|
|||
-
|
||||
- The Initial Developer of the Original Code is
|
||||
- OEone Corporation.
|
||||
- Portions created by OEone Corporation are Copyright (C) 2001
|
||||
- OEone Corporation. All Rights Reserved.
|
||||
- Portions created by the Initial Developer are Copyright (C) 2001
|
||||
- the Initial Developer. All Rights Reserved.
|
||||
-
|
||||
- Contributor(s): Garth Smedley (garths@oeone.com), Mike Potter (mikep@oeone.com)
|
||||
- Contributor(s): Garth Smedley <garths@oeone.com>
|
||||
- Mike Potter <mikep@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
|
||||
|
@ -34,7 +35,7 @@
|
|||
- 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 ***** -->
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -1,84 +0,0 @@
|
|||
/*
|
||||
* 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 Corporation.
|
||||
*
|
||||
* The Initial Developer of the Original Code is
|
||||
* OEone Corporation.
|
||||
* Portions created by OEone Corporation are Copyright (C) 2001
|
||||
* OEone Corporation. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s): Garth Smedley (garths@oeone.com) , Mike Potter (mikep@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 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.
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
var gCategory = null;
|
||||
|
||||
var gOnOkFunction;
|
||||
|
||||
function calendarFolderDialogInit()
|
||||
{
|
||||
var args = window.arguments[0];
|
||||
|
||||
gCategory = args.Category;
|
||||
|
||||
gOnOkFunction = args.onOk;
|
||||
|
||||
if( args.mode == "edit" )
|
||||
{
|
||||
var Title = EditCalendarFolderTitle;
|
||||
|
||||
var Name = gCategory.name;
|
||||
|
||||
document.getElementById( "name" ).value = Name;
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
document.getElementById( "name" ).value = DefaultFolderName;
|
||||
|
||||
var Title = NewCalendarFolderTitle;
|
||||
}
|
||||
|
||||
document.getElementById( "standard-dialog-title-text" ).setAttribute( "value", Title );
|
||||
|
||||
setupOkCancelButtons( onOKCommand, 0 );
|
||||
|
||||
document.getElementById( "name" ).select();
|
||||
|
||||
document.getElementById( "name" ).focus();
|
||||
}
|
||||
|
||||
function onOKCommand()
|
||||
{
|
||||
//get the name and the location
|
||||
|
||||
gCategory.name = document.getElementById( "name" ).value;
|
||||
|
||||
gOnOkFunction( gCategory );
|
||||
|
||||
return( true );
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
<?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
|
||||
|
@ -17,10 +17,11 @@
|
|||
-
|
||||
- The Initial Developer of the Original Code is
|
||||
- OEone Corporation.
|
||||
- Portions created by OEone Corporation are Copyright (C) 2001
|
||||
- OEone Corporation. All Rights Reserved.
|
||||
- Portions created by the Initial Developer are Copyright (C) 2001
|
||||
- the Initial Developer. All Rights Reserved.
|
||||
-
|
||||
- Contributor(s): Garth Smedley (garths@oeone.com), Mike Potter (mikep@oeone.com)
|
||||
- Contributor(s): Garth Smedley <garths@oeone.com>
|
||||
- Mike Potter <mikep@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
|
||||
|
@ -34,7 +35,7 @@
|
|||
- 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://global/skin/global.css" type="text/css"?>
|
||||
<?xul-overlay href="chrome://penglobal/content/dialogOverlay.xul"?>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/*
|
||||
/* ***** 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
|
||||
|
@ -11,14 +11,15 @@
|
|||
* for the specific language governing rights and limitations under the
|
||||
* License.
|
||||
*
|
||||
* The Original Code is OEone Corporation.
|
||||
* The Original Code is OEone Calendar Code, released October 31st, 2001.
|
||||
*
|
||||
* The Initial Developer of the Original Code is
|
||||
* OEone Corporation.
|
||||
* Portions created by OEone Corporation are Copyright (C) 2001
|
||||
* OEone Corporation. All Rights Reserved.
|
||||
* Portions created by the Initial Developer are Copyright (C) 2001
|
||||
* the Initial Developer. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s): Garth Smedley (garths@oeone.com) , Mike Potter (mikep@oeone.com)
|
||||
* Contributor(s): Garth Smedley <garths@oeone.com>
|
||||
* Mike Potter <mikep@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
|
||||
|
@ -32,8 +33,7 @@
|
|||
* 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 ***** */
|
||||
|
||||
/*-----------------------------------------------------------------
|
||||
* MonthView Class subclass of CalendarView
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?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
|
||||
|
@ -16,10 +16,11 @@
|
|||
-
|
||||
- The Initial Developer of the Original Code is
|
||||
- OEone Corporation.
|
||||
- Portions created by OEone Corporation are Copyright (C) 2001
|
||||
- OEone Corporation. All Rights Reserved.
|
||||
- Portions created by the Initial Developer are Copyright (C) 2001
|
||||
- the Initial Developer. All Rights Reserved.
|
||||
-
|
||||
- Contributor(s): Garth Smedley (garths@oeone.com), Mike Potter (mikep@oeone.com)
|
||||
- Contributor(s): Garth Smedley <garths@oeone.com>
|
||||
- Mike Potter <mikep@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
|
||||
|
@ -33,7 +34,7 @@
|
|||
- 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 ***** -->
|
||||
|
||||
<!-- Style sheets -->
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/*
|
||||
/* ***** 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
|
||||
|
@ -11,14 +11,15 @@
|
|||
* for the specific language governing rights and limitations under the
|
||||
* License.
|
||||
*
|
||||
* The Original Code is OEone Corporation.
|
||||
* The Original Code is OEone Calendar Code, released October 31st, 2001.
|
||||
*
|
||||
* The Initial Developer of the Original Code is
|
||||
* OEone Corporation.
|
||||
* Portions created by OEone Corporation are Copyright (C) 2001
|
||||
* OEone Corporation. All Rights Reserved.
|
||||
* Portions created by the Initial Developer are Copyright (C) 2001
|
||||
* the Initial Developer. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s): Garth Smedley (garths@oeone.com) , Mike Potter (mikep@oeone.com)
|
||||
* Contributor(s): Garth Smedley <garths@oeone.com>
|
||||
* Mike Potter <mikep@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
|
||||
|
@ -32,8 +33,7 @@
|
|||
* 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 ***** */
|
||||
|
||||
|
||||
/*-----------------------------------------------------------------
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?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
|
||||
|
@ -16,10 +16,11 @@
|
|||
-
|
||||
- The Initial Developer of the Original Code is
|
||||
- OEone Corporation.
|
||||
- Portions created by OEone Corporation are Copyright (C) 2001
|
||||
- OEone Corporation. All Rights Reserved.
|
||||
- Portions created by the Initial Developer are Copyright (C) 2001
|
||||
- the Initial Developer. All Rights Reserved.
|
||||
-
|
||||
- Contributor(s): Garth Smedley (garths@oeone.com), Mike Potter (mikep@oeone.com)
|
||||
- Contributor(s): Garth Smedley <garths@oeone.com>
|
||||
- Mike Potter <mikep@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
|
||||
|
@ -33,7 +34,7 @@
|
|||
- 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 ***** -->
|
||||
|
||||
<!-- Style sheets -->
|
||||
|
||||
|
|
|
@ -1,130 +0,0 @@
|
|||
/*
|
||||
* 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 Corporation.
|
||||
*
|
||||
* The Initial Developer of the Original Code is
|
||||
* OEone Corporation.
|
||||
* Portions created by OEone Corporation are Copyright (C) 2001
|
||||
* OEone Corporation. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s): Garth Smedley (garths@oeone.com) , Mike Potter (mikep@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 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.
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* This is called from the unifinder when they need a new category
|
||||
*/
|
||||
|
||||
function unifinderNewCategoryCommand( )
|
||||
{
|
||||
var args = new Object();
|
||||
|
||||
args.mode = "new";
|
||||
|
||||
args.Category = gCategoryManager.getNewCategory();
|
||||
|
||||
args.onOk = respondNewCategoryCommand;
|
||||
|
||||
calendar.openDialog( "caNewFolder", "chrome://calendar/content/calendarFolderDialog.xul", true, args );
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* This is called from the unifinder when they need a new category
|
||||
*/
|
||||
|
||||
function respondNewCategoryCommand( Category )
|
||||
{
|
||||
gCategoryManager.addCategory( Category.name );
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
** launches the add catgory dialog.
|
||||
*/
|
||||
|
||||
function launchEditCategoryDialog( Category )
|
||||
{
|
||||
var args = new Object();
|
||||
|
||||
args.mode = "edit";
|
||||
|
||||
args.Category = Category;
|
||||
|
||||
args.onOk = editCategoryDialogResponse;
|
||||
|
||||
calendar.openDialog( "caNewFolder", "chrome://calendar/content/calendarFolderDialog.xul", true, args );
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
** Function that actually adds the category.
|
||||
*/
|
||||
|
||||
function editCategoryDialogResponse( Category )
|
||||
{
|
||||
gCategoryManager.modifyCategory( Category );
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Called when the calendar is loaded.
|
||||
* Sets up the category observers
|
||||
*/
|
||||
function prepareCalendarCategories()
|
||||
{
|
||||
gCategoryManager.addObserver( calendarCategoryObserver );
|
||||
}
|
||||
|
||||
function finishCalendarCategories()
|
||||
{
|
||||
gCategoryManager.removeObserver( calendarCategoryObserver );
|
||||
}
|
||||
|
||||
|
||||
var calendarCategoryObserver =
|
||||
{
|
||||
onAddItem : function( calendarCategory )
|
||||
{
|
||||
refreshEventTree( gEventSource.getAllEvents(), "unifinder-categories-tree-children" );
|
||||
},
|
||||
|
||||
onModifyItem : function( calendarCategory )
|
||||
{
|
||||
refreshEventTree( gEventSource.getAllEvents(), "unifinder-categories-tree-children" );
|
||||
},
|
||||
|
||||
onDeleteItem : function( calendarCategory )
|
||||
{
|
||||
refreshEventTree( gEventSource.getAllEvents(), "unifinder-categories-tree-children" );
|
||||
}
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
<?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
|
||||
|
@ -16,10 +16,10 @@
|
|||
-
|
||||
- The Initial Developer of the Original Code is
|
||||
- OEone Corporation.
|
||||
- Portions created by OEone Corporation are Copyright (C) 2001
|
||||
- OEone Corporation. All Rights Reserved.
|
||||
- Portions created by the Initial Developer are Copyright (C) 2001
|
||||
- the Initial Developer. All Rights Reserved.
|
||||
-
|
||||
- Contributor(s): Colin Phillips (colinp@oeone.com)
|
||||
- Contributor(s): Colin Phillips <colinp@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
|
||||
|
@ -33,7 +33,7 @@
|
|||
- 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 ***** -->
|
||||
|
||||
<RDF:RDF xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:chrome="http://www.mozilla.org/rdf/chrome#">
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/*
|
||||
/* ***** 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
|
||||
|
@ -11,14 +11,15 @@
|
|||
* for the specific language governing rights and limitations under the
|
||||
* License.
|
||||
*
|
||||
* The Original Code is OEone Corporation.
|
||||
* The Original Code is OEone Calendar Code, released October 31st, 2001.
|
||||
*
|
||||
* The Initial Developer of the Original Code is
|
||||
* OEone Corporation.
|
||||
* Portions created by OEone Corporation are Copyright (C) 2001
|
||||
* OEone Corporation. All Rights Reserved.
|
||||
* Portions created by the Initial Developer are Copyright (C) 2001
|
||||
* the Initial Developer. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s): Garth Smedley (garths@oeone.com) , Mike Potter (mikep@oeone.com)
|
||||
* Contributor(s): Garth Smedley <garths@oeone.com>
|
||||
* Mike Potter <mikep@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
|
||||
|
@ -32,8 +33,7 @@
|
|||
* 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 ***** */
|
||||
|
||||
/*-----------------------------------------------------------------
|
||||
* DayView Class subclass of CalendarView
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?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
|
||||
|
@ -17,10 +17,11 @@
|
|||
-
|
||||
- The Initial Developer of the Original Code is
|
||||
- OEone Corporation.
|
||||
- Portions created by OEone Corporation are Copyright (C) 2001
|
||||
- OEone Corporation. All Rights Reserved.
|
||||
- Portions created by the Initial Developer are Copyright (C) 2001
|
||||
- the Initial Developer. All Rights Reserved.
|
||||
-
|
||||
- Contributor(s): Garth Smedley (garths@oeone.com), Mike Potter (mikep@oeone.com)
|
||||
- Contributor(s): Garth Smedley <garths@oeone.com>
|
||||
- Mike Potter <mikep@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
|
||||
|
@ -34,7 +35,7 @@
|
|||
- 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 ***** -->
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/*
|
||||
/* ***** 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
|
||||
|
@ -11,14 +11,15 @@
|
|||
* for the specific language governing rights and limitations under the
|
||||
* License.
|
||||
*
|
||||
* The Original Code is OEone Corporation.
|
||||
* The Original Code is OEone Calendar Code, released October 31st, 2001.
|
||||
*
|
||||
* The Initial Developer of the Original Code is
|
||||
* OEone Corporation.
|
||||
* Portions created by OEone Corporation are Copyright (C) 2001
|
||||
* OEone Corporation. All Rights Reserved.
|
||||
* Portions created by the Initial Developer are Copyright (C) 2001
|
||||
* the Initial Developer. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s): Garth Smedley (garths@oeone.com) , Mike Potter (mikep@oeone.com)
|
||||
* Contributor(s): Garth Smedley <garths@oeone.com>
|
||||
* Mike Potter <mikep@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
|
||||
|
@ -32,8 +33,7 @@
|
|||
* 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 ***** */
|
||||
|
||||
/*-----------------------------------------------------------------
|
||||
* MonthView Class subclass of CalendarView
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?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
|
||||
|
@ -16,10 +16,11 @@
|
|||
-
|
||||
- The Initial Developer of the Original Code is
|
||||
- OEone Corporation.
|
||||
- Portions created by OEone Corporation are Copyright (C) 2001
|
||||
- OEone Corporation. All Rights Reserved.
|
||||
- Portions created by the Initial Developer are Copyright (C) 2001
|
||||
- the Initial Developer. All Rights Reserved.
|
||||
-
|
||||
- Contributor(s): Garth Smedley (garths@oeone.com), Mike Potter (mikep@oeone.com)
|
||||
- Contributor(s): Garth Smedley <garths@oeone.com>
|
||||
- Mike Potter <mikep@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
|
||||
|
@ -33,7 +34,7 @@
|
|||
- 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 ***** -->
|
||||
|
||||
<!-- Style sheets -->
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?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
|
||||
|
@ -16,10 +16,10 @@
|
|||
-
|
||||
- The Initial Developer of the Original Code is
|
||||
- OEone Corporation.
|
||||
- Portions created by OEone Corporation are Copyright (C) 2001
|
||||
- OEone Corporation. All Rights Reserved.
|
||||
- Portions created by the Initial Developer are Copyright (C) 2001
|
||||
- the Initial Developer. All Rights Reserved.
|
||||
-
|
||||
- Contributor(s): Colin Phillips (colinp@oeone.com)
|
||||
- Contributor(s): Colin Phillips <colinp@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
|
||||
|
@ -33,7 +33,7 @@
|
|||
- 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 ***** -->
|
||||
|
||||
<bindings id="penBindings"
|
||||
xmlns="http://www.mozilla.org/xbl"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/*
|
||||
/* ***** 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
|
||||
|
@ -11,14 +11,15 @@
|
|||
* for the specific language governing rights and limitations under the
|
||||
* License.
|
||||
*
|
||||
* The Original Code is OEone Corporation.
|
||||
* The Original Code is OEone Calendar Code, released October 31st, 2001.
|
||||
*
|
||||
* The Initial Developer of the Original Code is
|
||||
* OEone Corporation.
|
||||
* Portions created by OEone Corporation are Copyright (C) 2001
|
||||
* OEone Corporation. All Rights Reserved.
|
||||
* Portions created by the Initial Developer are Copyright (C) 2001
|
||||
* the Initial Developer. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s): Garth Smedley (garths@oeone.com) , Mike Potter (mikep@oeone.com)
|
||||
* Contributor(s): Garth Smedley <garths@oeone.com>
|
||||
* Mike Potter <mikep@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
|
||||
|
@ -32,8 +33,8 @@
|
|||
* 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 ***** */
|
||||
|
||||
|
||||
/***** calendar/ca-calender-event.js
|
||||
* AUTHOR
|
||||
|
|
|
@ -1,210 +0,0 @@
|
|||
/*
|
||||
* 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 Corporation.
|
||||
*
|
||||
* The Initial Developer of the Original Code is
|
||||
* OEone Corporation.
|
||||
* Portions created by OEone Corporation are Copyright (C) 2001
|
||||
* OEone Corporation. 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 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.
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
var kDate_MillisecondsInSecond = 1000;
|
||||
var kDate_SecondsInMinute = 60;
|
||||
var kDate_MinutesInHour = 60;
|
||||
var kDate_HoursInDay = 24;
|
||||
var kDate_DaysInWeek = 7;
|
||||
|
||||
var kDate_SecondsInHour = 3600;
|
||||
var kDate_SecondsInDay = 86400
|
||||
var kDate_SecondsInWeek = 604800
|
||||
|
||||
var kDate_MinutesInDay = 1440;
|
||||
var kDate_MinutesInWeek = 10080;
|
||||
|
||||
|
||||
var kDate_MillisecondsInMinute = 60000;
|
||||
var kDate_MillisecondsInHour = 3600000;
|
||||
var kDate_MillisecondsInDay = 86400000;
|
||||
var kDate_MillisecondsInWeek = 604800000;
|
||||
|
||||
|
||||
// required includes: "chrome://global/content/strres.js" - String Bundle Code
|
||||
|
||||
function DateUtils()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
DateUtils.getLastDayOfMonth = function( year, month )
|
||||
{
|
||||
var pastLastDate = new Date( year, month, 32 );
|
||||
var lastDayOfMonth = 32 - pastLastDate.getDate();
|
||||
|
||||
return lastDayOfMonth;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function DateFormater()
|
||||
{
|
||||
// we get the date bundle in case the locale changes, can
|
||||
// we be notified of a locale change instead, then we could
|
||||
// get the bundle once.
|
||||
|
||||
this.dateStringBundle = srGetStrBundle("chrome://penglobal/locale/dateFormat.properties");
|
||||
|
||||
}
|
||||
|
||||
|
||||
DateFormater.prototype.getFormatedTime = function( date )
|
||||
{
|
||||
// Format the time using a hardcoded format for now, since everything
|
||||
// that displays the time uses this function we will be able to
|
||||
// make a user settable time format and use it here.
|
||||
|
||||
var hour = date.getHours();
|
||||
var min = date.getMinutes();
|
||||
|
||||
// compute am and pm
|
||||
|
||||
if( hour < 12 )
|
||||
{
|
||||
var ampm = this.dateStringBundle.GetStringFromName( "am-string" );
|
||||
}
|
||||
else
|
||||
{
|
||||
var ampm = this.dateStringBundle.GetStringFromName( "pm-string" );
|
||||
}
|
||||
|
||||
// convert to 12 hour clock
|
||||
|
||||
if( hour > 12 )
|
||||
{
|
||||
hour -= 12;
|
||||
}
|
||||
|
||||
// make 0 be midnight
|
||||
|
||||
if( hour == 0 )
|
||||
{
|
||||
hour = 12;
|
||||
}
|
||||
|
||||
// put two zeros in the minute
|
||||
|
||||
var minString = min.toString();
|
||||
|
||||
if( min < 10 )
|
||||
{
|
||||
minString = "0" + min;
|
||||
}
|
||||
|
||||
// Make the time to display
|
||||
|
||||
var timeString = hour + ":" + minString + " " + ampm;
|
||||
|
||||
return timeString;
|
||||
|
||||
}
|
||||
|
||||
|
||||
DateFormater.prototype.getFormatedDate = function( date )
|
||||
{
|
||||
// Format the date using a hardcoded format for now, since everything
|
||||
// that displays the date uses this function we will be able to
|
||||
// make a user settable date format and use it here.
|
||||
|
||||
var oneBasedMonthNum = date.getMonth() + 1;
|
||||
|
||||
var monthString = this.dateStringBundle.GetStringFromName("month." + oneBasedMonthNum + ".Mmm" );
|
||||
|
||||
var dateString = monthString + " " + date.getDate();
|
||||
|
||||
return dateString;
|
||||
}
|
||||
|
||||
|
||||
// 0-11 Month Index
|
||||
|
||||
DateFormater.prototype.getMonthName = function( monthIndex )
|
||||
{
|
||||
|
||||
var oneBasedMonthNum = monthIndex + 1;
|
||||
|
||||
var monthName = this.dateStringBundle.GetStringFromName("month." + oneBasedMonthNum + ".name" );
|
||||
|
||||
return monthName;
|
||||
}
|
||||
|
||||
|
||||
// 0-11 Month Index
|
||||
|
||||
DateFormater.prototype.getShortMonthName = function( monthIndex )
|
||||
{
|
||||
|
||||
var oneBasedMonthNum = monthIndex + 1;
|
||||
|
||||
var monthName = this.dateStringBundle.GetStringFromName("month." + oneBasedMonthNum + ".Mmm" );
|
||||
|
||||
return monthName;
|
||||
}
|
||||
|
||||
|
||||
// 0-6 Day index ( starts at Sun )
|
||||
|
||||
DateFormater.prototype.getDayName = function( dayIndex )
|
||||
{
|
||||
|
||||
var oneBasedDayNum = dayIndex + 1;
|
||||
|
||||
var dayName = this.dateStringBundle.GetStringFromName("day." + oneBasedDayNum + ".name" );
|
||||
|
||||
return dayName;
|
||||
}
|
||||
|
||||
|
||||
// 0-6 Day index ( starts at Sun )
|
||||
|
||||
DateFormater.prototype.getShortDayName = function( dayIndex )
|
||||
{
|
||||
|
||||
var oneBasedDayNum = dayIndex + 1;
|
||||
|
||||
var dayName = this.dateStringBundle.GetStringFromName("day." + oneBasedDayNum + ".Mmm" );
|
||||
|
||||
return dayName;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
<?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
|
||||
|
@ -16,10 +16,10 @@
|
|||
-
|
||||
- The Initial Developer of the Original Code is
|
||||
- OEone Corporation.
|
||||
- Portions created by OEone Corporation are Copyright (C) 2001
|
||||
- OEone Corporation. All Rights Reserved.
|
||||
- Portions created by the Initial Developer are Copyright (C) 2001
|
||||
- the Initial Developer. All Rights Reserved.
|
||||
-
|
||||
- Contributor(s): Garth Smedley (garths@oeone.com)
|
||||
- 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
|
||||
|
@ -33,7 +33,7 @@
|
|||
- 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 ***** -->
|
||||
|
||||
<!-- CSS Files -->
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/*
|
||||
/* ***** 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
|
||||
|
@ -11,14 +11,15 @@
|
|||
* for the specific language governing rights and limitations under the
|
||||
* License.
|
||||
*
|
||||
* The Original Code is OEone Corporation.
|
||||
* The Original Code is OEone Calendar Code, released October 31st, 2001.
|
||||
*
|
||||
* The Initial Developer of the Original Code is
|
||||
* OEone Corporation.
|
||||
* Portions created by OEone Corporation are Copyright (C) 2001
|
||||
* OEone Corporation. All Rights Reserved.
|
||||
* Portions created by the Initial Developer are Copyright (C) 2001
|
||||
* the Initial Developer. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s): Garth Smedley (garths@oeone.com) , Mike Potter (mikep@oeone.com)
|
||||
* Contributor(s): Garth Smedley <garths@oeone.com>
|
||||
* Mike Potter <mikep@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
|
||||
|
@ -32,8 +33,8 @@
|
|||
* 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 ***** */
|
||||
|
||||
|
||||
/***** oe-datepicker
|
||||
* AUTHOR
|
||||
|
|
|
@ -1,49 +0,0 @@
|
|||
<?xml version="1.0"?>
|
||||
<!--
|
||||
- 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 OEone Corporation are Copyright (C) 2001
|
||||
- OEone Corporation. All Rights Reserved.
|
||||
-
|
||||
- Contributor(s): Colin Phillips (colinp@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.
|
||||
-
|
||||
- -->
|
||||
|
||||
<overlay id="penglobal-overlay"
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||
|
||||
<popupset id="aTooltipSet"/>
|
||||
|
||||
<script type="application/x-javascript" src="chrome://penglobal/content/penglobalclasses.js"/>
|
||||
|
||||
<script type="application/x-javascript">
|
||||
var penapplication = new penapplication();
|
||||
</script>
|
||||
</overlay>
|
||||
|
|
@ -1,48 +0,0 @@
|
|||
<?xml version="1.0"?>
|
||||
<!--
|
||||
- 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 OEone Corporation are Copyright (C) 2001
|
||||
- OEone Corporation. All Rights Reserved.
|
||||
-
|
||||
- Contributor(s): Colin Phillips (colinp@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.
|
||||
-
|
||||
- -->
|
||||
|
||||
<overlay id="penglobal-overlay"
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||
|
||||
<script type="application/x-javascript" src="chrome://penglobal/content/penroot.js"/>
|
||||
|
||||
<script type="application/x-javascript">
|
||||
var Root = new penroot();
|
||||
self.name = "rootwindow";
|
||||
</script>
|
||||
</overlay>
|
||||
|
|
@ -1,318 +0,0 @@
|
|||
/*
|
||||
* 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 Corporation.
|
||||
*
|
||||
* The Initial Developer of the Original Code is
|
||||
* OEone Corporation.
|
||||
* Portions created by OEone Corporation are Copyright (C) 2001
|
||||
* OEone Corporation. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s): Colin Phillips (colinp@oeone.com), 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 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.
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
var MEDIATOR_CONTRACTID = "@mozilla.org/rdf/datasource;1?name=window-mediator";
|
||||
var nsIWindowMediator = Components.interfaces.nsIWindowMediator;
|
||||
var rootwindowID = "rootwindow";
|
||||
|
||||
function pencontrols()
|
||||
{
|
||||
this.root = rootwindowID;
|
||||
}
|
||||
|
||||
function penapplication()
|
||||
{
|
||||
this.application = "calendar";
|
||||
this.appnum = this.getRoot().Root.getAppNum(this.application);
|
||||
this.penDialogModalWindow = null;
|
||||
this.penDialogWindows = new Array();
|
||||
this.penDialogArray = new Array();
|
||||
}
|
||||
penapplication.prototype = new pencontrols;
|
||||
|
||||
function pendialog()
|
||||
{
|
||||
this.dialog = null;
|
||||
this.sticky = false;
|
||||
this.xcoord = null;
|
||||
this.ycoord = null;
|
||||
if (opener)
|
||||
{
|
||||
this.application = opener.penapplication.application;
|
||||
this.appnum = opener.penapplication.appnum;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.application = rootwindowID;
|
||||
this.appnum = -1;
|
||||
}
|
||||
}
|
||||
pendialog.prototype = new pencontrols;
|
||||
|
||||
/*--------------------------------------------------
|
||||
* Supporting functions for each of the above
|
||||
*-------------------------------------------------*/
|
||||
|
||||
//--controls--------------------------------------------
|
||||
|
||||
pencontrols.prototype.getRoot = function ()
|
||||
{
|
||||
var windowManager = Components.classes[MEDIATOR_CONTRACTID].getService();
|
||||
var windowManagerInterface = windowManager.QueryInterface(nsIWindowMediator);
|
||||
var enumerator = windowManagerInterface.getEnumerator( null );
|
||||
|
||||
while ( enumerator.hasMoreElements() )
|
||||
{
|
||||
var nextWindow = enumerator.getNext();
|
||||
var domWindow = windowManagerInterface.convertISupportsToDOMWindow( nextWindow );
|
||||
if (domWindow.name == rootwindowID)
|
||||
{
|
||||
return domWindow;
|
||||
}
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
pencontrols.prototype.getAppPath = function (AppName)
|
||||
{
|
||||
var windowManager = Components.classes[MEDIATOR_CONTRACTID].getService();
|
||||
var windowManagerInterface = windowManager.QueryInterface(nsIWindowMediator);
|
||||
var enumerator = windowManagerInterface.getEnumerator( null );
|
||||
var RootWin = null;
|
||||
|
||||
while ( enumerator.hasMoreElements() )
|
||||
{
|
||||
var nextWindow = enumerator.getNext();
|
||||
var domWindow = windowManagerInterface.convertISupportsToDOMWindow( nextWindow );
|
||||
if (domWindow.penapplication)
|
||||
{
|
||||
if (domWindow.penapplication.application == AppName)
|
||||
{
|
||||
return domWindow;
|
||||
}
|
||||
}
|
||||
else if (domWindow.name == rootwindowID)
|
||||
{
|
||||
RootWin = domWindow;
|
||||
}
|
||||
}
|
||||
if (RootWin != null)
|
||||
{
|
||||
existsInRoot = RootWin.Root.getRootWindowAppPath(AppName);
|
||||
if (existsInRoot != null)
|
||||
{
|
||||
return existsInRoot;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
pencontrols.prototype.getDialogWindow = function (DialogName)
|
||||
{
|
||||
var windowManager = Components.classes[MEDIATOR_CONTRACTID].getService();
|
||||
var windowManagerInterface = windowManager.QueryInterface(nsIWindowMediator);
|
||||
var enumerator = windowManagerInterface.getEnumerator( null );
|
||||
|
||||
DialogName = "dialogWindow" + DialogName;
|
||||
|
||||
while ( enumerator.hasMoreElements() )
|
||||
{
|
||||
var nextWindow = enumerator.getNext();
|
||||
var domWindow = windowManagerInterface.convertISupportsToDOMWindow( nextWindow );
|
||||
if (domWindow.pendialog)
|
||||
{
|
||||
if (domWindow.pendialog.dialog == DialogName)
|
||||
{
|
||||
return domWindow;
|
||||
}
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
//--application--------------------------------------------
|
||||
|
||||
penapplication.prototype.getApp = function ()
|
||||
{
|
||||
return self;
|
||||
}
|
||||
|
||||
penapplication.prototype.getDialogEntry = function (id)
|
||||
{
|
||||
for (NumDialogsOpen = 0; NumDialogsOpen < this.penDialogWindows.length; NumDialogsOpen++)
|
||||
{
|
||||
if (id == this.penDialogWindows[NumDialogsOpen])
|
||||
{
|
||||
return NumDialogsOpen;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
penapplication.prototype.getOpenDialogEntry = function ()
|
||||
{
|
||||
for (NumDialogsOpen = 0; NumDialogsOpen < this.penDialogWindows.length; NumDialogsOpen++)
|
||||
{
|
||||
if (this.penDialogWindows[NumDialogsOpen] == null)
|
||||
{
|
||||
return NumDialogsOpen;
|
||||
}
|
||||
}
|
||||
return this.penDialogWindows.length;
|
||||
}
|
||||
|
||||
penapplication.prototype.closeDialogEntry = function (id)
|
||||
{
|
||||
closeSlot = this.getDialogEntry(id);
|
||||
if (closeSlot == null)
|
||||
{
|
||||
dump("id '" + id + "' is invalid");
|
||||
return;
|
||||
}
|
||||
this.penDialogWindows[closeSlot] = null;
|
||||
this.penDialogArray[closeSlot] = null;
|
||||
}
|
||||
|
||||
penapplication.prototype.openDialog = function (id, file, modal, penarguments)
|
||||
{
|
||||
id = "dialogWindow" + id;
|
||||
if ((modal)&&(this.penDialogModalWindow != null))
|
||||
{
|
||||
return;
|
||||
}
|
||||
else if (this.getDialogEntry(id) != null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (modal)
|
||||
{
|
||||
if (penarguments)
|
||||
{
|
||||
this.penDialogModalWindow = true;
|
||||
window.openDialog(file, id, "chrome,centerscreen,alwaysRaised,modal", id, penarguments);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.penDialogModalWindow = true;
|
||||
window.openDialog(file, id, "chrome,centerscreen,alwaysRaised,modal", id);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
nextOpenSlot = this.getOpenDialogEntry();
|
||||
this.penDialogWindows[nextOpenSlot] = id;
|
||||
if (penarguments)
|
||||
{
|
||||
this.penDialogArray[nextOpenSlot] = window.openDialog(file, id, "chrome,centerscreen,alwaysRaised", id, penarguments);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.penDialogArray[nextOpenSlot] = window.openDialog(file, id, "chrome,centerscreen,alwaysRaised", id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
penapplication.prototype.closeDialog = function (id)
|
||||
{
|
||||
if (this.penDialogModalWindow)
|
||||
{
|
||||
this.penDialogModalWindow = null;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.closeDialogEntry(id)
|
||||
}
|
||||
}
|
||||
|
||||
penapplication.prototype.showThisDialog = function (dialogHandle)
|
||||
{
|
||||
userDialogs = penapplication.mozuserpath + "/userDialogs.xml";
|
||||
listOfNeverShowDialogs = penFileUtils.loadFromXML( userDialogs, "dialog" );
|
||||
if ((listOfNeverShowDialogs != "")&&(listOfNeverShowDialogs.length > 0))
|
||||
{
|
||||
for (neverShowLength = 0; neverShowLength < listOfNeverShowDialogs.length; neverShowLength++)
|
||||
{
|
||||
if (listOfNeverShowDialogs[neverShowLength].name == dialogHandle)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
penapplication.prototype.getDialogPath = function (id)
|
||||
{
|
||||
if (this.penDialogModalWindow)
|
||||
{
|
||||
return this.penDialogModalWindow;
|
||||
}
|
||||
else
|
||||
{
|
||||
id = "dialogWindow" + id;
|
||||
return this.getInternalDialogPath(id);
|
||||
}
|
||||
}
|
||||
|
||||
penapplication.prototype.getInternalDialogPath = function (id)
|
||||
{
|
||||
if (this.penDialogModalWindow)
|
||||
{
|
||||
return this.penDialogModalWindow;
|
||||
}
|
||||
else
|
||||
{
|
||||
Slot = this.getDialogEntry(id)
|
||||
if (Slot == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
return this.penDialogArray[Slot];
|
||||
}
|
||||
}
|
||||
|
||||
//--dialog-------------------------------------------------
|
||||
|
||||
pendialog.prototype.getApp = function ()
|
||||
{
|
||||
return opener;
|
||||
}
|
||||
|
||||
pendialog.prototype.closeDialog = function (id)
|
||||
{
|
||||
if ((this.getApp())&&(this.getApp().penapplication))
|
||||
{
|
||||
this.getApp().penapplication.closeDialog(id);
|
||||
}
|
||||
}
|
||||
|
||||
//--other functions----------------------------------------
|
||||
|
||||
function debug( Text )
|
||||
{
|
||||
dump( "\n"+ Text + "\n");
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
/*
|
||||
/* ***** 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
|
||||
|
@ -11,14 +11,15 @@
|
|||
* for the specific language governing rights and limitations under the
|
||||
* License.
|
||||
*
|
||||
* The Original Code is OEone Corporation.
|
||||
* The Original Code is OEone Calendar Code, released October 31st, 2001.
|
||||
*
|
||||
* The Initial Developer of the Original Code is
|
||||
* OEone Corporation.
|
||||
* Portions created by OEone Corporation are Copyright (C) 2001
|
||||
* OEone Corporation. All Rights Reserved.
|
||||
* Portions created by the Initial Developer are Copyright (C) 2001
|
||||
* the Initial Developer. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s): Colin Phillips (colinp@oeone.com), Garth Smedley (garths@oeone.com)
|
||||
* Contributor(s): Garth Smedley <garths@oeone.com>
|
||||
* Colin Phillips <colinp@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
|
||||
|
@ -32,8 +33,8 @@
|
|||
* 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 penroot()
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?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
|
||||
|
@ -16,10 +16,10 @@
|
|||
-
|
||||
- The Initial Developer of the Original Code is
|
||||
- OEone Corporation.
|
||||
- Portions created by OEone Corporation are Copyright (C) 2001
|
||||
- OEone Corporation. All Rights Reserved.
|
||||
- Portions created by the Initial Developer are Copyright (C) 2001
|
||||
- the Initial Developer. All Rights Reserved.
|
||||
-
|
||||
- Contributor(s): Garth Smedley (garths@oeone.com)
|
||||
- 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
|
||||
|
@ -33,7 +33,7 @@
|
|||
- 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 ***** -->
|
||||
|
||||
<!-- CSS Files -->
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/*
|
||||
/* ***** 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
|
||||
|
@ -11,14 +11,15 @@
|
|||
* for the specific language governing rights and limitations under the
|
||||
* License.
|
||||
*
|
||||
* The Original Code is OEone Corporation.
|
||||
* The Original Code is OEone Calendar Code, released October 31st, 2001.
|
||||
*
|
||||
* The Initial Developer of the Original Code is
|
||||
* OEone Corporation.
|
||||
* Portions created by OEone Corporation are Copyright (C) 2001
|
||||
* OEone Corporation. All Rights Reserved.
|
||||
* Portions created by the Initial Developer are Copyright (C) 2001
|
||||
* the Initial Developer. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s): Garth Smedley (garths@oeone.com), Mike Potter (mikep@oeone.com)
|
||||
* Contributor(s): Garth Smedley <garths@oeone.com>
|
||||
* Mike Potter <mikep@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
|
||||
|
@ -32,8 +33,8 @@
|
|||
* 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 ***** */
|
||||
|
||||
|
||||
/***** oe-timepicker
|
||||
* AUTHOR
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?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
|
||||
|
@ -16,10 +16,11 @@
|
|||
-
|
||||
- The Initial Developer of the Original Code is
|
||||
- OEone Corporation.
|
||||
- Portions created by OEone Corporation are Copyright (C) 2001
|
||||
- OEone Corporation. All Rights Reserved.
|
||||
- Portions created by the Initial Developer are Copyright (C) 2001
|
||||
- the Initial Developer. All Rights Reserved.
|
||||
-
|
||||
- Contributor(s): Garth Smedley (garths@oeone.com) , Mike Potter (mikep@oeone.com)
|
||||
- Contributor(s): Garth Smedley <garths@oeone.com>
|
||||
- Mike Potter <mikep@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
|
||||
|
@ -33,7 +34,7 @@
|
|||
- 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://global/skin/global.css" type="text/css"?>
|
||||
|
||||
|
|
|
@ -1,63 +0,0 @@
|
|||
/*
|
||||
* 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 Corporation.
|
||||
*
|
||||
* The Initial Developer of the Original Code is
|
||||
* OEone Corporation.
|
||||
* Portions created by OEone Corporation are Copyright (C) 2001
|
||||
* OEone Corporation. 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 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.
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
// U N I F I N D E R -------------------------------------
|
||||
|
||||
|
||||
function unifinderInit()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
function unifinderSelectTab( tabid )
|
||||
{
|
||||
var unifinderList = document.getElementsByTagName("unifinder");
|
||||
|
||||
if( unifinderList.length > 0 )
|
||||
{
|
||||
var unifinder = unifinderList[0];
|
||||
|
||||
var newTab = document.getElementById( tabid );
|
||||
|
||||
if( newTab )
|
||||
{
|
||||
unifinder.selectedTab = newTab;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?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
|
||||
|
@ -17,10 +17,10 @@
|
|||
-
|
||||
- The Initial Developer of the Original Code is
|
||||
- OEone Corporation.
|
||||
- Portions created by OEone Corporation are Copyright (C) 2001
|
||||
- OEone Corporation. All Rights Reserved.
|
||||
- Portions created by the Initial Developer are Copyright (C) 2001
|
||||
- the Initial Developer. All Rights Reserved.
|
||||
-
|
||||
- Contributor(s): Garth Smedley (garths@oeone.com)
|
||||
- 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
|
||||
|
@ -34,7 +34,7 @@
|
|||
- 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 ***** -->
|
||||
|
||||
<!DOCTYPE window [
|
||||
<!ENTITY % dtd1 SYSTEM "chrome://penglobal/locale/unifinder.dtd" > %dtd1;
|
||||
|
|
|
@ -1,59 +0,0 @@
|
|||
/*
|
||||
* 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 Corporation.
|
||||
*
|
||||
* The Initial Developer of the Original Code is
|
||||
* OEone Corporation.
|
||||
* Portions created by OEone Corporation are Copyright (C) 2001
|
||||
* OEone Corporation. 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 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.
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
/******* unifinder *******/
|
||||
|
||||
unifinder {
|
||||
-moz-binding: url("chrome://penglobal/content/unifinderBindings.xml#unifinder");
|
||||
}
|
||||
|
||||
unifinder-search-controls {
|
||||
-moz-binding: url("chrome://penglobal/content/unifinderBindings.xml#unifinder-search-controls");
|
||||
}
|
||||
|
||||
unifinder-history-controls {
|
||||
-moz-binding: url("chrome://penglobal/content/unifinderBindings.xml#unifinder-history-controls");
|
||||
}
|
||||
|
||||
|
||||
unifinder-button{
|
||||
-moz-binding: url("chrome://penglobal/content/unifinderBindings.xml#unifinder-button-base");
|
||||
}
|
||||
|
||||
unifinder-image-button{
|
||||
-moz-binding : url("chrome://calendar/content/penBindings.xml#penButton");
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
<!--
|
||||
<!-- ***** 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
|
||||
|
@ -15,10 +15,10 @@
|
|||
-
|
||||
- The Initial Developer of the Original Code is
|
||||
- OEone Corporation.
|
||||
- Portions created by OEone Corporation are Copyright (C) 2001
|
||||
- OEone Corporation. All Rights Reserved.
|
||||
- Portions created by the Initial Developer are Copyright (C) 2001
|
||||
- the Initial Developer. All Rights Reserved.
|
||||
-
|
||||
- Contributor(s): Garth Smedley (garths@oeone.com)
|
||||
- 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
|
||||
|
@ -32,7 +32,7 @@
|
|||
- 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 ***** -->
|
||||
|
||||
<html>
|
||||
<head>
|
||||
|
|
|
@ -1,51 +0,0 @@
|
|||
/*
|
||||
* 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 Corporation.
|
||||
*
|
||||
* The Initial Developer of the Original Code is
|
||||
* OEone Corporation.
|
||||
* Portions created by OEone Corporation are Copyright (C) 2001
|
||||
* OEone Corporation. 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 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.
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
function calendarTestSuite()
|
||||
{
|
||||
var testSuite = new JsUnitTestSuite();
|
||||
testSuite.addTestPage( "chrome://calendar/content/test/testCalendarEvent.xul" );
|
||||
return testSuite;
|
||||
}
|
||||
function suite()
|
||||
{
|
||||
var testSuite = new JsUnitTestSuite();
|
||||
testSuite.addTestSuite( calendarTestSuite() );
|
||||
return testSuite;
|
||||
}
|
||||
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
/*
|
||||
/* ***** 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
|
||||
|
@ -11,14 +11,14 @@
|
|||
* for the specific language governing rights and limitations under the
|
||||
* License.
|
||||
*
|
||||
* The Original Code is OEone Corporation.
|
||||
* The Original Code is OEone Calendar Code, released October 31st, 2001.
|
||||
*
|
||||
* The Initial Developer of the Original Code is
|
||||
* OEone Corporation.
|
||||
* Portions created by OEone Corporation are Copyright (C) 2001
|
||||
* OEone Corporation. All Rights Reserved.
|
||||
* Portions created by the Initial Developer are Copyright (C) 2001
|
||||
* the Initial Developer. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s): Garth Smedley (garths@oeone.com)
|
||||
* 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
|
||||
|
@ -32,8 +32,8 @@
|
|||
* 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 ***** */
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
<!--
|
||||
<?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
|
||||
|
@ -15,10 +16,10 @@
|
|||
-
|
||||
- The Initial Developer of the Original Code is
|
||||
- OEone Corporation.
|
||||
- Portions created by OEone Corporation are Copyright (C) 2001
|
||||
- OEone Corporation. All Rights Reserved.
|
||||
- Portions created by the Initial Developer are Copyright (C) 2001
|
||||
- the Initial Developer. All Rights Reserved.
|
||||
-
|
||||
- Contributor(s): Garth Smedley (garths@oeone.com)
|
||||
- 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
|
||||
|
@ -32,9 +33,8 @@
|
|||
- 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 version="1.0"?>
|
||||
<?xml-stylesheet href="chrome://navigator/skin/" type="text/css"?>
|
||||
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?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
|
||||
|
@ -16,10 +16,11 @@
|
|||
-
|
||||
- The Initial Developer of the Original Code is
|
||||
- OEone Corporation.
|
||||
- Portions created by OEone Corporation are Copyright (C) 2001
|
||||
- OEone Corporation. All Rights Reserved.
|
||||
- Portions created by the Initial Developer are Copyright (C) 2001
|
||||
- the Initial Developer. All Rights Reserved.
|
||||
-
|
||||
- Contributor(s): Garth Smedley (garths@oeone.com), Mike Potter (mikep@oeone.com)
|
||||
- Contributor(s): Garth Smedley <garths@oeone.com>
|
||||
- Mike Potter <mikep@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
|
||||
|
@ -33,7 +34,7 @@
|
|||
- 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://global/skin/global.css" type="text/css"?>
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/*
|
||||
/* ***** 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
|
||||
|
@ -11,14 +11,15 @@
|
|||
* for the specific language governing rights and limitations under the
|
||||
* License.
|
||||
*
|
||||
* The Original Code is OEone Corporation.
|
||||
* The Original Code is OEone Calendar Code, released October 31st, 2001.
|
||||
*
|
||||
* The Initial Developer of the Original Code is
|
||||
* OEone Corporation.
|
||||
* Portions created by OEone Corporation are Copyright (C) 2001
|
||||
* OEone Corporation. All Rights Reserved.
|
||||
* Portions created by the Initial Developer are Copyright (C) 2001
|
||||
* the Initial Developer. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s): Garth Smedley (garths@oeone.com) , Mike Potter (mikep@oeone.com)
|
||||
* Contributor(s): Garth Smedley <garths@oeone.com>
|
||||
* Mike Potter <mikep@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
|
||||
|
@ -32,8 +33,7 @@
|
|||
* 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 ***** */
|
||||
|
||||
/*-----------------------------------------------------------------
|
||||
* U N I F I N D E R
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/*
|
||||
/* ***** 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
|
||||
|
@ -11,14 +11,15 @@
|
|||
* for the specific language governing rights and limitations under the
|
||||
* License.
|
||||
*
|
||||
* The Original Code is OEone Corporation.
|
||||
* The Original Code is OEone Calendar Code, released October 31st, 2001.
|
||||
*
|
||||
* The Initial Developer of the Original Code is
|
||||
* OEone Corporation.
|
||||
* Portions created by OEone Corporation are Copyright (C) 2001
|
||||
* OEone Corporation. All Rights Reserved.
|
||||
* Portions created by the Initial Developer are Copyright (C) 2001
|
||||
* the Initial Developer. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s): Garth Smedley (garths@oeone.com) , Mike Potter (mikep@oeone.com)
|
||||
* Contributor(s): Garth Smedley <garths@oeone.com>
|
||||
* Mike Potter <mikep@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
|
||||
|
@ -32,8 +33,7 @@
|
|||
* 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 ***** */
|
||||
|
||||
|
||||
/*-----------------------------------------------------------------
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?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
|
||||
|
@ -16,10 +16,11 @@
|
|||
-
|
||||
- The Initial Developer of the Original Code is
|
||||
- OEone Corporation.
|
||||
- Portions created by OEone Corporation are Copyright (C) 2001
|
||||
- OEone Corporation. All Rights Reserved.
|
||||
- Portions created by the Initial Developer are Copyright (C) 2001
|
||||
- the Initial Developer. All Rights Reserved.
|
||||
-
|
||||
- Contributor(s): Garth Smedley (garths@oeone.com), Mike Potter (mikep@oeone.com)
|
||||
- Contributor(s): Garth Smedley <garths@oeone.com>
|
||||
- Mike Potter <mikep@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
|
||||
|
@ -33,7 +34,7 @@
|
|||
- 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 ***** -->
|
||||
|
||||
<!-- Style sheets -->
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<!--
|
||||
<!-- ***** 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
|
||||
|
@ -15,10 +15,11 @@
|
|||
-
|
||||
- The Initial Developer of the Original Code is
|
||||
- OEone Corporation.
|
||||
- Portions created by OEone Corporation are Copyright (C) 2001
|
||||
- OEone Corporation. All Rights Reserved.
|
||||
- Portions created by the Initial Developer are Copyright (C) 2001
|
||||
- the Initial Developer. All Rights Reserved.
|
||||
-
|
||||
- Contributor(s): Garth Smedley (garths@oeone.com), Mike Potter (mikep@oeone.com)
|
||||
- Contributor(s): Garth Smedley <garths@oeone.com>
|
||||
- Mike Potter <mikep@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
|
||||
|
@ -32,7 +33,8 @@
|
|||
- 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 ***** -->
|
||||
|
||||
|
||||
<!ENTITY alarm.units.minutes "Minutes" >
|
||||
<!ENTITY alarm.units.hours "Hours" >
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?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
|
||||
|
@ -16,10 +16,10 @@
|
|||
-
|
||||
- The Initial Developer of the Original Code is
|
||||
- OEone Corporation.
|
||||
- Portions created by OEone Corporation are Copyright (C) 2001
|
||||
- OEone Corporation. All Rights Reserved.
|
||||
- Portions created by the Initial Developer are Copyright (C) 2001
|
||||
- the Initial Developer. All Rights Reserved.
|
||||
-
|
||||
- Contributor(s): Colin Phillips (colinp@oeone.com)
|
||||
- Contributor(s): Colin Phillips <colinp@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
|
||||
|
@ -33,7 +33,8 @@
|
|||
- 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 ***** -->
|
||||
|
||||
|
||||
<RDF:RDF xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:chrome="http://www.mozilla.org/rdf/chrome#">
|
||||
|
|
|
@ -1,55 +0,0 @@
|
|||
<?xml version="1.0"?>
|
||||
<!--
|
||||
- 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 OEone Corporation are Copyright (C) 2001
|
||||
- OEone Corporation. All Rights Reserved.
|
||||
-
|
||||
- Contributor(s): Colin Phillips (colinp@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.
|
||||
-
|
||||
- -->
|
||||
|
||||
<RDF:RDF xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:chrome="http://www.mozilla.org/rdf/chrome#">
|
||||
|
||||
<!-- list all the skins being supplied by this package -->
|
||||
<RDF:Seq about="urn:mozilla:locale:root">
|
||||
<RDF:li resource="urn:mozilla:locale:en-US"/>
|
||||
</RDF:Seq>
|
||||
|
||||
<!-- locale information -->
|
||||
<RDF:Description about="urn:mozilla:en-US">
|
||||
<chrome:packages>
|
||||
<RDF:Seq about="urn:mozilla:locale:en-US:packages">
|
||||
<RDF:li resource="urn:mozilla:locale:en-US:penglobal"/>
|
||||
</RDF:Seq>
|
||||
</chrome:packages>
|
||||
</RDF:Description>
|
||||
</RDF:RDF>
|
||||
|
|
@ -1,80 +0,0 @@
|
|||
# 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, released October 31st, 2001.
|
||||
#
|
||||
# The Initial Developer of the Original Code is
|
||||
# OEone Corporation.
|
||||
# Portions created by OEone Corporation are Copyright (C) 2001
|
||||
# OEone Corporation. 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 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.
|
||||
#
|
||||
|
||||
# Month names - Add full names when needed
|
||||
|
||||
month.1.Mmm=Jan
|
||||
month.2.Mmm=Feb
|
||||
month.3.Mmm=Mar
|
||||
month.4.Mmm=Apr
|
||||
month.5.Mmm=May
|
||||
month.6.Mmm=Jun
|
||||
month.7.Mmm=Jul
|
||||
month.8.Mmm=Aug
|
||||
month.9.Mmm=Sep
|
||||
month.10.Mmm=Oct
|
||||
month.11.Mmm=Nov
|
||||
month.12.Mmm=Dec
|
||||
|
||||
month.1.name=January
|
||||
month.2.name=February
|
||||
month.3.name=March
|
||||
month.4.name=April
|
||||
month.5.name=May
|
||||
month.6.name=June
|
||||
month.7.name=July
|
||||
month.8.name=August
|
||||
month.9.name=September
|
||||
month.10.name=October
|
||||
month.11.name=November
|
||||
month.12.name=December
|
||||
|
||||
day.1.name=Sunday
|
||||
day.2.name=Monday
|
||||
day.3.name=Tuesday
|
||||
day.4.name=Wednesday
|
||||
day.5.name=Thursday
|
||||
day.6.name=Friday
|
||||
day.7.name=Saturday
|
||||
|
||||
day.1.Mmm=Sun
|
||||
day.2.Mmm=Mon
|
||||
day.3.Mmm=Tue
|
||||
day.4.Mmm=Wed
|
||||
day.5.Mmm=Thu
|
||||
day.6.Mmm=Fri
|
||||
day.7.Mmm=Sat
|
||||
|
||||
am-string=AM
|
||||
pm-string=PM
|
|
@ -1,4 +1,4 @@
|
|||
<!--
|
||||
<!-- ***** 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
|
||||
|
@ -15,10 +15,10 @@
|
|||
-
|
||||
- The Initial Developer of the Original Code is
|
||||
- OEone Corporation.
|
||||
- Portions created by OEone Corporation are Copyright (C) 2001
|
||||
- OEone Corporation. All Rights Reserved.
|
||||
- Portions created by the Initial Developer are Copyright (C) 2001
|
||||
- the Initial Developer. All Rights Reserved.
|
||||
-
|
||||
- Contributor(s): Garth Smedley (garths@oeone.com)
|
||||
- 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
|
||||
|
@ -32,7 +32,7 @@
|
|||
- 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 ***** -->
|
||||
|
||||
<!ENTITY time.midnight "Midnight" >
|
||||
<!ENTITY time.1 "1:00 AM" >
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<!--
|
||||
<!-- ***** 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
|
||||
|
@ -15,10 +15,10 @@
|
|||
-
|
||||
- The Initial Developer of the Original Code is
|
||||
- OEone Corporation.
|
||||
- Portions created by OEone Corporation are Copyright (C) 2001
|
||||
- OEone Corporation. All Rights Reserved.
|
||||
- Portions created by the Initial Developer are Copyright (C) 2001
|
||||
- the Initial Developer. All Rights Reserved.
|
||||
-
|
||||
- Contributor(s): Garth Smedley (garths@oeone.com)
|
||||
- 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
|
||||
|
@ -32,7 +32,8 @@
|
|||
- 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 ***** -->
|
||||
|
||||
|
||||
<!ENTITY unifinder.menu.options.newfolder "New Folder...">
|
||||
<!ENTITY unifinder.menu.options.moveto "Move To...">
|
||||
|
|
|
@ -1,267 +0,0 @@
|
|||
/*
|
||||
* 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 Corporation.
|
||||
*
|
||||
* The Initial Developer of the Original Code is
|
||||
* OEone Corporation.
|
||||
* Portions created by OEone Corporation are Copyright (C) 2001
|
||||
* OEone Corporation. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s): Garth Smedley (garths@oeone.com) , Mike Potter (mikep@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 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.
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
|
||||
#standard-dialog-title-icon
|
||||
{
|
||||
padding-left : 2px;
|
||||
list-style-image : url("chrome://calendar/skin/ca-event-dialog/new_event_icon.png");
|
||||
}
|
||||
|
||||
#repeat-box,
|
||||
#repeat-end-box,
|
||||
#alarm-box,
|
||||
#end-event-time-box,
|
||||
#start-event-time-box,
|
||||
#start-date-box
|
||||
{
|
||||
vertical-align : middle;
|
||||
}
|
||||
|
||||
#dialog-box
|
||||
{
|
||||
min-width : 453px;
|
||||
/*min-height : 460px;*/
|
||||
}
|
||||
|
||||
#category-field
|
||||
{
|
||||
margin-left : 4px;
|
||||
margin-right : 4px;
|
||||
}
|
||||
|
||||
|
||||
.field-label-box-class
|
||||
{
|
||||
text-align : right;
|
||||
margin-right : 3px;
|
||||
}
|
||||
|
||||
/* line up all the check boxes on the left with the other boxes */
|
||||
|
||||
#repeat-checkbox,
|
||||
#repeat-checkbox > .internal-box > .checkmark-box,
|
||||
#alarm-checkbox,
|
||||
#alarm-checkbox > .internal-box > .checkmark-box,
|
||||
#private-checkbox,
|
||||
#private-checkbox > .internal-box > .checkmark-box,
|
||||
#all-day-event-checkbox,
|
||||
#all-day-event-checkbox > .internal-box > .checkmark-box,
|
||||
#alarm-email-checkbox,
|
||||
#alarm-email-checkbox > .internal-box > .checkmark-box,
|
||||
#invite-checkbox,
|
||||
#invite-checkbox > .internal-box > .checkmark-box
|
||||
{
|
||||
margin-left : 1px;
|
||||
}
|
||||
|
||||
#all-day-event-checkbox
|
||||
{
|
||||
margin-left : 2px;
|
||||
}
|
||||
|
||||
#repeat-length-units
|
||||
{
|
||||
min-width : 98px;
|
||||
}
|
||||
|
||||
#alarm-spacer
|
||||
{
|
||||
min-width : 52px;
|
||||
}
|
||||
|
||||
|
||||
#radio-spacer
|
||||
{
|
||||
min-width : 38px;
|
||||
}
|
||||
|
||||
#until-spacer
|
||||
{
|
||||
min-width : 8px;
|
||||
}
|
||||
|
||||
#invite-spacer
|
||||
{
|
||||
min-width : 54px;
|
||||
}
|
||||
|
||||
#repeat-length-field
|
||||
{
|
||||
max-width : 3em;
|
||||
}
|
||||
|
||||
#alarm-length-field
|
||||
{
|
||||
max-width : 3em;
|
||||
}
|
||||
|
||||
#invite-email-field
|
||||
{
|
||||
max-width : 50em;
|
||||
}
|
||||
|
||||
#alarm-email-field
|
||||
{
|
||||
max-width : 50em;
|
||||
}
|
||||
|
||||
#start-date-text
|
||||
{
|
||||
-moz-user-focus : ignore !important;
|
||||
|
||||
max-width : 10em;
|
||||
}
|
||||
|
||||
#start-time-text
|
||||
{
|
||||
max-width : 10em;
|
||||
}
|
||||
|
||||
#end-time-text
|
||||
{
|
||||
max-width : 10em;
|
||||
}
|
||||
|
||||
#repeat-end-date-text
|
||||
{
|
||||
max-width : 10em;
|
||||
}
|
||||
|
||||
|
||||
/*--------------------------------------------------------------------
|
||||
* Start date button
|
||||
*-------------------------------------------------------------------*/
|
||||
|
||||
#start-date-button
|
||||
{
|
||||
margin-left : 3px;
|
||||
list-style-image : url("chrome://calendar/skin/ca-event-dialog/calendar_up.png");
|
||||
}
|
||||
#start-date-button[disabled="true"],
|
||||
#start-date-button[disabled="true"]:hover,
|
||||
#start-date-button[disabled="true"]:hover:active
|
||||
{
|
||||
list-style-image : url("chrome://calendar/skin/ca-event-dialog/calendar_disabled.png");
|
||||
}
|
||||
#start-date-button:hover
|
||||
{
|
||||
list-style-image : url("chrome://calendar/skin/ca-event-dialog/calendar_hover.png");
|
||||
}
|
||||
#start-date-button:hover:active
|
||||
{
|
||||
list-style-image : url("chrome://calendar/skin/ca-event-dialog/calendar_down.png");
|
||||
}
|
||||
|
||||
|
||||
/*--------------------------------------------------------------------
|
||||
* Start time button
|
||||
*-------------------------------------------------------------------*/
|
||||
|
||||
#start-time-button
|
||||
{
|
||||
margin-left : 3px;
|
||||
list-style-image : url("chrome://calendar/skin/ca-event-dialog/clock_up.png");
|
||||
}
|
||||
#start-time-button[disabled="true"],
|
||||
#start-time-button[disabled="true"]:hover,
|
||||
#start-time-button[disabled="true"]:hover:active
|
||||
{
|
||||
list-style-image : url("chrome://calendar/skin/ca-event-dialog/clock_disabled.png");
|
||||
}
|
||||
#start-time-button:hover
|
||||
{
|
||||
list-style-image : url("chrome://calendar/skin/ca-event-dialog/clock_hover.png");
|
||||
}
|
||||
#start-time-button:hover:active
|
||||
{
|
||||
list-style-image : url("chrome://calendar/skin/ca-event-dialog/clock_down.png");
|
||||
}
|
||||
|
||||
|
||||
/*--------------------------------------------------------------------
|
||||
* End time button
|
||||
*-------------------------------------------------------------------*/
|
||||
|
||||
#end-time-button
|
||||
{
|
||||
margin-left : 3px;
|
||||
list-style-image : url("chrome://calendar/skin/ca-event-dialog/clock_up.png");
|
||||
}
|
||||
#end-time-button[disabled="true"],
|
||||
#end-time-button[disabled="true"]:hover,
|
||||
#end-time-button[disabled="true"]:hover:active
|
||||
{
|
||||
list-style-image : url("chrome://calendar/skin/ca-event-dialog/clock_disabled.png");
|
||||
}
|
||||
#end-time-button:hover
|
||||
{
|
||||
list-style-image : url("chrome://calendar/skin/ca-event-dialog/clock_hover.png");
|
||||
}
|
||||
#end-time-button:hover:active
|
||||
{
|
||||
list-style-image : url("chrome://calendar/skin/ca-event-dialog/clock_down.png");
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*--------------------------------------------------------------------
|
||||
* Repeat end date button
|
||||
*-------------------------------------------------------------------*/
|
||||
|
||||
#repeat-end-date-button
|
||||
{
|
||||
margin-left : 3px;
|
||||
list-style-image : url("chrome://calendar/skin/ca-event-dialog/calendar_up.png");
|
||||
}
|
||||
#repeat-end-date-button[disabled="true"],
|
||||
#repeat-end-date-button[disabled="true"]:hover,
|
||||
#repeat-end-date-button[disabled="true"]:hover:active
|
||||
{
|
||||
list-style-image : url("chrome://calendar/skin/ca-event-dialog/calendar_disabled.png");
|
||||
}
|
||||
#repeat-end-date-button:hover
|
||||
{
|
||||
list-style-image : url("chrome://calendar/skin/ca-event-dialog/calendar_hover.png");
|
||||
}
|
||||
#repeat-end-date-button:hover:active
|
||||
{
|
||||
list-style-image : url("chrome://calendar/skin/ca-event-dialog/calendar_down.png");
|
||||
}
|
||||
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
/*
|
||||
/* ***** 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
|
||||
|
@ -11,14 +11,15 @@
|
|||
* for the specific language governing rights and limitations under the
|
||||
* License.
|
||||
*
|
||||
* The Original Code is OEone Corporation.
|
||||
* The Original Code is OEone Calendar Code, released October 31st, 2001.
|
||||
*
|
||||
* The Initial Developer of the Original Code is
|
||||
* OEone Corporation.
|
||||
* Portions created by OEone Corporation are Copyright (C) 2001
|
||||
* OEone Corporation. All Rights Reserved.
|
||||
* Portions created by the Initial Developer are Copyright (C) 2001
|
||||
* the Initial Developer. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s): Garth Smedley (garths@oeone.com) , Mike Potter (mikep@oeone.com)
|
||||
* Contributor(s): Garth Smedley <garths@oeone.com>
|
||||
* Mike Potter <mikep@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
|
||||
|
@ -32,8 +33,8 @@
|
|||
* 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 ***** */
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?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
|
||||
|
@ -16,10 +16,11 @@
|
|||
-
|
||||
- The Initial Developer of the Original Code is
|
||||
- OEone Corporation.
|
||||
- Portions created by OEone Corporation are Copyright (C) 2001
|
||||
- OEone Corporation. All Rights Reserved.
|
||||
- Portions created by the Initial Developer are Copyright (C) 2001
|
||||
- the Initial Developer. All Rights Reserved.
|
||||
-
|
||||
- Contributor(s): Garth Smedley (garths@oeone.com), Colin Phillips (colinp@oeone.com)
|
||||
- Contributor(s): Garth Smedley <garths@oeone.com>
|
||||
- Colin Phillips <colinp@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
|
||||
|
@ -33,7 +34,7 @@
|
|||
- 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 ***** -->
|
||||
|
||||
<RDF:RDF xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:chrome="http://www.mozilla.org/rdf/chrome#">
|
||||
|
|
|
@ -1,54 +0,0 @@
|
|||
<?xml version="1.0"?>
|
||||
<!--
|
||||
- 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 OEone Corporation are Copyright (C) 2001
|
||||
- OEone Corporation. All Rights Reserved.
|
||||
-
|
||||
- Contributor(s): Garth Smedley (garths@oeone.com), Colin Phillips (colinp@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.
|
||||
-
|
||||
- -->
|
||||
|
||||
<RDF:RDF xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:chrome="http://www.mozilla.org/rdf/chrome#">
|
||||
|
||||
<!-- List all the skins being supplied by this theme -->
|
||||
<RDF:Seq about="urn:mozilla:skin:root">
|
||||
<RDF:li resource="urn:mozilla:skin:modern/1.0" />
|
||||
</RDF:Seq>
|
||||
|
||||
<!-- Modern Information -->
|
||||
<RDF:Description about="urn:mozilla:skin:modern/1.0">
|
||||
<chrome:packages>
|
||||
<RDF:Seq about="urn:mozilla:skin:modern/1.0:packages">
|
||||
<RDF:li resource="urn:mozilla:skin:modern/1.0:penglobal"/>
|
||||
</RDF:Seq>
|
||||
</chrome:packages>
|
||||
</RDF:Description>
|
||||
</RDF:RDF>
|
|
@ -1,131 +0,0 @@
|
|||
/*
|
||||
* 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 Corporation.
|
||||
*
|
||||
* The Initial Developer of the Original Code is
|
||||
* OEone Corporation.
|
||||
* Portions created by OEone Corporation are Copyright (C) 2001
|
||||
* OEone Corporation. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s): Garth Smedley (garths@oeone.com) , Mike Potter (mikep@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 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.
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
|
||||
#oe-date-picker-overlay-box
|
||||
{
|
||||
background-color : #F8F8F8;
|
||||
font-size : 8pt;
|
||||
}
|
||||
|
||||
|
||||
#oe-date-picker-year-controls-box
|
||||
{
|
||||
border : 1px solid #2085c4;
|
||||
-moz-box-align : center;
|
||||
-moz-box-pack : center;
|
||||
|
||||
}
|
||||
|
||||
|
||||
#oe-date-picker-year-previous-button
|
||||
{
|
||||
list-style-image : url("chrome://penglobal/skin/datepicker/left_arrow.png");
|
||||
|
||||
}
|
||||
|
||||
|
||||
#oe-date-picker-year-next-button
|
||||
{
|
||||
list-style-image : url("chrome://penglobal/skin/datepicker/right_arrow.png");
|
||||
}
|
||||
|
||||
#oe-date-picker-year-next-button-box
|
||||
{
|
||||
-moz-box-pack : end;
|
||||
}
|
||||
|
||||
#oe-date-picker-year-grid
|
||||
{
|
||||
border-top : 1px solid #2085c4;
|
||||
border-left : 1px solid #2085c4;
|
||||
margin-top : 1px;
|
||||
margin-right : 1px;
|
||||
}
|
||||
|
||||
.oe-date-picker-year-month-box-class
|
||||
{
|
||||
-moz-box-align : center;
|
||||
border-right : 1px solid #2085c4;
|
||||
border-bottom : 1px solid #2085c4;
|
||||
}
|
||||
|
||||
.oe-date-picker-year-month-box-class[selected="true"]
|
||||
{
|
||||
background-color : #6699CC;
|
||||
}
|
||||
|
||||
|
||||
.oe-date-picker-month-day-number-class
|
||||
{
|
||||
|
||||
margin : 2px;
|
||||
}
|
||||
|
||||
|
||||
.oe-date-picker-month-day-number-class[selected="true"]
|
||||
{
|
||||
|
||||
background-color : #6699CC;
|
||||
}
|
||||
|
||||
#oe-date-picker-month-grid-box
|
||||
{
|
||||
background-image : url("chrome://penglobal/skin/datepicker/day_grid.png");
|
||||
background-repeat : no-repeat;
|
||||
}
|
||||
|
||||
#oe-date-picker-month-grid
|
||||
{
|
||||
margin-top : 14px;
|
||||
margin-right : 2px;
|
||||
margin-bottom : 2px;
|
||||
}
|
||||
|
||||
.oe-date-picker-month-day-box-class
|
||||
{
|
||||
text-align : right;
|
||||
min-width : 27px;
|
||||
min-height : 27px;
|
||||
}
|
||||
|
||||
.oe-date-picker-month-day-box-class[selected="true"]
|
||||
{
|
||||
background-color : #6699CC;
|
||||
}
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
/*
|
||||
/* ***** 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
|
||||
|
@ -11,14 +11,14 @@
|
|||
* for the specific language governing rights and limitations under the
|
||||
* License.
|
||||
*
|
||||
* The Original Code is OEone Corporation.
|
||||
* The Original Code is OEone Calendar Code, released October 31st, 2001.
|
||||
*
|
||||
* The Initial Developer of the Original Code is
|
||||
* OEone Corporation.
|
||||
* Portions created by OEone Corporation are Copyright (C) 2001
|
||||
* OEone Corporation. All Rights Reserved.
|
||||
* Portions created by the Initial Developer are Copyright (C) 2001
|
||||
* the Initial Developer. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s): Colin Phillips (colinp@oeone.com)
|
||||
* Contributor(s): Colin Phillips <colinp@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
|
||||
|
@ -32,8 +32,8 @@
|
|||
* 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 ***** */
|
||||
|
||||
|
||||
/*********************************************
|
||||
*
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/*
|
||||
/* ***** 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
|
||||
|
@ -11,14 +11,15 @@
|
|||
* for the specific language governing rights and limitations under the
|
||||
* License.
|
||||
*
|
||||
* The Original Code is OEone Corporation.
|
||||
* The Original Code is OEone Calendar Code, released October 31st, 2001.
|
||||
*
|
||||
* The Initial Developer of the Original Code is
|
||||
* OEone Corporation.
|
||||
* Portions created by OEone Corporation are Copyright (C) 2001
|
||||
* OEone Corporation. All Rights Reserved.
|
||||
* Portions created by the Initial Developer are Copyright (C) 2001
|
||||
* the Initial Developer. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s): Garth Smedley (garths@oeone.com) , Mike Potter (mikep@oeone.com)
|
||||
* Contributor(s): Garth Smedley <garths@oeone.com>
|
||||
* Mike Potter <mikep@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
|
||||
|
@ -32,8 +33,8 @@
|
|||
* 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 ***** */
|
||||
|
||||
|
||||
|
||||
/* Box that occupies whole window */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/*
|
||||
/* ***** 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
|
||||
|
@ -11,14 +11,15 @@
|
|||
* for the specific language governing rights and limitations under the
|
||||
* License.
|
||||
*
|
||||
* The Original Code is OEone Corporation.
|
||||
* The Original Code is OEone Calendar Code, released October 31st, 2001.
|
||||
*
|
||||
* The Initial Developer of the Original Code is
|
||||
* OEone Corporation.
|
||||
* Portions created by OEone Corporation are Copyright (C) 2001
|
||||
* OEone Corporation. All Rights Reserved.
|
||||
* Portions created by the Initial Developer are Copyright (C) 2001
|
||||
* the Initial Developer. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s): Garth Smedley (garths@oeone.com) , Mike Potter (mikep@oeone.com)
|
||||
* Contributor(s): Garth Smedley <garths@oeone.com>
|
||||
* Mike Potter <mikep@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
|
||||
|
@ -32,8 +33,8 @@
|
|||
* 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 ***** */
|
||||
|
||||
|
||||
/*--------------------------------------------------------------------
|
||||
* U N I F I N D E R
|
||||
|
|
Загрузка…
Ссылка в новой задаче