gecko-dev/calendar/resources/content/calendar.xul

313 lines
16 KiB
Plaintext
Raw Normal View History

<?xml version="1.0"?>
2002-03-14 19:54:03 +00:00
<!-- ***** 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>
- Chris Charabaruk <coldacid@meldstar.com>
- Karl Guertin <grayrest@grayrest.com>
2002-04-02 19:51:22 +00:00
- Dan Parent <danp@oeone.com>
2002-03-14 19:54:03 +00:00
-
- 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"?>
<!-- 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/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;
2002-04-03 18:33:55 +00:00
<!ENTITY % calendarMenuOverlayDTD SYSTEM "chrome://calendar/locale/calendarMenuOverlay.dtd" > %calendarMenuOverlayDTD;
2002-03-14 19:54:03 +00:00
]>
<!-- The Window -->
<window
id="calendar-window"
title="&window.title;"
onload="calendarInit()"
onunload="calendarFinish()"
2002-03-22 18:11:07 +00:00
windowtype="calendarMainWindow"
2002-03-14 19:54:03 +00:00
xmlns:html="http://www.w3.org/1999/xhtml"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
height="700px"
width="830px"
persist="screenX screenY width height sizemode">
2002-03-14 19:54:03 +00:00
<commandset>
<command id="new_command" oncommand="newEventCommand()"/>
<command id="new_todo_command" oncommand="newToDoCommand()"/>
<command id="delete_command" oncommand="unifinderDeleteCommand( true )" disabled="true"/>
<command id="modify_command" oncommand="unifinderEditCommand()" disabled="true"/>
<command id="send_event_command" oncommand="sendEvent()" disabled="true"/>
<command id="cut_command" oncommand="cutToClipboard()" disabled="true"/>
<command id="copy_command" oncommand="copyToClipboard()" disabled="true"/>
<command id="paste_command" oncommand="pasteFromClipboard()"/>
<command id="select_all_command" oncommand="selectAllEvents()"/>
<command id="next_command" oncommand="gCalendarWindow.currentView.goToNext()"/>
<command id="previous_command" oncommand="gCalendarWindow.currentView.goToPrevious()"/>
<command id="go_today_command" oncommand="gCalendarWindow.goToToday()"/>
<command id="day_view_command" oncommand="gCalendarWindow.switchToDayView()" disabled="true"/>
<command id="week_view_command" oncommand="gCalendarWindow.switchToWeekView()" disabled="true"/>
<command id="month_view_command" oncommand="gCalendarWindow.switchToMonthView()" disabled="true"/>
<command id="import_command" oncommand="loadEventsFromFile()"/>
<command id="export_command" oncommand="saveEventsToFile()"/>
</commandset>
<keyset>
<key id="delete_key" keycode="VK_DELETE" observes="delete_command"/>
<key id="new_event_key" key="N" modifiers="control" observes="new_command"/>
<key id="modify_event_key" key="E" modifiers="control" observes="modify_command"/>
<key id="import_key" key="I" modifiers="control" observes="import_command"/>
<key id="export_key" key="O" modifiers="control" observes="export_command"/>
<key id="key_selectAll" key="A" modifiers="control" observes="select_all_command"/>
<key id="key_cut" key="X" modifiers="control" observes="cut_command"/>
2002-06-06 13:13:35 +00:00
<key id="key_copy" key="C" modifiers="control" observes="copy_command"/>
<key id="key_paste" key="V" modifiers="control" observes="paste_command"/>
<key id="view_day_key" keycode="VK_F1" observes="day_view_command"/>
<key id="view_week_key" keycode="VK_F2" observes="week_view_command"/>
<key id="view_month_key" keycode="VK_F3" observes="month_view_command"/>
<key id="go_forward_key" keycode="VK_PAGE_UP" observes="previous_command"/>
<key id="go_backward_key" keycode="VK_PAGE_DOWN" observes="next_command"/>
<key id="go_to_today_key" key="T" modifiers="control" observes="go_today_command"/>
</keyset>
<keyset id="tasksKeys"/>
2002-03-14 19:54:03 +00:00
<!-- Javascript DTD To Variable -->
<script type="application/x-javascript">
var confirmDeleteEvent = "&calendar.confirm.deleteevent;";
var confirmDeleteUntitledEvent = "&calendar.confirm.deleteuntitledevent;";
</script>
<!-- Javascript includes -->
<!-- NEEDED FOR CLIPBOARD SUPPORT -->
<script type="application/x-javascript" src="chrome://calendar/content/calendarClipboard.js"/>
<!-- NEEDED FOR IMPORT / EXPORT SUPPORT -->
<script type="application/x-javascript" src="chrome://calendar/content/calendarImportExport.js"/>
2002-04-02 19:51:22 +00:00
<!-- NEEDED FOR MAIL SUPPORT -->
<script type="application/x-javascript" src="chrome://calendar/content/calendarMail.js"/>
2002-03-14 19:54:03 +00:00
<!-- 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/calendar.js"/>
<script type="application/x-javascript" src="chrome://calendar/content/calendarEvent.js"/>
<script type="application/x-javascript" src="chrome://calendar/content/calendarSelection.js"/>
<script type="application/x-javascript" src="chrome://calendar/content/calendarWindow.js"/>
<script type="application/x-javascript" src="chrome://calendar/content/unifinder.js"/>
<script type="application/x-javascript" src="chrome://calendar/content/unifinderToDo.js"/>
<script type="application/x-javascript" src="chrome://calendar/content/pref/rootCalendarPref.js"/>
2002-03-14 19:54:03 +00:00
<!-- Pop up menus -->
<tooltip id="savetip"/>
2002-03-14 19:54:03 +00:00
<popup id="context-menu">
<menuitem label="&calendar.context.newevent.label;" accesskey="&calendar.context.newevent.accesskey;" observes="new_command"/>
<menuitem label="&calendar.context.modifyevent.label;" accesskey="&calendar.context.modifyevent.accesskey;" observes="modify_command" />
<menuitem label="&calendar.context.deleteevent.label;" accesskey="&calendar.context.deleteevent.accesskey;" observes="delete_command"/>
<menuseparator/>
<menuitem label="&calendar.context.cutevent.label;" accesskey="&calendar.context.cutevent.accesskey;" observes="copy_command"/>
<menuitem label="&calendar.context.copyevent.label;" accesskey="&calendar.context.copyevent.accesskey;" observes="copy_command"/>
<menuitem label="&calendar.context.pasteevent.label;" accesskey="&calendar.context.pasteevent.accesskey;" observes="paste_command"/>
2002-03-28 14:31:09 +00:00
<menuseparator/>
<menuitem label="&calendar.context.selectall.label;" accesskey="&calendar.context.selectall.accesskey;" observes="select_all_command"/>
2002-03-28 14:31:09 +00:00
<menuseparator/>
<menuitem label="&calendar.context.gototoday.label;" accesskey="&calendar.context.gototoday.accesskey;" observes="go_today_command"/>
<menuseparator/>
<menuitem label="&calendar.context.dayview.label;" accesskey="&calendar.context.dayview.accesskey;" observes="day_view_command"/>
<menuitem label="&calendar.context.weekview.label;" accesskey="&calendar.context.weekview.accesskey;" observes="week_view_command"/>
<menuitem label="&calendar.context.monthview.label;" accesskey="&calendar.context.monthview.accesskey;" observes="month_view_command"/>
2002-03-28 14:31:09 +00:00
<menuseparator/>
<menuitem label="&calendar.context.emailevent.label;" accesskey="&calendar.context.emailevent.accesskey;" observes="send_event_command"/>
2002-04-03 18:33:55 +00:00
<menuseparator/>
<menuitem label="&calendar.context.toggleBackground.label;" accesskey="&calendar.context.toggleBackground.accesskey;" oncommand="MonthView.toggleBackground()"/>
<menuitem label="&calendar.context.reload.label;" accesskey="&calendar.context.reload.accesskey;" oncommand="window.location = 'chrome://calendar/content/calendar.xul';"/>
</popup>
2002-03-14 19:54:03 +00:00
<popup id="oe-date-picker-popup" position="after_start" oncommand="gCalendarWindow.goToDay( date )" value=""/>
2002-03-14 19:54:03 +00:00
2002-01-10 04:19:19 +00:00
<commandset id="commands"/>
2002-03-14 19:54:03 +00:00
<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">
<toolbarbutton class="toolbarbutton-1" id="calendar-new-event-button" label="&calendar.newevent.button.label;" tooltiptext="&calendar.newevent.button.tooltip;" observes="new_command"/>
<toolbarbutton class="toolbarbutton-1" id="calendar-edit-event-button" label="&calendar.edit.button.label;" tooltiptext="&calendar.edit.button.tooltip;" observes="modify_command"/>
<toolbarbutton class="toolbarbutton-1" id="calendar-delete-event-button" label="&calendar.delete.button.label;" tooltiptext="&calendar.delete.button.tooltip;" observes="delete_command"/>
<toolbarseparator class="toolbarseparator-primary"/>
2002-04-08 20:29:01 +00:00
<toolbarbutton class="toolbarbutton-1" id="calendar-choose-date-button" label="&calendar.choosedate.button.label;" 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;" tooltiptext="&calendar.gototoday.button.tooltip;" observes="go_today_command"/>
<toolbarseparator class="toolbarseparator-primary"/>
<toolbarbutton class="toolbarbutton-1" id="calendar-day-view-button" label="&calendar.dayview.button.label;" tooltiptext="&calendar.dayview.button.tooltip;" observes="day_view_command"/>
<toolbarbutton class="toolbarbutton-1" id="calendar-week-view-button" label="&calendar.weekview.button.label;" tooltiptext="&calendar.weekview.button.tooltip;" observes="week_view_command"/>
<toolbarbutton class="toolbarbutton-1" id="calendar-month-view-button" label="&calendar.monthview.button.label;" tooltiptext="&calendar.monthview.button.tooltip;" observes="month_view_command"/>
<spacer flex="1"/>
<hbox id="throbber-box" align="center">
<button id="navigator-throbber" oncommand="goClickThrobber('browser.throbber.url')"
tooltiptext="&throbber.tooltip;"/>
</hbox>
</toolbar>
</toolbox>
2002-03-14 19:54:03 +00:00
<tooltip id="savetip"/>
2002-03-14 19:54:03 +00:00
<!-- V I S I B L E C O N T E N T -->
2002-04-03 18:33:55 +00:00
<vbox id="calendar-top-box" flex="1" context="context-menu">
<!-- Calendar Controls-->
<hbox id="calendar-content-box" flex="1">
2002-03-14 19:54:03 +00:00
<vbox id="left-hand-content" flex="1">
2002-04-08 20:29:01 +00:00
<box align="center">
<label control="unifinder-search-field" value="&calendar.search.options.searchfor;"/>
<textbox id="unifinder-search-field" onkeypress="unifinderSearchKeyPress( this, event )" flex="1"/>
2002-04-08 15:32:23 +00:00
</box>
<box align="center">
<checkbox label="&calendar.unifinder.withalarms.label;" oncommand="unifinderShowEventsWithAlarmsOnly( event )" collapsed="true"/>
2002-05-21 17:13:16 +00:00
<checkbox label="&calendar.unifinder.todayandfuture.label;" id="unifinder-future-events" oncommand="unifinderShowFutureEventsOnly( event )" persist="checked"/>
</box>
<listbox id="unifinder-search-results-listbox" seltype="multiple" onselect="unifinderClickEvent( this )"
class="unifinder-tree-class" flex="1" ondragover="return( false );"/>
<splitter collapse="after" persist="state hidden collapsed left"
class="chromeclass-extrachrome" orient="vertical">
<grippy/>
</splitter>
<vbox flex="1">
<box align="left">
<label style="font-weight: bold" value="&calendar.unifinder.todoitems.label;"/>
</box>
<box align="center">
<checkbox id="only-completed-checkbox" label="&calendar.unifinder.hidecompletedtodos.label;" oncommand="toDoUnifinderRefesh( event )"/>
</box>
<listbox flex="1" id="unifinder-todo-listbox" seltype="single">
<listhead>
<listheader label="&calendar.unifinder.listbox.done.label;"/>
<listheader label="&calendar.unifinder.listbox.title.label;"/>
<listheader label="&calendar.unifinder.listbox.duedate.label;"/>
</listhead>
<listcols>
<listcol flex="1"/>
<listcol flex="5"/>
<listcol flex="3"/>
</listcols>
<listitem allowevents="true" collapsed="true" name="sample-todo-listitem" ondblclick="unifinderDoubleClickToDo( event )">
<listcell name="checkbox-listcell">
<checkbox name="firstcheckbox" oncommand="checkboxClick( event )"/>
</listcell>
<listcell name="title-listcell" label=""/>
<listcell name="due-date-listcell" label=""/>
</listitem>
</listbox>
</vbox>
2002-04-08 15:32:23 +00:00
</vbox>
<splitter id="calendar-splitter" collapse="before" persist="state hidden collapsed"
class="chromeclass-extrachrome sidebar-splitter" orient="horizontal">
2002-04-08 15:32:23 +00:00
<grippy class="sidebar-splitter-grippy"/>
</splitter>
2002-04-08 15:32:23 +00:00
<!-- Begin Day/Month/Week Deck -->
<deck id="calendar-deck" persist="selectedIndex" flex="1">
<!-- Calendar Month View -->
<vbox id="month-view-box"/>
<!-- End: Calendar Month View -->
<!-- Calendar Week View -->
<vbox id="week-view-box"/>
<!-- End: Calendar Week View -->
<!-- Calendar Day View -->
<vbox id="day-view-box"/>
<!-- End: Calendar Day View -->
</deck> <!-- End: Day/Month/Week Deck -->
2002-03-14 19:54:03 +00:00
</hbox> <!-- End: box with unifinder on left, calendar on right -->
</vbox>
<statusbar id="status-bar" class="chromeclass-status">
<statusbarpanel id="component-bar"/>
<statusbarpanel id="statusText" flex="1" value="&statusText.label;"/>
<statusbarpanel id="offline-status" class="statusbarpanel-iconic"/>
</statusbar>
2002-03-14 19:54:03 +00:00
</window>