Changeset 1102


Ignore:
Timestamp:
11/03/08 20:38:28 (11 years ago)
Author:
douglas
Message:

UPDATED Ticket #1318 Switch over a number of icons to those coming from the Tango project...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XinhaCore.js

    r1100 r1102  
    10341034  this.btnList = 
    10351035  { 
    1036     bold: [ "Bold", Xinha._lc({key: 'button_bold', string: ["ed_buttons_main.gif",3,2]}, 'Xinha'), false, function(e) { e.execCommand("bold"); } ], 
    1037     italic: [ "Italic", Xinha._lc({key: 'button_italic', string: ["ed_buttons_main.gif",2,2]}, 'Xinha'), false, function(e) { e.execCommand("italic"); } ], 
    1038     underline: [ "Underline", Xinha._lc({key: 'button_underline', string: ["ed_buttons_main.gif",2,0]}, 'Xinha'), false, function(e) { e.execCommand("underline"); } ], 
    1039     strikethrough: [ "Strikethrough", Xinha._lc({key: 'button_strikethrough', string: ["ed_buttons_main.gif",3,0]}, 'Xinha'), false, function(e) { e.execCommand("strikethrough"); } ], 
     1036    bold: [ "Bold", Xinha._lc({key: 'button_bold', string: 'tango/16x16/actions/format-text-bold.png'}, 'Xinha'), false, function(e) { e.execCommand("bold"); } ], 
     1037    italic: [ "Italic", Xinha._lc({key: 'button_italic', string: 'tango/16x16/actions/format-text-italic.png'}, 'Xinha'), false, function(e) { e.execCommand("italic"); } ], 
     1038    underline: [ "Underline", Xinha._lc({key: 'button_underline', string: 'tango/16x16/actions/format-text-underline.png'}, 'Xinha'), false, function(e) { e.execCommand("underline"); } ], 
     1039    strikethrough: [ "Strikethrough", Xinha._lc({key: 'button_strikethrough', string: 'tango/16x16/actions/format-text-strikethrough.png'}, 'Xinha'), false, function(e) { e.execCommand("strikethrough"); } ], 
    10401040    subscript: [ "Subscript", Xinha._lc({key: 'button_subscript', string: ["ed_buttons_main.gif",3,1]}, 'Xinha'), false, function(e) { e.execCommand("subscript"); } ], 
    10411041    superscript: [ "Superscript", Xinha._lc({key: 'button_superscript', string: ["ed_buttons_main.gif",2,1]}, 'Xinha'), false, function(e) { e.execCommand("superscript"); } ], 
    10421042 
    1043     justifyleft: [ "Justify Left", ["ed_buttons_main.gif",0,0], false, function(e) { e.execCommand("justifyleft"); } ], 
    1044     justifycenter: [ "Justify Center", ["ed_buttons_main.gif",1,1], false, function(e){ e.execCommand("justifycenter"); } ], 
    1045     justifyright: [ "Justify Right", ["ed_buttons_main.gif",1,0], false, function(e) { e.execCommand("justifyright"); } ], 
    1046     justifyfull: [ "Justify Full", ["ed_buttons_main.gif",0,1], false, function(e) { e.execCommand("justifyfull"); } ], 
     1043    justifyleft: [ "Justify Left", 'tango/16x16/actions/format-justify-left.png', false, function(e) { e.execCommand("justifyleft"); } ], 
     1044    justifycenter: [ "Justify Center", 'tango/16x16/actions/format-justify-center.png', false, function(e){ e.execCommand("justifycenter"); } ], 
     1045    justifyright: [ "Justify Right", 'tango/16x16/actions/format-justify-right.png', false, function(e) { e.execCommand("justifyright"); } ], 
     1046    justifyfull: [ "Justify Full", 'tango/16x16/actions/format-justify-fill.png', false, function(e) { e.execCommand("justifyfull"); } ], 
    10471047 
    10481048    orderedlist: [ "Ordered List", ["ed_buttons_main.gif",0,3], false, function(e) { e.execCommand("insertorderedlist"); } ], 
     
    10511051    insertunorderedlist: [ "Bulleted List", ["ed_buttons_main.gif",1,3], false, function(e) { e.execCommand("insertunorderedlist"); } ], 
    10521052 
    1053     outdent: [ "Decrease Indent", ["ed_buttons_main.gif",1,2], false, function(e) { e.execCommand("outdent"); } ], 
    1054     indent: [ "Increase Indent",["ed_buttons_main.gif",0,2], false, function(e) { e.execCommand("indent"); } ], 
     1053    outdent: [ "Decrease Indent", 'tango/16x16/actions/format-indent-less.png', false, function(e) { e.execCommand("outdent"); } ], 
     1054    indent: [ "Increase Indent",'tango/16x16/actions/format-indent-more.png', false, function(e) { e.execCommand("indent"); } ], 
    10551055    forecolor: [ "Font Color", ["ed_buttons_main.gif",3,3], false, function(e) { e.execCommand("forecolor"); } ], 
    10561056    hilitecolor: [ "Background Color", ["ed_buttons_main.gif",2,3], false, function(e) { e.execCommand("hilitecolor"); } ], 
    10571057 
    1058     undo: [ "Undoes your last action", ["ed_buttons_main.gif",4,2], false, function(e) { e.execCommand("undo"); } ], 
    1059     redo: [ "Redoes your last action", ["ed_buttons_main.gif",5,2], false, function(e) { e.execCommand("redo"); } ], 
     1058    undo: [ "Undoes your last action", 'tango/16x16/actions/edit-undo.png', false, function(e) { e.execCommand("undo"); } ], 
     1059    redo: [ "Redoes your last action", 'tango/16x16/actions/edit-redo.png', false, function(e) { e.execCommand("redo"); } ], 
    10601060    cut: [ "Cut selection", ["ed_buttons_main.gif",5,0], false,  function (e, cmd) { e.execCommand(cmd); } ], 
    10611061    copy: [ "Copy selection", ["ed_buttons_main.gif",4,0], false,  function (e, cmd) { e.execCommand(cmd); } ], 
    10621062    paste: [ "Paste from clipboard", ["ed_buttons_main.gif",4,1], false,  function (e, cmd) { e.execCommand(cmd); } ], 
    1063     selectall: [ "Select all", "ed_selectall.gif", false, function(e) {e.execCommand("selectall");} ], 
     1063    selectall: [ "Select all", 'tango/16x16/actions/edit-select-all.png', false, function(e) {e.execCommand("selectall");} ], 
    10641064 
    10651065    inserthorizontalrule: [ "Horizontal Rule", ["ed_buttons_main.gif",6,0], false, function(e) { e.execCommand("inserthorizontalrule"); } ], 
    10661066    createlink: [ "Insert Web Link", ["ed_buttons_main.gif",6,1], false, function(e) { e._createLink(); } ], 
    1067     insertimage: [ "Insert/Modify Image", ["ed_buttons_main.gif",6,3], false, function(e) { e.execCommand("insertimage"); } ], 
     1067    insertimage: [ "Insert/Modify Image", 'tango/16x16/mimetypes/image-x-generic.png', false, function(e) { e.execCommand("insertimage"); } ], 
    10681068    inserttable: [ "Insert Table", ["ed_buttons_main.gif",6,2], false, function(e) { e.execCommand("inserttable"); } ], 
    10691069 
    10701070    htmlmode: [ "Toggle HTML Source", ["ed_buttons_main.gif",7,0], true, function(e) { e.execCommand("htmlmode"); } ], 
    10711071    toggleborders: [ "Toggle Borders", ["ed_buttons_main.gif",7,2], false, function(e) { e._toggleBorders(); } ], 
    1072     print: [ "Print document", ["ed_buttons_main.gif",8,1], false, function(e) { if(Xinha.is_gecko) {e._iframe.contentWindow.print(); } else { e.focusEditor(); print(); } } ], 
     1072    print: [ "Print document", 'tango/16x16/actions/document-print.png', false, function(e) { if(Xinha.is_gecko) {e._iframe.contentWindow.print(); } else { e.focusEditor(); print(); } } ], 
    10731073    saveas: [ "Save as", "ed_saveas.gif", false, function(e) { e.execCommand("saveas",false,"noname.htm"); } ], 
    10741074    about: [ "About this editor", ["ed_buttons_main.gif",8,2], true, function(e) { e.getPluginInstance("AboutBox").show(); } ], 
     
    10821082    wordclean: [ "MS Word Cleaner", ["ed_buttons_main.gif",5,3], false, function(e) { e._wordClean(); } ], 
    10831083    clearfonts: [ "Clear Inline Font Specifications", ["ed_buttons_main.gif",5,4], true, function(e) { e._clearFonts(); } ], 
    1084     removeformat: [ "Remove formatting", ["ed_buttons_main.gif",4,4], false, function(e) { e.execCommand("removeformat"); } ], 
     1084    removeformat: [ "Remove formatting", 'tango-art-libre/16x16/tools/draw-eraser.png', false, function(e) { e.execCommand("removeformat"); } ], 
    10851085    killword: [ "Clear MSOffice tags", ["ed_buttons_main.gif",4,3], false, function(e) { e.execCommand("killword"); } ] 
    10861086  }; 
Note: See TracChangeset for help on using the changeset viewer.