Changeset 4e597d


Ignore:
Timestamp:
Sep 11, 2009, 3:51:54 PM (12 years ago)
Author:
rene <rene@…>
Branches:
lite_0.1, multiEdit, ng_0.6, ng_0.6_help, ng_0.8, ng_0.9
Children:
ea80f9
Parents:
aac9e6
Message:

implementation for fcc_switch

Location:
chrome
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • chrome/content/v_identity/vI_account.js

    raac9e6 r4e597d  
    240240    setupFcc : function()
    241241    {
    242         if (vI.preferences.getBoolPref("doFcc")) {
     242        if (document.getElementById("fcc_switch").getAttribute("checked")) {
    243243            switch (vI.preferences.getCharPref("fccFolderPickerMode"))
    244244            {
  • chrome/content/v_identity/vI_prefDialog.js

    raac9e6 r4e597d  
    4646                "VIdent_identity.smart_reply_for_newsgroups",
    4747                "VIdent_identity.show_smtp",
    48                 "VIdent_identity.show_noFcc",
     48                "VIdent_identity.fcc_show_switch",
    4949                "VIdent_identity.menu_entry",
    5050                "VIdent_identity.smart_reply_headers",
     
    261261    savePrefs : function() {
    262262        // Copy all changes to Elements
    263         onSaveCopiesAndFolders()
     263        onSaveCopiesAndFolders();
    264264        vI_prefDialog.base.savePrefs();
    265265    },
  • chrome/content/v_identity/vI_prefDialog.xul

    raac9e6 r4e597d  
    331331                    <checkbox id="VIdent_identity.show_smtp" label="&vI_prefDialog.composeDialog.SMTP.label;"
    332332                        tooltiptext="&vI_prefDialog.composeDialog.SMTP.tooltiptext;" prefstring="show_smtp" />
    333                     <checkbox id="VIdent_identity.show_noFcc" label="&vI_prefDialog.composeDialog.noFcc.label;"
    334                         tooltiptext="&vI_prefDialog.composeDialog.noFcc.tooltiptext;" prefstring="show_noFcc" />
    335333                    <checkbox id="VIdent_identity.storage_show_switch" label="&vI_prefDialog.storage.show_switch.label;"
    336334                        prefstring="storage_show_switch"/>
     335                    <checkbox id="VIdent_identity.fcc_show_switch" label="&vI_prefDialog.composeDialog.fcc_show_switch.label;"
     336                        tooltiptext="&vI_prefDialog.composeDialog.fcc_show_switch.tooltiptext;" prefstring="fcc_show_switch" />
    337337                </groupbox>
    338338            </tabpanel>
  • chrome/content/v_identity/vI_statusmenu.js

    raac9e6 r4e597d  
    3333    objStatusMenuSeparator : null,
    3434    objSaveSwitch : null,
     35    objFccSwitch : null,
    3536    objStatusText : null,
    3637   
    3738    observe: function(subject, topic, data) {
    3839        switch (data) {
     40            case "extensions.virtualIdentity.fcc_show_switch":
     41                vI_statusmenu.objFccSwitch.setAttribute("hidden", !vI_statusmenu.prefroot.getBoolPref(data));
     42                // no break, continue like with doFcc           
     43            case "extensions.virtualIdentity.doFcc":
     44                vI_statusmenu.objFccSwitch.setAttribute("checked", vI_statusmenu.prefroot.getBoolPref("extensions.virtualIdentity.doFcc"));
     45                break;
    3946            case "extensions.virtualIdentity.storage_show_switch":
    4047                vI_statusmenu.objSaveSwitch.setAttribute("hidden", !vI_statusmenu.prefroot.getBoolPref(data));
     
    6370   
    6471    addObserver: function() {
     72        vI_statusmenu.prefroot.addObserver("extensions.virtualIdentity.fcc_show_switch", vI_statusmenu, false);
     73        vI_statusmenu.prefroot.addObserver("extensions.virtualIdentity.doFcc", vI_statusmenu, false);
    6574        vI_statusmenu.prefroot.addObserver("extensions.virtualIdentity.storage", vI_statusmenu, false);
    6675        vI_statusmenu.prefroot.addObserver("extensions.virtualIdentity.storage_show_switch", vI_statusmenu, false);
     
    7079   
    7180    removeObserver: function() {
     81        vI_statusmenu.prefroot.removeObserver("extensions.virtualIdentity.fcc_show_switch", vI_statusmenu);
     82        vI_statusmenu.prefroot.removeObserver("extensions.virtualIdentity.doFcc", vI_statusmenu);
    7283        vI_statusmenu.prefroot.removeObserver("extensions.virtualIdentity.storage", vI_statusmenu);
    7384        vI_statusmenu.prefroot.removeObserver("extensions.virtualIdentity.storage_show_switch", vI_statusmenu);
     
    8495        vI_statusmenu.objStatusMenuSeparator = document.getElementById("vI_statusMenu_separator");
    8596        vI_statusmenu.objSaveSwitch = document.getElementById("storage_save");
     97        vI_statusmenu.objFccSwitch = document.getElementById("fcc_switch");
    8698        vI_statusmenu.objStatusText = document.getElementById("statusText");
    8799        vI_statusmenu.objStatusTooltipLine1 = document.getElementById("vI_statusMenuTooltip_StatusValueLine1");
     
    89101
    90102        vI_statusmenu.addObserver();
     103        vI_statusmenu.observe(null, null, "extensions.virtualIdentity.fcc_show_switch");
    91104        vI_statusmenu.observe(null, null, "extensions.virtualIdentity.storage_show_switch");
    92105        vI_statusmenu.observe(null, null, "extensions.virtualIdentity.storage_store_base_id");
  • chrome/content/v_identity/v_identity.xul

    raac9e6 r4e597d  
    7777        <observes element="vI_statusMenu_storage_save" attribute="checked" />
    7878    </checkbox>
     79    <checkbox id="fcc_switch" label="&vident.composeDialog.fcc_switch.label;"
     80          tooltiptext="&vident.composeDialog.fcc_switch.tooltiptext;" hidden="true" />
    7981    <popupset id="vI_tooltipPopupset" />
    8082</hbox>
  • chrome/locale/en-US/v_identity/vI_prefDialog.dtd

    raac9e6 r4e597d  
    8080<!ENTITY vI_prefDialog.composeDialog.SMTP.label "show SMTP Menu">
    8181<!ENTITY vI_prefDialog.composeDialog.SMTP.tooltiptext "show Menu to select between available SMTP-servers">
    82 <!ENTITY vI_prefDialog.composeDialog.noFcc.label "show no-FCC Button">
    83 <!ENTITY vI_prefDialog.composeDialog.noFcc.tooltiptext "show Button to activate/deactivate Storing of Sent mails on the fly">
     82<!ENTITY vI_prefDialog.composeDialog.fcc_show_switch.label "show switch to activate/deactivate saving of sent mails">
     83<!ENTITY vI_prefDialog.composeDialog.fcc_show_switch.tooltiptext "show Button to activate/deactivate Storing of Sent mails (fcc) on the fly">
    8484
    8585<!ENTITY vI_prefDialog.sending.Folder.label "Attributes / Copies">
  • chrome/locale/en-US/v_identity/v_identity.dtd

    raac9e6 r4e597d  
    33<!ENTITY vident.composeDialog.storageSave.label "save">
    44<!ENTITY vident.composeDialog.storageSave.tooltiptext "save Identity while sending">
     5<!ENTITY vident.composeDialog.fcc_switch.label "Fcc">
     6<!ENTITY vident.composeDialog.fcc_switch.tooltiptext "save copy of sent mail">
    57<!ENTITY vident.replySelector.dialogheader.title "Virtual Identity">
    68<!ENTITY vident.replySelector.caption.label "Choose a Virtual Identity">
Note: See TracChangeset for help on using the changeset viewer.