wdw_cardbookConfigurationAddVcards.xul 3.33 KB
Newer Older
CardBook's avatar
CardBook committed
1 2 3
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="chrome://messenger/skin/addressbook/abContactsPanel.css" type="text/css"?>
<?xml-stylesheet href="chrome://cardbook/skin/cardbookAddressBooks.css" type="text/css"?>
CardBook's avatar
CardBook committed
4 5 6
<!-- for MailList icon -->
<?xml-stylesheet href="chrome://cardbook-os/skin/cardbookCardsIcon.css" type="text/css"?>

CardBook's avatar
CardBook committed
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
<?xul-overlay href="chrome://cardbook/content/ovl_cardbookStringBundle.xul"?>

<!DOCTYPE window [
	<!ENTITY % cardbookConfigurationAddVcardDTD SYSTEM "chrome://cardbook/locale/wdw_cardbookConfigurationAddVcards.dtd"> %cardbookConfigurationAddVcardDTD;
	<!ENTITY % configurationDTD SYSTEM "chrome://cardbook/locale/wdw_cardbookConfiguration.dtd"> %configurationDTD;
	<!ENTITY % buttonsDTD SYSTEM "chrome://cardbook/locale/wdw_editionButtons.dtd"> %buttonsDTD;
]>

<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
	xmlns:html="http://www.w3.org/1999/xhtml"
	onload="wdw_cardbookConfigurationAddVcards.load();" resizable="true"
	onclose="wdw_cardbookConfigurationAddVcards.cancel();"
	id="wdw_cardbookConfigurationAddVcards" title="&wdw_cardbookConfigurationAddVcardTitle;"
	persist="screenX screenY width height"
	style="min-width:400px;min-height:200px;">
	
	<stringbundleset id="stringbundleset"/>

	<script src="chrome://cardbook/content/wdw_log.js"/>
	<script src="chrome://cardbook/content/cardbookUtils.js"/>
	<script src="chrome://cardbook/content/cardbookElementTools.js"/>
	<script src="chrome://cardbook/content/configuration/wdw_cardbookConfigurationAddVcards.js"/>

	<keyset id="wdw_cardbookConfigurationAddVcards-keys">
		<key keycode="VK_ESCAPE" oncommand="wdw_cardbookConfigurationAddVcards.cancel();"/>
	</keyset>

	<hbox flex="1">
		<vbox flex="1">
			<grid align="center" flex="1">
				<columns>
					<column/>
					<column flex="1"/>
				</columns>
				<rows>
					<row align="center">
						<label value="&accountsVCardsMailLabel;" control="mailAccountMenulist"/>
						<menulist id="mailAccountMenulist">
							<menupopup id="mailAccountMenupopup"/>
						</menulist>
					</row>
					<row align="center">
						<label value="&accountsVCardsABNameLabel;" control="CardBookABMenulist"/>
						<menulist id="CardBookABMenulist" oncommand="wdw_cardbookConfigurationAddVcards.loadContacts();">
							<menupopup id="CardBookABMenupopup"/>
						</menulist>
					</row>
					<row align="center">
						<label value="&accountsVCardsFnLabel;" control="contactMenulist"/>
						<menulist id="contactMenulist" oncommand="wdw_cardbookConfigurationAddVcards.changeFileName();wdw_cardbookConfigurationAddVcards.changeVCard();">
							<menupopup id="contactMenupopup"/>
						</menulist>
					</row>
					<row align="center">
						<label value="&accountsVCardsFileNameLabel;" control="filenameLabel"/>
						<textbox id="filenameTextbox"/>
					</row>
					<row align="center">
						<label value="&vCardLabel;" control="filenameLabel"/>
						<textbox id="VCardTextbox" disabled="true" multiline="true" rows="15"/>
					</row>
				</rows>
			</grid>
		</vbox>
	</hbox>

	<hbox>
		<spacer flex="1"/>
		<button id="saveEditionLabel" label="&saveEditionLabel;" accesskey="&saveEditionAccesskey;" oncommand="wdw_cardbookConfigurationAddVcards.save();"/>
		<button id="cancelEditionLabel" label="&cancelEditionLabel;" accesskey="&cancelEditionAccesskey;" oncommand="wdw_cardbookConfigurationAddVcards.cancel();"/>
	</hbox>
</window>