aboutsummaryrefslogtreecommitdiff
path: root/chrome/content/ui/settings.xul
blob: 27f16dd9705fbd4269eda0025c7cdfe958f1139f (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
<?xml version="1.0" encoding="UTF-8"?>
<!-- $Id$ -->
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://redirector/skin/redirector.css" type="text/css"?>

<!DOCTYPE dialog SYSTEM "chrome://redirector/locale/settings.xul.dtd">
<window title="&window.title;"
        orient="vertical"
        onload="Settings.onLoad();"
        onunload="Settings.onUnload();"
        buttons="accept"
        width="650px"
        height="500px"
        id="redirectorSettings"
        windowtype="redirectorSettings"
		xmlns:nc="http://home.netscape.com/NC-rdf#"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

	<script type="application/x-javascript" src="../code/redirectorprefs.js"/>
	<script type="application/x-javascript" src="../code/redirect.js"/>
	<script type="application/x-javascript" src="../code/settings.xul.js"/>
	<stringbundleset id="stringbundleset">
		<stringbundle id="redirector-strings" src="chrome://redirector/locale/redirector.properties"/>
	</stringbundleset>
	<tabbox flex="1" >
		<tabs>
			<tab label="&tabRedirects.label;" accesskey="&tabRedirects.accesskey;" />
			<tab label="&tabPreferences.label;" accesskey="&tabPreferences.accesskey;" />
			<tab label="&tabImportExport.label;" accesskey="&tabImportExport.accesskey;" />
			<tab label="&tabHelp.label;" accesskey="&tabHelp.accesskey;" />
		</tabs>
		<tabpanels flex="1">
			<tabpanel flex="1">
				<vbox flex="1">
					<richlistbox seltype="single" id="lstRedirects" flex="1" onkeypress="Settings.listKeypress(event);" ondblclick="Settings.editRedirect();" onselect="Settings.selectionChange();">
						<richlistitem class="SettingsItem" selected="false">
							<grid>
								<cols />
								<rows class="redirectRows">
									<row>
										<label value="&colIncludePattern.label;:" />
										<description name="dscrIncludePattern" />
									</row>
									<row>
										<label value="&colExcludePattern.label;:" />
										<description name="dscrExcludePattern" />
									</row>
									<row>
										<label value="&colRedirectTo.label;:" />
										<description name="dscrRedirectTo" />
									</row>
									<row>
										<label value="&colEnabled.label;:" />
										<hbox><checkbox checked="false" name="chkEnabled" label="" /> <spacer flex="1"/></hbox>
									</row>
								</rows>
							</grid>
						</richlistitem>
					</richlistbox>
					<hbox>
						<button id="btnAdd" oncommand="Settings.addRedirect();" accesskey="&btnAdd.accesskey;" label="&btnAdd.label;" tooltiptext="&btnAdd.tooltip;" disabled="false" />
						<button id="btnEdit" oncommand="Settings.editRedirect();" accesskey="&btnEdit.accesskey;" label="&btnEdit.label;" tooltiptext="&btnEdit.tooltip;" disabled="true" />
						<button id="btnDelete" oncommand="Settings.deleteRedirect();" accesskey="&btnDelete.accesskey;" label="&btnDelete.label;" tooltiptext="&btnDelete.tooltip;" disabled="true" />
						<button id="btnUp" oncommand="Settings.moveUp();" tooltiptext="&btnUp.tooltip;" disabled="true" />
						<button id="btnDown" oncommand="Settings.moveDown();" tooltiptext="&btnDown.tooltip;" disabled="true" />
					</hbox>
				</vbox>
			</tabpanel>
			<tabpanel>
				<vbox flex="1">
					<groupbox>
						<caption label="&grpGeneralPreferences.label;" />
						<hbox>
							<checkbox id="chkEnableRedirector" label="&chkEnableRedirector.label;" oncommand="Settings.preferenceChange(event);" accesskey="&chkEnableRedirector.accesskey;" preference="enabled" />
							<spacer flex="1" />
						</hbox>
						<hbox>
							<checkbox id="chkShowStatusBarIcon" label="&chkShowStatusBarIcon.label;" oncommand="Settings.preferenceChange(event);" accesskey="&chkShowStatusBarIcon.accesskey;" preference="showStatusBarIcon" />
							<spacer flex="1" />
						</hbox>
						<hbox>
							<checkbox id="chkShowContextMenu" label="&chkShowContextMenu.label;" oncommand="Settings.preferenceChange(event);" accesskey="&chkShowContextMenu.accesskey;" preference="showContextMenu" />
							<spacer flex="1" />
						</hbox>
					</groupbox>
					<groupbox>
						<caption label="&grpDebuggingPreferences.label;" />
						<hbox>
							<checkbox id="chkEnableDebugOutput" label="&chkEnableDebugOutput.label;" oncommand="Settings.preferenceChange(event);" accesskey="&chkEnableDebugOutput.accesskey;" preference="debugEnabled" />
							<spacer flex="1" />
						</hbox>
					</groupbox>
					<spacer flex="1" />
				</vbox>
			</tabpanel>
			<tabpanel>
				<groupbox flex="1" id="grpImportExport">
					<vbox>
						<hbox align="middle">
							<button id="btnImport" accesskey="&btnImport.accesskey;" oncommand="Settings.import();" label="&btnImport.label;"/>
							<label id="lblImport" value="&lblImport.label;" />
							<spacer flex="1" />
						</hbox>
						<hbox>
							<button id="btnExport" accesskey="&btnExport.accesskey;" oncommand="Settings.export();" label="&btnExport.label;"/>
							<label id="lblExport" value="&lblExport.label;" />
							<spacer flex="1" />
						</hbox>
						<spacer flex="1" />
					</vbox>
				</groupbox>
			</tabpanel>
			<tabpanel>
				<browser type="content" src="chrome://redirector/content/ui/help.html" flex="1" />
			</tabpanel>
		</tabpanels>
	</tabbox>
</window>