Back to index

lightning-sunbird  0.9+nobinonly
calendar-sets.inc
Go to the documentation of this file.
00001 # ***** BEGIN LICENSE BLOCK *****
00002 # Version: MPL 1.1/GPL 2.0/LGPL 2.1
00003 #
00004 # The contents of this file are subject to the Mozilla Public License Version
00005 # 1.1 (the "License"); you may not use this file except in compliance with
00006 # the License. You may obtain a copy of the License at
00007 # http://www.mozilla.org/MPL/
00008 #
00009 # Software distributed under the License is distributed on an "AS IS" basis,
00010 # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
00011 # for the specific language governing rights and limitations under the
00012 # License.
00013 #
00014 # The Original Code is OEone Calendar Code, released October 31st, 2001.
00015 #
00016 # The Initial Developer of the Original Code is
00017 # OEone Corporation.
00018 # Portions created by the Initial Developer are Copyright (C) 2001
00019 # the Initial Developer. All Rights Reserved.
00020 #
00021 # Contributor(s): Garth Smedley <garths@oeone.com>
00022 #                 Mike Potter <mikep@oeone.com>
00023 #                 Colin Phillips <colinp@oeone.com>
00024 #                 Chris Charabaruk <coldacid@djfly.org>
00025 #                 Karl Guertin <grayrest@grayrest.com>
00026 #                 Dan Parent <danp@oeone.com>
00027 #                 ArentJan Banck <ajbanck@planet.nl>
00028 #                 Eric Belhaire <belhaire@ief.u-psud.fr>
00029 #                 Matthew Willis <mattwillis@gmail.com>
00030 #                 Stefan Sitter <ssitter@googlemail.com>
00031 #                 Dan Mosedale <dan.mosedale@oracle.com>
00032 #                 Philipp Kewisch <mozilla@kewis.ch>
00033 #
00034 # Alternatively, the contents of this file may be used under the terms of
00035 # either the GNU General Public License Version 2 or later (the "GPL"), or
00036 # the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
00037 # in which case the provisions of the GPL or the LGPL are applicable instead
00038 # of those above. If you wish to allow use of your version of this file only
00039 # under the terms of either the GPL or the LGPL, and not to allow others to
00040 # use your version of this file under the terms of the MPL, indicate your
00041 # decision by deleting the provisions above and replace them with the notice
00042 # and other provisions required by the LGPL or the GPL. If you do not delete
00043 # the provisions above, a recipient may use your version of this file under
00044 # the terms of any one of the MPL, the GPL or the LGPL.
00045 #
00046 # ***** END LICENSE BLOCK *****
00047 
00048 <broadcasterset id="calendar_broadcasters"/>
00049 
00050 <commandset id="calendar_commands">
00051   <!-- These commands already exist in thunderbird -->
00052   <command id="cmd_undo" oncommand="goDoCommand('cmd_undo')"/>
00053   <command id="cmd_redo" oncommand="goDoCommand('cmd_redo')"/>
00054   <command id="cmd_cut" oncommand="goDoCommand('cmd_cut')"/>
00055   <command id="cmd_copy" oncommand="goDoCommand('cmd_copy')"/>
00056   <command id="cmd_paste" oncommand="goDoCommand('cmd_paste')"/>
00057   <command id="cmd_selectAll" oncommand="goDoCommand('cmd_selectAll')"/>
00058   <command id="cmd_pageSetup" oncommand="goDoCommand('cmd_pageSetup')"/>
00059   <command id="cmd_print" oncommand="goDoCommand('cmd_print')"/>
00060 
00061   <command id="cmd_CustomizeToolbars" oncommand="CalendarCustomizeToolbar()"/>
00062   <command id="cmd_showStatusBar" oncommand="goToggleToolbar('status-bar', 'menu_showStatusBar');"/>
00063   <command id="cmd_showTaskBox" oncommand="goToggleToolbar('todo-tab-panel', 'menu_showTaskBox'); goToggleToolbar('calendar-todo-splitter');"/>
00064 
00065   <command id="Tools:Addons" oncommand="goOpenAddons();"/>
00066 
00067   <!-- Sunbird specific commands -->
00068   <command id="open_local_calendar_command" oncommand="openLocalCalendar()"/>
00069 
00070   <command id="go_date_command" oncommand="gCalendarWindow.pickAndGoToDate()"/>
00071   <command id="cmd_quitApplication"     oncommand="goQuitApplication()"/>
00072        
00073   <command id="close_calendar_command" oncommand="closeCalendar()"/>
00074 
00075 #ifdef XP_MACOSX
00076   <command id="minimizeWindowCmd" oncommand="window.minimize();"/>
00077   <command id="zoomWindowCmd" oncommand="zoomWindow();"/>
00078 #endif
00079 </commandset>
00080 
00081 <keyset id="calendar-keys">
00082   <key id="calendar-new-event-key" key="&event.new.event.key;"             observes="calendar_new_event_command"  modifiers="accel"/>
00083   <key id="calendar-new-todo-key" key="&event.new.todo.key;"              observes="calendar_new_todo_command"   modifiers="accel"/>
00084   <key id="modify_event_key"     key="&event.edit.event.key;"            observes="calendar_modify_event_command"  modifiers="accel"/>
00085   <key id="new_calendar_key"     key="&calendar.new.server.key;"         observes="calendar_new_calendar_command"  modifiers="accel"/>
00086   <key id="open_calendar_key"    key="&calendar.open.file.key;"          observes="open_local_calendar_command" modifiers="accel"/>
00087   <key id="key_close"            key="&calendar.menu.options.close.key;" observes="close_calendar_command"      modifiers="accel"/>
00088   <key id="print_key"            key="&calendar.print.key;"              observes="cmd_print"                   modifiers="accel"/>
00089 
00090   <key id="undo_key"             key="&calendar.undo.key;"               observes="cmd_undo"                    modifiers="accel"/>
00091 #ifdef XP_UNIX
00092   <key id="redo_key"             key="&calendar.undo.key;"               observes="cmd_redo"                    modifiers="shift, accel"/>
00093 #else
00094   <key id="redo_key"             key="&calendar.redo.key;"               observes="cmd_redo"                    modifiers="accel"/>
00095 #endif
00096 
00097   <key id="key_cut"              key="&calendar.cut.key;"                observes="cmd_cut"                     modifiers="accel"/>
00098   <key id="key_copy"             key="&calendar.copy.key;"               observes="cmd_copy"                    modifiers="accel"/>
00099   <key id="key_paste"            key="&calendar.paste.key;"              observes="cmd_paste"                   modifiers="accel"/>
00100   <key id="key_selectAll"        key="&calendar.selectall.key;"          observes="cmd_selectAll"               modifiers="accel"/>
00101 
00102   <key id="go_to_date_key"       keycode="VK_UP"                         observes="go_date_command"             modifiers="accel"/>
00103 
00104   <key id="import_key"           key="&calendar.import.key;"             observes="calendar_import_command"              modifiers="accel"/>
00105   <key id="reload_server_key"    key="&calendar.reloadserver.key;"       observes="calendar_reload_remote_calendars"     modifiers="accel"/>
00106 
00107   <key id="find_key"
00108        key="&calendar.find.key;"
00109        modifiers="accel"
00110        oncommand="focusSearch();"/>
00111 
00112 #ifdef XP_MACOSX
00113   <key id="key_minimizeWindow"   key="&minimizeWindow.key;"              command="minimizeWindow"               modifiers="accel"/>
00114   <key id="key_preferencesCmdMac" key="&preferencesCmdMac.commandkey;" modifiers="&preferencesCmdMac.modifiers;"/>
00115   <key id="key_hideThisAppCmdMac" key="&hideThisAppCmdMac.commandkey;" modifiers="&hideThisAppCmdMac.modifiers;"/>
00116   <key id="key_hideOtherAppsCmdMac" key="&hideOtherAppsCmdMac.commandkey;" modifiers="&hideOtherAppsCmdMac.modifiers;"/>
00117 #endif
00118 #ifdef XP_UNIX
00119   <key id="key_quitApplication" key="&calendar.quit.key;" command="cmd_quitApplication" modifiers="accel"/>
00120 #endif
00121 </keyset>
00122 
00123 <keyset id="tasksKeys"/>