gecko-dev/calendar/lightning/content/messenger-overlay-sidebar.xul

235 строки
11 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>
- Stefan Sitter <ssitter@googlemail.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;
]>
<!-- This is used so that we can reuse the Thunderbird Notification bar style
- for our iMIP warning -->
<?xml-stylesheet href="chrome://messenger/skin/primaryToolbar.css" type="text/css"?>
<?xml-stylesheet href="chrome://messenger/skin/messageHeader.css" type="text/css"?>
<?xml-stylesheet href="chrome://lightning/skin/lightning.css" type="text/css"?>
<?xml-stylesheet href="chrome://calendar/content/calendar-view-bindings.css" type="text/css"?>
<?xml-stylesheet href="chrome://calendar/skin/calendar-views.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"?>
<?xml-stylesheet href="chrome://calendar/content/datetimepickers/datetimepickers.css" type="text/css"?>
<overlay id="ltnSidebarOverlay"
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/mouseoverPreviews.js"/>
<script type="application/x-javascript" src="chrome://calendar/content/calendar-item-editing.js"/>
<script type="application/x-javascript" src="chrome://calendar/content/import-export.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"/>
<script type="application/x-javascript" src="chrome://calendar/content/calendar-views.js"/>
<script type="application/x-javascript" src="chrome://lightning/content/imip-bar.js"/>
<window id="messengerWindow">
<commandset id="calendar_commands">
<command id="publish_calendar" oncommand="ltnPublishCalendar()"/>
<command id="import_command" oncommand="loadEventsFromFile()"/>
<command id="export_command" oncommand="exportEntireCalendar()"/>
<command id="print_command" oncommand="calPrint()"/>
<command id="reload_remote_calendars" oncommand="getCompositeCalendar().refresh();"/>
</commandset>
<popupset>
<!-- Popup for Calendars tab -->
<popup id="calendartree-context-menu" onpopupshowing="return true;">
<menuitem id="calpopup-new"
label="&calendar.context.newserver.label;"
accesskey="&calendar.context.newserver.accesskey;"
oncommand="ltnNewCalendar();"/>
<menuitem id="calpopup-delete"
label="&calendar.context.deleteserver.label;"
accesskey="&calendar.context.deleteserver.accesskey;"
oncommand="ltnDeleteSelectedCalendar();"/>
<menuseparator/>
<menuitem id="calpopup-export"
label="&calendar.context.export.label;"
accesskey="&calendar.context.export.accesskey;"
oncommand="exportEntireCalendar(ltnSelectedCalendar())"/>
<menuitem id="calpopup-publish"
label="&calendar.context.publish.label;"
accesskey="&calendar.context.publish.accesskey;"
observes="publish_calendar"/>
<menuseparator/>
<menuitem id="calpopup-reload"
label="&calendar.context.reloadserver.label;"
accesskey="&calendar.context.reloadserver.accesskey;"
observes="reload_remote_calendars"/>
<menuseparator/>
<menuitem id="calpopup-edit"
label="&calendar.context.properties.label;"
accesskey="&calendar.context.properties.accesskey;"
oncommand="ltnEditSelectedCalendar();"/>
</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>
<tooltip id="itemTooltip" noautohide="true"/>
</window>
<vbox id="folderPaneBox" persist="collapsed width height">
<splitter id="folderpaneCalendarSplitter" collapse="after" persist="state"/>
<vbox id="ltnSidebar" height="350" persist="height">
<hbox id="ltnMinimonthBox">
<spacer flex="1"/>
<minimonth id="ltnMinimonth" onchange="ltnMinimonthPick(this);" flex="2"/>
<spacer flex="1"/>
</hbox>
<hbox id="ltnDateTextPickerBox">
<spacer flex="1"/>
<datepicker id="ltnDateTextPicker" oncommand="ltnGoToDate()"/>
<spacer flex="1"/>
</hbox>
<tabbox id="ltnTabpanelBox" 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 id="calendar-tab-panel" flex="1">
<hbox id="ltnCalendarButtonsBox">
<button id="cal-sidebar-new-calendar" 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>
<vbox id="messagepanebox">
<hbox id="imip-bar" collapsed="true" insertbefore="msgHeaderView">
<hbox id="imipNotificationBar"
align="center"
flex="1">
<image id="imipNotificationImage"/>
<description id="imip-description"
class="msgNotificationBarText"
flex="1">
&lightning.imipbar.description;
</description>
<spacer flex="1"/>
<button id="imip-btn1" align="right"/>
</hbox>
</hbox>
</vbox>
</overlay>
<!-- -*- Mode: xml; sgml-ident-step: 2; indent-tabs-mode: nil; -*- -->