summaryrefslogtreecommitdiff
path: root/src/chrome/content/synckolab/wndConfig.xul
blob: 4491cffcfaf42fb1b8df06c28400f8ee90c9a7ac (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
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
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
<?xml version="1.0"?> 
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://synckolab/skin/synckolab.css" type="text/css"?>

<!DOCTYPE loc SYSTEM "chrome://synckolab/locale/synckolab.dtd">

<dialog id="syncKolabConfigDlg" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" onload="synckolab.settings.init();" buttons="accept,cancel" ondialogaccept="return synckolab.settings.savePrefs();" persist="screenX screenY" width="0" title="SyncKolab 2.0.3">

	<script type="application/x-javascript" src="chrome://synckolab/content/calendarTools.js" />
	<script type="application/x-javascript" src="chrome://synckolab/content/addressbookTools.js"/>
	<script type="application/x-javascript" src="chrome://synckolab/content/tools.js" />
	<script type="application/x-javascript" src="chrome://synckolab/content/tools/text.js" />
	<script type="application/x-javascript" src="chrome://synckolab/content/tools/sha1.js" />
	<script type="application/x-javascript" src="chrome://synckolab/content/config.js" />
	<script type="application/x-javascript" src="chrome://synckolab/content/wndConfig.js" />

	<stringbundleset id="stringbundleset">
		<stringbundle id="bundle_messenger" src="chrome://messenger/locale/messenger.properties" />
		<stringbundle id="synckolabBundle" src="chrome://synckolab/locale/synckolab.properties" />
	</stringbundleset>

	<vbox flex="1">
		<hbox flex="1">
			<vbox flex="1">
				<!--  Tree with all configurations -->
				<tree class="synckolab" hidecolumnpicker="true" id="configTree" flex="1" onselect="synckolab.settings.setSyncPrefView(this.view.getItemAtIndex(this.currentIndex).firstChild.firstChild.getAttribute('value'));" width="150">
					<treecols>
						<treecol id="name" flex="1" primary="true" />
					</treecols>

					<treechildren>
					</treechildren>
				</tree>
				<hbox>
					<button id="newConfig" label="&synckolab.settings.add;" orient="vertical" oncommand="synckolab.settings.addConfig();" />
					<button id="loadConfig" label="&synckolab.settings.load;" orient="vertical" oncommand="synckolab.settings.loadConfig();" />
					<button id="delConfig" label="&synckolab.settings.del;" orient="vertical" oncommand="synckolab.settings.delConfig();" />
				</hbox>
			</vbox>
			<splitter collapse="before" resizeafter="farthest">
				<gripp />
			</splitter>

			<tabbox style="border:0px solid #000" flex="1">
				<tabpanels id="tabs" flex="1">
					<tabpanel id="welcome" style="border:0px solid #000">
						<vbox>
							<hbox>
								<label value="&synckolab.settings.SyncKolabHeader;" style="font-size: 16pt;" />
								<label value=" 2.0.2" />
							</hbox>
							<description flex="1" style="width: 300px">
                                &synckolab.settings.SyncKolabDescription;
							</description>
							<hbox>
								<label value="&synckolab.settings.Updates;" />
								<label class="text-link" onclick="synckolab.tools.launchUrl('http://www.gargan.org')">www.gargan.org</label>
							</hbox>
							
							<description style="width: 300px">
                                &synckolab.settings.DescKolabServer;
							</description>

							<label class="text-link" onclick="synckolab.tools.launchUrl('http://www.kolab.org')">www.kolab.org</label>

							<description style="width: 300px" flex="1">&synckolab.settings.DescOtherClients;</description>
							<label class="text-link" onclick="synckolab.tools.launchUrl('http://www.kontact.org')">KDE Client (Kontact) (GPL)</label>
							<label class="text-link" onclick="synckolab.tools.launchUrl('http://www.horde.org')">Horde Webmail (GPL)</label>
							<label class="text-link" onclick="synckolab.tools.launchUrl('http://code.google.com/p/kolab-android/')">Kolab Android</label>

							<separator class="thin" />
							<hbox>
								<label>&synckolab.debugLevel;
								</label>
								<menulist id="debugLevel">
									<menupopup>
										<menuitem id="skDebugLevel0" label="&synckolab.logError;" value="0" />
										<menuitem id="skDebugLevel1" label="&synckolab.logWarning;" value="1" />
										<menuitem id="skDebugLevel2" label="&synckolab.logInfo;" value="2" />
										<menuitem id="skDebugLevel3" label="&synckolab.logDebug;" value="3" />
									</menupopup>
								</menulist>
							</hbox>
							
							<checkbox id="syncOnStart" label="&synckolab.settings.SyncOnStart;" tooltiptext="&synckolab.settings.SyncOnStart;" />
							<checkbox id="hideFolder" style="width: 300px" label="&synckolab.settings.hideFolder;"/>
							<checkbox id="closeWindow" style="width: 300px" label="&synckolab.settings.CloseWindow;" />
							
							<button label="&synckolab.settings.saveAll;" oncommand="synckolab.settings.saveAllConfig();" />
						</vbox>
					</tabpanel>
					<tabpanel id="accountTab" style="border:0px solid #000" flex="1">
						<vbox>
							<hbox>
								<label value="&synckolab.settings.SyncKolabHeader;" style="font-size: 16pt;" />
							</hbox>
							<label value="&synckolab.settings.Updates;" />
							<label class="text-link" onclick="synckolab.tools.launchUrl('http://www.gargan.org')">www.gargan.org</label>
							<separator class="thin" />
						</vbox>
					</tabpanel>
					<tabpanel id="contactTab" style="border:0px solid #000" flex="1">

						<vbox flex="1">

							<label value="&synckolab.settings.abook;" />
							<menulist id="contactURL">
							</menulist>
							<separator class="thin" />

							<tree class="synckolab" flex="7" id="contactImapFolder" rows="7" height="150" width="250" hidecolumnpicker="true" seltype="single" onselect="synckolab.settings.setFolder(this.view.getItemAtIndex(this.currentIndex).firstChild.firstChild.getAttribute('value'));">
								<treecols>
									<treecol id="conFolder" label="&synckolab.settings.ContactFolder;" primary="true" flex="1" />
								</treecols>

							</tree>

							<hbox>
								<label value="&synckolab.settings.ContactFormat;" />
								<menulist id="contactFormat">
								</menulist>
							</hbox>

							<checkbox id="contactSync" label="&synckolab.settings.SyncContacts;" tooltiptext="&synckolab.settings.SyncContactsTip;" oncommand="synckolab.settings.setControlState('contact', this.checked)" />

							<checkbox id="contactSyncListenerImap" label="&synckolab.settings.SyncListener;"/>
							<checkbox id="contactSaveToImap" label="&synckolab.settings.SaveToImap;" tooltiptext="&synckolab.settings.SaveToImapTip;" />
							<hbox>
								<label value="&synckolab.settings.DefaultResolve;" />
								<menulist id="contactDefaultResolve">
									<menupopup>
										<menuitem label="&synckolab.settings.ResolveAsk;" value="ask" />
										<menuitem label="&synckolab.settings.ResolveServer;" value="server" />
										<menuitem label="&synckolab.settings.ResolveClient;" value="client" />
										<!--
											smartresolve is a nice to have feature for a future version
											<menuitem label="&synckolab.settings.ResolveSmart;"
											value="auto"/>
										-->
									</menupopup>
								</menulist>
							</hbox>
<!-- 							<hbox> -->
<!-- 								<label value="&synckolab.settings.SyncInterval;" /> -->
<!-- 								<textbox id="contactSyncInterval" maxlength="5" style="width: 50px" /> -->
<!-- 								<label value="&synckolab.settings.SyncIntervalMinutes;" /> -->
<!-- 							</hbox> -->
							<button label="&synckolab.settings.saveSingle;" oncommand="synckolab.settings.saveSingleConfig();" />

						</vbox>

					</tabpanel>

					<tabpanel id="calTab" style="border:0px solid #000" flex="1">

						<vbox>

							<label value="&synckolab.settings.Calendar;" />
							<menulist id="calendarURL">
							</menulist>

							<separator class="thin" />

							<tree class="synckolab" flex="7" id="calendarImapFolder" rows="7" height="150" width="250" hidecolumnpicker="true" seltype="single" onselect="synckolab.settings.setFolder(this.view.getItemAtIndex(this.currentIndex).firstChild.firstChild.getAttribute('value'));">
								<treecols>
									<treecol id="calFolder" label="&synckolab.settings.CalendarFolder;" primary="true" flex="1" />
								</treecols>
							</tree>
							<hbox>
								<label value="&synckolab.settings.CalendarFormat;" />
								<menulist id="calendarFormat">
								</menulist>
							</hbox>
							<hbox>
								<label value="&synckolab.settings.CalSyncTimeframe;" />
								<textbox id="calendarSyncTimeframe" maxlength="4" style="width: 30px" />
								<label value="&synckolab.settings.TimeframeSyncDays;" />
							</hbox>
							<checkbox id="calendarSync" label="&synckolab.settings.SyncCalendar;" tooltiptext="&synckolab.settings.SyncCalendarTip;" oncommand="synckolab.settings.setControlState('calendar', this.checked)" />

							<checkbox id="calendarSyncListenerImap" label="&synckolab.settings.SyncListener;"/>
							<checkbox id="calendarSaveToImap" label="&synckolab.settings.SaveToImap;" tooltiptext="&synckolab.settings.SaveToImapTip;" />
							<hbox>
								<label value="&synckolab.settings.DefaultResolve;" />
								<menulist id="calendarDefaultResolve">
									<menupopup>
										<menuitem label="&synckolab.settings.ResolveAsk;" value="ask" />
										<menuitem label="&synckolab.settings.ResolveServer;" value="server" />
										<menuitem label="&synckolab.settings.ResolveClient;" value="client" />
										<!--
											smartresolve is a nice to have feature for a future version
											<menuitem label="&synckolab.settings.ResolveSmart;"
											value="auto"/>
										-->
									</menupopup>
								</menulist>
							</hbox>
<!-- 							<hbox> -->
<!-- 								<label value="&synckolab.settings.SyncInterval;" /> -->
<!-- 								<textbox id="calendarSyncInterval" maxlength="5" style="width: 50px" /> -->
<!-- 								<label value="&synckolab.settings.SyncIntervalMinutes;" /> -->
<!-- 							</hbox> -->
						</vbox>

					</tabpanel>
					<tabpanel id="taskTab" style="border:0px solid #000" flex="1">

						<vbox>

							<label value="&synckolab.settings.Tasks;" />
							<menulist id="taskURL">
							</menulist>

							<separator class="thin" />

							<tree class="synckolab" flex="7" id="taskImapFolder" rows="7" height="150" width="250" hidecolumnpicker="true" seltype="single" onselect="synckolab.settings.setFolder(this.view.getItemAtIndex(this.currentIndex).firstChild.firstChild.getAttribute('value'));">
								<treecols>
									<treecol id="taskFolder" label="&synckolab.settings.TaskFolder;" primary="true" flex="1" />
								</treecols>
							</tree>

							<hbox>
								<label value="&synckolab.settings.TaskFormat;" />
								<menulist id="taskFormat">
								</menulist>
							</hbox>
							<hbox>
								<label value="&synckolab.settings.CalSyncTimeframe;" />
								<textbox id="taskSyncTimeframe" maxlength="4" style="width: 30px" />
								<label value="&synckolab.settings.TimeframeSyncDays;" />
							</hbox>
							<checkbox id="taskSync" label="&synckolab.settings.SyncTasks;" tooltiptext="&synckolab.settings.SyncTasksTip;" oncommand="synckolab.settings.setControlState('task', this.checked)" />

							<checkbox id="taskSyncListenerImap" label="&synckolab.settings.SyncListener;"/>
							<checkbox id="taskSaveToImap" label="&synckolab.settings.SaveToImap;" tooltiptext="&synckolab.settings.SaveToImapTip;" />
							<hbox>
								<label value="&synckolab.settings.DefaultResolve;" />
								<menulist id="taskDefaultResolve">
									<menupopup>
										<menuitem label="&synckolab.settings.ResolveAsk;" value="ask" />
										<menuitem label="&synckolab.settings.ResolveServer;" value="server" />
										<menuitem label="&synckolab.settings.ResolveClient;" value="client" />
										<!--
											smartresolve is a nice to have feature for a future version
											<menuitem label="&synckolab.settings.ResolveSmart;"
											value="auto"/>
										-->
									</menupopup>
								</menulist>
							</hbox>
<!-- 							<hbox> -->
<!-- 								<label value="&synckolab.settings.SyncInterval;" /> -->
<!-- 								<textbox id="taskSyncInterval" maxlength="5" style="width: 50px" /> -->
<!-- 								<label value="&synckolab.settings.SyncIntervalMinutes;" /> -->
<!-- 							</hbox> -->
						</vbox>

					</tabpanel>

				</tabpanels>

			</tabbox>

		</hbox>
	</vbox>
</dialog>