Brought sunbird's calendar.xul up to date with main calendar's calendar.xul

This commit is contained in:
mostafah%oeone.com 2004-01-13 23:27:31 +00:00
Родитель d42f0893fe
Коммит 4f5fe5fe04
1 изменённых файлов: 234 добавлений и 68 удалений

Просмотреть файл

@ -84,7 +84,9 @@
persist="screenX screenY width height sizemode"
height="550"
width="710">
<broadcasterset id="calendar_broadcasters">
<broadcaster id="is_editable" hidden="false"/>
</broadcasterset>
<commandset id="calendar_commands">
<command id="new_command" oncommand="newEventCommand( event )"/>
<command id="delete_command" oncommand="deleteEventCommand( )" disabled="true" disabledwhennoeventsselected="true"/>
@ -214,37 +216,100 @@
<!--<script type="application/x-javascript" src="chrome://calendar/content/email.js"/>-->
<!-- NEEDED ALARMS ERIC -->
<script type="application/x-javascript" src="chrome://calendar/content/calendarOverlay.js"/>
<!-- NEEDED FOR APPLICATION SUPPORT -->
<script type="application/x-javascript" src="chrome://calendar/content/applicationUtil.js"/>
<script type="application/x-javascript" src="chrome://global/content/globalOverlay.js"/>
<!-- GENERAL CONTEXT MENU -->
<popup id="context-menu" onpopuphidden="gNewDateVariable = null;">
<menuitem label="&calendar.context.newevent.label;" accesskey="&calendar.context.newevent.accesskey;" observes="new_command"/>
<menuitem label="&calendar.context.newtodo.label;" accesskey="&calendar.context.newtodo.accesskey;" observes="new_todo_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"/>
<popup id="context-menu"
onpopuphidden="gNewDateVariable = null;"
onpopupshowing="dump(document.popupNode.getAttribute('id'));
document.getElementById('is_editable').hidden = (document.popupNode.getAttribute('id') == 'lefthandcalendar')"
>
<menuitem label="&calendar.context.newevent.label;"
accesskey="&calendar.context.newevent.accesskey;"
observes="new_command"/>
<menuitem label="&calendar.context.newtodo.label;"
accesskey="&calendar.context.newtodo.accesskey;"
observes="new_todo_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="cut_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"/>
<menuitem label="&calendar.context.cutevent.label;"
accesskey="&calendar.context.cutevent.accesskey;"
observes="cut_command">
<observes element="is_editable" attribute="hidden"/>
</menuitem>
<menuitem label="&calendar.context.copyevent.label;"
accesskey="&calendar.context.copyevent.accesskey;"
observes="copy_command">
<observes element="is_editable" attribute="hidden"/>
</menuitem>
<menuitem label="&calendar.context.pasteevent.label;"
accesskey="&calendar.context.pasteevent.accesskey;"
observes="paste_command">
<observes element="is_editable" attribute="hidden"/>
</menuitem>
<menuseparator>
<observes element="is_editable" attribute="hidden"/>
</menuseparator>
<menuitem label="&calendar.context.selectall.label;"
accesskey="&calendar.context.selectall.accesskey;"
observes="select_all_command">
<observes element="is_editable" attribute="hidden"/>
</menuitem>
<menuseparator>
<observes element="is_editable" attribute="hidden"/>
</menuseparator>
<menuitem label="&calendar.context.gototoday.label;"
accesskey="&calendar.context.gototoday.accesskey;"
observes="go_today_command"/>
<menuseparator/>
<menuitem label="&calendar.context.selectall.label;" accesskey="&calendar.context.selectall.accesskey;" observes="select_all_command"/>
<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"/>
<menuitem label="&calendar.context.multiweekview.label;" accesskey="&calendar.context.multiweekview.accesskey;" observes="multiweek_view_command"/>
<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"/>
<menuitem label="&calendar.context.multiweekview.label;"
accesskey="&calendar.context.multiweekview.accesskey;"
observes="multiweek_view_command"/>
<menuseparator/>
<menuitem id="only-workday-checkbox-2" type="checkbox" label="&calendar.onlyworkday.checkbox.label;" oncommand="changeOnlyWorkdayCheckbox(2);" persist="checked" disabled="true"/>
<menuitem id="display-todo-inview-checkbox-2" type="checkbox" label="&calendar.displaytodos.checkbox.label;" oncommand="changeDisplayToDoInViewCheckbox(2);" persist="checked" disabled="true"/>
<menuitem id="only-workday-checkbox-2"
type="checkbox"
label="&calendar.onlyworkday.checkbox.label;"
accesskey="&calendar.onlyworkday.checkbox.accesskey;"
oncommand="changeOnlyWorkdayCheckbox(2);"
persist="checked"
disabled="true"/>
<menuitem id="display-todo-inview-checkbox-2"
type="checkbox"
label="&calendar.displaytodos.checkbox.label;"
accesskey="&calendar.displaytodos.checkbox.accesskey;"
oncommand="changeDisplayToDoInViewCheckbox(2);"
persist="checked"
disabled="true"/>
<!--
<menuitem label="test" observes="change_display_todo_in_view" checked="true"/>
-->
<menuseparator/>
<menuitem label="&calendar.context.emailevent.label;" accesskey="&calendar.context.emailevent.accesskey;" observes="send_event_command"/>
<menuitem label="&calendar.context.emailevent.label;"
accesskey="&calendar.context.emailevent.accesskey;"
observes="send_event_command"/>
<!--
<menuseparator/>
<menuitem label="&calendar.context.reload.label;" accesskey="&calendar.context.reload.accesskey;" oncommand="window.location = 'chrome://calendar/content/calendar.xul';"/>
@ -253,37 +318,89 @@
<!-- TASK ITEM CONTEXT MENU -->
<popup id="taskitem-context-menu" onpopupshowing="changeContextMenuForToDo( event );">
<menuitem label="&calendar.context.newtodo.label;" accesskey="&calendar.context.newtodo.accesskey;" observes="new_todo_command"/>
<menuitem label="&calendar.context.newtodo.label;"
accesskey="&calendar.context.newtodo.accesskey;"
observes="new_todo_command"/>
<!--
Currently no way to get the item that we clicked on originally
<menuitem label="&calendar.context.modifytask.label;" accesskey="&calendar.context.modifytask.accesskey;" observes="modify_todo_command"/>-->
<menuitem label="&calendar.context.deletetask.label;" accesskey="&calendar.context.deletetask.accesskey;" observes="delete_todo_command"/>
<menu label="&calendar.context.progress.label;" accesskey="&calendar.context.progress.accesskey;">
<menuitem label="&calendar.context.deletetask.label;"
accesskey="&calendar.context.deletetask.accesskey;"
observes="delete_todo_command"/>
<menu label="&calendar.context.progress.label;"
accesskey="&calendar.context.progress.accesskey;">
<menupopup>
<menuitem type="checkbox" id="percent-0-menuitem" label="0%" oncommand="contextChangeProgress( event, 0 );"/>
<menuitem type="checkbox" id="percent-25-menuitem" label="25%" oncommand="contextChangeProgress( event, 25 );"/>
<menuitem type="checkbox" id="percent-50-menuitem" label="50%" oncommand="contextChangeProgress( event, 50 );"/>
<menuitem type="checkbox" id="percent-75-menuitem" label="75%" oncommand="contextChangeProgress( event, 75 );"/>
<menuitem type="checkbox" id="percent-100-menuitem" label="100%" oncommand="contextChangeProgress( event, 100 );"/>
<menuitem type="checkbox"
id="percent-0-menuitem"
label="&progress.level.0;"
accesskey="&progress.level.0.accesskey;"
oncommand="contextChangeProgress( event, 0 );"/>
<menuitem type="checkbox"
id="percent-25-menuitem"
label="&progress.level.25;"
accesskey="&progress.level.25.accesskey;"
oncommand="contextChangeProgress( event, 25 );"/>
<menuitem type="checkbox"
id="percent-50-menuitem"
label="&progress.level.50;"
accesskey="&progress.level.50.accesskey;"
oncommand="contextChangeProgress( event, 50 );"/>
<menuitem type="checkbox"
id="percent-75-menuitem"
label="&progress.level.75;"
accesskey="&progress.level.75.accesskey;"
oncommand="contextChangeProgress( event, 75 );"/>
<menuitem type="checkbox"
id="percent-100-menuitem"
label="&progress.level.100;"
accesskey="&progress.level.100.accesskey;"
oncommand="contextChangeProgress( event, 100 );"/>
</menupopup>
</menu>
<menu label="&calendar.context.priority.label;" accesskey="&calendar.context.priority.accesskey;">
<menu label="&calendar.context.priority.label;"
accesskey="&calendar.context.priority.accesskey;">
<menupopup>
<menuitem type="checkbox" id="priority-0-menuitem" label="&priority.level.none;" oncommand="contextChangePriority( event, 0 );"/>
<menuitem type="checkbox" id="priority-9-menuitem" label="&priority.level.low;" oncommand="contextChangePriority( event, 9 );"/>
<menuitem type="checkbox" id="priority-5-menuitem" label="&priority.level.medium;" oncommand="contextChangePriority( event, 5 );"/>
<menuitem type="checkbox" id="priority-1-menuitem" label="&priority.level.high;" oncommand="contextChangePriority( event, 1 );"/>
<menuitem type="checkbox"
id="priority-0-menuitem"
label="&priority.level.none;"
accesskey="&priority.level.none.accesskey;"
oncommand="contextChangePriority( event, 0 );"/>
<menuitem type="checkbox"
id="priority-9-menuitem"
label="&priority.level.low;"
accesskey="&priority.level.low.accesskey;"
oncommand="contextChangePriority( event, 9 );"/>
<menuitem type="checkbox"
id="priority-5-menuitem"
label="&priority.level.medium;"
accesskey="&priority.level.medium.accesskey;"
oncommand="contextChangePriority( event, 5 );"/>
<menuitem type="checkbox"
id="priority-1-menuitem"
label="&priority.level.high;"
accesskey="&priority.level.high.accesskey;"
oncommand="contextChangePriority( event, 1 );"/>
</menupopup>
</menu>
</popup>
<!-- CALENDAR LIST CONTEXT MENU -->
<popup id="calendarlist-context-menu">
<menuitem label="&calendar.context.newserver.label;" observes="new_local_calendar_command"/>
<menuitem label="&calendar.context.editserver.label;" observes="edit_local_calendar_command"/>
<menuitem label="&calendar.context.deleteserver.label;" observes="delete_server_command"/>
<menuitem label="&calendar.context.refreshserver.label;" observes="refresh_remote_calendars"/>
<menuitem label="&calendar.context.publish.label;" observes="publish_calendar"/>
<menuitem label="&calendar.context.newserver.label;"
accesskey="&calendar.context.newserver.accesskey;"
observes="new_local_calendar_command"/>
<menuitem label="&calendar.context.editserver.label;"
accesskey="&calendar.context.editserver.accesskey;"
observes="edit_local_calendar_command"/>
<menuitem label="&calendar.context.deleteserver.label;"
accesskey="&calendar.context.deleteserver.accesskey;"
observes="delete_server_command"/>
<menuitem label="&calendar.context.refreshserver.label;"
accesskey="&calendar.context.refreshserver.accesskey;"
observes="refresh_remote_calendars"/>
<menuitem label="&calendar.context.publish.label;"
accesskey="&calendar.context.publish.accesskey;"
observes="publish_calendar"/>
</popup>
<popup id="oe-date-picker-popup" position="after_start" value="">
@ -298,20 +415,50 @@
<toolbar class="toolbar-primary chromeclass-toolbar" id="calendar-bar" persist="collapsed" tbalign="stretch">
<!--<toolbarbutton class="toolbarbutton-1" id="calendar-new-task-button" label="&calendar.newtask.button.label;" tooltiptext="&calendar.newtask.button.tooltip;" observes="new_todo_command"/>-->
<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"/>
<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-multiweek-view-button" label="&calendar.multiweekview.button.label;" tooltiptext="&calendar.multiweekview.button.tooltip;" observes="multiweek_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"/>
<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"/>
<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-multiweek-view-button"
label="&calendar.multiweekview.button.label;"
tooltiptext="&calendar.multiweekview.button.tooltip;"
observes="multiweek_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-throbber2" oncommand="openAboutDialog();"
tooltiptext="&aboutCmd.label;" style="list-style-image: url('chrome://calendar/content/sunbird_small.png');"/>
</hbox>
<spacer flex="1"/>
<hbox id="throbber-box" align="center">
<button id="navigator-throbber2"
oncommand="openAboutDialog();"
tooltiptext="&aboutCmd.label;"
style="list-style-image: url('chrome://calendar/content/sunbird_small.png');"/>
</hbox>
</toolbar>
</toolbox>
@ -393,48 +540,53 @@
<label flex="1" crop="end" style="font-weight: bold" value="&calendar.unifinder.todoitems.label;"/>
</box>
<box align="center">
<checkbox id="only-completed-checkbox" label="&calendar.unifinder.hidecompletedtodos.label;" flex="1" crop="end" oncommand="toDoUnifinderRefresh( event )" persist="checked"/>
<checkbox id="only-completed-checkbox"
label="&calendar.unifinder.hidecompletedtodos.label;"
flex="1"
crop="end"
oncommand="toDoUnifinderRefresh( event )"
persist="checked"/>
</box>
<tree id="unifinder-todo-tree" flex="1" enableColumnDrag="false" ondblclick="modifyToDoCommand( event )">
<treecols id="unifinder-todo-tree-cols">
<treecol id="unifinder-todo-tree-col-completed"
persist="hidden ordinal width" width="18" cycler="true"
persist="hidden ordinal width sortDirection sortActive" width="18" cycler="true"
label="&calendar.unifinder.tree.done.label;">
<image id="checkboximg" contextmenu="taskitem-context-menu"/>
</treecol>
<splitter class="tree-splitter"/>
<treecol id="unifinder-todo-tree-col-priority"
persist="hidden ordinal width" width="18"
persist="hidden ordinal width sortDirection sortActive" width="18"
label="&calendar.unifinder.tree.priority.label;">
<image id="priorityimg" contextmenu="taskitem-context-menu"/>
</treecol>
<splitter class="tree-splitter"/>
<treecol id="unifinder-todo-tree-col-title"
persist="hidden ordinal width" flex="1"
persist="hidden ordinal width sortDirection sortActive" flex="1"
label="&calendar.unifinder.tree.title.label;" />
<splitter class="tree-splitter"/>
<treecol id="unifinder-todo-tree-col-startdate"
persist="hidden ordinal width"
persist="hidden ordinal width sortDirection sortActive"
hidden="true"
flex="1" label="&calendar.unifinder.tree.startdate.label;"/>
<splitter class="tree-splitter"/>
<treecol id="unifinder-todo-tree-col-duedate"
persist="hidden ordinal width"
persist="hidden ordinal width sortDirection sortActive"
hidden="true"
flex="1" label="&calendar.unifinder.tree.duedate.label;"/>
<splitter class="tree-splitter"/>
<treecol id="unifinder-todo-tree-col-completeddate"
persist="hidden ordinal width"
persist="hidden ordinal width sortDirection sortActive"
hidden="true"
flex="1" label="&calendar.unifinder.tree.completeddate.label;"/>
<splitter class="tree-splitter"/>
<treecol id="unifinder-todo-tree-col-percentcomplete"
persist="hidden ordinal width"
persist="hidden ordinal width sortDirection sortActive"
hidden="true"
flex="1" label="&calendar.unifinder.tree.percentcomplete.label;"/>
<splitter class="tree-splitter"/>
<treecol id="unifinder-todo-tree-col-categories"
persist="hidden ordinal width"
persist="hidden ordinal width sortDirection sortActive"
hidden="true"
flex="1" label="&calendar.unifinder.tree.categories.label;"/>
</treecols>
@ -447,7 +599,7 @@
</vbox>
<splitter id="calendar-splitter" collapse="before" persist="state"
class="chromeclass-extrachrome sidebar-splitter" orient="horizontal">
class="chromeclass-extrachrome sidebar-splitter" orient="horizontal" onmouseup="setTimeout( 'gCalendarWindow.onMouseUpCalendarSplitter()', 1 );">
<grippy class="sidebar-splitter-grippy"/>
</splitter>
@ -457,13 +609,27 @@
<box align="center">
<menulist id="event-filter-menulist" persist="value">
<menupopup id="event-filter-menupopup" oncommand="changeEventFilter( event );">
<menuitem id="event-filter-all" label="&calendar.events.filter.all.label;" value="all"/>
<menuitem id="event-filter-today" label="&calendar.events.filter.today.label;" value="today"/>
<menuitem id="event-filter-week" label="&calendar.events.filter.week.label;" value="week"/>
<menuitem id="event-filter-2weeks" label="&calendar.events.filter.2weeks.label;" value="2weeks"/>
<menuitem id="event-filter-month" label="&calendar.events.filter.month.label;" value="month"/>
<menuitem id="event-filter-future" label="&calendar.events.filter.future.label;" value="future"/>
<menuitem id="event-filter-current" label="&calendar.events.filter.current.label;" value="current"/>
<menuitem id="event-filter-all"
label="&calendar.events.filter.all.label;"
value="all"/>
<menuitem id="event-filter-today"
label="&calendar.events.filter.today.label;"
value="today"/>
<menuitem id="event-filter-week"
label="&calendar.events.filter.week.label;"
value="week"/>
<menuitem id="event-filter-2weeks"
label="&calendar.events.filter.2weeks.label;"
value="2weeks"/>
<menuitem id="event-filter-month"
label="&calendar.events.filter.month.label;"
value="month"/>
<menuitem id="event-filter-future"
label="&calendar.events.filter.future.label;"
value="future"/>
<menuitem id="event-filter-current"
label="&calendar.events.filter.current.label;"
value="current"/>
</menupopup>
</menulist>
</box>