//>>built define("dojo/_base/kernel ../main dojo/_base/declare dojo/_base/array dojo/_base/lang dojo/dom-geometry ./cells ./_RowSelector".split(" "),function(t,m,q,p,f,r){return q("dojox.grid._Layout",null,{constructor:function(a){this.grid=a},cells:[],structure:null,defaultWidth:"6em",moveColumn:function(a,c,b,e,f){var h=this.structure[a].cells[0],g=this.structure[c].cells[0],d=null,n=d=0;a=0;for(var k;k=h[a];a++)if(k.index==b){d=a;break}d=h.splice(d,1)[0];d.view=this.grid.views.views[c];a=0;for(k=null;k= g[a];a++)if(k.index==e){n=a;break}f||(n+=1);g.splice(n,0,d);if(b=this.grid.getCell(this.grid.getSortIndex()))b._currentlySorted=this.grid.getSortAsc();this.cells=[];for(a=b=0;c=this.structure[a];a++)for(e=0;f=c.cells[e];e++)for(h=0;k=f[h];h++)k.index=b,this.cells.push(k),"_currentlySorted"in k&&(g=b+1,g*=k._currentlySorted?1:-1,this.grid.sortInfo=g,delete k._currentlySorted),b++;p.forEach(this.cells,function(a){var b=a.markup[2].split(" ");parseInt(b[1].substring(5))!=a.index&&(b[1]='idx\x3d"'+a.index+ '"',a.markup[2]=b.join(" "))});this.grid.setupHeaderMenu()},setColumnVisibility:function(a,c){a=this.cells[a];if(a.hidden==c){a.hidden=!c;c=a.view;var b=c.viewWidth;b&&"auto"!=b&&(c._togglingColumn=r.getMarginBox(a.getHeaderNode()).w||0);c.update();return!0}return!1},addCellDef:function(a,c,b){var e=this,l=function(a){var b=0;1