summaryrefslogtreecommitdiff
path: root/mailnews/import/content/importDialog.xul
blob: 1223a12635513bd85a3bbc9c7de3e05d48dd0d39 (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
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
<?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/dialogs.css" type="text/css"?>

<!DOCTYPE window [
<!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd" >
%brandDTD;
<!ENTITY % importDTD SYSTEM "chrome://messenger/locale/importDialog.dtd" >
%importDTD;
]>

<window xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        onload="OnLoadImportDialog()"
        style="width: &window.width; !important;"
        title="&importDialog.windowTitle;">

  <stringbundle id="bundle_importMsgs" src="chrome://messenger/locale/importMsgs.properties"/>
  <stringbundle id="bundle_addressbook" src="chrome://messenger/locale/addressbook/addressBook.properties"/>
  <stringbundle id="bundle_vcardImportMsgs" src="chrome://messenger/locale/vCardImportMsgs.properties"/>
  <stringbundle id="bundle_feeds" src="chrome://messenger-newsblog/locale/newsblog.properties"/>
  <script type="application/javascript" src="chrome://messenger/content/importDialog.js"/>
  <script type="application/javascript" src="chrome://messenger-newsblog/content/feed-subscriptions.js"/>

  <keyset id="dialogKeys"/>

  <hbox class="box-header" id="header"
       title="&importTitle.label;"
       description="&importShortDesc.label;"/>

  <deck id="stateDeck" selectedIndex="0" style="min-height: 30em">
    <vbox class="wizard-box">
      <description>&importDescription1.label;</description>
      <description>&importDescription2.label;</description>
      <separator/>
      <radiogroup id="importFields">
        <radio id="allRadio"
               value="all"
               label="&importAll.label;"
               accesskey="&importAll.accesskey;"/>
        <separator/>
        <label control="importFields">&select.label;</label>
        <separator class="thin"/>
        <vbox class="indent">
          <radio id="addressbookRadio"
                 value="addressbook"
                 label="&importAddressbook.label;"
                 accesskey="&importAddressbook.accesskey;"/>
          <radio id="mailRadio"
                 value="mail"
                 label="&importMail.label;"
                 accesskey="&importMail.accesskey;"/>
          <radio id="feedsRadio"
                 value="feeds"
                 label="&importFeeds.label;"
                 accesskey="&importFeeds.accesskey;"/>
          <radio id="settingsRadio"
                 value="settings"
                 label="&importSettings.label;"
                 accesskey="&importSettings.accesskey;"/>
          <radio id="filtersRadio"
                 value="filters"
                 label="&importFilters.label;"
                 accesskey="&importFilters.accesskey;"/>
        </vbox>
      </radiogroup>
    </vbox>
    <vbox class="wizard-box">
      <deck id="modulesFound"
            selectedIndex="0">
        <vbox>
          <deck id="selectDescriptionDeck"
                selectedIndex="0">
            <label control="moduleList"
                   value="&selectDescription.label;"
                   accesskey="&selectDescription.accesskey;"/>
            <label control="moduleList"
                   value="&selectDescriptionB.label;"
                   accesskey="&selectDescription.accesskey;"/>
          </deck>
          <listbox id="moduleList" flex="3"
                   onselect="ImportSelectionChanged(); enableAdvance();"/>
        </vbox>
        <label>&noModulesFound.label;</label>
      </deck>
      <grid flex="1">
        <columns><column flex="1"/></columns>
        <rows>
          <row>
            <description control="moduleList" id="description" class="box-padded"/>
          </row>
          <row>
            <hbox id="acctName-box" flex="1" style="visibility: hidden;">
              <label control="acctName" class="box-padded"
                     accesskey="&acctName.accesskey;"
                     value="&acctName.label;"/>
              <textbox id="acctName" clickSelectsAll="true"/>
            </hbox>
          </row>
        </rows>
      </grid>
    </vbox>
    <vbox class="wizard-box">
      <spacer flex="1"/>
      <groupbox>
        <caption id="progressTitle" label="&title.label;"/>
        <label class="indent" id="progressStatus" value="&processing.label;"/>
        <vbox class="box-padded">
          <progressmeter id="progressMeter" mode="determined" value="5"/>
        </vbox>
      </groupbox>
    </vbox>
    <vbox class="wizard-box">
      <description id="status"/>
      <hbox style="overflow: auto" class="inset" flex="1">
        <description id="results" flex="1"/>
      </hbox>
    </vbox>
  </deck>

  <separator/>

  <separator class="groove"/>

  <hbox class="box-padded">
    <spacer flex="1"/>
    <button id="back" label="&back.label;" disabled="true"
            oncommand="back();"/>
    <button id="forward" label="&forward.label;" nextval="&forward.label;" finishedval="&finish.label;"
            oncommand="next();"/>
    <separator orient="vertical"/>
    <button id="cancel" label="&cancel.label;"
            oncommand="close();"/>
  </hbox>

</window>