Changeset 2f8c7f
- Timestamp:
- Sep 16, 2008, 10:44:01 PM (14 years ago)
- Branches:
- lite_0.1, multiEdit, ng_0.6, ng_0.6_help, ng_0.8, ng_0.9
- Children:
- 1c8ec4
- Parents:
- 643bca
- Location:
- chrome
- Files:
-
- 1 added
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
chrome/content/v_identity/vI_Dialog.js
r643bca r2f8c7f 33 33 vI_Dialog.setDescription(document.getElementById("vI_Dialog_recLabel"), warning.recLabel); 34 34 vI_Dialog.setDescription(document.getElementById("vI_Dialog_recipient"), warning.recipient); 35 vI_htmlTextBox.init("vI_Dialog_browser", null, warning.warning, warning.css);35 document.getElementById("vI_Dialog_browser").outputString = warning.warning; 36 36 vI_Dialog.setDescription(document.getElementById("vI_Dialog_query"), warning.query); 37 37 } -
chrome/content/v_identity/vI_Dialog.xul
r643bca r2f8c7f 45 45 <description id="vI_Dialog_recLabel" /> 46 46 <description id="vI_Dialog_recipient" /> 47 <browser id="vI_Dialog_browser" disablehistory="true" flex="1" /> 47 <browser id="vI_Dialog_browser" class="vI_htmlTextBox" 48 documentStyle="background-color: -moz-dialog; font: -moz-dialog;" 49 cssSource="vI_DialogBrowser.css" flex="1" disablehistory="true" /> 48 50 <description id="vI_Dialog_query" /> 49 51 </dialog> -
chrome/content/v_identity/vI_htmlTextBox.xml
r643bca r2f8c7f 32 32 <constructor> 33 33 <![CDATA[ 34 // vI_notificationBar.dump('******* vI_htmlTextBox.xml constructor\n'); 34 <!-- vI_notificationBar.dump('******* vI_htmlTextBox.xml constructor\n'); --> 35 35 ]]> 36 36 </constructor> 37 37 <property name="outputString" > 38 38 <setter><![CDATA[ 39 if (!this._cssRead) this.cssSource = this.getAttribute('cssSource'); // read initial Attribute. 39 if (!this._cssRead) this.cssSource = this.getAttribute('cssSource'); // read initial Attributes 40 this.contentDocument.lastChild.setAttribute("style", this.getAttribute('documentStyle')); 40 41 41 42 var oldChilds = this.contentDocument.body.childNodes; … … 108 109 this._currentList = this.contentDocument 109 110 .createElementNS("http://www.w3.org/1999/xhtml", 'html:ul'); 110 this.contentDocument.body.appendChild( vI_htmlTextBox.currentList);111 this.contentDocument.body.appendChild(this._currentList); 111 112 } 112 113 this._currentBaseNode = this.contentDocument 113 114 .createElementNS("http://www.w3.org/1999/xhtml", 'html:li'); 114 this._currentList.appendChild( vI_htmlTextBox.currentBaseNode);115 this._currentList.appendChild(this._currentBaseNode); 115 116 } 116 117 else { -
chrome/content/v_identity/vI_upgrade.js
r643bca r2f8c7f 34 34 vI_upgrade.__initRequirements(); 35 35 document.documentElement.getButton("cancel").setAttribute("hidden", "true") 36 vI_upgrade.skipUpgradePages(); // skip obsolete upgrade Pages37 36 }, 38 37 … … 66 65 }, 67 66 68 skipUpgradePages : function() { 69 var preUpdateWizardPage = document.getElementById("license") 70 // if former version of extension was at least 0.5.0, start with WizardPage 0.5.2 71 if (vI_upgrade.versionChecker.compare(vI_rdfDatasource.getCurrentExtFileVersion(), "0.5.0") >= 0) 72 preUpdateWizardPage.setAttribute("next", "upgrade") 73 }, 74 75 adaptButtons : function() { 67 prepare : function(elem) { 76 68 document.documentElement.getButton('back').setAttribute('hidden','true'); 77 69 document.documentElement.getButton('next').focus(); 70 var pageid = elem.getAttribute("pageid"); 71 var browser = document.getElementById('vITextBox.' + pageid) 72 if (browser) 73 browser.outputString = 74 document.getElementById('vITextBoxBundle').getString('vident.' + pageid); 78 75 }, 79 76 -
chrome/content/v_identity/vI_upgrade.xul
r643bca r2f8c7f 38 38 <wizard id="upgradeWizard" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" 39 39 title="&vident.upgrade.dlgTitle.label;" 40 zlevel="6" onload="vI_upgrade.init(); ">40 zlevel="6" onload="vI_upgrade.init(); vI_upgrade.prepare(document.getElementById('introPage'));" > 41 41 42 42 <script type="application/x-javascript" src="chrome://v_identity/content/vI_upgrade.js" /> … … 51 51 <stringbundle id="vITextBoxBundle" src="chrome://v_identity/locale/vI_upgrade.properties" /> 52 52 53 <wizardpage onpageshow="vI_upgrade.adaptButtons();vI_htmlTextBox.init('vITextBox.intro', 'vident.intro');"53 <wizardpage id="introPage" 54 54 label="&vident.upgrade.intro.label;" description="&vident.upgrade.intro.description;" 55 55 pageid="intro" next="features" > 56 56 <groupbox> 57 57 <caption label="&vident.upgrade.intro.caption;"/> 58 <browser id="vITextBox.intro" disablehistory="true" /> 58 <browser id="vITextBox.intro" class="vI_htmlTextBox" disablehistory="true" 59 documentStyle="background-color: -moz-dialog; font: -moz-dialog;" /> 59 60 </groupbox> 60 61 </wizardpage> 61 62 <!-- features --> 62 <wizardpage onpageshow="vI_upgrade. adaptButtons();vI_htmlTextBox.init('vITextBox.features', 'vident.features');"63 <wizardpage onpageshow="vI_upgrade.prepare(this);" 63 64 label="&vident.upgrade.features.label;" description="&vident.upgrade.features.description;" 64 65 pageid="features" next="license" > 65 66 <groupbox> 66 67 <caption label="&vident.upgrade.features.caption;"/> 67 <browser id="vITextBox.features" disablehistory="true" /> 68 <browser id="vITextBox.features" class="vI_htmlTextBox" disablehistory="true" 69 documentStyle="background-color: -moz-dialog; font: -moz-dialog;" /> 68 70 </groupbox> 69 71 </wizardpage> 70 72 <!-- GPL license --> 71 <wizardpage onpageshow="vI_upgrade. adaptButtons();vI_htmlTextBox.init('vITextBox.license', 'vident.license');"73 <wizardpage onpageshow="vI_upgrade.prepare(this);" 72 74 label="&vident.upgrade.license.label;" description="&vident.upgrade.license.description;" 73 id="license" pageid="license" next="0.5.0" >75 pageid="license" next="upgrade" > 74 76 <groupbox> 75 77 <caption label="&vident.upgrade.license.caption;"/> 76 <browser id="vITextBox.license" disablehistory="true" /> 78 <browser id="vITextBox.license" class="vI_htmlTextBox" disablehistory="true" 79 cssSource="vI_upgrade_license.css" 80 documentStyle="background-color: -moz-dialog; font: -moz-dialog;" /> 77 81 </groupbox> 78 82 </wizardpage> 79 <!-- upgrade information -->80 <!-- 0.5.0 -->81 <wizardpage onpageshow="vI_upgrade.adaptButtons();vI_htmlTextBox.init('vITextBox.0.5.0', 'vident.0.5.0');"82 label="&vident.upgrade.0.5.0.label;" description="&vident.upgrade.0.5.0.description;"83 pageid="0.5.0" next="upgrade" >84 <groupbox>85 <caption label="&vident.upgrade.0.5.0.caption;"/>86 <browser id="vITextBox.0.5.0" disablehistory="true" />87 </groupbox>88 </wizardpage>89 <!-- 0.5.3 -->90 <!-- <wizardpage onpageshow="vI_upgrade.adaptButtons();vI_htmlTextBox.init('vITextBox.0.5.3', 'vident.0.5.3');"91 label="&vident.upgrade.0.5.3.label;" description="&vident.upgrade.0.5.3.description;"92 pageid="0.5.3" next="upgrade" >93 <groupbox>94 <caption label="&vident.upgrade.0.5.3.caption;"/>95 <browser id="vITextBox.0.5.3" disablehistory="true" />96 </groupbox>97 </wizardpage>98 -->99 83 <!-- upgrade procedure --> 100 <wizardpage onpageshow="vI_upgrade. adaptButtons();vI_upgrade.upgrade();"84 <wizardpage onpageshow="vI_upgrade.prepare(this);vI_upgrade.upgrade();" 101 85 label="&vident.upgrade.upgrade.label;" description="&vident.upgrade.upgrade.description;" 102 86 pageid="upgrade" next="finish" > … … 107 91 </wizardpage> 108 92 <!-- finish --> 109 <wizardpage onpageshow="vI_upgrade. adaptButtons();vI_htmlTextBox.init('vITextBox.finish', 'vident.finish');"93 <wizardpage onpageshow="vI_upgrade.prepare(this);" 110 94 label="&vident.upgrade.finish.label;" description="&vident.upgrade.finish.description;" 111 95 pageid="finish" > 112 96 <groupbox> 113 97 <caption label="&vident.upgrade.finish.caption;"/> 114 <browser id="vITextBox.finish" disablehistory="true" /> 98 <browser id="vITextBox.finish" class="vI_htmlTextBox" disablehistory="true" 99 documentStyle="background-color: -moz-dialog; font: -moz-dialog;" /> 115 100 </groupbox> 116 101 </wizardpage> -
chrome/content/v_identity/vI_upgradeOverlay.js
r643bca r2f8c7f 28 28 if (vI_rdfDatasource.rdfUpgradeRequired() || vI_rdfDatasource.extUpgradeRequired()) { 29 29 if (!vI_upgrade.quick_upgrade()) 30 window.open Dialog("chrome://v_identity/content/vI_upgrade.xul",0, // give the Dialog a unique id31 "chrome, dialog, modal,alwaysRaised, resizable=yes").focus();30 window.open("chrome://v_identity/content/vI_upgrade.xul",0, // give the Dialog a unique id 31 "chrome, dialog, alwaysRaised, resizable=yes").focus(); 32 32 } 33 33 else { -
chrome/content/v_identity/v_identity.xml
r643bca r2f8c7f 49 49 <parameter name="permanent" /> 50 50 <body><![CDATA[ 51 vI_notificationBar.dump("** v_identity.xml: addTooltip.\n");52 51 var randID = elem.tooltipElem.getAttribute("tooltip"); 53 52 this.removeTooltip(randID); … … 61 60 toolTip.elem = elem; 62 61 toolTip.permanent = permanent; 63 vI_notificationBar.dump("** v_identity.xml: addTooltip 3.\n");64 62 this.appendChild(toolTip); 65 vI_notificationBar.dump("** v_identity.xml: addTooltip done.\n");66 63 ]]></body> 67 64 </method> … … 83 80 <method name="popupshowing"> 84 81 <body><![CDATA[ 85 vI_notificationBar.dump("** v_identity.xml: popupshowing\n");86 82 if (!this._identityInfo) { 87 vI_notificationBar.dump("** v_identity.xml: popupshowing 2\n");88 83 this._identityInfo = 89 84 "<table>" + … … 97 92 this._tooltipBrowser.outputString = this._identityInfo; 98 93 } 99 vI_notificationBar.dump("** v_identity.xml: popupshowing done.\n");100 94 ]]></body> 101 95 </method> 102 96 <method name ="popuphidden"> 103 97 <body><![CDATA[ 104 vI_notificationBar.dump("** v_identity.xml: popuphidden\n");105 98 if (!this.permanent) this._identityInfo = null; 106 99 ]]></body> … … 109 102 <body><![CDATA[ 110 103 if (!this._identityInfo) return; 111 vI_notificationBar.dump("** v_identity.xml: resize.\n");112 104 var width = document.getElementById("msgIdentity_clone").boxObject.width * 0.7; 113 105 var height = this._tooltipBrowser.contentDocument.lastChild.scrollHeight + 5; … … 115 107 width = document.getElementById("msgIdentity_clone").boxObject.width * 0.75; 116 108 this.sizeTo(width, height); 117 vI_notificationBar.dump("** v_identity.xml: resize done.\n");118 109 ]]></body> 119 110 </method> … … 314 305 <method name="init"> 315 306 <body><![CDATA[ 316 vI_notificationBar.dump("** v_identity.xml: clone_Obj_MsgIdentity\n");317 318 307 var MenuItems = this._msgIdentityPopupElem.childNodes 319 308 for (var index = 0; index < MenuItems.length; index++) { … … 329 318 if (this._msgIdentity_selectedItem == MenuItems[index]) { 330 319 this.selectedItem = menuItem; 331 vI_notificationBar.dump("** v_identity.xml: clone_Obj_MsgIdentity selectedMenuItem " + menuItem.value + " found\n");332 320 this.identityData = newIdentity.getDuplicate(); 333 321 } … … 340 328 <method name="clean"> 341 329 <body><![CDATA[ 342 vI_notificationBar.dump("** v_identity.xml: clean\n");343 330 var MenuItems = this._popupElem.childNodes; 344 331 while (MenuItems.length > 0) { … … 353 340 <parameter name="localIdentityData" /> 354 341 <body><![CDATA[ 355 vI_notificationBar.dump("** v_identity.xml: addIdentityToCloneMenu '" + localIdentityData.id + "'\n");356 357 342 var existingItem = this._isExistingCloneMenuItem(localIdentityData); 358 343 if (!existingItem) { … … 384 369 <body><![CDATA[ 385 370 var MenuItems = this._popupElem.childNodes; 386 vI_notificationBar.dump("** v_identity.xml: getMenuItemForIdentity key " + identitykey + " menulength " + MenuItems.length + "\n");387 371 for (var index = 0; index < MenuItems.length; index++) { 388 372 if (MenuItems[index].value == identitykey) … … 421 405 <parameter name="localIdentityData" /> 422 406 <body><![CDATA[ 423 vI_notificationBar.dump("** _isExistingCloneMenuItem\n");424 425 407 var MenuItems = this._popupElem.childNodes 426 408 for (var j = 0; j < MenuItems.length; j++) { 427 409 if (MenuItems[j].localName == "menuseparator") continue; 428 vI_notificationBar.dump("** comparing id " + MenuItems[j].identityData.id + " with " + localIdentityData.id + "\n"); 429 if (MenuItems[j].identityData.equals(localIdentityData)) { 430 vI_notificationBar.dump("** _isExistingCloneMenuItem: found existing one\n"); 431 return MenuItems[j]; 432 } 433 } 434 vI_notificationBar.dump("** _isExistingCloneMenuItem: none found\n"); 410 if (MenuItems[j].identityData.equals(localIdentityData)) return MenuItems[j]; 411 } 435 412 return null; 436 413 ]]></body> … … 485 462 <property name="identityData"> 486 463 <getter><![CDATA[ 487 vI_notificationBar.dump("** v_identity.xml: read identityData.\n");488 464 this._identityDataStorage.extras.readValues(); // update with current data 489 vI_notificationBar.dump("** v_identity.xml: extras update done identityData.\n");490 465 return this._identityDataStorage; 491 466 ]]></getter> … … 493 468 if (!val) this._identityDataStorage = null 494 469 else { 495 vI_notificationBar.dump("** v_identity.xml: updating DataStorage.\n");496 470 var oldIdentityData = this._identityDataStorage; 497 471 this._identityDataStorage = val; … … 503 477 this._identityDataStorage.sideDescription = (idName)?" - "+idName:""; 504 478 } 505 vI_notificationBar.dump("** v_identity.xml: set extra Values\n");506 479 this._identityDataStorage.extras.setValues(); 507 480 … … 515 488 document.getAnonymousElementByAttribute(this, "anonid", "smtpServerListHbox").smtp = this._identityDataStorage.smtp; 516 489 517 vI_notificationBar.dump("** v_identity.xml: updating DataStorage done.\n");518 490 } 519 491 ]]></setter> -
chrome/locale/en-US/v_identity/vI_upgrade.dtd
r643bca r2f8c7f 9 9 <!ENTITY vident.upgrade.license.description "license"> 10 10 <!ENTITY vident.upgrade.license.caption "GNU General Public License"> 11 <!ENTITY vident.upgrade.0.5.0.label "Virtual Identity Install/Upgrade">12 <!ENTITY vident.upgrade.0.5.0.description "upgrade step 1/2">13 <!ENTITY vident.upgrade.0.5.0.caption "Virtual Identity Data-Storage">14 11 <!ENTITY vident.upgrade.upgrade.label "Virtual Identity Install/Upgrade"> 15 12 <!ENTITY vident.upgrade.upgrade.description "upgrade step 2/2"> -
chrome/locale/en-US/v_identity/vI_upgrade.properties
r643bca r2f8c7f 1 1 vident.intro= Thank you for using Virtual Identity.\n\nVirtual Identity is an Extension for your email client, which gives you the possibility to create Identity's on the fly without using the Account Dialog. This is especially useful, if you have an own mailserver and use many different Identities.\n\nPlease report all problems, ideas or requierements at https://www.absorb.it/virtual-id\n\nContinue all steps of the Ugrade-Wizard. 2 vident.features= New features of the 0. 5 releases\n* all Virtual Identities can now be stored and reused (default)\n* possibility to use Virtual Identities for Newsgroup-Messages\n* works now smoothly with SMTP-selector, choose default smtp\nenjoy the new version!2 vident.features= New features of the 0.6 releases\n* TO BE FILLED IN! 3 3 vident.license= This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License at http://www.gnu.org/copyleft/gpl.html for more details.\n\n---\nThis program was developed by Rene Ejury (2008). 4 vident.0.5.0= In order to use the new Version of Virtual Identity you have to upgrade the database.\n\nVirtual Identities are not stored in the Addressbook anymore, a seperate file is used from 0.5pre on. If you continue now, Information about Virtual Identities will be transferred from your Addressbook to the new file.5 4 vident.finish= Upgrade/Installation successfull.\n\nEnjoy using Virtal Identity.\n\nThe quality of the software is also depending on you, so please report bugs and problems or help writing some documentation at https://www.absorb.it/virtual-id . You can also help translating the program at http://babelzilla.org . -
chrome/skin/classic/v_identity/vI_Dialog.css
r643bca r2f8c7f 26 26 } 27 27 28 .vI_htmlTextBox { 29 -moz-binding: url("chrome://v_identity/content/vI_htmlTextBox.xml#vI_htmlTextBox"); 30 } 31 28 32 #vI_Dialog_query { 29 33 text-align: right;
Note: See TracChangeset
for help on using the changeset viewer.