mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-13 23:17:57 +00:00
225 lines
9.7 KiB
XML
225 lines
9.7 KiB
XML
<?xml version="1.0"?>
|
|
<!-- ***** BEGIN LICENSE BLOCK *****
|
|
- Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
|
-
|
|
- The contents of this file are subject to the Mozilla Public License Version
|
|
- 1.1 (the "License"); you may not use this file except in compliance with
|
|
- the License. You may obtain a copy of the License at
|
|
- http://www.mozilla.org/MPL/
|
|
-
|
|
- Software distributed under the License is distributed on an "AS IS" basis,
|
|
- WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
- for the specific language governing rights and limitations under the
|
|
- License.
|
|
-
|
|
- The Original Code is OEone Calendar Code, released October 31st, 2001.
|
|
-
|
|
- The Initial Developer of the Original Code is
|
|
- OEone Corporation.
|
|
- Portions created by the Initial Developer are Copyright (C) 2001
|
|
- the Initial Developer. All Rights Reserved.
|
|
-
|
|
- Contributor(s): Garth Smedley <garths@oeone.com>
|
|
- 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
|
|
- the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
|
- in which case the provisions of the GPL or the LGPL are applicable instead
|
|
- of those above. If you wish to allow use of your version of this file only
|
|
- under the terms of either the GPL or the LGPL, and not to allow others to
|
|
- use your version of this file under the terms of the MPL, indicate your
|
|
- decision by deleting the provisions above and replace them with the notice
|
|
- and other provisions required by the LGPL or the GPL. If you do not delete
|
|
- the provisions above, a recipient may use your version of this file under
|
|
- the terms of any one of the MPL, the GPL or the LGPL.
|
|
-
|
|
- ***** END LICENSE BLOCK ***** -->
|
|
|
|
<!-- Style sheets -->
|
|
|
|
<?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?>
|
|
<?xml-stylesheet href="chrome://calendar/skin/calendar.css" type="text/css"?>
|
|
<?xml-stylesheet href="chrome://communicator/skin/communicator.css" type="text/css"?>
|
|
<?xml-stylesheet href="chrome://calendar/content/unifinder/unifinderxul.css" type="text/css"?>
|
|
|
|
|
|
<!-- Overlays -->
|
|
<?xul-overlay href="chrome://global/content/globalOverlay.xul"?>
|
|
<?xul-overlay href="chrome://calendar/content/calendarMenuOverlay.xul"?>
|
|
<?xul-overlay href="chrome://calendar/content/datepicker/datepicker-overlay.xul"?>
|
|
|
|
<?xul-overlay href="chrome://calendar/content/unifinder/unifinderOverlay.xul"?>
|
|
<?xul-overlay href="chrome://calendar/content/calendarDayView.xul"?>
|
|
<?xul-overlay href="chrome://calendar/content/calendarWeekView.xul"?>
|
|
<?xul-overlay href="chrome://calendar/content/calendarMonthView.xul"?>
|
|
|
|
<!-- DTDs -->
|
|
|
|
<!-- DTD File with all strings specific to the calendar -->
|
|
<!DOCTYPE window
|
|
[
|
|
<!ENTITY % dtd1 SYSTEM "chrome://calendar/locale/global.dtd" > %dtd1;
|
|
<!ENTITY % dtd2 SYSTEM "chrome://calendar/locale/calendar.dtd" > %dtd2;
|
|
<!ENTITY % dtd3 SYSTEM "chrome://calendar/locale/unifinder.dtd" > %dtd3;
|
|
<!ENTITY % dtd4 SYSTEM "chrome://calendar/locale/calendarMenu.dtd" > %dtd4;
|
|
]>
|
|
|
|
|
|
<!-- The Window -->
|
|
|
|
<window
|
|
id="calendar-window"
|
|
title="&window.title;"
|
|
onload="calendarInit()"
|
|
onunload="calendarFinish()"
|
|
xmlns:html="http://www.w3.org/1999/xhtml"
|
|
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
|
persist="screenX screenY width height"
|
|
>
|
|
|
|
<!-- Javascript DTD To Variable -->
|
|
<script type="application/x-javascript">
|
|
var confirmDeleteEvent = "&calendar.confirm.deleteevent;";
|
|
</script>
|
|
|
|
<!-- Javascript includes -->
|
|
|
|
<!-- NEEDED FOR DATE UTILS -->
|
|
<script type="application/x-javascript" src="chrome://global/content/strres.js"/>
|
|
<script type="application/x-javascript" src="chrome://calendar/content/dateUtils.js"/>
|
|
<script type="application/x-javascript" src="chrome://calendar/content/unifinder/unifinder.js"/>
|
|
|
|
<script type="application/x-javascript" src="chrome://calendar/content/calendar.js"/>
|
|
<script type="application/x-javascript" src="chrome://calendar/content/calendarEvent.js"/>
|
|
|
|
|
|
<!-- Pop up menus -->
|
|
|
|
<popupset id="aTooltipSet"/>
|
|
|
|
<popup id="savetip"/>
|
|
|
|
<popupset>
|
|
<popup id="debug-menu">
|
|
<menuitem label="Reload" oncommand="window.location = 'chrome://calendar/content/calendar.xul';"/>
|
|
</popup>
|
|
|
|
</popupset>
|
|
|
|
<popupset>
|
|
<popup id="oe-date-picker-popup" position="after_start" oncommand="gCalendarWindow.goToDay( date )" value=""/>
|
|
|
|
<popup id="unifinder-options-menu" position="end_before">
|
|
<!--
|
|
<menuitem id="unifinder-newcategory-menu" label="&calendar.menu.options.newcategory;" oncommand="unifinderNewCategoryCommand()" />
|
|
-->
|
|
<menuitem id="unifinder-modify-menu" label="&calendar.menu.options.modify;" oncommand="unifinderModifyCommand()" />
|
|
<menuitem id="unifinder-remove-menu" label="&calendar.menu.options.remove;" oncommand="unifinderRemoveCommand()" />
|
|
</popup>
|
|
</popupset>
|
|
|
|
|
|
<toolbox id="calendar-toolbox" class="toolbox-top" deferattached="true">
|
|
<!-- Menu -->
|
|
<menubar id="main-menubar" persist="collapsed"
|
|
grippytooltip="aTooltip" grippytooltiptext="&menuBar.tooltip;"/>
|
|
|
|
<toolbar class="toolbar-primary chromeclass-toolbar" id="calendar-bar" persist="collapsed"
|
|
grippytooltip="aTooltip" grippytooltiptext="&navigationToolbar.tooltip;"
|
|
tbalign="stretch">
|
|
|
|
<toolbarseparator class="toolbarseparator-primary"/>
|
|
<toolbarbutton class="toolbarbutton-1" id="calendar-new-event-button" label="&calendar.newevent.button.label;" tooltip="aTooltip" tooltiptext="&calendar.newevent.button.tooltip;" oncommand="newEventCommand()"/>
|
|
<toolbarseparator class="toolbarseparator-primary"/>
|
|
<toolbarbutton class="toolbarbutton-1" id="calendar-choose-date-button" label="&calendar.choosedate.button.label;" tooltip="aTooltip" tooltiptext="&calendar.choosedate.button.tooltip;" onmousedown="prepareChooseDate()" popup="oe-date-picker-popup"/>
|
|
<toolbarbutton class="toolbarbutton-1" id="calendar-go-to-today-button" label="&calendar.gototoday.button.label;" tooltip="aTooltip" tooltiptext="&calendar.gototoday.button.tooltip;" oncommand="gCalendarWindow.goToToday()"/>
|
|
<toolbarseparator class="toolbarseparator-primary"/>
|
|
<toolbarbutton class="toolbarbutton-1" id="calendar-day-view-button" label="&calendar.dayview.button.label;" tooltip="aTooltip" tooltiptext="&calendar.dayview.button.tooltip;" oncommand="gCalendarWindow.switchToDayView()"/>
|
|
<toolbarbutton class="toolbarbutton-1" id="calendar-week-view-button" label="&calendar.weekview.button.label;" tooltip="aTooltip" tooltiptext="&calendar.weekview.button.tooltip;" oncommand="gCalendarWindow.switchToWeekView()"/>
|
|
<toolbarbutton class="toolbarbutton-1" id="calendar-month-view-button" label="&calendar.monthview.button.label;" tooltip="aTooltip" tooltiptext="&calendar.monthview.button.tooltip;" oncommand="gCalendarWindow.switchToMonthView()"/>
|
|
<spacer flex="1"/>
|
|
<hbox id="throbber-box" autostretch="never">
|
|
<button id="navigator-throbber" oncommand='//goClickThrobber("calendar.throbber.url")' tooltip="aTooltip" tooltiptext="&throbber.tooltip;">
|
|
<!--
|
|
<observes element="broadcaster_throbber" attribute="busy"/>
|
|
-->
|
|
</button>
|
|
</hbox>
|
|
</toolbar>
|
|
</toolbox>
|
|
|
|
|
|
<!-- V I S I B L E C O N T E N T -->
|
|
|
|
<vbox id="calendar-top-box" flex="1" context="debug-menu">
|
|
|
|
<!-- Calendar Controls-->
|
|
|
|
<hbox id="calendar-content-box" flex="1">
|
|
|
|
|
|
<!-- UNIFINDER OVERLAY -->
|
|
|
|
<unifinder id="calendar-unifinder-overlay" menu-popup="unifinder-options-menu" flex="1"/>
|
|
|
|
<splitter id="unifinder-splitter" collapse="before" persist="state hidden collapsed"
|
|
class="chromeclass-extrachrome sidebar-splitter"
|
|
orient="horizontal">
|
|
<grippy class="sidebar-splitter-grippy"/>
|
|
</splitter>
|
|
|
|
|
|
|
|
<popupset>
|
|
<popup id="savetip" style="background-color: #FFFFC0;">
|
|
<label id="popuptooltiptext" value=" "/>
|
|
</popup>
|
|
</popupset>
|
|
|
|
|
|
<spacer flex="1"/>
|
|
|
|
<!-- Begin Day/Month/Week Deck -->
|
|
<deck id="calendar-deck" selectedIndex="0" flex="1">
|
|
|
|
<!-- Calendar Month View -->
|
|
|
|
<vbox id="month-view-box" flex="1"/>
|
|
|
|
<!-- End: Calendar Month View -->
|
|
|
|
|
|
<!-- Calendar Week View -->
|
|
|
|
<vbox id="week-view-box" flex="1"/>
|
|
|
|
<!-- End: Calendar Week View -->
|
|
|
|
|
|
<!-- Calendar Day View -->
|
|
|
|
<vbox id="day-view-box" flex="1"/>
|
|
|
|
<!-- End: Calendar Day View -->
|
|
|
|
</deck> <!-- End: Day/Month/Week Deck -->
|
|
|
|
<spacer flex="1"/>
|
|
|
|
</hbox> <!-- End: box with unifinder on left, calendar on right -->
|
|
</vbox>
|
|
|
|
<statusbar id="status-bar" class="chromeclass-status">
|
|
ondragover="nsDragAndDrop.dragOver(event, contentAreaDNDObserver);"
|
|
ondragdrop="nsDragAndDrop.drop(event, contentAreaDNDObserver);">
|
|
<hbox id="component-bar"/>
|
|
<statusbarpanel id="statusbar-display" label="&statusText.label;" crop="right" flex="1"/>
|
|
<progressmeter class="progressmeter-statusbar" statusbar="true" id="statusbar-icon" mode="normal" value="0"/>
|
|
<statusbarpanel class="statusbarpanel-icononly" id="offline-status"/>
|
|
</statusbar>
|
|
|
|
</window>
|
|
|