Changeset a2e62f


Ignore:
Timestamp:
Aug 25, 2018, 12:02:17 PM (3 years ago)
Author:
rene <rene@…>
Branches:
ng_0.9
Children:
fab458
Parents:
7fa986
Message:

chamged braille-interface to texttospeach

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • content/vI_rdfDataTree.js

    r7fa986 ra2e62f  
    254254      },
    255255
    256       get _braille() {
    257         var braille = false;
    258         try {
    259           braille = (vI.prefroot.getCharPref("accessibility.usebrailledisplay") ||
    260             vI.prefroot.getCharPref("accessibility.usetexttospeech"));
    261         } catch (e) {};
    262         return braille;
     256      get _texttospeach() {
     257        return "true"; // can't get icons drawn in tree - changed behavior of treechildren::-moz-tree-cell
     258        //return vI.prefroot.getCharPref("accessibility.usetexttospeech");
    263259      },
    264260
     
    268264        this.getCellText = function (row, col) {
    269265          var retValue = table[row][col.id.substr(0, col.id.indexOf("_"))];
    270           if (!rdfDataTreeCollection._braille && (retValue == "no" || retValue == "yes"))
     266          if (!rdfDataTreeCollection._texttospeach && (retValue == "no" || retValue == "yes"))
    271267            return ""; // image will be used as indicator
    272268          else return retValue;
  • modules/vI_identityDataExtras.js

    r7fa986 ra2e62f  
    177177  lastCompareResult: false,
    178178
     179  get _texttospeach() {
     180    return prefroot.getCharPref("accessibility.usetexttospeech");
     181  },
     182
    179183  get valueHtml() {
    180184    if (!this.value)
    181185      return "";
    182     return "<div class='bool" + ((this.value == "true") ? " checked" : "") + "'>" +
    183       "<label class='screen'>&nbsp;</label>" +
    184       "<label class='braille'>" + this.valueNice + "</label>" +
    185       "</div>"
     186    let boolclass = ((this.value == "true") ? " checked" : "");
     187    let accessclass = ((this._texttospeach == "true") ? " texttospeach" : " image");
     188    let value = ((this._texttospeach == "true") ? this.valueNice : "&nbsp;");
     189    return "<div class='bool" + boolclass + accessclass + "'>" +
     190      "<label>" + value + "</label></div>"
    186191  },
    187192  get valueNice() {
Note: See TracChangeset for help on using the changeset viewer.