diff --git a/lib/controller/dash/node_1.js b/lib/controller/dash/node_1.js index a17ba5f..cd9fede 100644 --- a/lib/controller/dash/node_1.js +++ b/lib/controller/dash/node_1.js @@ -18,12 +18,30 @@ afterrender: function(p){ masks_statuses[%%%NODEID%%%] = 0; masks_exist[%%%NODEID%%%] = 0; + //alert( PanelH - p.ownerCt.ownerCt.getHeight() + 64+32 ); + //alert( document.body.clientHeight - p.ownerCt.ownerCt.getHeight() ); + //var expH = document.body.clientHeight - p.ownerCt.ownerCt.getHeight(); - var W=p.getWidth(); - var H=9*(W/16); - p.setHeight( H + 32 ); - Ext.getCmp( 'cp_radar_%%%NODEID%%%' ).setHeight( H - 18 ); - //document.getElementById('draw_svg_%%%NODEID%%%').setAttribute("width", H-45 ); + var W = p.getWidth(); + //var H=9*(W/16) - 28; + //var H = PanelH - p.ownerCt.ownerCt.getHeight() + 64; + var H = document.body.clientHeight - p.ownerCt.ownerCt.getHeight(); + //var W = 16*(H/9); + //p.ownerCt.setWidth( W ); + p.setHeight( H ); + Ext.getCmp( 'cp_radar_%%%NODEID%%%' ).setHeight( H - 70 ); + Ext.getCmp( 'cp_radar_%%%NODEID%%%' ).setWidth( H - 70 ); + //alert( W+" "+H ); + //Ext.getCmp( 'toolbox_%%%NODEID%%%' ).setWidth( W - H + 50 ); + //Ext.getCmp( 'toolbox_%%%NODEID%%%' ).doLayout( false, true ); + //if( H > W ){ + //document.getElementById('draw_svg_%%%NODEID%%%').setAttribute("width", "100%" ); + //} else { + document.getElementById('draw_svg_%%%NODEID%%%').setAttribute("width", H-80 ); + //document.getElementById('draw_svg_%%%NODEID%%%').setAttribute("height", H-80 );//"100%" ); + if( W > ( H+130 ) ) Ext.getCmp( 'toolbox_%%%NODEID%%%' ).expand( false ); + //}; + //alert( W +' '+ ( H+130 ) ); set2DZoomLevel( %%%NODEID%%%, 100 ); var el = document.getElementById('div_radar_%%%NODEID%%%'); el.addEventListener( "fullscreenchange", ( evt )=>{ @@ -32,7 +50,7 @@ if( fsDrawID ){ var el = document.getElementById('draw_svg_'+fsDrawID ); el.removeAttribute("width"); - el.setAttribute( "width", '86%' ); + el.setAttribute( "width", H-80 );//'86%' ); fsDrawID = 0; }; }; @@ -40,16 +58,35 @@ window.setTimeout( load2DDraw, 10*%%%NODEID%%%, %%%NODEID%%% ); } }, - layout: 'hbox', + //layout: 'hbox', + layout:'border', items:[{ id: 'cp_radar_%%%NODEID%%%', + region: 'center', html: '
100 m.502512.5
', width: '56%' - },{ + },{ + region: 'east', + collapsible: true, + minSize: 75, // defaults to 50 + maxSize: 220, frame: false, border: false, - width: '44%', + collapsed: true, + collapseMode: 'mini', + title: 'Toolbox', + floatable: true, + animFloat: false, + autoHide: true, + id: 'toolbox_%%%NODEID%%%', + //unstyled: true, + margins: '5 0 0 5', + //cmargins: '5 0 5 5', + width: 200, items:[{ + xtype: 'spacer', + height: 3 + },{ xtype: 'button', id: 'cp_clear_btn_%%%NODEID%%%', width: '100%', @@ -91,120 +128,111 @@ },{ xtype: 'spacer', height: 3 + },{ + xtype: 'button', + text: 'Mask Editor', + id: 'DMED_%%%NODEID%%%', + width: '100%', + disabled: true, + iconCls: 'ctrl_panel_drawscan_sm', + handler: function(){ + showMaskEditor( false, 0, %%%NODEID%%% ); + } + },{ + xtype: 'spacer', + height: 3 },{ xtype: 'panel', title: 'Masking Management', - height: 145, + height: 70, frame: true, flex: 1, - layout: 'vbox', + layout: 'hbox', items:[{ xtype: 'button', - text: 'Mask Editor', - id: 'DMED_%%%NODEID%%%', - width: '100%', + enableToggle: true, + width: '20%', + scale: 'medium',//scale: 'small', + id: 'mz_btn_%%%NODEID%%%_0', + iconCls: 'mask_zone1_btn', + iconAlign: 'top', + pressed: false, disabled: true, handler: function(){ - showMaskEditor( false, 0, %%%NODEID%%% ); + if( Ext.getCmp('mz_btn_%%%NODEID%%%_0').pressed){ + doMaskOperation( %%%NODEID%%%, 1, 0 ); + } else { + doMaskOperation( %%%NODEID%%%, 0, 0 ); + }; } },{ - xtype: 'spacer', - height: 3 + xtype: 'button', + enableToggle: true, + width: '20%', + scale: 'medium', + id: 'mz_btn_%%%NODEID%%%_1', + iconCls: 'mask_zone2_btn', + iconAlign: 'top', + pressed: false, + disabled: true, + handler: function(){ + if( Ext.getCmp('mz_btn_%%%NODEID%%%_1').pressed){ + doMaskOperation( %%%NODEID%%%, 1, 1 ); + } else { + doMaskOperation( %%%NODEID%%%, 0, 1 ); + }; + } },{ - xtype: 'panel', - id: 'DMEBB_%%%NODEID%%%', - frame: true, - border: false, - flex: 1, - width: '100%', - height: 53, - layout: 'hbox', - items:[{ - xtype: 'button', - enableToggle: true, - width: '20%', - scale: 'medium',//scale: 'small', - id: 'mz_btn_%%%NODEID%%%_0', - iconCls: 'mask_zone1_btn', - iconAlign: 'top', - pressed: false, - disabled: true, - handler: function(){ - if( Ext.getCmp('mz_btn_%%%NODEID%%%_0').pressed){ - doMaskOperation( %%%NODEID%%%, 1, 0 ); - } else { - doMaskOperation( %%%NODEID%%%, 0, 0 ); - }; - } - },{ - xtype: 'button', - enableToggle: true, - width: '20%', - scale: 'medium', - id: 'mz_btn_%%%NODEID%%%_1', - iconCls: 'mask_zone2_btn', - iconAlign: 'top', - pressed: false, - disabled: true, - handler: function(){ - if( Ext.getCmp('mz_btn_%%%NODEID%%%_1').pressed){ - doMaskOperation( %%%NODEID%%%, 1, 1 ); - } else { - doMaskOperation( %%%NODEID%%%, 0, 1 ); - }; - } - },{ - xtype: 'button', - enableToggle: true, - width: '19%', - scale: 'medium',//scale: 'large', - id: 'mz_btn_%%%NODEID%%%_2', - iconCls: 'mask_zone3_btn', - iconAlign: 'top', - pressed: false, - disabled: true, - handler: function(){ - if( Ext.getCmp('mz_btn_%%%NODEID%%%_2').pressed){ - doMaskOperation( %%%NODEID%%%, 1, 2 ); - } else { - doMaskOperation( %%%NODEID%%%, 0, 2 ); - }; - } - },{ - xtype: 'button', - enableToggle: true, - width: '20%', - scale: 'medium',//scale: 'large', - id: 'mz_btn_%%%NODEID%%%_3', - iconCls: 'mask_zone4_btn', - iconAlign: 'top', - pressed: false, - disabled: true, - handler: function(){ - if( Ext.getCmp('mz_btn_%%%NODEID%%%_3').pressed){ - doMaskOperation( %%%NODEID%%%, 1, 3 ); - } else { - doMaskOperation( %%%NODEID%%%, 0, 3 ); - }; - } - },{ - xtype: 'button', - enableToggle: true, - width: '20%', - scale: 'medium',//scale: 'large', - id: 'mz_btn_%%%NODEID%%%_4', - iconCls: 'mask_zone5_btn', - iconAlign: 'top', - pressed: false, - disabled: true, - handler: function(){ - if( Ext.getCmp('mz_btn_%%%NODEID%%%_4').pressed){ - doMaskOperation( %%%NODEID%%%, 1, 4 ); - } else { - doMaskOperation( %%%NODEID%%%, 0, 4 ); - }; - } - }] + xtype: 'button', + enableToggle: true, + width: '19%', + scale: 'medium',//scale: 'large', + id: 'mz_btn_%%%NODEID%%%_2', + iconCls: 'mask_zone3_btn', + iconAlign: 'top', + pressed: false, + disabled: true, + handler: function(){ + if( Ext.getCmp('mz_btn_%%%NODEID%%%_2').pressed){ + doMaskOperation( %%%NODEID%%%, 1, 2 ); + } else { + doMaskOperation( %%%NODEID%%%, 0, 2 ); + }; + } + },{ + xtype: 'button', + enableToggle: true, + width: '20%', + scale: 'medium',//scale: 'large', + id: 'mz_btn_%%%NODEID%%%_3', + iconCls: 'mask_zone4_btn', + iconAlign: 'top', + pressed: false, + disabled: true, + handler: function(){ + if( Ext.getCmp('mz_btn_%%%NODEID%%%_3').pressed){ + doMaskOperation( %%%NODEID%%%, 1, 3 ); + } else { + doMaskOperation( %%%NODEID%%%, 0, 3 ); + }; + } + },{ + xtype: 'button', + enableToggle: true, + width: '20%', + scale: 'medium',//scale: 'large', + id: 'mz_btn_%%%NODEID%%%_4', + iconCls: 'mask_zone5_btn', + iconAlign: 'top', + pressed: false, + disabled: true, + handler: function(){ + if( Ext.getCmp('mz_btn_%%%NODEID%%%_4').pressed){ + doMaskOperation( %%%NODEID%%%, 1, 4 ); + } else { + doMaskOperation( %%%NODEID%%%, 0, 4 ); + }; + } }] },{ xtype: 'spacer', diff --git a/lib/controller/dash/node_1_ccc.js b/lib/controller/dash/node_1_ccc.js new file mode 100644 index 0000000..a17ba5f --- /dev/null +++ b/lib/controller/dash/node_1_ccc.js @@ -0,0 +1,320 @@ +{ + id: 'db_node_%%%NODEID%%%', + title: '%%%NODENAME%%%', + draggable: false, + collapsible: false, + tools: [{ + id:'toggle', + handler: function( a, b, p ){ + fsDrawID = %%%NODEID%%%; + fullScreen( 'div_radar_%%%NODEID%%%' ); + var el = document.getElementById('draw_svg_'+fsDrawID ); + var nW = Math.floor( ( window.screen.height/window.screen.width ) * 100 ); + el.removeAttribute("width"); + el.setAttribute( "width", nW+'%' ); + } + }], + listeners:{ + afterrender: function(p){ + masks_statuses[%%%NODEID%%%] = 0; + masks_exist[%%%NODEID%%%] = 0; + + var W=p.getWidth(); + var H=9*(W/16); + p.setHeight( H + 32 ); + Ext.getCmp( 'cp_radar_%%%NODEID%%%' ).setHeight( H - 18 ); + //document.getElementById('draw_svg_%%%NODEID%%%').setAttribute("width", H-45 ); + set2DZoomLevel( %%%NODEID%%%, 100 ); + var el = document.getElementById('div_radar_%%%NODEID%%%'); + el.addEventListener( "fullscreenchange", ( evt )=>{ + if( document.fullscreenElement ){ + } else { + if( fsDrawID ){ + var el = document.getElementById('draw_svg_'+fsDrawID ); + el.removeAttribute("width"); + el.setAttribute( "width", '86%' ); + fsDrawID = 0; + }; + }; + }); + window.setTimeout( load2DDraw, 10*%%%NODEID%%%, %%%NODEID%%% ); + } + }, + layout: 'hbox', + items:[{ + id: 'cp_radar_%%%NODEID%%%', + html: '
100 m.502512.5
', + width: '56%' + },{ + frame: false, + border: false, + width: '44%', + items:[{ + xtype: 'button', + id: 'cp_clear_btn_%%%NODEID%%%', + width: '100%', + disabled: true, + text: 'Clear Alarm', + iconCls: 'ctrl_panel_clean_sm', + iconAlign: 'left', + handler: function(){ + doDeviceOperation( 1, 125,'', true ); + } + },{ + xtype: 'spacer', + height: 3 + },{ + xtype: 'button', + id: 'cp_draw_btn_%%%NODEID%%%', + width: '100%', + text: 'Draw Background', + iconCls: 'ctrl_panel_drawscan_sm', + iconAlign: 'left', + disabled: true, + handler: function(){ + doDeviceOperation( %%%NODEID%%%, 3,'', true ); + } + },{ + xtype: 'spacer', + height: 3 + },{ + xtype: 'button', + id: 'cp_study_btn_%%%NODEID%%%', + width: '100%', + text: 'Study Background', + iconCls: 'ctrl_panel_study_sm', + iconAlign: 'left', + disabled: true, + handler: function(){ + doDeviceOperation( %%%NODEID%%%, 2,'', true ); + } + },{ + xtype: 'spacer', + height: 3 + },{ + xtype: 'panel', + title: 'Masking Management', + height: 145, + frame: true, + flex: 1, + layout: 'vbox', + items:[{ + xtype: 'button', + text: 'Mask Editor', + id: 'DMED_%%%NODEID%%%', + width: '100%', + disabled: true, + handler: function(){ + showMaskEditor( false, 0, %%%NODEID%%% ); + } + },{ + xtype: 'spacer', + height: 3 + },{ + xtype: 'panel', + id: 'DMEBB_%%%NODEID%%%', + frame: true, + border: false, + flex: 1, + width: '100%', + height: 53, + layout: 'hbox', + items:[{ + xtype: 'button', + enableToggle: true, + width: '20%', + scale: 'medium',//scale: 'small', + id: 'mz_btn_%%%NODEID%%%_0', + iconCls: 'mask_zone1_btn', + iconAlign: 'top', + pressed: false, + disabled: true, + handler: function(){ + if( Ext.getCmp('mz_btn_%%%NODEID%%%_0').pressed){ + doMaskOperation( %%%NODEID%%%, 1, 0 ); + } else { + doMaskOperation( %%%NODEID%%%, 0, 0 ); + }; + } + },{ + xtype: 'button', + enableToggle: true, + width: '20%', + scale: 'medium', + id: 'mz_btn_%%%NODEID%%%_1', + iconCls: 'mask_zone2_btn', + iconAlign: 'top', + pressed: false, + disabled: true, + handler: function(){ + if( Ext.getCmp('mz_btn_%%%NODEID%%%_1').pressed){ + doMaskOperation( %%%NODEID%%%, 1, 1 ); + } else { + doMaskOperation( %%%NODEID%%%, 0, 1 ); + }; + } + },{ + xtype: 'button', + enableToggle: true, + width: '19%', + scale: 'medium',//scale: 'large', + id: 'mz_btn_%%%NODEID%%%_2', + iconCls: 'mask_zone3_btn', + iconAlign: 'top', + pressed: false, + disabled: true, + handler: function(){ + if( Ext.getCmp('mz_btn_%%%NODEID%%%_2').pressed){ + doMaskOperation( %%%NODEID%%%, 1, 2 ); + } else { + doMaskOperation( %%%NODEID%%%, 0, 2 ); + }; + } + },{ + xtype: 'button', + enableToggle: true, + width: '20%', + scale: 'medium',//scale: 'large', + id: 'mz_btn_%%%NODEID%%%_3', + iconCls: 'mask_zone4_btn', + iconAlign: 'top', + pressed: false, + disabled: true, + handler: function(){ + if( Ext.getCmp('mz_btn_%%%NODEID%%%_3').pressed){ + doMaskOperation( %%%NODEID%%%, 1, 3 ); + } else { + doMaskOperation( %%%NODEID%%%, 0, 3 ); + }; + } + },{ + xtype: 'button', + enableToggle: true, + width: '20%', + scale: 'medium',//scale: 'large', + id: 'mz_btn_%%%NODEID%%%_4', + iconCls: 'mask_zone5_btn', + iconAlign: 'top', + pressed: false, + disabled: true, + handler: function(){ + if( Ext.getCmp('mz_btn_%%%NODEID%%%_4').pressed){ + doMaskOperation( %%%NODEID%%%, 1, 4 ); + } else { + doMaskOperation( %%%NODEID%%%, 0, 4 ); + }; + } + }] + }] + },{ + xtype: 'spacer', + height: 3 + }/*,{ + xtype: 'panel', + title: 'Detection Sensitivity', + height: 95, + frame: true, + flex: 1, + layout: 'hbox', + items:[{ + xtype: 'button', + text: 'Factory', + id: 'DDSPBTN0', + width: 80, + iconCls: 'detection_btn_factory', + enableToggle: true, + toggleGroup: 'det_sens_btn_grp', + disabled: true, + scale: 'large', + iconAlign: 'top' + },{ + xtype: 'button', + text: 'Low', + id: 'DDSPBTN1', + width: 80, + iconCls: 'detection_btn_low', + enableToggle: true, + toggleGroup: 'det_sens_btn_grp', + disabled: true, + scale: 'large', + iconAlign: 'top' + },{ + xtype: 'button', + text: 'Meduim', + id: 'DDSPBTN2', + width: 80, + iconCls: 'detection_btn_medium', + enableToggle: true, + toggleGroup: 'det_sens_btn_grp', + disabled: true, + scale: 'large', + iconAlign: 'top' + },{ + xtype: 'button', + text: 'High', + id: 'DDSPBTN3', + width: 80, + iconCls: 'detection_btn_high', + enableToggle: true, + toggleGroup: 'det_sens_btn_grp', + disabled: true, + scale: 'large', + iconAlign: 'top' + }] + }*/] + }], + bbar:[{ + xtype: 'button', + text: '12.5%', + enableToggle: true, + id: 'zoom_bt12_%%%NODEID%%%', + toggleGroup: 'zoom_tg_%%%NODEID%%%', + toggleHandler: function( bt, st ){ + if( st ){ + set2DZoomLevel( %%%NODEID%%%, 12 ); + }; + } + },{ + xtype: 'button', + text: '25%', + enableToggle: true, + id: 'zoom_bt25_%%%NODEID%%%', + toggleGroup: 'zoom_tg_%%%NODEID%%%', + toggleHandler: function( bt, st ){ + if( st ){ + set2DZoomLevel( %%%NODEID%%%, 25 ); + }; + } + },{ + xtype: 'button', + text: '50%', + enableToggle: true, + id: 'zoom_bt50_%%%NODEID%%%', + toggleGroup: 'zoom_tg_%%%NODEID%%%', + toggleHandler: function( bt, st ){ + if( st ){ + set2DZoomLevel( %%%NODEID%%%, 50 ); + }; + } + },{ + xtype: 'button', + text: '100%', + pressed: true, + enableToggle: true, + id: 'zoom_bt100_%%%NODEID%%%', + toggleGroup: 'zoom_tg_%%%NODEID%%%', + toggleHandler: function( bt, st ){ + if( st ){ + set2DZoomLevel( %%%NODEID%%%, 100 ); + }; + } + },{ + xtype: 'panel', + id: 'status_%%%NODEID%%%', + border: false, + frame: false, + width: 800, + height: 28, + html: '' + }] +} \ No newline at end of file diff --git a/lib/controller/dash/node_3.js b/lib/controller/dash/node_3.js index a17ba5f..cd9fede 100644 --- a/lib/controller/dash/node_3.js +++ b/lib/controller/dash/node_3.js @@ -18,12 +18,30 @@ afterrender: function(p){ masks_statuses[%%%NODEID%%%] = 0; masks_exist[%%%NODEID%%%] = 0; + //alert( PanelH - p.ownerCt.ownerCt.getHeight() + 64+32 ); + //alert( document.body.clientHeight - p.ownerCt.ownerCt.getHeight() ); + //var expH = document.body.clientHeight - p.ownerCt.ownerCt.getHeight(); - var W=p.getWidth(); - var H=9*(W/16); - p.setHeight( H + 32 ); - Ext.getCmp( 'cp_radar_%%%NODEID%%%' ).setHeight( H - 18 ); - //document.getElementById('draw_svg_%%%NODEID%%%').setAttribute("width", H-45 ); + var W = p.getWidth(); + //var H=9*(W/16) - 28; + //var H = PanelH - p.ownerCt.ownerCt.getHeight() + 64; + var H = document.body.clientHeight - p.ownerCt.ownerCt.getHeight(); + //var W = 16*(H/9); + //p.ownerCt.setWidth( W ); + p.setHeight( H ); + Ext.getCmp( 'cp_radar_%%%NODEID%%%' ).setHeight( H - 70 ); + Ext.getCmp( 'cp_radar_%%%NODEID%%%' ).setWidth( H - 70 ); + //alert( W+" "+H ); + //Ext.getCmp( 'toolbox_%%%NODEID%%%' ).setWidth( W - H + 50 ); + //Ext.getCmp( 'toolbox_%%%NODEID%%%' ).doLayout( false, true ); + //if( H > W ){ + //document.getElementById('draw_svg_%%%NODEID%%%').setAttribute("width", "100%" ); + //} else { + document.getElementById('draw_svg_%%%NODEID%%%').setAttribute("width", H-80 ); + //document.getElementById('draw_svg_%%%NODEID%%%').setAttribute("height", H-80 );//"100%" ); + if( W > ( H+130 ) ) Ext.getCmp( 'toolbox_%%%NODEID%%%' ).expand( false ); + //}; + //alert( W +' '+ ( H+130 ) ); set2DZoomLevel( %%%NODEID%%%, 100 ); var el = document.getElementById('div_radar_%%%NODEID%%%'); el.addEventListener( "fullscreenchange", ( evt )=>{ @@ -32,7 +50,7 @@ if( fsDrawID ){ var el = document.getElementById('draw_svg_'+fsDrawID ); el.removeAttribute("width"); - el.setAttribute( "width", '86%' ); + el.setAttribute( "width", H-80 );//'86%' ); fsDrawID = 0; }; }; @@ -40,16 +58,35 @@ window.setTimeout( load2DDraw, 10*%%%NODEID%%%, %%%NODEID%%% ); } }, - layout: 'hbox', + //layout: 'hbox', + layout:'border', items:[{ id: 'cp_radar_%%%NODEID%%%', + region: 'center', html: '
100 m.502512.5
', width: '56%' - },{ + },{ + region: 'east', + collapsible: true, + minSize: 75, // defaults to 50 + maxSize: 220, frame: false, border: false, - width: '44%', + collapsed: true, + collapseMode: 'mini', + title: 'Toolbox', + floatable: true, + animFloat: false, + autoHide: true, + id: 'toolbox_%%%NODEID%%%', + //unstyled: true, + margins: '5 0 0 5', + //cmargins: '5 0 5 5', + width: 200, items:[{ + xtype: 'spacer', + height: 3 + },{ xtype: 'button', id: 'cp_clear_btn_%%%NODEID%%%', width: '100%', @@ -91,120 +128,111 @@ },{ xtype: 'spacer', height: 3 + },{ + xtype: 'button', + text: 'Mask Editor', + id: 'DMED_%%%NODEID%%%', + width: '100%', + disabled: true, + iconCls: 'ctrl_panel_drawscan_sm', + handler: function(){ + showMaskEditor( false, 0, %%%NODEID%%% ); + } + },{ + xtype: 'spacer', + height: 3 },{ xtype: 'panel', title: 'Masking Management', - height: 145, + height: 70, frame: true, flex: 1, - layout: 'vbox', + layout: 'hbox', items:[{ xtype: 'button', - text: 'Mask Editor', - id: 'DMED_%%%NODEID%%%', - width: '100%', + enableToggle: true, + width: '20%', + scale: 'medium',//scale: 'small', + id: 'mz_btn_%%%NODEID%%%_0', + iconCls: 'mask_zone1_btn', + iconAlign: 'top', + pressed: false, disabled: true, handler: function(){ - showMaskEditor( false, 0, %%%NODEID%%% ); + if( Ext.getCmp('mz_btn_%%%NODEID%%%_0').pressed){ + doMaskOperation( %%%NODEID%%%, 1, 0 ); + } else { + doMaskOperation( %%%NODEID%%%, 0, 0 ); + }; } },{ - xtype: 'spacer', - height: 3 + xtype: 'button', + enableToggle: true, + width: '20%', + scale: 'medium', + id: 'mz_btn_%%%NODEID%%%_1', + iconCls: 'mask_zone2_btn', + iconAlign: 'top', + pressed: false, + disabled: true, + handler: function(){ + if( Ext.getCmp('mz_btn_%%%NODEID%%%_1').pressed){ + doMaskOperation( %%%NODEID%%%, 1, 1 ); + } else { + doMaskOperation( %%%NODEID%%%, 0, 1 ); + }; + } },{ - xtype: 'panel', - id: 'DMEBB_%%%NODEID%%%', - frame: true, - border: false, - flex: 1, - width: '100%', - height: 53, - layout: 'hbox', - items:[{ - xtype: 'button', - enableToggle: true, - width: '20%', - scale: 'medium',//scale: 'small', - id: 'mz_btn_%%%NODEID%%%_0', - iconCls: 'mask_zone1_btn', - iconAlign: 'top', - pressed: false, - disabled: true, - handler: function(){ - if( Ext.getCmp('mz_btn_%%%NODEID%%%_0').pressed){ - doMaskOperation( %%%NODEID%%%, 1, 0 ); - } else { - doMaskOperation( %%%NODEID%%%, 0, 0 ); - }; - } - },{ - xtype: 'button', - enableToggle: true, - width: '20%', - scale: 'medium', - id: 'mz_btn_%%%NODEID%%%_1', - iconCls: 'mask_zone2_btn', - iconAlign: 'top', - pressed: false, - disabled: true, - handler: function(){ - if( Ext.getCmp('mz_btn_%%%NODEID%%%_1').pressed){ - doMaskOperation( %%%NODEID%%%, 1, 1 ); - } else { - doMaskOperation( %%%NODEID%%%, 0, 1 ); - }; - } - },{ - xtype: 'button', - enableToggle: true, - width: '19%', - scale: 'medium',//scale: 'large', - id: 'mz_btn_%%%NODEID%%%_2', - iconCls: 'mask_zone3_btn', - iconAlign: 'top', - pressed: false, - disabled: true, - handler: function(){ - if( Ext.getCmp('mz_btn_%%%NODEID%%%_2').pressed){ - doMaskOperation( %%%NODEID%%%, 1, 2 ); - } else { - doMaskOperation( %%%NODEID%%%, 0, 2 ); - }; - } - },{ - xtype: 'button', - enableToggle: true, - width: '20%', - scale: 'medium',//scale: 'large', - id: 'mz_btn_%%%NODEID%%%_3', - iconCls: 'mask_zone4_btn', - iconAlign: 'top', - pressed: false, - disabled: true, - handler: function(){ - if( Ext.getCmp('mz_btn_%%%NODEID%%%_3').pressed){ - doMaskOperation( %%%NODEID%%%, 1, 3 ); - } else { - doMaskOperation( %%%NODEID%%%, 0, 3 ); - }; - } - },{ - xtype: 'button', - enableToggle: true, - width: '20%', - scale: 'medium',//scale: 'large', - id: 'mz_btn_%%%NODEID%%%_4', - iconCls: 'mask_zone5_btn', - iconAlign: 'top', - pressed: false, - disabled: true, - handler: function(){ - if( Ext.getCmp('mz_btn_%%%NODEID%%%_4').pressed){ - doMaskOperation( %%%NODEID%%%, 1, 4 ); - } else { - doMaskOperation( %%%NODEID%%%, 0, 4 ); - }; - } - }] + xtype: 'button', + enableToggle: true, + width: '19%', + scale: 'medium',//scale: 'large', + id: 'mz_btn_%%%NODEID%%%_2', + iconCls: 'mask_zone3_btn', + iconAlign: 'top', + pressed: false, + disabled: true, + handler: function(){ + if( Ext.getCmp('mz_btn_%%%NODEID%%%_2').pressed){ + doMaskOperation( %%%NODEID%%%, 1, 2 ); + } else { + doMaskOperation( %%%NODEID%%%, 0, 2 ); + }; + } + },{ + xtype: 'button', + enableToggle: true, + width: '20%', + scale: 'medium',//scale: 'large', + id: 'mz_btn_%%%NODEID%%%_3', + iconCls: 'mask_zone4_btn', + iconAlign: 'top', + pressed: false, + disabled: true, + handler: function(){ + if( Ext.getCmp('mz_btn_%%%NODEID%%%_3').pressed){ + doMaskOperation( %%%NODEID%%%, 1, 3 ); + } else { + doMaskOperation( %%%NODEID%%%, 0, 3 ); + }; + } + },{ + xtype: 'button', + enableToggle: true, + width: '20%', + scale: 'medium',//scale: 'large', + id: 'mz_btn_%%%NODEID%%%_4', + iconCls: 'mask_zone5_btn', + iconAlign: 'top', + pressed: false, + disabled: true, + handler: function(){ + if( Ext.getCmp('mz_btn_%%%NODEID%%%_4').pressed){ + doMaskOperation( %%%NODEID%%%, 1, 4 ); + } else { + doMaskOperation( %%%NODEID%%%, 0, 4 ); + }; + } }] },{ xtype: 'spacer', diff --git a/lib/controller/getDashBoardItems.php b/lib/controller/getDashBoardItems.php index 61e4d7c..948053f 100644 --- a/lib/controller/getDashBoardItems.php +++ b/lib/controller/getDashBoardItems.php @@ -452,8 +452,8 @@ lksdlfjlksdfhkjh; case 3:{ $STA[0]="{ columnWidth: .5, stylse:'padding:10px 0 10px 10px', items:["; $STA[1]="{ columnWidth: .5, stylse:'padding:10px 0 10px 10px', items:["; - $STA[2]="{ columnWidth: .35, stylse:'padding:10px 0 10px 10px', items:["; - $STA[3]="{ columnWidth: .65, stylse:'padding:10px 0 10px 10px', items:["; + $STA[2]="{ columnWidth: .33, stylse:'padding:10px 0 10px 10px', items:["; + $STA[3]="{ columnWidth: .67, stylse:'padding:10px 0 10px 10px', items:["; $OUT[]= $STA[0] . $DUMMY['map'] . $END; diff --git a/style/assets/en_mifraz.psd b/style/assets/en_mifraz.psd new file mode 100644 index 0000000..cd82ab3 Binary files /dev/null and b/style/assets/en_mifraz.psd differ diff --git a/style/assets/en_mifraz_0.jpg b/style/assets/en_mifraz_0.jpg new file mode 100644 index 0000000..5ee9d44 Binary files /dev/null and b/style/assets/en_mifraz_0.jpg differ diff --git a/style/assets/en_mifraz_0_m.jpg b/style/assets/en_mifraz_0_m.jpg new file mode 100644 index 0000000..0e0eaa0 Binary files /dev/null and b/style/assets/en_mifraz_0_m.jpg differ diff --git a/style/assets/en_mifraz_rooller_60m.png b/style/assets/en_mifraz_rooller_60m.png new file mode 100644 index 0000000..aa5f6cb Binary files /dev/null and b/style/assets/en_mifraz_rooller_60m.png differ diff --git a/style/assets/en_mifraz_sat.jpg b/style/assets/en_mifraz_sat.jpg new file mode 100644 index 0000000..0c834b1 Binary files /dev/null and b/style/assets/en_mifraz_sat.jpg differ