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
<?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://messenger/skin/quickFilterBar.css" type="text/css"?>
<!DOCTYPE quickFilterBar SYSTEM "chrome://messenger/locale/quickFilterBar.dtd">
<overlay id="quickFilterBar-overlay"
         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  <script src="quickFilterBar.js" type="application/javascript" />

  <keyset id="mailKeys">
    <key id="key_qfb_escape" keycode="VK_ESCAPE"
         command="cmd_popQuickFilterBarStack"/>
    <key id="key_qfb_show" key="&quickFilterBar.show.key2;"
         modifiers="accel,shift"
         command="cmd_showQuickFilterBar"/>
  </keyset>

  <commandset id="mailViewMenuItems">
    <command id="cmd_showQuickFilterBar"
             oncommand="goDoCommand('cmd_showQuickFilterBar');"
             />
    <command id="cmd_toggleQuickFilterBar"
             oncommand="goDoCommand('cmd_toggleQuickFilterBar');"
             />
    <command id="cmd_popQuickFilterBarStack"
             oncommand="goDoCommand('cmd_popQuickFilterBarStack');"
             />
  </commandset>

  <menupopup id="view_toolbars_popup">
    <!-- gets disabled but stays visible when not legal -->
    <menuitem id="view_toolbars_popup_quickFilterBar"
              type="checkbox"
              insertbefore="menu_showTaskbar"
              label="&quickFilterBar.toggleBarVisibility.menu.label;"
              accesskey="&quickFilterBar.toggleBarVisibility.menu.accesskey;"
              command="cmd_toggleQuickFilterBar"
              />
  </menupopup>

  <menupopup id="appmenu_customizeMenu">
    <!-- gets disabled but stays visible when not legal -->
    <menuitem id="appmenu_quickFilterBar"
              type="checkbox"
              insertbefore="appmenu_showStatusbar"
              label="&quickFilterBar.toggleBarVisibility.appmenu.label;"
              command="cmd_toggleQuickFilterBar"
              >
      <observes element="view_toolbars_popup_quickFilterBar"
                attribute="checked"
                />
    </menuitem>
  </menupopup>

  <toolbarpalette id="MailToolbarPalette">
    <!-- gets hidden but keeps space allocation when not legal-->
    <toolbarbutton id="qfb-show-filter-bar"
                   class="toolbarbutton-1"
                   type="checkbox"
                   label="&quickFilterBar.qfbShowFilterBar.label;"
                   command="cmd_toggleQuickFilterBar"
                   tooltiptext="&quickFilterBar.toggleBarVisibility.button.tooltip;"
                   >
      <observes element="view_toolbars_popup_quickFilterBar"
                attribute="checked"
                />
    </toolbarbutton>
  </toolbarpalette>

  <popupset id="mainPopupSet">
    <!-- Using an actual panel resulted in serious focus problems on linux,
         even with noautofocus=true.  It would appear the window manager does
         not buy into what we are selling in that case, whereas I presume the
         specialization that precludes tooltips from ever having focus prevents
         that problem from happening. -->
    <tooltip id="qfb-text-search-upsell"
             level="parent"
             style="background-color: #ffeeee;"
           >
      <vbox>
        <label id="qfb-upsell-line-one"
               class="header"
               fmt="&quickFilterBar.glodaUpsell.continueSearch;"
               value=""
               />
        <label id="qfb-upsell-line-two"
               fmt="&quickFilterBar.glodaUpsell.pressEnterAndCurrent;"
               value=""
               />
      </vbox>
    </tooltip>
  </popupset>


  <vbox id="messagesBox">
    <!--
      - The message filter bar is not a XBL binding at this time in order to
      - make it easier for people to overlay given that we are likely leaving
      - a lot of visible space on the table.
      -
      - This may need to change for drag-and-drop or other reasons.
      -->
    <vbox id="quick-filter-bar" insertbefore="displayDeck"
          >
      <observes element="cmd_toggleQuickFilterBar"
                attribute="disabled"
                />
      <hbox id="quick-filter-bar-main-bar" align="center"
            onoverflow="QuickFilterBarMuxer.onOverflow();"
            >
        <toolbarbutton id="qfb-sticky" type="checkbox"
                       class="toolbarbutton-1" orient="horizontal"
                       crop="none" minwidth="16"
                       tooltiptext="&quickFilterBar.sticky.tooltip;"
                       />
        <!-- Extensions, put your labeled buttons in the following box. -->
        <hbox id="quick-filter-bar-collapsible-buttons">
          <toolbarseparator id="qfb-separator"/>
          <toolbarbutton id="qfb-unread" type="checkbox"
                         class="toolbarbutton-1" orient="horizontal"
                         crop="none" minwidth="16"
                         label="&quickFilterBar.unread.label;"
                         tooltiptext="&quickFilterBar.unread.tooltip;"
                         />
          <toolbarbutton id="qfb-starred" type="checkbox"
                         class="toolbarbutton-1" orient="horizontal"
                         crop="none" minwidth="16"
                         label="&quickFilterBar.starred.label;"
                         tooltiptext="&quickFilterBar.starred.tooltip;"
                         />
          <toolbarbutton id="qfb-inaddrbook" type="checkbox"
                         class="toolbarbutton-1" orient="horizontal"
                         crop="none" minwidth="16"
                         label="&quickFilterBar.inaddrbook.label;"
                         tooltiptext="&quickFilterBar.inaddrbook.tooltip;"
                         />
          <toolbarbutton id="qfb-tags" type="checkbox"
                         class="toolbarbutton-1" orient="horizontal"
                         crop="none" minwidth="16"
                         label="&quickFilterBar.tags.label;"
                         tooltiptext="&quickFilterBar.tags.tooltip;"
                         />
          <toolbarbutton id="qfb-attachment" type="checkbox"
                         class="toolbarbutton-1" orient="horizontal"
                         crop="none" minwidth="16"
                         label="&quickFilterBar.attachment.label;"
                         tooltiptext="&quickFilterBar.attachment.tooltip;"/>
        </hbox>
        <toolbarspacer id="qfb-filter-bar-spacer" flex="1" align="end"/>
        <!-- I added a minwidth and end text-align because otherwise the change
             in dimensions causes ugly flex rearrangement of the textbox. -->
        <label id="qfb-results-label"
               minwidth="&quickFilterBar.resultsLabel.minWidth;"
               value=""
               somefmtstring="&quickFilterBar.resultsLabel.some.formatString;"
               noresultsstring="&quickFilterBar.resultsLabel.none;"
               />
        <textbox id="qfb-qs-textbox" flex="3"
                 class="searchBox"
                 type="search"
                 placeholder=""
                 emptytextbase="&quickFilterBar.textbox.emptyText.base1;"
                 keyLabelNonMac="&quickFilterBar.textbox.emptyText.keyLabel2.nonmac;"
                 keyLabelMac="&quickFilterBar.textbox.emptyText.keyLabel2.mac;"
                 timeout="500"
                 maxlength="192"
                 width="320"
                 minwidth="280">
        </textbox>
      </hbox>
      <hbox id="quick-filter-bar-expando">
        <arrowscrollbox id="quick-filter-bar-tab-bar"
                        orient="horizontal"
                        collapsed="true"
                        flex="2">
        <menulist id="qfb-boolean-mode"
                  tooltiptext="&quickFilterBar.booleanMode.tooltip;"
                  persist="value">
          <menupopup id="qfb-boolean-mode-popup">
            <menuitem id="qfb-boolean-mode-or" value="OR"
                      label="&quickFilterBar.booleanModeAny.label;"
                      tooltiptext="&quickFilterBar.booleanModeAny.tooltip;"/>
            <menuitem id="qfb-boolean-mode-and" value="AND"
                      label="&quickFilterBar.booleanModeAll.label;"
                      tooltiptext="&quickFilterBar.booleanModeAll.tooltip;"/>
          </menupopup>
        </menulist>
        </arrowscrollbox>
        <hbox id="quick-filter-bar-filter-text-bar"
              collapsed="true"
              pack="end"
              align="center"
              flex="1">
          <label id="qfb-qs-label"
                 value="&quickFilterBar.textFilter.explanation.label;"/>
          <toolbarbutton id="qfb-qs-sender" type="checkbox"
                         class="toolbarbutton-1" orient="horizontal"
                         label="&quickFilterBar.textFilter.sender.label;" />
          <toolbarbutton id="qfb-qs-recipients" type="checkbox"
                         class="toolbarbutton-1" orient="horizontal"
                         label="&quickFilterBar.textFilter.recipients.label;" />
          <toolbarbutton id="qfb-qs-subject" type="checkbox"
                         class="toolbarbutton-1" orient="horizontal"
                         label="&quickFilterBar.textFilter.subject.label;" />
          <toolbarbutton id="qfb-qs-body" type="checkbox"
                         class="toolbarbutton-1" orient="horizontal"
                         label="&quickFilterBar.textFilter.body.label;" />
        </hbox>
      </hbox>
    </vbox>
  </vbox>
</overlay>