calendar/base/content/calendar-calendars-list.xul
author Tom Prince <mozilla@hocat.ca>
Sat, 18 Nov 2017 00:17:10 -0700
changeset 30926 fed54644fe13acd8020876133330168c44abefd4
parent 24020 9df83b8b00ed0ac0fafa430041254f9eb8282a07
child 33813 e854574aae9f63ce8a6138029dc511ba1fbe21c0
permissions -rw-r--r--
HACK: Point to mozilla-cc-taskcluster repo.

<?xml version="1.0" encoding="UTF-8"?>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
   - License, v. 2.0. If a copy of the MPL was not distributed with this
   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

<?xml-stylesheet href="chrome://calendar/skin/calendar-management.css" type="text/css"?>

<!DOCTYPE overlay SYSTEM "chrome://calendar/locale/calendar.dtd">

<overlay id="calendar-list-overlay"
         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

  <popupset id="calendar-popupset">
    <menupopup id="list-calendars-context-menu"
               onpopupshowing="return calendarListSetupContextMenu(event);">
      <menuitem id="list-calendars-context-togglevisible"
                accesskeyshow="&calendar.context.showcalendar.accesskey;"
                accesskeyhide="&calendar.context.hidecalendar.accesskey;"
                oncommand="toggleCalendarVisible(document.getElementById('list-calendars-context-menu').contextCalendar);"/>
      <menuitem id="list-calendars-context-showonly"
                accesskey="&calendar.context.showonly.accesskey;"
                oncommand="showOnlyCalendar(document.getElementById('list-calendars-context-menu').contextCalendar);"/>
      <menuitem id="list-calendars-context-showall"
                label="&calendar.context.showall.label;"
                accesskey="&calendar.context.showall.accesskey;"
                oncommand="showAllCalendars();"/>
      <menuseparator id="list-calendars-context-showops-menuseparator"/>
      <menuitem id="list-calendars-context-new"
                label="&calendar.context.newserver.label;"
                accesskey="&calendar.context.newserver.accesskey;"
                observes="calendar_new_calendar_command"/>
      <menuitem id="list-calendars-context-find"
                label="&calendar.context.findcalendar.label;"
                accesskey="&calendar.context.findcalendar.accesskey;"
                oncommand="openCalendarSubscriptionsDialog();"/>
      <menuitem id="list-calendars-context-delete"
                labeldelete="&calendar.context.deleteserver2.label;"
                labelremove="&calendar.context.removeserver.label;"
                labelunsubscribe="&calendar.context.unsubscribeserver.label;"
                accesskeydelete="&calendar.context.deleteserver2.accesskey;"
                accesskeyremove="&calendar.context.removeserver.accesskey;"
                accesskeyunsubscribe="&calendar.context.unsubscribeserver.accesskey;"
                observes="calendar_delete_calendar_command"/>
      <menuseparator id="list-calendars-context-itemops-menuseparator"/>
      <menuitem id="list-calendars-context-export"
                label="&calendar.context.export.label;"
                accesskey="&calendar.context.export.accesskey;"
                oncommand="exportEntireCalendar(document.getElementById('list-calendars-context-menu').contextCalendar);"/>
      <menuitem id="list-calendars-context-publish"
                label="&calendar.context.publish.label;"
                accesskey="&calendar.context.publish.accesskey;"
                observes="calendar_publish_selected_calendar_command"/>
      <menuseparator id="list-calendars-context-export-menuseparator"/>
      <menuitem id="list-calendars-context-reload"
                label="&calendar.context.synccalendars.label;"
                accesskey="&calendar.context.synccalendars.accesskey;"
                observes="calendar_reload_remote_calendars"/>
      <menuseparator id="list-calendars-context-reload-menuseparator"/>
      <menuitem id="list-calendars-context-edit"
                label="&calendar.context.properties.label;"
                accesskey="&calendar.context.properties.accesskey;"
                observes="calendar_edit_calendar_command"/>
    </menupopup>
    <tooltip id="calendar-list-tooltip"
             onpopupshowing="return calendarListTooltipShowing(event)"/>
  </popupset>

  <calendar-list-tree id="calendar-list-tree-widget"
                      type="full"
                      writable="true"
                      allowdrag="true"
                      onSortOrderChanged="updateSortOrderPref(event)"
                      onselect="document.commandDispatcher.updateCommands('calendar_commands')"
                      childtooltip="calendar-list-tooltip"
                      childcontext="list-calendars-context-menu"/>
</overlay>