var ToolBar= Class.create(); ToolBar.prototype = { initialize: function(idContainer,id,w,h,dessin) { this.A0=new Array(); this.A1=dessin; this.A2=this.A1.A9;this.A3='toolBar_'+id; var tool = '<div id ="'+this.A3+'" style="position: absolute;right:0px;width:'+w+'px;height:'+h+'px;"></div>'; new Insertion.Bottom($(idContainer),tool); }, A5:function(id,w,h,posBackGrdLeft,posBackGrdTop,posToolBLeft,posToolBTop,toolT,isIndependentIcon) { var ic= new Icone(this,id,w,h,posBackGrdLeft,posBackGrdTop,posToolBLeft,posToolBTop,toolT,isIndependentIcon); this.A0.push(ic); }, A6:function() { for(var i=0;i<this.A0.length;i++) this.A0[i].A8(); }, A7:function() { for(var i=0;i<this.A0.length;i++) if(!this.A0[i].A5)this.A0[i].A9(); }, A8:function(tool) { if (this.A1.A17!=null) { this.A1.A42(); this.A1.A57(); } switch (tool) { case "Distance": { this.A1.A41('distance'); } break; case "Annuler dernier dessin": { this.A1.A57(); } break; case "Annuler tous le dessin": { this.A1.A56(); } break; case "Surface": { this.A1.A41('surface'); } break; case "Point": { this.A1.A41('point'); } break; case "Ligne": { this.A1.A41('line'); } break; case "Polygone": { this.A1.A41('polygon'); } break; case "Insertion": { this.A1.A41('insertion'); } break; case "Imprimer": { window.print(); } break; default : break; } }, A9:function() { this.A1.A41(); } }
