var star=Ext.create("Ext.data.Store",{storeId:"simpsonsStore",fields:["name","readWrite"],data:{"items":[{"name":"Lisa","readWrite":false},{"name":"Bart","readWrite":false},{"name":"Homer","readWrite":false},{"name":"Marge","readWrite":false},{"name":"Weldone","readWrite":false},{"name":"Healthy","readWrite":false}]},proxy:{type:"memory",reader:{type:"json",root:"items"}}});
Ext.create("Ext.data.Store",{storeId:"testMeasureDetails",fields:["test","measure"],data:[{test:"HTTP",measure:"Content length Content validity Data transfer name DNS availability"},{test:"Citrix Server",measure:"Data Transfer Name"},{test:"Java",measure:"DNS Availability"},]});Ext.define("MyDashBoard.view.CustomConfigTemplateWindow",{alias:"widget.customConfigTemplateWindow",extend:"Ext.window.Window",height:strSkin=="Light"?360:360,width:strSkin=="Light"?490:490,autoScroll:false,scroll:false,resizable:false,header:{height:33,padding:"0 10",margin:0},ghost:false,cls:"myDashboardwindow",ui:"newPopupWindow  ",bodyPadding:0,frame:false,padding:0,margin:0,border:false,modal:true,title:"Layout Settings",requires:["Ext.ux.form.ItemSelector","utilities.ScrollCombo","utilities.CustomGrid","utilities.Utilities","Ext.ux.form.MultiSelect","utilities.Multiselector","utilities.CustomTrigger","utilities.ComponentSlider","Ext.ux.TabScrollerMenu","Ext.ux.FillSlider",],tools:[{xtype:"button",iconCls:"iconHelp",listeners:{afterrender:function(){Ext.create("Ext.tip.ToolTip",{target:this.id,anchor:"top",cls:"yellowTip",trackMouse:true,html:helpTooltip});
}},style:{"background":"none","border":"0px","margin":"0 1 0 0",},handler:function(){HelpWin();}}],dockedItems:[{xtype:"toolbar",dock:"bottom",height:50,cls:"egFooter",items:["->",{xtype:"button",id:"customCreateDashboardBtn",name:"customCreateDashboardBtn",cls:"buttonNewBig",padding:"0 10 0 10",text:createLbl},"->"]}],closeAction:"destroy",dashBoardAction:"",profileName:"",layout:{type:"fit"},items:[{xtype:"form",itemId:"customdashconfigform",layout:{type:"hbox",align:"stretch"},id:"customdashconfigform",name:"customdashconfigform",border:false,items:[{xtype:"container",id:"customCreateWidgetMain",layout:{type:"hbox",align:"stretch"},bodyPadding:0,items:[{xtype:"container",margin:"10 5 0 10",width:460,layout:{type:"vbox",},items:[{xtype:"container",margin:"0 15 0 0",layout:{type:"hbox",},items:[{xtype:"container",id:"customImgcont",name:"customImgcont",margin:"10 15 5 0",width:42,height:42,listeners:{afterrender:function(a){Ext.get(a.el).select(".userDefinedImgDefault").on("mouseenter",function(){Ext.get(a.el).select(".settingOver").update('<div class="userDefinedImgDefaultOver" style="display:block;padding:5px;"><table border="0px" cellpadding="0px" cellspacing="0px" width="100%" height="100%"><tr><td align="center" valign="middle"><a href="javascript:void(0)" id="customChangeImg"><span style="width:20px;height:20px;display:inline-block" class="iconOneClickImgDefaultChange"></span><br/></a></td></tr></table></div>');
Ext.get(a.el).select("#customChangeImg").on("click",function(){var b=Ext.create("MyDashBoard.view.IconLibrary",{from:"dashboardUpload",windowId:"windowId",custUploadPath:"manager/tomcat/webapps/final/images/icon-library/"+loginUser+"/",profileName:""}).show();b.on("close",function(){b.destroy();b="closed";
});},Ext.get("customChangeImg"));});Ext.get(a.el).select(".settingOver").on("mouseleave",function(){Ext.get(a.el).select(".settingOver").update("");});}}},{xtype:"textfield",cls:"textbox",margin:"10 0 10 0",id:"customDashbrdNam",name:"customDashbrdNam",fieldLabel:"Dashboard Name",width:352,labelAlign:"top",labelSeparator:"",}]},{xtype:"textareafield",cls:"text-area",id:"customDashbrdDescription",name:"customDashbrdDescription",labelAlign:"top",width:410,labelSeparator:"",margin:"10 0 10 0",fieldLabel:"Description",},{xtype:"container",layout:{type:"hbox",},margin:"0 0 0 0",width:460,defaults:{labelAlign:"top",labelSeparator:""},items:[{xtype:"scrollcombo",editable:true,forceSelection:true,queryMode:"local",fieldLabel:"View by",id:"infraTypeCombo",margin:"0 10 0 0",labelAlign:"top",width:200,labelSeparator:"",name:"infraTypeCombo",store:new Ext.data.Store({fields:["displayField","valueField"],data:[]}),displayField:"displayField",valueField:"valueField",queryMode:"local"},{xtype:"scrollcombo",id:"subInfraTypeCombo",name:"subInfraTypeCombo",margin:"0 10 0 0",labelAlign:"top",width:200,labelSeparator:"",value:"",cls:"dropdown",editable:true,forceSelection:true,displayField:"displayField",valueField:"valueField",fieldLabel:"",store:Ext.create("Ext.data.Store",{fields:["valueField","displayField"],data:[]}),queryMode:"local",hidden:true}]},{xtype:"container",layout:{type:"hbox",},margin:"8 0 0 0",width:460,defaults:{labelSeparator:""},items:[{xtype:"switchfield",name:"autoIncludeComps",id:"autoIncludeComps",fieldLabel:screenLabelsObj["autoAssociateCompsLbl"],inputValue:"Yes",uncheckedValue:"No",margin:"5 0 0 0",labelStyle:"margin: 0px 0 0 0;",width:410,labelWidth:183,vertical:false,checked:false,hidden:(isComponentAutoAssociationEnabled?false:true)}]}]},]},{xtype:"button",text:"",cls:"advancedOptionGrayButton",iconCls:"advancedOptionGrayButtonIcon",margin:"10 0 0 -12",width:20,height:30,maxHeight:35,tooltip:advSettingsLbl,handler:function(){Ext.getCmp("customAdvancedOptionWidgetSlider").loadMask("customCreateWidgetMain",true);
Ext.get("customAdvancedOptionWidgetSlider").animate({to:{left:strSkin=="Light"?230:240,},listeners:{beforeanimate:function(){},afteranimate:function(){var a=this;Ext.get("customGetAdvancedOptionWidgetButton").on("click",function(){Ext.get("customAdvancedOptionWidgetSlider").animate({to:{left:"550"},listeners:{afteranimate:function(){},beforeanimate:function(){Ext.getCmp("customAdvancedOptionWidgetSlider").loadMask("customCreateWidgetMain",false);
}}});});}}});}},{xtype:"container",cls:"templateAdvancedOptionSlider",id:"customAdvancedOptionWidgetSlider",loadMask:function(c,b){var a=new Ext.LoadMask(Ext.get(c),{msg:""});if(b==true){a.show();}else{a.hide();}return a;},layout:{type:"vbox",align:"stretch"},autoScroll:true,width:250,margin:"0 0 0 60",html:'<div class="advanceEffectButton"><div id="customGetAdvancedOptionWidgetButton" class="advancedOptionGreenButton"></div></div>',items:[{xtype:"container",cls:"fieldContainerCls",height:257,layout:{type:"vbox",align:"stretch"},autoScroll:true,flex:1,flex:1,items:[{xtype:"fieldcontainer",layout:"vbox",columnWidth:1,margin:"14 0 5 15",defaults:{margin:"0 0 5 5",labelAlign:"top",labelSeparator:"",columnWidth:1,},items:[{xtype:"container",layout:"vbox",items:[{xtype:"container",id:"customSharingLbl",margin:"0 0 5 0",},{xype:"buttongroup",layout:"hbox",width:250,labelWidth:235,defaults:{margin:"5 5 5 0",width:50,height:50},items:[{xtype:"button",padding:"0 0 0 0",id:"customPrivateId",name:"customPrivateId",toggleGroup:"dashboardSharedButtonShared",allowDepress:false,enableToggle:true,pressed:true,cls:"dashboardSharedButtonPrivate",text:'<div class="dashboardSharedButtonText">Private</div>',toggleHandler:function(){Ext.getCmp("customSharedUsersObj").hide();
}},{xtype:"tbseparator",width:2,cls:"userProfileSeparator",height:40,margin:"10px 0px 10px 0px"},{xtype:"button",padding:"0 0 0 0",id:"customPublicId",name:"customPublicId",allowDepress:false,enableToggle:true,hidden:(restricPublicDashboards)?true:false,toggleGroup:"dashboardSharedButtonShared",cls:"dashboardSharedButtonPublic",text:'<div class="dashboardSharedButtonText">Public</div>',toggleHandler:function(){Ext.getCmp("customSharedUsersObj").hide();
}},{xtype:"tbseparator",width:2,cls:"userProfileSeparator",height:40,margin:"10px 0px 10px 0px",hidden:(restricPublicDashboards)?true:false},{xtype:"button",padding:"0 0 0 0",id:"customShareId",name:"customShareId",allowDepress:false,enableToggle:true,toggleGroup:"dashboardSharedButtonShared",cls:"dashboardSharedButtonShared",text:'<div class="dashboardSharedButtonText">Share to</div>',toggleHandler:function(){Ext.getCmp("customSharedUsersObj").show();
}}]}]},{xtype:"container",hidden:true,id:"customSharedUsersObj",name:"customSharedUsersObj",layout:"vbox",items:[{xtype:"container",margin:"4 4 4 0",id:"customSharingGridLbl"},{xtype:"gridpanel",store:new Ext.data.Store({fields:["displayField","valueField","readWrite"],data:[]}),createGridButton:function(d,f,b,a,e,c){if(!Ext.isEmpty(Ext.get(f))){new Ext.form.field.Checkbox({checked:d,margin:0,ui:"readWrite_checkbt",setToolTip:function(i){var h=this;
readOnlyText=readOnlyLbl;switch(i){case true:readOnlyText=readWriteLbl;break;case false:readOnlyText=readOnlyLbl;break;}if(!Ext.isEmpty(b)){b.suspendEvents();var g=b.getAt(e);g.set(c,this.checked);b.resumeEvents();}h.getEl().set({"data-qtip":readOnlyText});},listeners:{afterRender:function(g){this.setToolTip(this.checked);
},change:function(g,j,h,i,k){this.checked=j;g.setToolTip(this.checked);}},renderTo:f,});}return d;},ui:"multiSelectWithCheckbox",hideHeaders:true,columns:[{text:"",dataIndex:"displayField",flex:1},{dataIndex:"readWrite",width:20,padding:"0 0 0 0",margin:0,renderer:function(i,a,c,f,k,j,g,d){var e=this,h=g.ownerCt.columns[k].dataIndex;
a["tdAttr"]='id="'+h+f+'"';var b=""+h+f+"";Ext.defer(function(){e.createGridButton(i,b,j,g,f,h);},50);return Ext.String.format('<div id="{0}"></div>',b);}},],id:"customCheckComp",name:"customCheckComp",height:90,width:200,padding:0,margin:0,selModel:Ext.create("Ext.selection.CheckboxModel",{checkOnly:true}),border:true,}]},{xtype:"container",layout:{type:"column",align:"stretch"},width:220,items:[{xtype:"slider",id:"customRefreshFrequenySlider",name:"customRefreshFrequenySlider",fieldLabel:'<span class="formLabelDivFont">'+refreshTxtBoxLbl+" </span>",labelSeparator:"",labelAlign:"top",animate:false,margin:"2 0 2 2",minValue:0,value:60,useTips:false,maxValue:300,width:strSkin=="Light"?210:200,plugins:["fillslider"],listeners:{change:function(a,b,d,c){Ext.getCmp("customRefrequencyContainer").update(d.value+" "+secsLbl);
}}},{xtype:"container",margin:"3 10 2 2",id:"customRefrequencyContainer",name:"customRefrequencyContainer",html:'<span><div style="display: inline ; float:right ; " class="font_normal10">'+60+" "+secsLbl+"</div></span>"}]},{xtype:"scrollcombo",id:"globalTimeline",name:"globalTimeline",width:180,labelWidth:130,labelAlign:"top",labelSeparator:"",dock:"right",margin:"0 10 10 5",cls:"dropdown",listConfig:{cls:"blklist"},fieldLabel:"Timeline ",editable:true,forceSelection:true,displayField:"displayField",valueField:"valueField",store:Ext.create("Ext.data.Store",{fields:["valueField","displayField"],data:[]}),queryMode:"local",}]}]}]}]}],listeners:{"close":function(a){Ext.getCmp("modifyButton").defaultState();
}}});