DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Mercurial (9e2e265534e7)

VCS Links

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215
<?xml version="1.0"?>

# 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://messenger/content/bindings.css" type="text/css"?>
<?xml-stylesheet href="chrome://messenger/skin/searchDialog.css" type="text/css"?>
<?xml-stylesheet href="chrome://messenger/skin/folderPane.css" type="text/css"?>
<?xml-stylesheet href="chrome://messenger/skin/folderMenus.css" type="text/css"?>

<?xul-overlay href="chrome://communicator/content/utilityOverlay.xul"?>

<!DOCTYPE dialog [
  <!ENTITY % SearchDialogDTD SYSTEM "chrome://messenger/locale/SearchDialog.dtd">
  %SearchDialogDTD;
  <!ENTITY % searchTermDTD SYSTEM "chrome://messenger/locale/searchTermOverlay.dtd">
  %searchTermDTD;
]>

<window id="searchMailWindow"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        onload="searchOnLoad();"
        onunload="onSearchStop(); searchOnUnload();"
        windowtype="mailnews:search"
        title="&searchDialogTitle.label;"
        style="width: 52em; height: 34em;"
        persist="screenX screenY width height sizemode">

  <stringbundle id="bundle_search" src="chrome://messenger/locale/search.properties"/>
  <stringbundle id="bundle_messenger" src="chrome://messenger/locale/messenger.properties"/>
  <stringbundle id="bundle_brand" src="chrome://branding/locale/brand.properties"/>

  <script type="application/javascript" src="chrome://messenger/content/mailWindow.js"/>
  <script type="application/javascript" src="chrome://messenger/content/folderDisplay.js"/>
  <script type="application/javascript" src="chrome://messenger/content/messageDisplay.js"/>
  <script type="application/javascript" src="chrome://messenger/content/threadPane.js"/>
  <script type="application/javascript" src="chrome://messenger/content/msgMail3PaneWindow.js"/>
  <script type="application/javascript" src="chrome://global/content/globalOverlay.js"/>
  <script type="application/javascript" src="chrome://messenger/content/mailCommands.js"/>
  <script type="application/javascript" src="chrome://messenger/content/mailWindowOverlay.js"/>
  <script type="application/javascript" src="chrome://messenger/content/commandglue.js"/>
  <script type="application/javascript" src="chrome://messenger/content/SearchDialog.js"/>
  <script type="application/javascript" src="chrome://messenger-newsblog/content/newsblogOverlay.js"/>
  <script type="application/javascript" src="chrome://messenger/content/searchTerm.js"/>
  <script type="application/javascript" src="chrome://messenger/content/dateFormat.js"/>

  <commands id="commands">
    <commandset id="mailSearchItems"
                commandupdater="true"
                events="mail-search"
                oncommandupdate="goUpdateSearchItems(this)">
      <command id="cmd_open" oncommand="goDoCommand('cmd_open')" disabled="true"/>
      <command id="button_delete" oncommand="goDoCommand('button_delete')" disabled="true"/>
      <command id="open_in_folder_button" oncommand="goDoCommand('open_in_folder_button')" disabled="true"/>
      <command id="saveas_vf_button" oncommand="goDoCommand('saveas_vf_button')" disabled="false"/>
      <command id="file_message_button"/>
      <command id="cmd_delete"/>
      <command id="cmd_shiftDelete" oncommand="goDoCommand('cmd_shiftDelete');"/>
    </commandset>
  </commands>

  <keyset id="mailKeys">
    <key id="key_delete" oncommand="goDoCommand('cmd_delete');"/>
    <key key="&closeCmd.key;" modifiers="accel" oncommand="window.close();"/>
    <key keycode="VK_ESCAPE" oncommand="window.close();"/>
#ifdef XP_MACOSX
      <key id="key_delete2" oncommand="goDoCommand('cmd_delete');"/>
      <key id="cmd_shiftDelete" keycode="VK_BACK"
           oncommand="goDoCommand('cmd_shiftDelete');" modifiers="shift"/>
      <key id="cmd_shiftDelete2" keycode="VK_DELETE"
           oncommand="goDoCommand('cmd_shiftDelete');" modifiers="shift"/>
