summaryrefslogtreecommitdiffstats
path: root/comm/suite/mailnews/content/mailViewList.xul
blob: c055bfd02a80a16fc1990516ae66a8326ac06b75 (plain)
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
<?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/" type="text/css"?>
<!-- Mac needs dialog.css to correctly style the moved Help button -->
<?xml-stylesheet href="chrome://global/skin/dialog.css" type="text/css"?>
<?xul-overlay href="chrome://communicator/content/utilityOverlay.xul"?>

<!DOCTYPE dialog [
<!ENTITY % mailViewLisDTD SYSTEM "chrome://messenger/locale/mailViewList.dtd">
%mailViewLisDTD;
<!ENTITY % FilterListDialogDTD SYSTEM "chrome://messenger/locale/FilterListDialog.dtd">
%FilterListDialogDTD;
]>

<dialog id="mailViewListDialog"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        onload="MailViewListOnLoad();"
        onunload="MailViewListOnUnload();"
        ondialogaccept="return false;"
        windowtype="mailnews:mailviewlist"
        title="&mailViewListTitle.label;"
        width="400" height="340"
        buttons=","
        persist="screenX screenY width height">

  <script src="chrome://messenger/content/mailViewList.js"/>
  <script src="chrome://global/content/globalOverlay.js"/>

  <commandset id="mailViewCommands">
    <command id="cmd_new"    oncommand="goDoCommand('cmd_new');"/>
    <command id="cmd_edit"   oncommand="goDoCommand('cmd_edit');"   disabled="true"/>
    <command id="cmd_delete" oncommand="goDoCommand('cmd_delete');" disabled="true"/>
  </commandset>

  <keyset id="mailViewListKeys">
    <key id="key_delete"/>
    <key id="key_delete2"/>
    <key id="key_open" keycode="VK_RETURN" command="cmd_edit"/>
  </keyset>

  <vbox flex="1">
    <hbox flex="1">
      <listbox id="mailViewList"
               flex="1"
               onselect="OnMailViewSelect(event);"
               ondblclick="OnMailViewDoubleClick(event);">
        <listcols>
          <listcol flex="1" width="0"/>
        </listcols>
        <listhead>
          <listheader label="&viewName.label;"/>
        </listhead>
      </listbox>

      <vbox id="buttonCol">
        <button id="newButton"
                label="&newButton.label;"
                accesskey="&newButton.accesskey;"
                command="cmd_new"/>
        <button id="editButton"
                label="&editButton.label;"
                accesskey="&editButton.accesskey;"
                command="cmd_edit"/>
        <button id="deleteButton"
                label="&deleteButton.label;"
                accesskey="&deleteButton.accesskey;"
                command="cmd_delete"/>
        <spacer flex="1"/>
        <button id="helpButton"
                dlgtype="help"
                class="dialog-button"/>
      </vbox>
    </hbox>
  </vbox>
</dialog>