From a9f4e0dd8f38a89936c178a9c8c758691cf924d1 Mon Sep 17 00:00:00 2001 From: Derrell Lipman Date: Tue, 17 Oct 2006 00:27:24 +0000 Subject: r19357: More ldbbrowse work. The 'Browse' tab is now doing something seemingly fairly reasonable. It's entirely usable. Still pending is dealing with attribute values whose length exceeds the width of the column (even if dynamic resizing of the column is inadequate). A tooltip which pops up would be nice, but seems difficult to achieve with the Table implementation since it's 'virtual' and the whole table is one widget. Derrell (This used to be commit ec63bd551b69c751290cef3376e2d80dda80918a) --- swat/apps/script/qx.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'swat/apps/script') diff --git a/swat/apps/script/qx.js b/swat/apps/script/qx.js index f920b510b4..13ae211c94 100644 --- a/swat/apps/script/qx.js +++ b/swat/apps/script/qx.js @@ -1 +1 @@ -if(!window.qx)qx={};if(!qx.Settings)qx.Settings={};if(!qx.Settings._customSettings)qx.Settings._customSettings={};if(!qx.Settings._customSettings["qx.theme.icon.CrystalSvgIconTheme"])qx.Settings._customSettings["qx.theme.icon.CrystalSvgIconTheme"]={};qx.Settings._customSettings["qx.theme.icon.CrystalSvgIconTheme"]["imageUri"]="../../resource/icon/crystalsvg";if(!qx.Settings._customSettings["qx.theme.icon.NuvolaIconTheme"])qx.Settings._customSettings["qx.theme.icon.NuvolaIconTheme"]={};qx.Settings._customSettings["qx.theme.icon.NuvolaIconTheme"]["imageUri"]="../../resource/icon/nuvola";if(!qx.Settings._customSettings["qx.theme.widget.WindowsWidgetTheme"])qx.Settings._customSettings["qx.theme.widget.WindowsWidgetTheme"]={};qx.Settings._customSettings["qx.theme.widget.WindowsWidgetTheme"]["imageUri"]="../../resource/widget/windows";if(!qx.Settings._customSettings["qx.manager.object.AliasManager"])qx.Settings._customSettings["qx.manager.object.AliasManager"]={};qx.Settings._customSettings["qx.manager.object.AliasManager"]["staticUri"]="../../resource/static";$=["","appearance","enableDebug","qx.io.remote.RemoteExchange","threedshadow","left","static/image/blank.gif","top","threedhighlight",'qx.ui.core.Widget',"(\\d\\d?)","widthChanged","orderChanged","div","-","right","change","px","click","icon","threedface","100%",": ","label","on","\n","position","middle","pixelPercent","button","white","value","fontSize","width","height",'"Segoe UI", Corbel, Calibri, Tahoma, "Lucida Sans Unicode", sans-serif',"name","bottom","visibilityChanged","BODY","qx.renderer.color.Color","g",".","html","window-captionbar-button",")","list-view-content-cell-text","execute","center","style","selectionChanged","lineHeight","text-field","checked","","gray","paddingLeft","paddingTop","auto","",'text'," ","","param","mshtml","0","minWidth","threedlightshadow","paddingRight","paddingBottom","atom","qx.manager.object.ToolTipManager","tree-folder","qx.ui.core.Widget","layout","string","minHeight","nowrap","fontStyle","qx.ui.popup.Popup","widthComputed","qx.manager.object.PopupManager","wrap","fontWeight","window","clip","5","threeddarkshadow","none","qx.manager.selection.RadioManager","","resourceUri","qx.renderer.font.Font","type","heightComputed","menu-button","hidden","textDecoration","timeout","#91A5BD","fontFamily","]","interval","imageUri","qx.manager.object.MenuManager","menu","qx.manager.object.AliasManager","icon/16/button-ok.png","title","isChecked","MozOutline","(","removeAll","selected","dimension","text","apply","ms","highlight","selectionModel",")!","useTreeLines","galleryCell","hour","changeValue",'icon',"outline","qx.ui.table.TableColumnModel","manager","iconSelected","keydown","line","remove","tree-element-label","tableColumnModel","tree-folder-icon","ThreeDLightShadow","image","cross","pixelPercentAuto","location","qx.ui.table.TablePaneModel","gecko","literal","font","normal","maxWidth","useDoubleClick","Details: Width=","mouseup","end","#FAFBFE","data","qx.ui.table.TableModel","tableModel","horizontalAlignment","qx.ui.menu.Menu","qx.event.handler.DragAndDropHandler","0px","enable",", Style=","loadComplete","tree-folder-label","shorthand","url","iframe","opaque","maxHeight","removeAt","verticalAlignment","scroll","mousedown","dblclick","textAlign","password","datechooser-toolbar-button","whiteSpace","state","tree-element","wordSpacing","a","only_plus","className","colorTheme","multiSelection","Content-Type","100px","green","borderBottomProperty","list","minus","parent","down","qx.lang.Generics","only_minus","opener","dragenter","qx.ui.embed.Flash","No valid responseType specified (","useBasicHttpAuth","widthType","#D6D5D9","clipHeight","staticUri","')","windowfocus","id","plus","Ready","Ignore Ready State Change","verticalChildrenAlign","borderLeftProperty","modelChanged","appearanceTheme","'/>","#FFF0C9","Transfer not complete, ignoring content!"," ","frame","clipTop","component","windowresize","textTransform","page","red","username","(\\d\\d?\\d?)","static/image/dotted_white.gif","windowblur","#FEC83C","qx.io.remote.ScriptTransport","#d6d2c2","wordWrap","letterSpacing","all","min","display","useLongFormat","widgetTheme",'.',"propagationStopped","liveResize","qx.io.remote.IframeTransport","iconTheme","status","tablePaneModel",'qxtype',"visibilityChangedPre","dragging","qx.ui.form.Button","innerText","maxMessages","qx.ui.core.Parent",'delegate not found',"qx.io.remote.XmlHttpTransport","borderRightProperty","horizontalChildrenAlign","dragSelection","open","qx.ui.popup.ToolTip","buttonface","clipLeft","heightType","borderTopProperty","INPUT","clipWidth","qx.manager.object.IframeManager","qx.client.NativeWindow","blue","layoutOrder","highlighttext","source","=","qx.ui.table.SelectionModel","Connection dropped","s","content","ul","datechooser-weekday","qx.ui.embed.GalleryList","addAtEnd","","cursor","labelHSB","beforeunload","mode","col-resize","addAfter","progid:DXImageTransform.Microsoft.AlphaImageLoader(src='","modal","childNodes","asynchronous","padding","labelDetails","qx.theme.widget.WindowsWidgetTheme","qx.component.init.InterfaceInitComponent","<","tree-icon","qx.ui.basic.Inline","labelPreview","dragleave","webkit","log","script","target","mousemove","showStatusbar","list-view-content-cell",'px',"nodeType","qx.theme.icon.CrystalSvgIconTheme","Malformed date format: ","marginX","focusCellOnMouseMove","#F9B119","labelHex","up","nocache","tabIndex","ThreeDShadow","pixelHeight","enabled","verticalAlign","enableFlexSupport","body","marginY","Windows","#E1EEFF",'',"marginLeft","qx.io.Json","spacing","paddingY","qx.theme.color.WindowsRoyaleColorTheme","excludeSpecificTreeLines","crossDomain","qx.component.init.BasicInitComponent","mouseout","widget/arrows/down.gif"," != ","horizontalAlign","qx.ui.form.ListItem","tagName","',sizingMethod='scale')","htmlcontainer","changeSelection","qx.theme.appearance.DefaultAppearanceTheme","+","labelCancel","paddingX","disabledIcon","lastIndexOf","iconWidth","tree-label","enableDisposerDebug","\r\n",'$2',"field-set-legend","arrowPosition","minLevel","clientX","preferredBoxHeight","icon/16/button-cancel.png","DIV","Selected","pre","qx.ui.form.RadioButton","javascript:void(0)","qx.util.Normalization","datechooser-monthyear","Linux","max","borderBottomStyle","Use proxy","fullScreen","enableDetection","qx.ui.toolbar.ToolBarPart","qx.ui.tree.TreeFolder","extendedmultiline","modifiers",'fadeInterval',"history","labelShortcutGap","GMT","showLocation","qx.ui.form.TextField","nextSibling","unrecognised node","hasPercentX","reset","allowStretchY","Timeout: transport ","?instanceId=","galleryNumber","qx.ui.listview.ListViewContentCell","Not implemented","localeCompare","MSXML2.DOMDocument.3.0","attributes","",":","Not modified","postfix","qx.lang.Prototypes","qx.manager.object.ColorManager.getInstance().setColorThemeById('","Cancel","MSXML2.DOMDocument.5.0","MEAN","allowMinimize","100","Timeout: forcing state to timeout","frameElement","\\b_(.+?)_\\b","widget/colorselector/huesaturation-handle.gif","
","table-editor-textfield","enableExpressInstall","","#87BCE5","Macintosh","tab-view-pane"," - ","pageY","iconContentGap","list-view-header","qx.lang.Core","colorselector","MSXML2.DOMDocument.4.0","Could not load from file: ","qx.ui.listview.ListViewContentCellLink","matches","#BBB","bottomWidth","border","qx.ui.form.RepeatButton","contextMenu","isSelectable","redirectUrl","qx.ui.table.BooleanDataCellRenderer","this.removeStyleProperty('padding","Partial content","filter","focusHandler","HTTP version not supported","qx.ui.menu.MenuLayout","directories","pageYOffset","/icon/nuvola","showClose","__firebug__","qx.ui.splitpane.SplitPane",']+)',"start_minus","ms > ","bar-view","qx.event.handler.EventHandler","qx.ui.component.DateChooser","Win32","firstColumnX","forEach","1.0",'border',"MSXML2.DOMDocument.6.0","","(measure start) ",""," is not supported","Height",'no setter defined on widget instance','y',"textIndent","AppleWebKit","onpropertychange","(\\d\\d(\\d\\d)?)","qx.renderer.layout.HorizontalBoxLayoutImpl","step","galleryTitle","form","bar-view-button","\n","p","frames","toolbar=no,scrollbars=yes,resizable=yes,","Number","/history/historyHelper.html","cursor:","qx.ui.component.ColorSelector","_blank","Pixel","other","qx.io.image.ImagePreloader","firefox","Windows Luna Silver",'align',"n","barPosition","qx.theme.color.WindowsClassicColorTheme","\n","disableUncheck","allowStretchX","qx.ui.menu.MenuRadioButton","Crystal SVG","scrollbars"," WARN: ","capture","qx.io.remote.RemoteResponse","function","","qx.dom.DomWindow","editable","requestHeaders","windowManager","plugins","qx.ui.table.SelectionManager","lime","toElement",", ","STYLE","tab-view-button",'k',"
","pageX","qx.manager.selection.TreeFullControlSelectionManager","kk",'color',"cancelBubble","See other","qx.ui.pageview.tabview.TabViewBar","_data_","qx.ui.embed.Gallery",';width:',"..",'number',"innerHTML","boolean","backgroundColor","U","borderBottomWidth","contentNonIconPadding","Bad gateway","validator","accumulatedChildrenOuterHeight","relatedTarget","qx.ui.embed.IconHtmlEmbed","OFF","split","qx.util.format.Format","align","qx.util.format.NumberFormat","","cookie","medium","maximumIntegerDigits","replace","1px solid black","failed","Repeat Number: ","Round ","OK","qx.constant.Layout","readOnly","list-view-pane","menubar","loaded","controllers","netscape","focusRoot","fireChange","showIcon","descending","qx.constant.Net","qx.renderer.border.BorderCache","PRE","qx.ui.listview.ListViewHeaderCell","tableRowHeight","timerDecrease","Operating System Default","this._columnIdArr and columnNameArr have different length: ","maxTotalRequests","o","fromElement","qx.ui.layout.BoxLayout","qx.ui.toolbar.ToolBarButton","Galeon","sortOrder","qx.constant.Core","(.*)\n([^#\*\n].*)","qx.renderer.font.FontObject","field-set","tab-view-page","widget/arrows/up.gif","qx.ui.toolbar.ToolBarPartHandle","8","qx.dev.log.DefaultFilter","6","#EEE","push","hh",'">',"cellPaddingRight","qx.manager.object.ColorManager","yy","qx.ui.basic.Image","qx.ui.pageview.AbstractPageViewPane","borderTopWidth","log-body","Request-URL too large","9",'M',"widths","Not acceptable","Microsoft.DOMDocument","toolbar-part-handle-line","clipboardData","$","qx.ui.table.TablePaneScroller","SSS","widget/colorselector/brightness-handle.gif","activecaption","Start 3x","qx.manager.object.ImageManager","Log","preferredInnerHeight","qx.type.Range","opacity","leadItem","scrollTop"," !important","strikeout","\\^","isAsynchronous","mousePointerOffsetX","navigator","qx.dev.Pollution","@","orange","errorClassName","menuButtonNeededWidth","qx.ui.treefullcontrol.AbstractTreeElement","galleryComment","links","qx.client.builder.Container","FFFFFF","screen","Connection closed by server","shownMonth","qx.manager.selection.TreeSelectionManager","fontVariant","qx.ui.pageview.buttonview.ButtonViewButton","Application error ","self","sort","qx.ui.pageview.tabview.TabView","Lead","safari","width=","ownerDocument","fastReopen","qx.ui.listview.ListViewHeader","Icon Theme: ","~","qx.ui.pageview.buttonview.ButtonViewPage","combo-box-button","defaultPrevented","qx.ui.pageview.tabview.TabViewPage","X-Qooxdoo-Response-Type","
    ","menu-check-box","shortcutPosition","tab-view-bar","MMredirectURL","getFirstActiveChild","Null","#666","Last year",'TEXTAREA',"Median Factor","; } .output td{padding:4px}","omniweb","object","widget/table/selectColumnOrder.png","file","borderLeftStyle","computeChildrenFlexHeight","list-view-content-cell-html","7","window-captionbar-restore-button",":00","qx.renderer.layout.MenuButtonLayoutImpl","canDeselect","spinner-field","qx.ui.form.InputCheckSymbol","qx.ui.table.AbstractDataCellRenderer","currentToolTip","Value",'MMplayerType',"qx.ui.listview.ListViewContentCellImage","HSB","qx.sys.Client","(passed time: ","last","qx.renderer.layout.VerticalBoxLayoutImpl","qx.ui.treefullcontrol.TreeRowStructure","scrollWidth","qooxdoo","Moved temporarily","qx.ui.table.Table","\n
    ","mnemonic","%","hoverItem",'space',"IFRAME","qx.component.init.AbstractInitComponent","qx.io.local.CookieApi","Start 7x","match","qx.type.Selection","qx.ui.table.SimpleTableModel","UNEXPECTED origin ","datechooser-day","qx.dev.log.DivAppender","S","qx.util.format.DateFormat","prefix","ValueExact","A","qx.ui.groupbox.CheckGroupBox"," at ","qx.io.remote.Rpc","saturation","h3","maximized","textShadow","qx.ui.table.DataCellRenderer","soft","italic","allowClientContextMenu",'widths',"closeInterval","selectionMode",'h',"qx.theme.color.WindowsLunaBlueColorTheme","overflowX","autolow","widget/window/restore.gif",",height=","qx.ui.pageview.buttonview.ButtonView","embeds","screenTop","MEDIAN","error",'Authorization',"accumulatedChildrenOuterWidth","bottomStyle","charAt","qx.ui.menu.MenuButton","m","MSXML2.DOMDocument","\\$1","TEXTAREA","../../resource","bar-view-page","responseHeaders",'edge',"destinationWidget","warnClassName","showComment","showToolbar","");vHtmlMeasured.push("");vHtmlMeasured.push("");vHtmlMeasured.push("");for(var j=0;jMethod "+(j+1)+"")};vHtmlMeasured.push("");for(var i=0;i");for(var j=0;j"+vLocalTimes[j]+"")};vHtmlMeasured.push("");vAllTimes.push(vLocalTimes)};vHtmlMeasured.push("
     
    Round "+i+"
    ");var vSum,vMeanValue,vMeanAll=[],vMeanMin=1e7,vMeanMax=0;for(var j=0;jResults Summary");vHtmlResults.push("");vHtmlResults.push("");vHtmlResults.push("");for(var j=0;jMethod "+(j+1)+"")};vHtmlResults.push("");vHtmlResults.push("");vHtmlResults.push("");for(var j=0;j"+vMedianAll[j]+"")};vHtmlResults.push("");vHtmlResults.push("");vHtmlResults.push("");for(var j=0;j");vHtmlResults.push(vMedianMin>0?Math.round(vMedianAll[j]/vMedianMin):"1");vHtmlResults.push("x")};vHtmlResults.push("");vHtmlResults.push("");vHtmlResults.push("");for(var j=0;j"+vMeanAll[j]+"")};vHtmlResults.push("");vHtmlResults.push("");vHtmlResults.push("");for(var j=0;j");vHtmlResults.push(vMeanMin>0?Math.round(vMeanAll[j]/vMeanMin):1);vHtmlResults.push("x")};vHtmlResults.push("");vHtmlResults.push("");vHtmlResults.push("");for(var j=0;j");if(vMedianMin==vMedianAll[j]&&vMeanMin==vMeanAll[j]){vHtmlResults.push("BOTH")}else if(vMedianMin==vMedianAll[j]){vHtmlResults.push("MEDIAN")}else if(vMeanMin==vMeanAll[j]){vHtmlResults.push("MEAN")};vHtmlResults.push("")};vHtmlResults.push("");vHtmlResults.push("
     
    Median
    Median Factor
    Mean
    Mean Factor
    Winner
    ");this._output.setHtml(vHtmlResults.join("")+vHtmlMeasured.join(""))};qx.Proto.dispose=function(){if(this.getDisposed()){return};this._functions=null;return qx.core.Object.prototype.dispose.call(this)};qx.OO.defineClass("qx.type.StringBuilder",qx.core.Object,function(vStr){qx.core.Object.call(this);this.init(vStr)});if(qx.sys.Client.getInstance().isMshtml()){qx.Proto.clear=function(){this._array=[]};qx.Proto.get=function(){return this._array.join(qx.constant.Core.EMPTY)};qx.Proto.add=function(vStr){this._array.push(vStr)};qx.Proto.init=function(vStr){vStr!==qx.constant.Core.EMPTY?this._array=[vStr]:this._array=[]};qx.Proto.dispose=function(){if(this.getDisposed()){return};this._array=null;qx.core.Object.prototype.dispose.call(this)}}else{qx.Proto.clear=function(){this._string=qx.constant.Core.EMPTY};qx.Proto.get=function(){return this._string};qx.Proto.add=function(vStr){this._string+=vStr};qx.Proto.init=function(vStr){this._string=vStr||qx.constant.Core.EMPTY};qx.Proto.dispose=function(){if(this.getDisposed()){return};this._string=null;qx.core.Object.prototype.dispose.call(this)}};qx.Proto.toString=qx.Proto.get;qx.OO.defineClass("qx.ui.table.RemoteTableModel",qx.ui.table.AbstractTableModel,function(){qx.ui.table.AbstractTableModel.call(this);this._sortColumnIndex=-1;this._sortAscending=true;this._rowCount=-1;this._lruCounter=0;this._firstLoadingBlock=-1;this._firstRowToLoad=-1;this._lastRowToLoad=-1;this._ignoreCurrentRequest=false;this._rowBlockCache={};this._rowBlockCount=0});qx.OO.addProperty({name:"blockSize",type:qx.constant.Type.NUMBER,defaultValue:50,allowNull:false});qx.OO.addProperty({name:"maxCachedBlockCount",type:qx.constant.Type.NUMBER,defaultValue:15,allowNull:false});qx.Proto.getRowCount=function(){if(this._rowCount==-1){this._loadRowCount();return (this._rowCount==-1)?0:this._rowCount}else{return this._rowCount}};qx.Proto._loadRowCount=function(){throw new Error("_loadRowCount is abstract")};qx.Proto._onRowCountLoaded=function(rowCount){this.debug("row count loaded: "+rowCount);if(rowCount==null){rowCount=0};this._rowCount=rowCount;var data={firstRow:0,lastRow:rowCount-1,firstColumn:0,lastColumn:this.getColumnCount()-1};this.dispatchEvent(new qx.event.type.DataEvent(qx.ui.table.TableModel.EVENT_TYPE_DATA_CHANGED,data),true)};qx.Proto.reloadData=function(){this.clearCache();if(this._firstLoadingBlock!=-1){this._ignoreCurrentRequest=true};this._loadRowCount()};qx.Proto.clearCache=function(){this._rowBlockCache={};this._rowBlockCount=0};qx.Proto.prefetchRows=function(firstRowIndex,lastRowIndex){if(this._firstLoadingBlock==-1){var blockSize=this.getBlockSize();var totalBlockCount=Math.ceil(this._rowCount/blockSize);var firstBlock=parseInt(firstRowIndex/blockSize)-1;if(firstBlock<0){firstBlock=0};var lastBlock=parseInt(lastRowIndex/blockSize)+1;if(lastBlock>=totalBlockCount){lastBlock=totalBlockCount-1};var firstBlockToLoad=-1;var lastBlockToLoad=-1;for(var block=firstBlock;block<=lastBlock;block++){if(this._rowBlockCache[block]==null){if(firstBlockToLoad==-1){firstBlockToLoad=block};lastBlockToLoad=block}};if(firstBlockToLoad!=-1){this._firstRowToLoad=-1;this._lastRowToLoad=-1;this._firstLoadingBlock=firstBlockToLoad;this.debug("Starting server request. rows: "+firstRowIndex+".."+lastRowIndex+", blocks: "+firstBlockToLoad+".."+lastBlockToLoad);this._loadRowData(firstBlockToLoad*blockSize,(lastBlockToLoad+1)*blockSize-1)}}else{this._firstRowToLoad=firstRowIndex;this._lastRowToLoad=lastRowIndex}};qx.Proto._loadRowData=function(firstRow,lastRow){throw new Error("_loadRowCount is abstract")};qx.Proto._onRowDataLoaded=function(rowDataArr){if(rowDataArr!=null&&!this._ignoreCurrentRequest){var blockSize=this.getBlockSize();var blockCount=Math.ceil(rowDataArr.length/blockSize);if(blockCount==1){this._setRowBlockData(this._firstLoadingBlock,rowDataArr)}else{for(var i=0;ithis.getMaxCachedBlockCount()){var lruBlock;var minLru=this._lruCounter;for(var currBlock in this._rowBlockCache){var currLru=this._rowBlockCache[currBlock].lru;if(currLru1){minLru=currLru;lruBlock=currBlock}};this.debug("Removing block: "+lruBlock+". current LRU: "+this._lruCounter);delete this._rowBlockCache[lruBlock];this._rowBlockCount--}};this._rowBlockCache[block]={lru:++this._lruCounter,rowDataArr:rowDataArr}};qx.Proto.getRowData=function(rowIndex){var blockSize=this.getBlockSize();var block=parseInt(rowIndex/blockSize);var blockData=this._rowBlockCache[block];if(blockData==null){return null}else{var rowData=blockData.rowDataArr[rowIndex-(block*blockSize)];if(blockData.lru!=this._lruCounter){blockData.lru=++this._lruCounter};return rowData}};qx.Proto.getValue=function(columnIndex,rowIndex){var rowData=this.getRowData(rowIndex);if(rowData==null){return null}else{var columnId=this.getColumnId(columnIndex);return rowData[columnId]}};qx.Proto.setColumnSortable=function(columnIndex,sortable){if(sortable!=this.isColumnSortable(columnIndex)){if(this._sortableColArr==null){this._sortableColArr=[]};this._sortableColArr[columnIndex]=sortable;this.createDispatchEvent(qx.ui.table.TableModel.EVENT_TYPE_META_DATA_CHANGED)}};qx.Proto.isColumnSortable=function(columnIndex){return this._sortableColArr?(this._sortableColArr[columnIndex]==true):false};qx.Proto.sortByColumn=function(columnIndex,ascending){if(this._sortColumnIndex!=columnIndex||this._sortAscending!=ascending){this._sortColumnIndex=columnIndex;this._sortAscending=ascending;this.clearCache();this.createDispatchEvent(qx.ui.table.TableModel.EVENT_TYPE_META_DATA_CHANGED)}};qx.Proto.getSortColumnIndex=function(){return this._sortColumnIndex};qx.Proto.isSortAscending=function(){return this._sortAscending};qx.OO.defineClass("qx.ui.pageview.tabview.TabView",qx.ui.pageview.AbstractPageView,function(){qx.ui.pageview.AbstractPageView.call(this,qx.ui.pageview.tabview.TabViewBar,qx.ui.pageview.tabview.TabViewPane)});qx.OO.changeProperty({name:"appearance",type:qx.constant.Type.STRING,defaultValue:"tab-view"});qx.OO.addProperty({name:"alignTabsToLeft",type:qx.constant.Type.BOOLEAN,defaultValue:true});qx.OO.addProperty({name:"placeBarOnTop",type:qx.constant.Type.BOOLEAN,defaultValue:true});qx.Proto._modifyAlignTabsToLeft=function(propValue,propOldValue,propData){var vBar=this._bar;vBar.setHorizontalChildrenAlign(propValue?qx.constant.Layout.ALIGN_LEFT:qx.constant.Layout.ALIGN_RIGHT);vBar._addChildrenToStateQueue();return true};qx.Proto._modifyPlaceBarOnTop=function(propValue,propOldValue,propData){var vBar=this._bar;if(propValue){vBar.moveSelfToBegin()}else{vBar.moveSelfToEnd()};vBar._addChildrenToStateQueue();return true};qx.OO.defineClass("qx.ui.pageview.tabview.TabViewPane",qx.ui.pageview.AbstractPageViewPane,function(){qx.ui.pageview.AbstractPageViewPane.call(this);this.setZIndex(1)});qx.OO.changeProperty({name:"appearance",type:qx.constant.Type.STRING,defaultValue:"tab-view-pane"});qx.OO.defineClass("qx.ui.menu.MenuBarButton",qx.ui.toolbar.ToolBarMenuButton,function(vText,vMenu,vIcon,vIconWidth,vIconHeight,vFlash){qx.ui.toolbar.ToolBarMenuButton.call(this,vText,vMenu,vIcon,vIconWidth,vIconHeight,vFlash)});qx.OO.defineClass("qx.dev.log.DivAppender",qx.dev.log.Appender,function(divId){qx.dev.log.Appender.call(this);this._divId=divId?divId:"log"});qx.OO.addProperty({name:"maxMessages",type:qx.constant.Type.NUMBER,defaultValue:500});qx.OO.changeProperty({name:"useLongFormat",type:qx.constant.Type.BOOLEAN,defaultValue:false,allowNull:false});qx.OO.addProperty({name:"headClassName",type:qx.constant.Type.STRING,defaultValue:"log-head"});qx.OO.addProperty({name:"bodyClassName",type:qx.constant.Type.STRING,defaultValue:"log-body"});qx.OO.addProperty({name:"groupClassName",type:qx.constant.Type.STRING,defaultValue:"log-group"});qx.OO.addProperty({name:"debugClassName",type:qx.constant.Type.STRING,defaultValue:"log-debug"});qx.OO.addProperty({name:"infoClassName",type:qx.constant.Type.STRING,defaultValue:"log-info"});qx.OO.addProperty({name:"warnClassName",type:qx.constant.Type.STRING,defaultValue:"log-warn"});qx.OO.addProperty({name:"errorClassName",type:qx.constant.Type.STRING,defaultValue:"log-error"});qx.Proto._createClearButtonHandler=function(logElem){return function(evt){logElem.innerHTML=""}};qx.Proto.appendLogEvent=function(evt){var Logger=qx.dev.log.Logger;if(this._logElem==null){var divElem=document.getElementById(this._divId);if(divElem==null){throw new Error("Logging div with ID "+this._divId+" not found")};divElem.innerHTML='
    '+'
    ';this._clearBt=divElem.firstChild.firstChild;this._logElem=divElem.lastChild;this._clearBt.onclick=this._createClearButtonHandler(this._logElem)};var group=evt.logger.getName();if(evt.instanceId!=null){group+="["+evt.instanceId+"]"};if(group!=this._lastGroup){var elem=document.createElement(qx.constant.Tags.DIV);elem.className=this.getGroupClassName();elem.innerHTML=group;this._logElem.appendChild(elem);this._lastGroup=group};var elem=document.createElement("div");switch(evt.level){case Logger.LEVEL_DEBUG:elem.className=this.getDebugClassName();break;case Logger.LEVEL_INFO:elem.className=this.getInfoClassName();break;case Logger.LEVEL_WARN:elem.className=this.getWarnClassName();break;case Logger.LEVEL_ERROR:elem.className=this.getErrorClassName();break};elem.innerHTML=this.formatLogEvent(evt).replace(/&/g,"&").replace(/");this._logElem.appendChild(elem);while(this._logElem.childNodes.length>this.getMaxMessages()){this._logElem.removeChild(this._logElem.firstChild);if(this._removedMessageCount==null){this._removedMessageCount=1}else{this._removedMessageCount++}};if(this._removedMessageCount!=null){this._logElem.firstChild.className="";this._logElem.firstChild.innerHTML="("+this._removedMessageCount+" messages removed)"}};qx.Proto.dispose=function(){if(this.getDisposed()){return true};if(this._clearBt){this._clearBt.onclick=null;this._clearBt=null};this._logElem=null;return qx.dev.log.Appender.prototype.dispose.call(this)};qx.OO.defineClass("qx.ui.embed.TextEmbed",qx.ui.basic.Terminator,function(vText){qx.ui.basic.Terminator.call(this);if(qx.util.Validation.isValidString(vText)){this.setText(vText)}});qx.OO.addProperty({name:"text",type:qx.constant.Type.STRING});qx.OO.addProperty({name:"font",type:qx.constant.Type.OBJECT,instance:"qx.renderer.font.Font",convert:qx.renderer.font.FontCache,allowMultipleArguments:true});qx.OO.addProperty({name:"wrap",type:qx.constant.Type.BOOLEAN,defaultValue:true});qx.OO.addProperty({name:"textAlign",type:qx.constant.Type.STRING,defaultValue:"left",possibleValues:["left","center","right","justify"],allowNull:false});qx.Proto._modifyText=function(){if(this._isCreated){this._syncText()};return true};qx.Proto._modifyFont=function(propValue,propOldValue,propData){if(propValue){propValue._applyWidget(this)}else if(propOldValue){propOldValue._resetWidget(this)};return true};qx.Proto._modifyWrap=function(propValue,propOldValue,propData){this.setStyleProperty(qx.constant.Style.PROPERTY_WHITESPACE,propValue?"normal":"nowrap");return true};qx.Proto._modifyTextAlign=function(propValue,propOldValue,propData){this.setStyleProperty("textAlign",propValue);return true};qx.Proto._applyElementData=function(){this.getElement().appendChild(document.createTextNode(this.getText()))};qx.Proto._syncText=function(){this.getElement().firstChild.nodeValue=this.getText()};qx.OO.defineClass("qx.util.Textile");qx.util.Textile.textilize=function(s){var r=s;var qtags=[["\\*","strong"],["\\?\\?","cite"],["\\+","ins"],["~","sub"],["\\^","sup"],["@","code"]];var ttag,htag,re,line,lines,nr,changed,inlist,listtype;for(var i=0;i"+"$1"+"")};re=new RegExp("\\b_(.+?)_\\b","g");r=r.replace(re,"$1");re=new RegExp("[\s\n]-(.+?)-[\s\n]","g");r=r.replace(re,"$1");re=new RegExp('"\\b(.+?)\\(\\b(.+?)\\b\\)":([^\\s]+)','g');r=r.replace(re,'$1');re=new RegExp('"\\b(.+?)\\b":([^\\s]+)','g');r=r.replace(re,'$1');re=new RegExp("!\\b(.+?)\\(\\b(.+?)\\b\\)!","g");r=r.replace(re,'$2');re=new RegExp("!\\b(.+?)\\b!","g");r=r.replace(re,'');re=new RegExp("(.*)\n([^#\*\n].*)","g");r=r.replace(re,"$1
    $2");re=new RegExp("\n
    ","g");r=r.replace(re,"\n");lines=r.split("\n");nr=qx.constant.Core.EMPTY;for(var i=0;i")+"";changed=1};if(line.search(/^\s*h[1-6]\.\s+/)!=-1){re=new RegExp("h([1-6])\.(.+)","g");line=line.replace(re,"$2");changed=1};if(line.search(/^\s*\*\s+/)!=-1){line=line.replace(/^\s*\*\s+/,"\t")+"";changed=1};if(line.search(/^\s*#\s+/)!=-1){line=line.replace(/^\s*#\s+/,"\t")+"";changed=1};if(!changed&&(line.replace(/\s/g,qx.constant.Core.EMPTY).length>0)){line="

    "+line+"

    "};lines[i]=line+"\n"};inlist=0;listtype=qx.constant.Core.EMPTY;for(var i=0;i\n"+line;inlist=0};if(!inlist&&line.match(/^\t"+line;inlist=1;listtype="ol"};lines[i]=line};r=lines.join("\n");r=r.replace(/li[o|u]>/g,"li>");return r};qx.OO.defineClass("qx.ui.table.SimpleTableModel",qx.ui.table.AbstractTableModel,function(){qx.ui.table.AbstractTableModel.call(this);this._rowArr=[];this._sortColumnIndex=-1;this._sortAscending;this._editableColArr=null});qx.Proto.getRowData=function(rowIndex){return this._rowArr[rowIndex]};qx.Proto.getRowDataAsMap=function(rowIndex){var columnArr=this._rowArr[rowIndex];var map={};for(var col=0;colobj2)?1:((obj1==obj2)?0:-1)}}else{comperator=function(row1,row2){var obj1=row1[columnIndex];var obj2=row2[columnIndex];return (obj1=this._rowArr.length){throw "this._rowArr out of bounds: "+this._rowArr+" (0.."+this._rowArr.length+")"};return this._rowArr[rowIndex][columnIndex]};qx.Proto.setValue=function(columnIndex,rowIndex,value){if(this._rowArr[rowIndex][columnIndex]!=value){this._rowArr[rowIndex][columnIndex]=value;if(this.hasEventListeners(qx.ui.table.TableModel.EVENT_TYPE_DATA_CHANGED)){var data={firstRow:rowIndex,lastRow:rowIndex,firstColumn:columnIndex,lastColumn:columnIndex};this.dispatchEvent(new qx.event.type.DataEvent(qx.ui.table.TableModel.EVENT_TYPE_DATA_CHANGED,data),true)};if(columnIndex==this._sortColumnIndex){this._clearSorting()}}};qx.Proto.setData=function(rowArr){this._rowArr=rowArr;if(this.hasEventListeners(qx.ui.table.TableModel.EVENT_TYPE_DATA_CHANGED)){this.createDispatchEvent(qx.ui.table.TableModel.EVENT_TYPE_DATA_CHANGED)};this._clearSorting()};qx.Proto.getData=function(){return this._rowArr};qx.Proto.setDataAsMapArray=function(mapArr){this.setData(this._mapArray2RowArr(mapArr))};qx.Proto.addRows=function(rowArr,startIndex){if(startIndex==null){startIndex=this._rowArr.length};rowArr.splice(0,0,startIndex,0);Array.prototype.splice.apply(this._rowArr,rowArr);if(this.hasEventListeners(qx.ui.table.TableModel.EVENT_TYPE_DATA_CHANGED)){var data={firstRow:startIndex,lastRow:this._rowArr.length-1,firstColumn:0,lastColumn:this.getColumnCount()-1};this.dispatchEvent(new qx.event.type.DataEvent(qx.ui.table.TableModel.EVENT_TYPE_DATA_CHANGED,data),true)};this._clearSorting()};qx.Proto.addRowsAsMapArray=function(mapArr,startIndex){this.addRows(this._mapArray2RowArr(mapArr),startIndex)};qx.Proto.removeRows=function(startIndex,howMany){this._rowArr.splice(startIndex,howMany);if(this.hasEventListeners(qx.ui.table.TableModel.EVENT_TYPE_DATA_CHANGED)){var data={firstRow:startIndex,lastRow:this._rowArr.length-1,firstColumn:0,lastColumn:this.getColumnCount()-1};this.dispatchEvent(new qx.event.type.DataEvent(qx.ui.table.TableModel.EVENT_TYPE_DATA_CHANGED,data),true)};this._clearSorting()};qx.Proto._mapArray2RowArr=function(mapArr){var rowCount=mapArr.length;var columnCount=this.getColumnCount();var dataArr=new Array(rowCount);var columnArr;var j;for(var i=0;i0};qx.Proto.getAnchorSelectionIndex=function(){return this._anchorSelectionIndex};qx.Proto.getLeadSelectionIndex=function(){return this._leadSelectionIndex};qx.Proto.clearSelection=function(){if(!this.isSelectionEmpty()){this._clearSelection();this._fireSelectionChanged()}};qx.Proto.isSelectionEmpty=function(){return this._selectedRangeArr.length==0};qx.Proto.getSelectedCount=function(){var selectedCount=0;for(var i=0;i=range.minIndex&&index<=range.maxIndex){return true}};return false};qx.Proto.getSelectedRanges=function(){var retVal=[];for(var i=0;imaxIndex){break}else if(range.maxIndex>=minIndex){var minIsIn=(range.minIndex>=minIndex)&&(range.minIndex<=maxIndex);var maxIsIn=(range.maxIndex>=minIndex)&&(range.maxIndex<=maxIndex);if(minIsIn&&maxIsIn){this._selectedRangeArr.splice(i,1);i--}else if(minIsIn){range.minIndex=maxIndex+1}else if(maxIsIn){range.maxIndex=minIndex-1}else{var newRange={minIndex:maxIndex+1,maxIndex:range.maxIndex};this._selectedRangeArr.splice(i+1,0,newRange);range.maxIndex=minIndex-1;break}}};this._fireSelectionChanged()};qx.Proto._clearSelection=function(){this._selectedRangeArr=[]};qx.Proto._addSelectionInterval=function(fromIndex,toIndex){this._anchorSelectionIndex=fromIndex;this._leadSelectionIndex=toIndex;var minIndex=Math.min(fromIndex,toIndex);var maxIndex=Math.max(fromIndex,toIndex);var newRangeIndex=0;for(;newRangeIndexminIndex){break}};this._selectedRangeArr.splice(newRangeIndex,0,{minIndex:minIndex,maxIndex:maxIndex});var lastRange=this._selectedRangeArr[0];for(var i=1;i=range.minIndex){lastRange.maxIndex=Math.max(lastRange.maxIndex,range.maxIndex);this._selectedRangeArr.splice(i,1);i--}else{lastRange=range}}};qx.Proto._dumpRanges=function(){var text="Ranges:";for(var i=0;i";qx.Proto._mshtml=qx.sys.Client.getInstance().isMshtml();qx.Proto._syncHtml=function(){var vHtml=[];if(qx.util.Validation.isValidString(this.getIcon())){vHtml.push(qx.ui.embed.IconHtmlEmbed.START_IMAGE);vHtml.push(qx.manager.object.AliasManager.getInstance().resolvePath(this._mshtml?"static/image/blank.gif":this.getIcon()));vHtml.push(qx.ui.embed.IconHtmlEmbed.START_STYLE);if(qx.util.Validation.isValidNumber(this.getSpacing())){vHtml.push(qx.ui.embed.IconHtmlEmbed.STYLE_MARGIN);vHtml.push(this.getSpacing());vHtml.push(qx.ui.embed.IconHtmlEmbed.PIXEL_UNIT)};if(qx.util.Validation.isValidNumber(this.getIconWidth())){vHtml.push(qx.ui.embed.IconHtmlEmbed.STYLE_WIDTH);vHtml.push(this.getIconWidth());vHtml.push(qx.ui.embed.IconHtmlEmbed.PIXEL_UNIT)};if(qx.util.Validation.isValidNumber(this.getIconHeight())){vHtml.push(qx.ui.embed.IconHtmlEmbed.STYLE_HEIGHT);vHtml.push(this.getIconHeight());vHtml.push(qx.ui.embed.IconHtmlEmbed.PIXEL_UNIT)};if(this._mshtml){vHtml.push(qx.ui.embed.IconHtmlEmbed.FILTER_START);vHtml.push(qx.ui.basic.Image.IMGLOADER_START);vHtml.push(qx.manager.object.AliasManager.getInstance().resolvePath(this.getIcon()));vHtml.push(qx.ui.basic.Image.IMGLOADER_STOP);vHtml.push(qx.constant.Core.SEMICOLON)};vHtml.push(qx.ui.embed.IconHtmlEmbed.STOP_IMAGE)};if(qx.util.Validation.isValidString(this.getHtml())){vHtml.push(this.getHtml())};this.getElement().innerHTML=vHtml.join(qx.constant.Core.EMPTY)};qx.OO.defineClass("qx.ui.listview.ListViewContentCellIconHtml",qx.ui.embed.IconHtmlEmbed,function(vHtml,vIcon,vIconWidth,vIconHeight){qx.ui.embed.IconHtmlEmbed.call(this,vHtml,vIcon,vIconWidth,vIconHeight);this.setSelectable(false)});qx.OO.changeProperty({name:"appearance",type:qx.constant.Type.STRING,defaultValue:"list-view-content-cell-icon-html"});qx.ui.listview.ListViewContentCellIconHtml.empty={icon:qx.constant.Core.EMPTY,html:qx.constant.Core.EMPTY};qx.OO.defineClass("qx.ui.embed.Gallery",qx.ui.basic.Terminator,function(vGalleryList){qx.ui.basic.Terminator.call(this);this._blank=qx.manager.object.AliasManager.getInstance().resolvePath("static/image/blank.gif");this._list=vGalleryList;this._listSize=vGalleryList.length;this._processedImages=0;this.setOverflow("auto");this.setHtmlProperty("className","qx_ui_embed_Gallery");this._manager=new qx.manager.selection.DomSelectionManager(this);this._manager.setMultiColumnSupport(true);this.addEventListener("mousedown",this._onmousedown);this.addEventListener("mouseup",this._onmouseup);this.addEventListener("mousemove",this._onmousemove);this.addEventListener("click",this._onclick);this.addEventListener("dblclick",this._ondblclick);this.addEventListener("keydown",this._onkeydown)});qx.OO.addProperty({name:"thumbMaxWidth",type:qx.constant.Type.NUMBER,defaultValue:100});qx.OO.addProperty({name:"thumbMaxHeight",type:qx.constant.Type.NUMBER,defaultValue:100});qx.OO.addProperty({name:"decorHeight",type:qx.constant.Type.NUMBER,defaultValue:40});qx.OO.addProperty({name:"showTitle",type:qx.constant.Type.BOOLEAN,defaultValue:true});qx.OO.addProperty({name:"showComment",type:qx.constant.Type.BOOLEAN,defaultValue:true});qx.Proto._applyElementData=function(){this.getElement().appendChild(this.createView())};qx.Proto.getManager=function(){return this._manager};qx.Proto.getList=function(){return this._list};qx.Proto.update=function(vGalleryList){this._manager.deselectAll();this._list=vGalleryList;var el=this.getElement();el.replaceChild(this.createView(),el.firstChild)};qx.Proto.removeAll=function(){this._manager.deselectAll();this.getElement().innerHTML=qx.constant.Core.EMPTY};qx.Proto.updateImageById=function(vId,vSrc,vWidth,vHeight){this.updateImageSrcById(vId,vSrc);this.updateImageDimensionsById(vId,vWidth,vHeight)};qx.Proto.updateImageDimensionsById=function(vId,vWidth,vHeight){this.updateImageDimensionsByPosition(this.getPositionById(vId),vWidth,vHeight)};qx.Proto.updateImageDimensionsByPosition=function(vPos,vWidth,vHeight){if(vPos==-1){throw new Error("No valid Position: "+vPos)};var cnode=this.getNodeByPosition(vPos).getElementsByTagName("IMG")[0];cnode.width=vWidth;cnode.height=vHeight;cnode.style.marginLeft=cnode.style.marginRight=Math.floor((this.getThumbMaxWidth()-vWidth)/2)+"px";cnode.style.marginTop=cnode.style.marginBottom=Math.floor((this.getThumbMaxHeight()-vHeight)/2)+"px";this._list[vPos].thumbWidth=vWidth;this._list[vPos].thumbHeight=vHeight};qx.Proto.updateImageSrcById=function(vId,vSrc){this.updateImageSrcByPosition(this.getPositionById(vId),vSrc)};qx.Proto.updateImageSrcByPosition=function(vPos,vSrc){if(vPos==-1){throw new Error("No valid Position: "+vPos)};var vNode=this.getNodeByPosition(vPos);vNode.getElementsByTagName("IMG")[0].src=vSrc;this._list[vPos].src=vSrc};qx.Proto.deleteById=function(vId){this.deleteByPosition(this.getPositionById(vId))};qx.Proto.deleteByPosition=function(vPos){this._manager.deselectAll();if(vPos==-1){throw new Error("No valid Position: "+vPos)};var vNode=this.getNodeByPosition(vPos);if(vNode){vNode.parentNode.removeChild(vNode)};this._list.splice(vPos,1)};qx.Proto.getPositionById=function(vId){for(var i=0,a=this._list,l=a.length;i");var ext=this.extract(object);for(var i=0;i");return all.join(qx.constant.Core.EMPTY)};qx.Class.getTextList=function(object){var all=[];var cellSplit=": ";var rowEnd="\n";var ext=this.extract(object);for(var i=0;ilog.LEVEL_WARN&&(!evt.throwable||!evt.throwable.stack)&&console.trace){console.trace()}}};qx.OO.defineClass("qx.renderer.layout.DockLayoutImpl",qx.renderer.layout.LayoutImpl,function(vWidget){qx.renderer.layout.LayoutImpl.call(this,vWidget)});qx.renderer.layout.DockLayoutImpl.METHOD_LOCATION="layoutChild_location_";qx.renderer.layout.DockLayoutImpl._childRanking={vertical:function(c){return c.getVerticalAlign()?1e6:c.getHorizontalAlign()?2e6:3e6},horizontal:function(c){return c.getHorizontalAlign()?1e6:c.getVerticalAlign()?2e6:3e6},ordered:function(c){return c.getHorizontalAlign()||c.getVerticalAlign()?1e6:2e6}};qx.renderer.layout.DockLayoutImpl._childCheck={common:function(vChild){if(!(vChild._computedLeftTypeNull&&vChild._computedRightTypeNull&&vChild._computedTopTypeNull&&vChild._computedBottomTypeNull)){throw new Error("qx.renderer.layout.DockLayoutImpl: It is not allowed to define any location values for children: "+vChild+"!")}},horizontal:function(vChild){if(!(vChild._computedMinHeightTypeNull&&vChild._computedHeightTypeNull&&vChild._computedMaxHeightTypeNull)){throw new Error("qx.renderer.layout.DockLayoutImpl: It is not allowed to define any vertical dimension for 'horizontal' placed children: "+vChild+"!")}},vertical:function(vChild){if(!(vChild._computedMinWidthTypeNull&&vChild._computedWidthTypeNull&&vChild._computedMaxWidthTypeNull)){throw new Error("qx.renderer.layout.DockLayoutImpl: It is not allowed to define any horizontal dimension for 'vertical' placed children: "+vChild+"!")}},"default":function(vChild){qx.renderer.layout.DockLayoutImpl._childCheck.horizontal(vChild);qx.renderer.layout.DockLayoutImpl._childCheck.vertical(vChild)}};qx.Proto.computeChildBoxWidth=function(vChild){if(this.getChildAlignMode(vChild)==qx.constant.Layout.ORIENTATION_HORIZONTAL){return vChild.getWidthValue()||vChild._computeBoxWidthFallback()};return this.getWidget().getInnerWidth()-this._lastLeft-this._lastRight};qx.Proto.computeChildBoxHeight=function(vChild){if(this.getChildAlignMode(vChild)==qx.constant.Layout.ORIENTATION_VERTICAL){return vChild.getHeightValue()||vChild._computeBoxHeightFallback()};return this.getWidget().getInnerHeight()-this._lastTop-this._lastBottom};qx.Proto.updateChildOnInnerWidthChange=function(vChild){vChild._recomputePercentX();vChild.addToLayoutChanges(qx.ui.core.Widget.JOB_LOCATION);return true};qx.Proto.updateChildOnInnerHeightChange=function(vChild){vChild._recomputePercentY();vChild.addToLayoutChanges(qx.ui.core.Widget.JOB_LOCATION);return true};qx.Proto.updateSelfOnJobQueueFlush=qx.util.Return.returnFalse;qx.Proto.updateChildrenOnJobQueueFlush=function(vQueue){if(vQueue.mode||vQueue.addChild||vQueue.removeChild){this.getWidget()._addChildrenToLayoutQueue(qx.ui.core.Widget.JOB_LOCATION)}};qx.Proto.flushChildrenQueue=function(vChildrenQueue){var vWidget=this.getWidget(),vChildren=vWidget.getVisibleChildren(),vChildrenLength=vChildren.length,vMode=vWidget.getMode();this._lastLeft=this._lastRight=this._lastTop=this._lastBottom=0;var vRankImpl=qx.renderer.layout.DockLayoutImpl._childRanking[vMode];var vOrderedChildren=qx.lang.Array.copy(vChildren).sort(function(c1,c2){return (vRankImpl(c1)+vChildren.indexOf(c1))-(vRankImpl(c2)+vChildren.indexOf(c2))});for(var i=0;iscrollerArr.length){var selectionModel=this.getSelectionModel();var tableModel=this.getTableModel();var columnModel=this.getTableColumnModel();for(var i=scrollerArr.length;i=fromMetaColumn;i--){var paneScroller=scrollerArr[i];paneScroller.removeEventListener("changeScrollY",this._onScrollY,this);this._scrollerParent.remove(paneScroller);paneScroller.dispose()}}};qx.Proto._onSelectionChanged=function(evt){var scrollerArr=this._getPaneScrollerArr();for(var i=0;i0){this.getSelectionModel().setSelectionInterval(0,rowCount-1)};break;default:consumed=false;break}}};if(oldFocusedRow!=this._focusedRow){this._selectionManager.handleMoveKeyDown(this._focusedRow,evt)};if(consumed){evt.preventDefault();evt.stopPropagation()}};qx.Proto._onColVisibilityChanged=function(evt){var scrollerArr=this._getPaneScrollerArr();for(var i=0;i=qx.dom.DomLocation.getPageBoxLeft(elem)&&pageX<=qx.dom.DomLocation.getPageBoxRight(elem)){return i}};return -1};qx.Proto._getMetaColumnAtColumnX=function(visXPos){var metaColumnCounts=this.getMetaColumnCounts();var rightXPos=0;for(var i=0;ithis._columnVisibilityMenuCloseTime+200)){this._toggleColumnVisibilityMenu()}};qx.Proto._toggleColumnVisibilityMenu=function(){if(this._columnVisibilityMenu==null||!this._columnVisibilityMenu.isSeeable()){var menu=new qx.ui.menu.Menu;menu.addEventListener(qx.constant.Event.DISAPPEAR,function(evt){this._columnVisibilityMenuCloseTime=new Date().getTime()},this);var tableModel=this.getTableModel();var columnModel=this.getTableColumnModel();for(var x=0;x=0;i++){var checkBox=checkBoxArr[i];this._columnVisibilityMenu.remove(checkBox);checkBox.dispose()};this._columnVisibilityMenu.dispose();this._columnVisibilityMenu=null}};qx.Proto._createColumnVisibilityCheckBoxHandler=function(col){return function(evt){var columnModel=this.getTableColumnModel();columnModel.setColumnVisible(col,!columnModel.isColumnVisible(col))}};qx.Proto.setColumnWidth=function(col,width){this.getTableColumnModel().setColumnWidth(col,width)};qx.Proto._changeInnerWidth=function(newValue,oldValue){var self=this;window.setTimeout(function(){self._updateScrollBarVisibility();qx.ui.core.Widget.flushGlobalQueues()},0);return qx.ui.layout.VerticalBoxLayout.prototype._changeInnerWidth.call(this,newValue,oldValue)};qx.Proto._changeInnerHeight=function(newValue,oldValue){var self=this;window.setTimeout(function(){self._updateScrollBarVisibility();qx.ui.core.Widget.flushGlobalQueues()},0);return qx.ui.layout.VerticalBoxLayout.prototype._changeInnerHeight.call(this,newValue,oldValue)};qx.Proto._afterAppear=function(){qx.ui.layout.VerticalBoxLayout.prototype._afterAppear.call(this);this._updateScrollBarVisibility()};qx.Proto.dispose=function(){if(this.getDisposed()){return true};if(this._tableModel){this._tableModel.removeEventListener(qx.ui.table.TableModel.EVENT_TYPE_META_DATA_CHANGED,this._onTableModelMetaDataChanged,this)};this._columnVisibilityBt.removeEventListener("execute",this._onColumnVisibilityBtExecuted,this);this._columnVisibilityBt.dispose();this._cleanupColumnVisibilityMenu();this._cleanUpMetaColumns(0);if(this._tableColumnModel){this._tableColumnModel.removeEventListener("visibilityChanged",this._onColVisibilityChanged,this);this._tableColumnModel.removeEventListener("widthChanged",this._onColWidthChanged,this);this._tableColumnModel.removeEventListener("orderChanged",this._onColOrderChanged,this)};return qx.ui.layout.VerticalBoxLayout.prototype.dispose.call(this)};qx.OO.defineClass("qx.ui.table.SelectionManager",qx.core.Object,function(){qx.core.Object.call(this)});qx.OO.addProperty({name:"selectionModel",type:qx.constant.Type.OBJECT,instance:"qx.ui.table.SelectionModel"});qx.Proto.handleMouseDown=function(index,evt){if(evt.isLeftButtonPressed()){var selectionModel=this.getSelectionModel();if(!selectionModel.isSelectedIndex(index)){this._handleSelectEvent(index,evt);this._lastMouseDownHandled=true}else{this._lastMouseDownHandled=false}}else if(evt.isRightButtonPressed()&&evt.getModifiers()==0){var selectionModel=this.getSelectionModel();if(!selectionModel.isSelectedIndex(index)){selectionModel.setSelectionInterval(index,index)}}};qx.Proto.handleMouseUp=function(index,evt){if(evt.isLeftButtonPressed()&&!this._lastMouseDownHandled){this._handleSelectEvent(index,evt)}};qx.Proto.handleClick=function(index,evt){};qx.Proto.handleSelectKeyDown=function(index,evt){this._handleSelectEvent(index,evt)};qx.Proto.handleMoveKeyDown=function(index,evt){var selectionModel=this.getSelectionModel();switch(evt.getModifiers()){case 0:selectionModel.setSelectionInterval(index,index);break;case qx.event.type.DomEvent.SHIFT_MASK:var anchor=selectionModel.getAnchorSelectionIndex();if(anchor==-1){selectionModel.setSelectionInterval(index,index)}else{selectionModel.setSelectionInterval(anchor,index)};break}};qx.Proto._handleSelectEvent=function(index,evt){var selectionModel=this.getSelectionModel();if(evt.getShiftKey()){var leadIndex=selectionModel.getLeadSelectionIndex();if(index!=leadIndex||selectionModel.isSelectionEmpty()){var anchorIndex=selectionModel.getAnchorSelectionIndex();if(evt.isCtrlOrCommandPressed()){selectionModel.addSelectionInterval(anchorIndex,index)}else{selectionModel.setSelectionInterval(anchorIndex,index)}}}else if(evt.isCtrlOrCommandPressed()){if(selectionModel.isSelectedIndex(index)){selectionModel.removeSelectionInterval(index,index)}else{selectionModel.addSelectionInterval(index,index)}}else{selectionModel.setSelectionInterval(index,index)}};qx.OO.defineClass("qx.ui.basic.VerticalSpacer",qx.ui.basic.Terminator,function(){qx.ui.basic.Terminator.call(this);this.setHeight(qx.constant.Core.FLEX)});qx.OO.defineClass("qx.ui.layout.DockLayout",qx.ui.core.Parent,function(){qx.ui.core.Parent.call(this)});qx.OO.addProperty({name:"mode",type:qx.constant.Type.STRING,defaultValue:qx.constant.Layout.ORIENTATION_VERTICAL,possibleValues:[qx.constant.Layout.ORIENTATION_VERTICAL,qx.constant.Layout.ORIENTATION_HORIZONTAL,"ordered"],addToQueueRuntime:true});qx.OO.changeProperty({name:"width",addToQueue:true,unitDetection:"pixelPercent"});qx.OO.changeProperty({name:"minWidth",defaultValue:-Infinity,addToQueue:true,unitDetection:"pixelPercent"});qx.OO.changeProperty({name:"minWidth",defaultValue:-Infinity,addToQueue:true,unitDetection:"pixelPercent"});qx.OO.changeProperty({name:"height",addToQueue:true,unitDetection:"pixelPercent"});qx.OO.changeProperty({name:"minHeight",defaultValue:-Infinity,addToQueue:true,unitDetection:"pixelPercent"});qx.OO.changeProperty({name:"minHeight",defaultValue:-Infinity,addToQueue:true,unitDetection:"pixelPercent"});qx.Proto._createLayoutImpl=function(){return new qx.renderer.layout.DockLayoutImpl(this)};qx.Proto.addLeft=function(){this._addAlignedHorizontal(qx.constant.Layout.ALIGN_LEFT,arguments)};qx.Proto.addRight=function(){this._addAlignedHorizontal(qx.constant.Layout.ALIGN_RIGHT,arguments)};qx.Proto.addTop=function(){this._addAlignedVertical(qx.constant.Layout.ALIGN_TOP,arguments)};qx.Proto.addBottom=function(){this._addAlignedVertical(qx.constant.Layout.ALIGN_BOTTOM,arguments)};qx.Proto._addAlignedVertical=function(vAlign,vArgs){for(var i=0,l=vArgs.length;i-1){var p=args.delegate.split('.');var o=p[0];var m=p[1];widget.addEventListener(args.type,function(e){if(!window[o]){throw self._newError('delegate not found',{delegate:args.delegate})};if(!window[o][m]){throw self._newError('delegate not found',{delegate:args.delegate})};window[o][m].apply(window[o],[e])})}else{widget.addEventListener(args.type,function(e){if(!window[args.delegate]){throw self._newError('delegate not found',{delegate:args.delegate})};window[args.delegate].apply(null,[e])})}}else{if(!args.args){args.args="event"};var f=new Function(args.args,text);widget.addEventListener(args.type,f)}};qx.Proto._buildWidgetFromNode=function(parent,node){var className=this._extractClassName(node);if(!className){throw this._newError("unrecognised node",{nodeName:node.nodeName})};if(className=="qx.client.builder.Container"){this._buildNodes(parent,node.childNodes);return};if(className=="qx.client.builder.Script"){var e=document.createElement("script");var attribs=this._mapXmlAttribToObject(node);if(attribs.type){e.type=attribs.type}else{e.type='text/javascript'};if(qx.sys.Client.getInstance().isMshtml()){e.innerHTML=eval(node.firstChild.nodeValue)}else{e.innerHTML=node.firstChild.nodeValue};document.body.appendChild(e);return};if(className=="qx.client.builder.EventListener"){var attribs=this._mapXmlAttribToObject(node);var text;if(node.firstChild){text=node.firstChild.nodeValue};this._buildEventListener(parent,attribs,text);return};var classConstructor=qx.OO.classes[className];if(!classConstructor){throw this._newError("constructor not found",{className:className})};var widget=new classConstructor();var attribs=this._mapXmlAttribToObject(node,widget);delete attribs['qxtype'];var dummyWidget=attribs.id&&attribs.id.indexOf(qx.constant.Core.UNDERLINE)==0;if(attribs.id){window[attribs.id]=widget;delete attribs.id};for(var a in attribs){if(a.toLowerCase().indexOf('on')==0&&a.length>2){var type=a.substring(2);type=type.charAt(0)+type.substring(1);this._buildEventListener(widget,{type:type,args:'event'},attribs[a]);delete attribs[a]}};for(var n in attribs){this._setWidgetProperty(widget,n,attribs[n])};if(!dummyWidget){parent.add(widget)};this._buildNodes(widget,node.childNodes)};qx.Proto._setWidgetProperty=function(widget,name,value){var editor=this._findPropertyEditor(widget.classname,name);if(!editor){editor=this._coercePropertyEditor};editor.set(widget,name,value)};qx.Proto._findPropertyEditor=function(className,propertyName){var m=this._propertyEditors[className];if(m&&m[propertyName]){return m[propertyName]};var w=qx.OO.classes[className];if(w&&w.superclass&&w.superclass.prototype.classname){return this._findPropertyEditor(w.superclass.prototype.classname,propertyName)};return null};qx.Proto.registerPropertyEditor=function(className,propertyName,editor){if(!this._propertyEditors[className])this._propertyEditors[className]={};this._propertyEditors[className][propertyName]=editor};qx.Proto._registerDefaultPropertyEditors=function(){var self=this;var commaDelimitedPropertyEditor={};commaDelimitedPropertyEditor.set=function(widget,name,value){if(value==null||value==""){self._setProperty(widget,name,null);return};var s=value.split(",");var v=[];for(var i=0;i