зеркало из https://github.com/mozilla/pjs.git
169 строки
7.8 KiB
XML
169 строки
7.8 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 calendar views.
|
|
-
|
|
- The Initial Developer of the Original Code is Oracle Corporation
|
|
- Portions created by the Initial Developer are Copyright (C) 2005
|
|
- the Initial Developer. All Rights Reserved.
|
|
-
|
|
- Contributor(s):
|
|
- Mike Shaver <shaver@mozilla.org>
|
|
- Stuart Parmenter <stuart.parmenter@oracle.com>
|
|
- Vladimir Vukicevic <vladimir@pobox.com>
|
|
- Joey Minta <jminta@gmail.com>
|
|
- Simon Paquet <bugzilla@babylonsounds.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.
|
|
-
|
|
- ***** END LICENSE BLOCK ***** -->
|
|
|
|
<!DOCTYPE overlay
|
|
[
|
|
<!ENTITY % dtd1 SYSTEM "chrome://lightning/locale/lightning.dtd" > %dtd1;
|
|
<!ENTITY % dtd2 SYSTEM "chrome://calendar/locale/menuOverlay.dtd" > %dtd2;
|
|
<!ENTITY % dtd3 SYSTEM "chrome://calendar/locale/calendar.dtd" > %dtd3;
|
|
]>
|
|
|
|
|
|
<?xml-stylesheet href="chrome://lightning/skin/lightning.css" type="text/css"?>
|
|
|
|
<?xml-stylesheet href="chrome://calendar/content/calendar-multiday-view.css" type="text/css"?>
|
|
<?xml-stylesheet href="chrome://calendar/content/calendar-month-view.css" type="text/css"?>
|
|
<?xml-stylesheet href="chrome://calendar/content/calendar-decorated-views.css" type="text/css"?>
|
|
<?xml-stylesheet href="chrome://calendar/content/datetimepickers/minimonth.css" type="text/css"?>
|
|
|
|
<overlay xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
|
|
|
<script type="application/x-javascript" src="chrome://calendar/content/calendarUtils.js"/>
|
|
<script type="application/x-javascript" src="chrome://calendar/content/calendarCreation.js"/>
|
|
<script type="application/x-javascript" src="chrome://calendar/content/calendar-item-editing.js"/>
|
|
<script type="application/x-javascript" src="chrome://calendar/content/publish.js"/>
|
|
<script type="application/x-javascript" src="chrome://lightning/content/lightning-utils.js"/>
|
|
<script type="application/x-javascript" src="chrome://lightning/content/calendar-management.js"/>
|
|
<script type="application/x-javascript" src="chrome://lightning/content/messenger-overlay-sidebar.js"/>
|
|
|
|
<tooltip id="itemTooltip"
|
|
noautohide="true"/>
|
|
|
|
<window id="messengerWindow">
|
|
<commandset id="calendar_commands">
|
|
<command id="publish_calendar" oncommand="ltnPublishCalendar()"/>
|
|
</commandset>
|
|
<popupset>
|
|
<popup id="calendartree-context-menu" onpopupshowing="return true;">
|
|
<menuitem label="&calendar.publish.label;" observes="publish_calendar"/>
|
|
</popup>
|
|
<popup id="calendar-view-context-menu" onpopupshowing="return true;">
|
|
<!-- These labels are set dynamically, based on the current view -->
|
|
<menuitem id="context_previous" label="" oncommand="moveView(-1)" disabled="true"
|
|
label-day="&calendar.prevday.button.tooltip;"
|
|
label-week="&calendar.prevweek.button.tooltip;"
|
|
label-month="&calendar.prevmonth.button.tooltip;"
|
|
accesskey="&goPreviousCmd.accesskey;"/>
|
|
<menuitem id="context_next" label="" oncommand="moveView(1)" disabled="true"
|
|
label-day="&calendar.nextday.button.tooltip;"
|
|
label-week="&calendar.nextweek.button.tooltip;"
|
|
label-month="&calendar.nextmonth.button.tooltip;"
|
|
accesskey="&goNextCmd.accesskey;"/>
|
|
<menuitem label="&calendar.context.newevent.label;" oncommand="ltnCreateEvent()"
|
|
accesskey="&lightning.context.newevent.accesskey;"/>
|
|
</popup>
|
|
<popup id="calendar-item-context-menu" onpopupshowing="return true;">
|
|
<menuitem label="&calendar.context.modifyitem.label;"
|
|
accesskey="&calendar.context.modifyitem.accesskey;"
|
|
oncommand="ltnEditSelectedItem()"/>
|
|
<menuitem label="&calendar.context.deleteitem.label;"
|
|
accesskey="&lightning.context.deleteitem.accesskey;"
|
|
oncommand="ltnDeleteSelectedItem()"/>
|
|
</popup>
|
|
</popupset>
|
|
</window>
|
|
|
|
<vbox id="folderPaneBox">
|
|
<splitter id="folderpaneCalendarSplitter" collapse="after" persist="state"/>
|
|
|
|
<vbox flex="1">
|
|
<hbox>
|
|
<spacer flex="1"/>
|
|
<minimonth id="ltnMinimonth" onchange="ltnMinimonthPick(this);" flex="2"/>
|
|
<spacer flex="1"/>
|
|
</hbox>
|
|
|
|
<tabbox flex="1">
|
|
<tabs>
|
|
<tab label="&lightning.sidebar.agenda.label;"/>
|
|
<tab label="&lightning.sidebar.todo.label;"/>
|
|
<tab label="&lightning.sidebar.calendars.label;"/>
|
|
</tabs>
|
|
<tabpanels flex="1">
|
|
<vbox id="agenda-tab-panel"/>
|
|
<vbox id="todo-tab-panel"/>
|
|
<vbox flex="1">
|
|
<hbox>
|
|
<button label="&lightning.sidebar.new.label;" oncommand="ltnNewCalendar();"/>
|
|
<button id="cal-sidebar-edit-calendar" label="&lightning.sidebar.edit.label;"
|
|
oncommand="ltnEditSelectedCalendar();"/>
|
|
<spacer orient="horizontal" flex="5"/>
|
|
<button id="cal-sidebar-delete-calendar" label="&lightning.sidebar.delete.label;"
|
|
oncommand="ltnDeleteSelectedCalendar();"/>
|
|
</hbox>
|
|
<tree id="calendarTree" hidecolumnpicker="true" seltype="single"
|
|
onfocus="selectedCalendarPane(event)" flex="1"
|
|
onselect="ltnSidebarCalendarSelected(this);"
|
|
ondblclick="ltnCalendarTreeView.onDoubleClick(event);"
|
|
context="calendartree-context-menu">
|
|
<treecols>
|
|
<treecol id="col-calendar-Checkbox" cycler="true" fixed="true" width="18" >
|
|
<image />
|
|
</treecol>
|
|
<treecol id="col-calendar-Calendar" label="&lightning.calendar.label;" flex="1"/>
|
|
</treecols>
|
|
<treechildren>
|
|
</treechildren>
|
|
</tree>
|
|
</vbox>
|
|
</tabpanels>
|
|
</tabbox>
|
|
</vbox>
|
|
</vbox>
|
|
|
|
<deck id="displayDeck">
|
|
<deck flex="1" id="calendar-view-box">
|
|
<calendar-decorated-day-view id="day-view" flex="1"
|
|
context="calendar-view-context-menu"
|
|
item-context="calendar-item-context-menu"/>
|
|
<calendar-decorated-week-view id="week-view" flex="1"
|
|
context="calendar-view-context-menu"
|
|
item-context="calendar-item-context-menu"/>
|
|
<calendar-decorated-month-view id="month-view" flex="1"
|
|
context="calendar-view-context-menu"
|
|
item-context="calendar-item-context-menu"/>
|
|
</deck>
|
|
</deck>
|
|
</overlay>
|
|
|
|
<!-- -*- Mode: xml; sgml-ident-step: 2; indent-tabs-mode: nil; -*- -->
|