addressbook.xul
来自「现在很火的邮件客户端软件thunderbird的源码」· XUL 代码 · 共 794 行 · 第 1/3 页
XUL
794 行
<menuitem id="menu_FileQuitItem" #ifdef XP_WIN label="&quitApplicationCmdWin.label;" accesskey="&quitApplicationCmdWin.accesskey;" #else label="&quitApplicationCmd.label;" accesskey="&quitApplicationCmd.accesskey;" #endif key="key_quit" oncommand="goQuitApplication()"/> </menupopup> </menu> <menu id="menu_Edit" label="&editMenu.label;" accesskey="&editMenu.accesskey;"> <menupopup> <menuitem id="menu_undo" label="&undoCmd.label;" key="key_undo" accesskey="&undoCmd.accesskey;" command="cmd_undo"/> <menuitem id="menu_redo" label="&redoCmd.label;" key="key_redo" accesskey="&redoCmd.accesskey;" command="cmd_redo"/> <menuseparator/> <menuitem id="menu_cut" label="&cutCmd.label;" key="key_cut" accesskey="&cutCmd.accesskey;" command="cmd_cut"/> <menuitem id="menu_copy" label="©Cmd.label;" key="key_copy" accesskey="©Cmd.accesskey;" command="cmd_copy"/> <menuitem id="menu_paste" label="&pasteCmd.label;" key="key_paste" accesskey="&pasteCmd.accesskey;" command="cmd_paste"/> <menuitem id="menu_delete" label="&deleteCmd.label;" key="key_delete" accesskey="&deleteCmd.accesskey;" command="cmd_delete" observes="button_delete"/> <menuseparator/> <menuitem id="menu_selectAll" label="&selectAllCmd.label;" key="key_selectAll" accesskey="&selectAllCmd.accesskey;" command="cmd_selectAll"/> <menuseparator/> <menuitem label="&searchAddressesCmd.label;" accesskey="&searchAddressesCmd.accesskey;" id="menu_search_addresses" key="key_searchAddresses" oncommand="onAdvancedAbSearch();"/> <menuseparator/> <!-- LOCALIZATION NOTE: set "hideSwapFnLnUI" to false in .dtd to enable the UI --> <menuitem label="&swapFirstNameLastNameCmd.label;" accesskey="&swapFirstNameLastNameCmd.accesskey;" hidden="&hideSwapFnLnUI;" oncommand="AbSwapFirstNameLastName()"/> <menuitem label="&propertiesCmd.label;" accesskey="&propertiesCmd.accesskey;" key="key_properties" command="cmd_properties"/> #ifdef XP_UNIX#ifndef XP_MACOSX <menuseparator id="prefSep"/> <menuitem id="menu_preferences" label="&preferencesCmdUnix.label;" accesskey="&preferencesCmdUnix.accesskey;" oncommand="openOptionsDialog()"/>#endif#endif </menupopup> </menu> <menu id="menu_View" label="&viewMenu.label;" accesskey="&viewMenu.accesskey;"> <menupopup id="menu_View_Popup"> <menu id="menu_Toolbars" label="&viewToolbarsMenu.label;" accesskey="&viewToolbarsMenu.accesskey;"> <menupopup id="view_toolbars_popup"> <menuitem id="menu_showAbToolbar" label="&showAbToolbarCmd.label;" accesskey="&showAbToolbarCmd.accesskey;" oncommand="onViewToolbarCommand('ab-bar2', 'menu_showAbToolbar');" checked="true" type="checkbox"/> <menuitem id="menu_showTaskbar" label="&showTaskbarCmd.label;" accesskey="&showTaskbarCmd.accesskey;" oncommand="goToggleToolbar('status-bar', 'menu_showTaskbar')" checked="true" type="checkbox"/> <menuseparator/> <menuitem id="menu_customizeToolbar" oncommand="CustomizeMailToolbar('ab-toolbox');" label="&customizeToolbar.label;" accesskey="&customizeToolbar.accesskey;"/> </menupopup> </menu> <menuitem id="menu_showCardPane" label="&showCardPane.label;" accesskey="&showCardPane.accesskey;" oncommand="goToggleSplitter('results-splitter', 'menu_showCardPane')" checked="true" type="checkbox"/> <menuseparator/> <menu label="&menu_ShowNameAs.label;" accesskey="&menu_ShowNameAs.accesskey;"> <menupopup> <menuitem type="radio" name="shownameas" id="firstLastCmd" label="&firstLastCmd.label;" accesskey="&firstLastCmd.accesskey;" oncommand="SetNameColumn('firstLastCmd')"/> <menuitem type="radio" name="shownameas" id="lastFirstCmd" label="&lastFirstCmd.label;" accesskey="&lastFirstCmd.accesskey;" oncommand="SetNameColumn('lastFirstCmd')"/> <menuitem type="radio" name="shownameas" id="displayNameCmd" label="&displayNameCmd.label;" accesskey="&displayNameCmd.accesskey;" oncommand="SetNameColumn('displayNameCmd')"/> </menupopup> </menu> <menu label="&sortMenu.label;" accesskey="&sortMenu.accesskey;"> <menupopup id="sortMenuPopup" onpopupshowing="InitViewSortByMenu()"> <menuitem label="&GeneratedName.label;" id="cmd_SortByGeneratedName" accesskey="&GeneratedName.accesskey;" oncommand="SortResultPane('GeneratedName');" name="sortas" type="radio" checked="true"/> <menuitem label="&PrimaryEmail.label;" id="cmd_SortByPrimaryEmail" accesskey="&PrimaryEmail.accesskey;" oncommand="SortResultPane('PrimaryEmail');" name="sortas" type="radio" checked="true"/> <menuitem label="&ScreenName.label;" id="cmd_SortBy_AimScreenName" accesskey="&ScreenName.accesskey;" oncommand="SortResultPane('_AimScreenName');" name="sortas" type="radio" checked="true"/> <menuitem label="&Company.label;" id="cmd_SortByCompany" accesskey="&Company.accesskey;" oncommand="SortResultPane('Company');" name="sortas" type="radio" checked="true"/> <!-- LOCALIZATION NOTE: Fields for phonetic are disabled as default and can be enabled by editing "mail.addr_book.show_phonetic_fields" --> <menuitem label="&_PhoneticName.label;" id="cmd_SortBy_PhoneticName" hidden="true" accesskey="&_PhoneticName.accesskey;" oncommand="SortResultPane('_PhoneticName');" name="sortas" type="radio" checked="true"/> <menuitem label="&NickName.label;" id="cmd_SortByNickName" accesskey="&NickName.accesskey;" oncommand="SortResultPane('NickName');" name="sortas" type="radio" checked="true"/> <menuitem label="&SecondEmail.label;" id="cmd_SortBySecondEmail" accesskey="&SecondEmail.accesskey;" oncommand="SortResultPane('SecondEmail');" name="sortas" type="radio" checked="true"/> <menuitem label="&Department.label;" id="cmd_SortByDepartment" accesskey="&Department.accesskey;" oncommand="SortResultPane('Department');" name="sortas" type="radio" checked="true"/> <menuitem label="&JobTitle.label;" id="cmd_SortByJobTitle" accesskey="&JobTitle.accesskey;" oncommand="SortResultPane('JobTitle');" name="sortas" type="radio" checked="true"/> <menuitem label="&CellularNumber.label;" id="cmd_SortByCellularNumber" accesskey="&CellularNumber.accesskey;" oncommand="SortResultPane('CellularNumber');" name="sortas" type="radio" checked="true"/> <menuitem label="&PagerNumber.label;" id="cmd_SortByPagerNumber" accesskey="&PagerNumber.accesskey;" oncommand="SortResultPane('PagerNumber');" name="sortas" type="radio" checked="true"/> <menuitem label="&FaxNumber.label;" id="cmd_SortByFaxNumber" accesskey="&FaxNumber.accesskey;" oncommand="SortResultPane('FaxNumber');" name="sortas" type="radio" checked="true"/> <menuitem label="&HomePhone.label;" id="cmd_SortByHomePhone" accesskey="&HomePhone.accesskey;" oncommand="SortResultPane('HomePhone');" name="sortas" type="radio" checked="true"/> <menuitem label="&WorkPhone.label;" id="cmd_SortByWorkPhone" accesskey="&WorkPhone.accesskey;" oncommand="SortResultPane('WorkPhone');" name="sortas" type="radio" checked="true"/> <menuseparator/> <menuitem id="sortAscending" type="radio" name="sortdirection" label="&sortAscending.label;" accesskey="&sortAscending.accesskey;" oncommand="AbSortAscending()"/> <menuitem id="sortDescending" type="radio" name="sortdirection" label="&sortDescending.label;" accesskey="&sortDescending.accesskey;" oncommand="AbSortDescending()"/> </menupopup> </menu> </menupopup> </menu> <menu id="tasksMenu" label="&tasksMenu.label;" accesskey="&tasksMenu.accesskey;"> <menupopup id="taskPopup"> <!-- Moving the messengerCmd menu item item to the Window menu on the Mac -->#ifndef XP_MACOSX <menuitem accesskey="&messengerCmd.accesskey;" label="&messengerCmd.label;" key="key_mail" oncommand="toMessengerWindow();" id="tasksMenuMail" class="menuitem-iconic icon-mail16 menu-iconic"/> <menuseparator /> #endif <menuitem label="&importCmd.label;" accesskey="&importCmd.accesskey;" oncommand="toImport()"/> <menuitem label="&exportCmd.label;" accesskey="&exportCmd.accesskey;" oncommand="AbExport()"/>#ifndef XP_UNIX <menuseparator id="prefSep"/> <menuitem id="menu_preferences" label="&preferencesCmd.label;" accesskey="&preferencesCmd.accesskey;" oncommand="openOptionsDialog()"/>#else#ifdef XP_MACOSX <menuitem id="menu_preferences" label="&preferencesCmd.label;" accesskey="&preferencesCmd.accesskey;" oncommand="openOptionsDialog()"/>#endif#endif </menupopup> </menu>#ifdef XP_MACOSX<!-- Mac window menu -->#include ../../../../toolkit/content/macWindowMenu.inc#endif <menu label="&helpMenu.label;" accesskey="&helpMenu.accesskey;"> <menupopup id="menu_HelpPopup">#ifdef XP_MACOSX <menuitem id="hintsAndTips" label="&hintsAndTips.label;" key="key_macHelp" oncommand="openRegionURL('mailnews.hints_and_tips.url');"/> <menuitem id="releaseNotes" accesskey="&releaseCmd.accesskey;" label="&releaseCmd.label;" oncommand="openRegionURL('releaseNotesURL');"/>#else <menuitem id="releaseNotes" accesskey="&releaseCmd.accesskey;" label="&releaseCmd.label;" oncommand="openRegionURL('releaseNotesURL');"/> <menuitem id="hintsAndTips" accesskey="&hintsAndTips.accesskey;" label="&hintsAndTips.label;" oncommand="openRegionURL('mailnews.hints_and_tips.url');"/> <menuseparator id="menu_HelpAboutSeparator"/>#endif <menuitem id="aboutName" accesskey="&aboutCmd.accesskey;" label="&aboutCmd.label;"#ifdef XP_MACOSX hidden="true"#endif oncommand="openAboutDialog();"/> </menupopup> </menu> </menubar> </toolbaritem> </toolbar> <toolbarpalette id="AddressBookToolbarPalette"> <toolbarbutton class="toolbarbutton-1" id="button-newcard" label="&newcardButton.label;" tooltiptext="&newcardButton.tooltip;" oncommand="AbNewCard('dirTree');"/> <toolbarbutton class="toolbarbutton-1" id="button-newlist" label="&newlistButton.label;" tooltiptext="&newlistButton.tooltip;" oncommand="AbNewList('dirTree');"/> <toolbarbutton class="toolbarbutton-1" id="button-editcard" label="&editButton.label;" tooltiptext="&editButton.tooltip;" oncommand="goDoCommand('button_edit');"/> <toolbarbutton class="toolbarbutton-1" id="button-newmessage" label="&newmsgButton.label;" tooltiptext="&newmsgButton.tooltip;" oncommand="AbNewMessage();"/> <toolbarbutton class="toolbarbutton-1" id="button-newim" label="&newIM.label;" tooltiptext="&newIM.tooltip;" oncommand="AbIMSelected();"/> <toolbarbutton class="toolbarbutton-1" id="button-abdelete" observes="button_delete" label="&deleteButton.label;" tooltiptext="&deleteButton.tooltip;" oncommand="goDoCommand('button_delete');"/> <toolbaritem id="throbber-box" title="&throbberItem.title;" align="center" pack="center"> <button id="navigator-throbber" disabled="true"/> </toolbaritem> <toolbaritem id="search-container" title="&searchItem.title;" align="center" class="chromeclass-toolbar-additional"> <textbox id="searchInput" flex="1" onfocus="onSearchInputFocus(event);" onblur="onSearchInputBlur(event);" onclick="this.select();" oninput="onAbSearchInput(false);" onkeypress="onAbSearchKeyPress(event);"> <button id="quick-search-button" type="menu"> <menupopup id="quick-search-menupopup" value="0" persist="value" popupalign="topleft" popupanchor="bottomleft"> <menuitem value="0" label="&SearchNameOrEmail.label;" type="radio"/> </menupopup> </button> </textbox> </toolbaritem> </toolbarpalette> <!-- toolbar -->
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?