#else
      <key id="cmd_shiftDelete" keycode="VK_DELETE"
           oncommand="goDoCommand('cmd_shiftDelete');" modifiers="shift"/>
#endif
  </keyset>

  <dummy class="usesMailWidgets"/>

    <vbox id="searchTerms" flex="3" persist="height">
      <vbox>
         <hbox align="center">
         <label value="&searchHeading.label;" accesskey="&searchHeading.accesskey;"
                control="searchableFolders"/>
         <menulist id="searchableFolders" flex="2" class="folderMenuItem"
                   displayformat="verbose">
           <menupopup class="menulist-menupopup"
                      type="folder" mode="search"
                      showAccountsFileHere="true" showFileHereLabel="true"
                      oncommand="updateSearchFolderPicker(event.target._folder);"/>
         </menulist>
         <spacer flex="10"/>
         <button id="search-button" oncommand="onSearchButton(event);" default="true"/>
        </hbox>

         <hbox align="center">
           <checkbox id="checkSearchSubFolders"
                     label="&searchSubfolders.label;"
                     accesskey="&searchSubfolders.accesskey;"
                     checked="true"
                     persist="checked"/>
           <spacer flex="10"/>
           <button label="&resetButton.label;" oncommand="onResetSearch(event);" accesskey="&resetButton.accesskey;"/>
         </hbox>
         <hbox align="center">
           <checkbox id="checkSearchOnline"
                     label="&searchOnServer.label;"
                     accesskey="&searchOnServer.accesskey;"
                     oncommand="updateSearchLocalSystem();"
                     persist="checked"/>
         </hbox>
      </vbox>

      <hbox flex="1">
        <vbox id="searchTermListBox" flex="1">
