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 (341e6b4a9882)

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 216 217
<?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/skin/subscribe.css" type="text/css"?>

<!DOCTYPE dialog SYSTEM "chrome://messenger/locale/subscribe.dtd">

<dialog id="subscribeWindow"
        xmlns:NC="http://home.netscape.com/NC-rdf#"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        title="&subscribeDialog.title;"
        style="width: 44em; height: 33em;"
        persist="width height screenX screenY"
        buttons="accept,cancel"
        onload="SubscribeOnLoad()"
        onunload="SubscribeOnUnload()"
        ondialogaccept="return subscribeOK();"
        ondialogcancel="return subscribeCancel();">

<stringbundle id="bundle_subscribe" src="chrome://messenger/locale/subscribe.properties"/>
<stringbundle id="bundle_messenger" src="chrome://messenger/locale/messenger.properties"/>
<script type="application/javascript" src="chrome://messenger/content/mailWindow.js"/>
<script type="application/javascript" src="chrome://messenger/content/subscribe.js"/>
<script type="application/javascript" src="chrome://messenger/content/widgetglue.js"/>

  <grid flex="1" style="width: 40em; height: 25em;">
    <columns>
      <column flex="1"/>
      <column/>
    </columns>

    <rows>
      <row>
        <grid flex="1">
          <columns>
            <column/>
            <column flex="1"/>
          </columns>

          <rows>
            <row>
              <hbox pack="end" align="center">
                <label value="&server.label;" accesskey="&server.accesskey;" control="serverMenu"/>
              </hbox>
              <menulist oncommand="onServerClick(event);" id="serverMenu"
                        datasources="rdf:msgaccountmanager rdf:mailnewsfolders"
                        sortResource="http://home.netscape.com/NC-rdf#FolderTreeName"
                        sortDirection="ascending" ref="msgaccounts:/" flex="1">
                <template>
                  <rule NC:CanSubscribe="true">
                    <menupopup>
                      <menuitem class="subscribeMenuItem menuitem-iconic" uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name" ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType" IsSecure="rdf:http://home.netscape.com/NC-rdf#IsSecure"/>
                    </menupopup>
                  </rule>
                </template>
              </menulist>
            </row>
            <row align="center">
              <label value="&namefield.label;" accesskey="&namefield.accesskey;"
                     id="namefieldlabel" control="namefield"/>
              <textbox id="namefield"
                       flex="1"
                       type="search"
                       aria-controls="searchTree"
                       oncommand="Search();"
                       clickSelectsAll="true"/>
            </row>
          </rows>
         </grid>
         <spacer/>
       </row>
       <row>
         <separator class="thin"/>
         <spacer/>
       </row>
      <row flex="1">
        <tabbox>
          <tabs id="subscribeTabs">
            <tab id="currentListTab"
                 selected="true"
                 oncommand="ShowCurrentList()"/>
            <tab id="newGroupsTab"
                 label="&newGroupsTab.label;"
                 accesskey="&newGroupsTab.accesskey;"
                 oncommand="ShowNewGroupsList()"/>
          </tabs>
          <tabpanels flex="1">
            <tabpanel id="treepanel" flex="1">
              <hbox flex="1">
                <deck id="subscribedeck" selectedIndex="0" flex="1">
                  <hbox id="normalview">
                    <tree id="subscribeTree"
                          treelines="true"
                          flex="1"
                          datasources="rdf:null"
                          flags="dont-build-content"
                          disableKeyNavigation="true"
                          statedatasource="rdf:null"
                          onkeypress="onSubscribeTreeKeyPress(event);"
                          onclick="SubscribeOnClick(event);">
                      <template>
                        <rule>
                          <conditions>
                            <content uri="?container"/>
                              <member container="?container" child="?member"/>
                            </conditions>

                            <bindings>
                              <binding subject="?member"
                                      predicate="http://home.netscape.com/NC-rdf#LeafName"
                                      object="?LeafName"/>
                              <binding subject="?member"
                                      predicate="http://home.netscape.com/NC-rdf#ServerType"
                                      object="?ServerType"/>
                              <binding subject="?member"
                                      predicate="http://home.netscape.com/NC-rdf#Subscribed"
                                      object="?Subscribed"/>
                              <binding subject="?member"
                                      predicate="http://home.netscape.com/NC-rdf#Subscribable"
                                      object="?Subscribable"/>
                              <binding subject="?member"
                                      predicate="http://home.netscape.com/NC-rdf#TotalMessages"
                                      object="?TotalMessages"/>
                            </bindings>

                            <action>
                              <treechildren>
                                <treeitem uri="?member">
                                  <treerow>
                                    <treecell label="?LeafName"
                                              properties="ServerType-?ServerType Subscribable-?Subscribable"/>
                                    <treecell value="?Subscribed"
                                              properties="Subscribed-?Subscribed Subscribable-?Subscribable"/>
                                    <!-- commenting out until bug 38906 is fixed
                                    <treecell label="?TotalMessages"/> -->
                                  </treerow>
                                </treeitem>
                              </treechildren>
                            </action>
                        </rule>
                      </template>

                      <treecols id="theSubscribeColumns">
                        <treecol id="nameColumn" persist="hidden"
                                 flex="1" primary="true" label="..."
                                 sort="?LeafName"/>
                        <splitter class="tree-splitter"/>
                        <treecol id="subscribedColumn" persist="hidden"
                                 type="checkbox"
                                 cycler="true" label="&subscribedHeader.label;"
                                 sort="?Subscribed"/>
                        <!-- commenting out until bug 38906 is fixed
                        <splitter class="tree-splitter"/>
                        <treecol id="messagesColumn" persist="hidden"
                                 label="&messagesHeader.label;"
                                 sort="?TotalMessages"/> -->
                      </treecols>
                    </tree>
                  </hbox>

                  <hbox id="searchview">
                    <tree id="searchTree" flex="1"
                           disableKeyNavigation="true"
                           onkeypress="onSearchTreeKeyPress(event);"
                           onclick="SearchOnClick(event);">
                      <treecols>
                        <treecol id="nameColumn2" persist="hidden sortDirection"
                                 ignoreincolumnpicker="true" flex="1"
                                 label="..." sortDirection="ascending"/>
                        <splitter class="tree-splitter"/>
                        <treecol id="subscribedColumn2" persist="hidden"
                                 cycler="true" label="&subscribedHeader.label;" />
                        <!-- commenting out until bug 38906 is fixed
                        <splitter class="tree-splitter"/>
                        <treecol id="messagesColumn2" persist="hidden"
                                 label="&messagesHeader.label;" /> -->
                      </treecols>
                      <treechildren id="searchTreeBody"/>
                    </tree>
                  </hbox>
                </deck>

                <vbox>
                  <button id="subscribe" label="&subscribeButton.label;"
                          accesskey="&subscribeButton.accesskey;"
                          oncommand="SetSubscribeState(true)"/>
                  <button id="unsubscribe" label="&unsubscribeButton.label;"
                          accesskey="&unsubscribeButton.accesskey;"
                          oncommand="SetSubscribeState(false)"/>
                  <button id="refreshButton" label="&refreshButton.label;"
                          accesskey="&refreshButton.accesskey;"
                          oncommand="Refresh()"/>
                  <button id="cmd_stop" label="&stopButton.label;"
                          accesskey="&stopButton.accesskey;"
                          oncommand="Stop()"/>
                  <spacer flex="1"/>
                </vbox>

              </hbox>
            </tabpanel>
          </tabpanels>
        </tabbox>
      </row>
      <row>
        <hbox id="statusContainerBox" >
           <statusbarpanel id="statusText" crop="right" flex="1"/>
           <statusbarpanel class="statusbarpanel-progress" id="statusbar-progresspanel">
             <progressmeter class="progressmeter-statusbar" id="statusbar-icon" mode="normal" value="0"/>
           </statusbarpanel>
         </hbox>
         <hbox/>
      </row>
    </rows>
  </grid>
</dialog>