#INCLUDE[gml:defs.inc] Configure EDITORS /* $DOM.attachAspect('core.dev:GmlObjectProps', '#NS[GmlObject]'); $DOM.attachAspect('core.dev:ConfigurableProps', '#NS[Interactor]', { ELEMENT_items : { group:'GROUP_data', priority:300, def:{ id: 'items' , type: 'gridedit', label: 'Fields' , domain: [ {id: 'rowNum', type: 'int', caption: ' ', 'readonly': true, width: 20} , {id: 'name', type: 'str', caption: 'Name'} , {id: 'required', 'type': 'bool', caption: 'Required', 'enum': 'true; false;' } , {id: 'primitive', type: 'enum', caption: 'Primitive', 'enum': '1:String;2:Integer;4:Float;16:Date;32:Time;64:Boolean;', icon:'#URL[dev~skin:icons.flag.gif]'} ] , active: 'true', getDataObject: function(data,def){ if (!data || !data.getInfoshape) return null ; var info = data.getInfoshape(); if (!info ) return null ; return data.getInfoshape(); }, getter: function(data,def){ if (!data || !data.getFields) return null ; return data.getFields(); }, detailedView: function (data,def){ MODAL("#URL[core.dev:common.DetailedCollection.htm]",{'elem':data,'def':def}, true) }, toolbar:true, sideEffects:true, notify:true }}, DET_ELEMENT_items : [ {id: 'rowNum', type: 'int', caption: ' ', 'readonly': true, userW: 20} , {id: 'name' ,category:'Field', type: 'str', caption: 'Name'} , {id: 'primitive',category:'Field', type: 'enum', caption: 'Field Type', 'enum': '1:String;2:Integer;4:Float;16:Date;32:Time;64:Boolean;',icon:'#URL[dev~skin:icons.flag.gif]'} , {id: 'required',category:'Field' , 'type': 'bool', caption: 'Required', 'enum': 'true; false;' } , {id: 'show' ,category:'Control', width: 30 , 'type': 'bool', caption: 'Show', 'enum': 'true; false;' , icon:'#URL[dev~skin:icons.glasses.gif]'} // , {id: 'controlType',category:'Custom', type: 'enum', caption: 'Control Type'} ,{ id: 'controlType', type: 'combo' ,caption: 'Control Type', tooltip: 'Controls list',width: 80 } , {id: 'label' ,category:'Control', type: 'str', caption: 'Label'} , {id: 'tooltip' ,category:'Control', type: 'text', caption: 'Tooltip'} , {id: 'id', type: 'str', caption: 'Id', 'readonly': true , hide:true} ] }); $DOM.attachAspect('core.dev:ConfigurableProps', '#NS[Port]', { ELEMENT_items : { group:'GROUP_data', priority:300, def:{ id: 'items' , type: 'gridedit', label: 'Fields' , domain: [ {id: 'rowNum', type: 'int', caption: ' ', 'readonly': true, width: 20} , {id: 'name', type: 'str', caption: 'Name'} , {id: 'required', 'type': 'bool', caption: 'Required', 'enum': 'true; false;' } , {id: 'primitive', type: 'enum', caption: 'Primitive', 'enum': '1:String;2:Integer;4:Float;16:Date;32:Time;64:Boolean;', icon:'#URL[dev~skin:icons.flag.gif]'} ] , active: 'true', getDataObject: function(data,def){ if (!data || !data.getInfoshape) return null ; var info = data.getInfoshape(); if (!info || !info.getBOInfoshape ) return null ; return data.getInfoshape().getBOInfoshape(); }, getter: function(data,def){ if (!data || !data.getFields) return null ; return data.getFields(); }, addItem: function (className , data , def){ if (!data || !data.createField) return null ; return data.createField(className); }, removeItem: function(lParam , data,def){ if (!data || !data.removeField) return null ; return data.removeField(lParam); }, detailedView: function (data , def){ MODAL("#URL[core.dev:common.DetailedCollection.htm]",{'elem':data,'def':def}, true); }, itemsType:'core.gml:Field', toolbar:true , sideEffects:true, notify:true }}, DET_ELEMENT_items : [ {id: 'rowNum', type: 'int', caption: ' ', 'readonly': true, userW: 20} , {id: 'name' ,category:'Field', type: 'str', caption: 'Name'} , {id: 'primitive',category:'Field', type: 'enum', caption: 'Field Type', 'enum': '1:String;2:Integer;4:Float;16:Date;32:Time;64:Boolean;',icon:'#URL[dev~skin:icons.flag.gif]'} , {id: 'required',category:'Field' , 'type': 'bool', caption: 'Required', 'enum': 'true; false;' } , {id: 'id', type: 'str', caption: 'Id', 'readonly': true , hide:true} ] }); $DOM.attachAspect('core.dev:ShapeProps', '#NS[Configurable]'); */