#include ../../../mailnews/base/search/content/searchTerm.inc
      </hbox>
    </vbox>

    <splitter id="gray_horizontal_splitter" persist="state" orient="vertical"/>

    <vbox id="searchResults" flex="4" persist="height">
      <vbox id="searchResultListBox" flex="1">
        <tree id="threadTree" class="plain" persist="lastfoldersent" flex="1"
              enableColumnDrag="true" _selectDelay="500" lastfoldersent="false"
              disableKeyNavigation="true"
              context="mailContext"
              onkeydown="ThreadPaneKeyDown(event);"
              onselect="ThreadPaneSelectionChanged();">
          <treecols id="threadCols" pickertooltiptext="&columnChooser2.tooltip;">
            <treecol id="threadCol" persist="hidden ordinal" fixed="true" cycler="true"
                     class="treecol-image threadColumnHeader" currentView="unthreaded"
                     label="&threadColumn.label;" tooltiptext="&threadColumn2.tooltip;"/>
            <splitter class="tree-splitter"/>
            <treecol id="subjectCol" persist="hidden ordinal width" flex="7" ignoreincolumnpicker="true"
                     label="&subjectColumn.label;" tooltiptext="&subjectColumn2.tooltip;"/>
            <splitter class="tree-splitter"/>
            <treecol id="junkStatusCol" persist="hidden ordinal width" fixed="true" cycler="true"
                     class="treecol-image junkStatusHeader"
                     label="&junkStatusColumn.label;" tooltiptext="&junkStatusColumn2.tooltip;"/>
            <splitter class="tree-splitter"/>
            <treecol id="senderCol" persist="hidden swappedhidden ordinal width" flex="4"
                     hidden="false" swappedhidden="true"
                     label="&fromColumn.label;" tooltiptext="&fromColumn2.tooltip;"/>
            <splitter class="tree-splitter"/>
            <treecol id="recipientCol" persist="hidden swappedhidden ordinal width" flex="4"
                     hidden="true" swappedhidden="false"
                     label="&recipientColumn.label;" tooltiptext="&recipientColumn2.tooltip;"/>
            <splitter class="tree-splitter"/>
            <treecol id="correspondentCol" persist="hidden ordinal width" flex="4"
                     label="&correspondentColumn.label;" tooltiptext="&correspondentColumn2.tooltip;"/>
            <splitter class="tree-splitter"/>
            <treecol id="unreadButtonColHeader" persist="hidden ordinal" fixed="true" cycler="true"
                     class="treecol-image readColumnHeader"
                     label="&readColumn.label;" tooltiptext="&readColumn2.tooltip;"/>
            <splitter class="tree-splitter"/>
            <treecol id="dateCol" persist="hidden ordinal width" flex="2"
                     label="&dateColumn.label;" tooltiptext="&dateColumn2.tooltip;"/>
            <splitter class="tree-splitter"/>
            <treecol id="statusCol" persist="hidden ordinal width" flex="1" hidden="true"
                     label="&statusColumn.label;" tooltiptext="&statusColumn2.tooltip;"/>
            <splitter class="tree-splitter"/>
            <treecol id="sizeCol" persist="hidden ordinal width" flex="1" hidden="true"
                     label="&sizeColumn.label;" tooltiptext="&sizeColumn2.tooltip;"/>
            <splitter class="tree-splitter"/>
            <treecol id="flaggedCol" persist="hidden ordinal" fixed="true" cycler="true" hidden="true"
                     class="treecol-image flagColumnHeader"
                     label="&starredColumn.label;" tooltiptext="&starredColumn2.tooltip;"/>
            <splitter class="tree-splitter"/>
            <treecol id="tagsCol" persist="hidden ordinal width" flex="1" hidden="true"
                     label="&tagsColumn.label;" tooltiptext="&tagsColumn2.tooltip;"/>
            <splitter class="tree-splitter"/>
            <treecol id="priorityCol" persist="hidden ordinal width" flex="1"
                     label="&priorityColumn.label;" tooltiptext="&priorityColumn2.tooltip;"/>
            <splitter class="tree-splitter"/>
            <treecol id="unreadCol" persist="hidden ordinal width" flex="1" hidden="true"
                     label="&unreadColumn.label;" tooltiptext="&unreadColumn2.tooltip;"/>
            <splitter class="tree-splitter"/>
            <treecol id="totalCol" persist="hidden ordinal width" flex="1" hidden="true"
                     label="&totalColumn.label;" tooltiptext="&totalColumn2.tooltip;"/>
            <splitter class="tree-splitter"/>
            <treecol id="locationCol" persist="width" flex="1" hidden="true" ignoreincolumnpicker="true"
                     label="&locationColumn.label;" tooltiptext="&locationColumn2.tooltip;"/>
            <splitter class="tree-splitter"/>
            <treecol id="idCol" persist="hidden ordinal width" flex="1" hidden="true"
                     label="&idColumn.label;" tooltiptext="&idColumn2.tooltip;"/>
          </treecols>
          <treechildren ondragstart="ThreadPaneOnDragStart(event);"/>
        </tree>
      </vbox>
      <hbox align="start">
        <button label="&openButton.label;" id="openButton" command="cmd_open" accesskey="&openButton.accesskey;"/>
        <button id="fileMessageButton" type="menu" label="&moveButton.label;"
                accesskey="&moveButton.accesskey;"
                observes="file_message_button"
                oncommand="MoveMessageInSearch(event.target)">
          <menupopup type="folder" showFileHereLabel="true" mode="filing"/>
        </button>

      <button label="&deleteButton.label;" id="deleteButton" command="button_delete" accesskey="&deleteButton.accesskey;"/>
      <button label="&openInFolder.label;" id="openInFolderButton" command="open_in_folder_button" accesskey="&openInFolder.accesskey;" />
      <button label="&saveAsVFButton.label;" id="saveAsVFButton" command="saveas_vf_button" accesskey="&saveAsVFButton.accesskey;" />
      <spacer flex="1" />
    </hbox>
  </vbox>

  <statusbar class="chromeclass-status" id="status-bar">
    <statusbarpanel id="statusText" crop="right" flex="1"/>
    <statusbarpanel class="statusbarpanel-progress" collapsed="true" id="statusbar-progresspanel">
      <progressmeter class="progressmeter-statusbar" id="statusbar-icon" mode="normal" value="0"/>
    </statusbarpanel>
  </statusbar>

</window>