network-settings-wizard.xul 6.73 KB
Newer Older
1
2
<?xml version="1.0"?>
<!--
3
   - Copyright (c) 2014, The Tor Project, Inc.
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
   - See LICENSE for licensing information.
   - vim: set sw=2 sts=2 ts=8 et syntax=xml:
  -->

<?xml-stylesheet href="chrome://global/skin/" type="text/css"?> 
<?xml-stylesheet href="chrome://torlauncher/skin/network-settings.css"
                 type="text/css"?>

<!DOCTYPE overlay SYSTEM "chrome://torlauncher/locale/network-settings.dtd">

<?xul-overlay href="chrome://torlauncher/content/network-settings-overlay.xul"?>

<wizard id="TorNetworkSettings"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        title="&torsettings.dialog.title;"
        windowtype="TorLauncher:NetworkSettings"
        persist="screenX screenY"
21
        buttonlabelextra2="&torsettings.copyLog;"
22
23
24
25
26
27
28
        onwizardfinish="return applySettings();"
        onwizardcancel="return onCancel();"
        onload="initDialog();">

  <script type="application/x-javascript"
          src="chrome://torlauncher/content/network-settings.js"/>

29
30
  <!-- This page requires a setTimeout for onpageshow because it may be
       shown first -->
31
  <wizardpage label=" " pageid="first" next="proxy" onextra2="onCopyLog();"
32
              onpageshow="setTimeout(function() { showWizardNavButtons(false); }, 0);">
33
34
35
36
37
38
39
40
41
42
    <hbox class="tbb-header">
      <vbox class="tbb-logo-box" align="start">
        <image class="tbb-logo" />
      </vbox>
      <separator orient="vertical" />
      <groupbox flex="1">
        <description>&torsettings.prompt;</description>
      </groupbox>
    </hbox>
    <separator />
43
44
45
46
    <vbox class="firstResponses" align="start">
      <label class="question">&torSettings.firstQuestion;</label>
      <separator/>
      <label>&torSettings.connectPrompt2;</label>
47
      <label>&torSettings.connectPrompt3;</label>
48
      <button label="&torSettings.connect;" oncommand="useSettings();"/>
49
50
51
52
      <separator class="tall"/>
      <label>&torSettings.configurePrompt1;</label>
      <label>&torSettings.configurePrompt2;</label>
      <button label="&torSettings.configure;" oncommand="onWizardConfigure();"/>
53
54
55
56
    </vbox>
  </wizardpage>

  <wizardpage label=" " pageid="proxy" next="firewall" onextra2="onCopyLog();"
57
              onpageshow="showWizardNavButtons(true);"
58
59
60
61
62
              onpageadvanced="return onWizardProxyNext(this);">
    <vbox class="tbb-logo-box" align="start">
      <image class="tbb-logo" />
    </vbox>
    <separator />
63
64
65
66
67
68
69
70
71
72
73
74
75
    <hbox>
      <vbox flex="1">
        <label class="question">&torSettings.proxyQuestion;</label>
        <radiogroup id="proxyRadioGroup">
          <radio id="proxyRadioYes" label="&torSettings.yes;" />
          <radio id="proxyRadioNo" label="&torSettings.no;" selected="true" />
        </radiogroup>
        <description class="questionHelp">&torSettings.proxyHelp;
        </description>
      </vbox>
    </hbox>
  </wizardpage>

76
  <wizardpage pageid="proxyYES" next="firewall" onextra2="onCopyLog();"
77
78
79
80
81
82
83
84
85
              onpageadvanced="return (getAndValidateProxySettings() != null)">
    <vbox class="tbb-logo-box" align="start">
      <image class="tbb-logo" />
    </vbox>
    <separator />
    <label class="instructions">&torSettings.enterProxy;</label>
    <groupbox id="proxySpecificSettings" />
  </wizardpage>

86
87
  <wizardpage pageid="firewall" next="bridges" onextra2="onCopyLog();"
              onpageshow="showOrHideButton('next', true, true)"
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
              onpageadvanced="return onWizardFirewallNext(this);">
    <vbox class="tbb-logo-box" align="start">
      <image class="tbb-logo" />
    </vbox>
    <separator />
    <hbox>
      <vbox flex="1">
        <label class="question">&torSettings.firewallQuestion;</label>
        <radiogroup id="firewallRadioGroup">
          <radio id="firewallRadioYes" label="&torSettings.yes;" />
          <radio id="firewallRadioNo" label="&torSettings.no;" selected="true" />
        </radiogroup>
        <description class="questionHelp">&torSettings.firewallHelp;
        </description>
      </vbox>
    </hbox>
  </wizardpage>

106
  <wizardpage pageid="firewallYES" next="bridges" onextra2="onCopyLog();"
107
108
109
110
111
112
113
114
115
116
117
              onpageadvanced="return (getAndValidateFirewallSettings() != null)">
    <vbox class="tbb-logo-box" align="start">
      <image class="tbb-logo" />
    </vbox>
    <separator />
    <vbox>
      <label class="instructions">&torSettings.enterFirewall;</label>
      <groupbox id="firewallSpecificSettings" />
    </vbox>
  </wizardpage>

118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
  <wizardpage pageid="bridges" onextra2="onCopyLog();"
              onpageshow="onWizardUseBridgesRadioChange(this)">
    <vbox class="tbb-logo-box" align="start">
      <image class="tbb-logo" />
    </vbox>
    <separator />
    <hbox>
      <vbox flex="1">
        <label class="question">&torSettings.bridgeQuestion;</label>
        <radiogroup id="useBridgesRadioGroup"
                    oncommand="onWizardUseBridgesRadioChange()">
          <radio id="bridgesRadioYes" label="&torSettings.yes;" />
          <radio id="bridgesRadioNo" label="&torSettings.no;" selected="true" />
        </radiogroup>
        <description class="questionHelp">&torSettings.bridgeHelp;
        </description>
      </vbox>
    </hbox>
  </wizardpage>

  <wizardpage label=" " pageid="bridgeSettings" onextra2="onCopyLog();"
              onpageshow="onWizardBridgeSettingsShow()">
140
141
142
143
144
    <vbox class="tbb-logo-box" align="start">
      <image class="tbb-logo" />
    </vbox>
    <separator />
    <vbox>
145
146
      <label id="bridgeSettingsPrompt"
             class="question">&torSettings.bridgeSettingsPrompt;</label>
147
148
149
150
      <groupbox id="bridgeSpecificSettings" />
    </vbox>
  </wizardpage>

151
152
153
154
  <!-- This page requires a setTimeout for onpageshow because it may be
       shown first -->
  <wizardpage label=" " pageid="startingTor" next="notUsed"
              onpageshow="setTimeout(function() { showWizardNavButtons(false); }, 0);">
155
156
157
    <spring flex="1" />
    <hbox>
      <spring flex="1" />
158
      <description>&torsettings.startingTor;</description>
159
160
161
162
163
      <spring flex="1" />
    </hbox>
    <spring flex="1" />
  </wizardpage>

164
  <wizardpage label=" " pageid="errorPanel" next="notUsed"
165
              onpageshow="showWizardNavButtons(false);"
166
              onextra2="onCopyLog();">
167
168
169
    <spring flex="1" />
    <hbox>
      <spring flex="1" />
170
171
172
173
174
175
176
177
      <description id="errorPanelMessage" />
      <spring flex="1" />
    </hbox>
    <separator/>
    <hbox>
      <spring flex="1" />
      <button id="restartTorButton" label="&torsettings.restartTor;" hidden="true"
              oncommand="onRestartTor()" />
178
179
180
      <spring flex="1" />
    </hbox>
    <spring flex="1" />
181
182
183
184
  </wizardpage>

  <wizardpage class="help"  label=" " pageid="bridgeHelp" next="notUsed"
              onpageadvanced="closeHelp(); return false;">
185
    <vbox id="bridgeHelpContent" />
186
187
  </wizardpage>

188
189
190
  <hbox pack="start">
    <label id="forAssistance" />
  </hbox>
191
</wizard>