;---------------- MainWindow.Protection ------------------------

[MainWindow_Body.Protection]
@              = $TaskTab mg(0,0,0,10) ext(1) h(55313)
Body           = [MainWindow_Body.Protection_Body] $TaskTab sz(p,a)
;Radar          = [MainWindow.Protection_Radar] a(lb) xy(10)

[MainWindow_Body.Protection_Body]
$UseBigHeight   = Height_Big( visible(f_IsCtlExistAndHide("Recommendations")))
@               = ext(1)
Header          = f("SecondWndHeader1") xy(-1) extprm(1)
Descr           = at(readonly,noborder,nofocus) f("SecondWndDescription") a(la) xy(,5,,25) extprm(1)
HSeparator      = a(ca) sz(472,7) bg("Widget_Window_ContentHSep") extprm(1)

Protection      = [MainWindow.Protection_WorkArea_Home_ProtectArea] subst( Caption() State() $UseBigHeight)
Sep1            = [MainWindow_Body.Protection_Body_Sep] 
Threats         = [MainWindow.Protection_WorkArea_Home_ProtectArea] subst( Caption() $UseBigHeight) extprm(1)
Problems        = [MainWindow.Protection_WorkArea_Home_ProtectArea] subst( Caption() ) use(0) extprm(1)
Sep2            = [MainWindow_Body.Protection_Body_Sep] visible(f_IsCtlExistAndVisible("Protection.Update"))
Update          = [MainWindow.Protection_WorkArea_Home_ProtectArea] subst( Caption() $UseBigHeight) use(1) extprm(1)
Sep3            = [MainWindow_Body.Protection_Body_Sep] visible(f_IsCtlExistAndVisible("Protection.License"))
License         = [MainWindow.Protection_WorkArea_Home_ProtectArea] subst( Caption() ) use(0) extprm(1)
Sep4            = [MainWindow_Body.Protection_Body_Sep] visible(f_IsCtlExistAndVisible("Protection.Recommendations")))
Recommendations = [MainWindow.Protection_WorkArea_Home_ProtectArea] subst( Caption() ) visible(f_getRecommendations()) extprm(1)


[MainWindow_Body.Protection_Body_Sep]
@ = a(ca) sz(472,3) xy(,,,) bg("Widget_Window_ContentSep")

[MainWindow.Protection_WorkArea_Home_ProtectArea]
$SectionName = ctl.parent.id
@           = sz(p,a) a(la) xy(,,,) mg(0,15,0,18) ext(1)
IconSate    = i( "dashboard_statuses," + s_Dashboard_statuses($SectionName)) extprm(1) a(lc) sz(a,a)
Caption     = [State_text]  a(ac) xy(10,,130)
Action      = [ProtectArea_Actions] onclick(s_Dashboard_Actions($SectionName)) a(rc) xy(0) use(1) extprm(1)
Height_Big  = a(lt) sz(,63) visible(0) extprm(1) 

[State_text]
$SectionName = ctl.parent.parent.id
@ = sz(p,a)
State       = a(lt) sz(p,a) at(multiline) f("SecondWndHeader2_light") text(ctl.Caption.text + " " + s_Dashboard_statuses_desc($SectionName)) ) extprm(1)
Caption     = a(lt) at(multiline) f("SecondWndHeader2") text(ctl.parent.text) extprm(1) visible(1)

[ProtectArea_Actions]
$SectionName = ctl.parent.parent.id
@           = sz(a,a) ext(1)
Btn         = [BtnGlass37] sz(120) a(lt) text(s_Dashboard_Actions_Btn_text($SectionName)) onclick(ctl.parent.click()) visible(ctl.text) extprm(1)
MenuBtn     = [ProtectArea_Actions_MenuBtn] text(s_Dashboard_Actions_SplitBtn_text($SectionName)) a(lt) onclick(ctl.parent.click()) visible(ctl.Action.text) extprm(1)

[ProtectArea_Actions_MenuBtn]
@ = ext(1)
Action     = [BtnGlass37] onclick(ctl.parent.click()) sz(95) a(lt) text(ctl.parent.text) menu(s_DashboardMenuItem(ctl.parent.parent.parent.id)) alias(split_button) extprm(1)
ActionMenu = [BtnGlass37.Split] a(as) xy(-5) onclick(ctl.Action.showMenu()) extprm(1)

[MenuBtn.Protection.menu]
$ParentBtn = ctl.parent.parent.parent
@              = t(menu)
MainItem       = t(menuitem) onclick($ParentBtn.click()) text($ParentBtn.text)
ListComponents = t(menuitem) onclick(if(f_checkNoFeatures(),window("ProtectionComponents", $ModalIfRemote)))

[MenuBtn.Recommendations.menu]
$ParentBtn = ctl.parent.parent.parent
@        = t(menu)
MainItem = t(menuitem) onclick($ParentBtn.click()) text($ParentBtn.text)
Settings = t(menuitem) alias(taskview) onclick(if(f_getRecommendations() == #eAntiSpamRecommendTraining, window("OptionsWindow:Anti_Spam"), if(f_getRecommendations() == #eManualUpdateMode, window("OptionsWindow:Updater"))))

[MenuBtn.Update.menu]
$ParentBtn = ctl.parent.parent.parent
@        = t(menu)
MainItem = t(menuitem) onclick($ParentBtn.click()) text($ParentBtn.text)
Settings = t(menuitem) visible(s_Update_menu_Settings(f_UnionBasesState())) onclick(windowDlg("UpdaterSettings:RunMode"))
Report   = t(menuitem) visible(s_Update_menu_Report(f_UnionBasesState())) onclick(window("MainReport:Updater"))
RollBack = t(menuitem) visible(f_UnionBasesState() == #eUBSP_Corrupted) onclick(if(f_checkNoFeatures(), f_setState(#TASK_REQUEST_STOP, "Rollback")))

[MenuBtn.Threats.menu]
$ParentBtn = ctl.parent.parent.parent
@        = t(menu)
MainItem = t(menuitem) onclick($ParentBtn.click()) text($ParentBtn.text)
Report   = t(menuitem) alias(taskview) onclick(window("MainReport")) visible(f_getThreatsState() == #eDBThreatsRebootNeeded)
Details  = t(menuitem) alias(taskview) onclick(window("QMLProblemList")) visible(f_getThreatsState() != #eDBThreatsRebootNeeded)

;KAVWarning     = [MainWindow_Body.Protection.KAVWarning] a(ca) xy(,-7)

[MainWindow_Body.Protection.KAVWarning]
@ = use($IsKAV)
KAVWarn        = f("Description")
KAVWarnLink    = a(as) $LinkKL onclick(url($ProductUpgradeLink))

[MainWindow.Protection_Radar]
@            = sz(520,102) at(clickable) bg("RadarBg1,0,0,1,0,0,1") onclick(window("MainThreats"))
Processed    = xy(12,7) f("Header0KGreen")
Detected     = xy(343,7) f("Header0KGreen")
Detected1    = a(sa) xy(1,4) f("Description")
Detected2    = a(sa) f("Description")
Detected3    = a(sa) f("Description")
Detected4    = a(sa) f("Description")
Detected5    = a(sa) f("Description")
DetectedVal  = a(r) xy(12,7) f("Header0KGreen") text(ctl.DataCounters.BlockedTotal.value)
DetectedVal1 = a(ra) xy(12,4) f("Header0") text(ctl.DataCounters.BlockedVirware.value)
DetectedVal2 = a(ra) xy(12) f("Header0") text(ctl.DataCounters.BlockedTrojware.value)
DetectedVal3 = a(ra) xy(12) f("Header0") text(ctl.DataCounters.BlockedMalware.value)
DetectedVal4 = a(ra) xy(12) f("Header0") text(ctl.DataCounters.BlockedAdware.value)
DetectedVal5 = a(ra) xy(12) f("Header0") text(ctl.DataCounters.BlockedRiskware.value)
Bg2          = bg("RadarBg2") xy(12,26)
Animation    = [MainWindow.Protection_Radar_Animation] sz(a,a) visible(s_IsStateRunning(Protection.state))
DataCounters = [MainWindow.Protection_WorkArea_Home_Stat_Counters]

[MainWindow.Protection_Radar_Animation]
Bg3          = bg("RadarBg3") xy(12,26)
GreenPoints  = bg("RadarGreenPoints") a(ss)
RedPoints    = bg("RadarRedPoints")   a(ss) visible(AVService.NumUntreated)
Animation    = bg("RadarAnimation")   a(ss) bp(ctl.animate(s_IsStateRunning(Protection.state) ? -1 : 0, 2, true); ctl.parent.GreenPoints.animate(s_IsStateRunning(Protection.state) ? -1 : 0, 50, true); ctl.parent.RedPoints.animate(s_IsStateRunning(Protection.state) ? -1 : 0, 50, true))

[MainWindow.Protection_WorkArea_Home_Stat]
@       = sz(p,p)
TotalCounter = [MainWindow.Protection_WorkArea_Home_Stat_Counters]
Summary = f("Header2") a(lt) xy(15)
Chart   = [ProfileHome_ChartStat] a(la) sz(p,p) subst(Legend([MainWindow.Protection_WorkArea_Home_StatChart_All_Legend]) Chart([MainWindow.Protection_WorkArea_Home_StatChart_All]))

[MainWindow.Protection_WorkArea_Home_StatChart_All]
@       = $ChartStat
Plot    = t(chartplotarea)
AxisY   = $ChartStatAxisY
AxisX   = $ChartStatAxisX
Data1   = $ChartStatData bg("Chart1")  v(Blocked) filter(Counter == #eVirware)            tt(s_RepDetectedType(#eVirware))
Data2   = $ChartStatData bg("Chart2")  v(Blocked) filter(Counter == #eTrojware)           tt(s_RepDetectedType(#eTrojware))
Data3   = $ChartStatData bg("Chart3")  v(Blocked) filter(Counter == #eMalware)            tt(s_RepDetectedType(#eMalware))
Data4   = $ChartStatData bg("Chart4")  v(Blocked) filter(Counter == #eAdware)             tt(s_RepDetectedType(#eAdware))
Data5   = $ChartStatData bg("Chart5")  v(Blocked) filter(Counter == #eRiskware)           tt(s_RepDetectedType(#eRiskware))
Data6   = $ChartStatData bg("Chart6")  v(Blocked) filter(Counter == #ePhishing)           tt(s_RepDetectedType(#ePhishing)) use(f_isInstalled("antiphishing"))
Data7   = $ChartStatData bg("Chart7")  v(Blocked) filter(Counter == #eAttack)             tt(s_RepDetectedType(#eAttack)) use(f_isInstalled("ids"))
Data8   = $ChartStatData bg("Chart8")  v(Blocked) filter(Counter == #eSpam)               tt(s_RepDetectedType(#eSpam)) use(f_isInstalled("Anti_Spam"))
Data9   = $ChartStatData bg("Chart9")  v(Blocked) filter(Counter == #eBanner)             tt(s_RepDetectedType(#eBanner)) use(f_isInstalled("AdBlocker"))
Data10  = $ChartStatData bg("Chart10") v(Blocked) filter(Counter == #eUnwantedWebContent) tt(s_RepDetectedType(#eUnwantedWebContent)) use(f_isInstalled("ParCtl"))

[MainWindow.Protection_WorkArea_Home_StatChart_All_Legend]
@      = sz(a,a) a(cb) mg(24,0,0,0)
Data1  = [ChartLegend] subst(Text(text(s_RepDetectTypeShort(#eVirware)))            Color(bg("Chart1")))
Data2  = [ChartLegend] subst(Text(text(s_RepDetectTypeShort(#eTrojware)))           Color(bg("Chart2")))
Data3  = [ChartLegend] subst(Text(text(s_RepDetectTypeShort(#eMalware)))            Color(bg("Chart3")))
Data4  = [ChartLegend] subst(Text(text(s_RepDetectTypeShort(#eAdware)))             Color(bg("Chart4")))
Data5  = [ChartLegend] subst(Text(text(s_RepDetectTypeShort(#eRiskware)))           Color(bg("Chart5")))
Data6  = [ChartLegend] subst(Text(text(s_RepDetectTypeShort(#ePhishing)))           Color(bg("Chart6")))
Data7  = [ChartLegend] subst(Text(text(s_RepDetectTypeShort(#eAttack)))             Color(bg("Chart7")))
Data8  = [ChartLegend] subst(Text(text(s_RepDetectTypeShort(#eSpam)))               Color(bg("Chart8")))
Data9  = [ChartLegend] subst(Text(text(s_RepDetectTypeShort(#eBanner)))             Color(bg("Chart9")))
Data10 = [ChartLegend] subst(Text(text(s_RepDetectTypeShort(#eUnwantedWebContent))) Color(bg("Chart10")))

[MainWindow.Protection_WorkArea_Statistics]
@           = $TaskPanel
StatList    = [MainWindow.Protection_WorkArea_Statistics_StatList]

[MainWindow.Protection_WorkArea_Statistics_StatList]
@       = ext(1)
List    = [Product_Statistics_List] group(CounterGroup,(Counter<4?1:(Counter<30?2:3))) use(!$IsKAV)
List    = [Product_Statistics_List] filter(Counter<30) group(CounterGroup,(Counter<4?1:2)) use($IsKAV)

[MainWindow.Protection_WorkArea_Home_Stat_Counters]
@     = $ChartStat sz(0,0) rs(0,0) ext(1)
ScannedTotal = $ChartStatData v(Total) filter(Counter == #eScannedOjects)
BlockedTotal = $ChartStatData v(Blocked) filter(Counter <= #eSuspicionActivity && Counter!=#eSpam && Counter!=#eBanner && Counter!=#eVulnerability)
BlockedVirware  = $ChartStatData v(Blocked) filter(Counter == #eVirware)
BlockedTrojware = $ChartStatData v(Blocked) filter(Counter == #eTrojware)
BlockedMalware  = $ChartStatData v(Blocked) filter(Counter == #eMalware)
BlockedAdware   = $ChartStatData v(Blocked) filter(Counter == #eAdware)
BlockedRiskware = $ChartStatData v(Blocked) filter(Counter == #eRiskware)

[MainReport.Protection]
@ = [ProfileReport] subst(Group1([MainReport.Protection_Events]) Descr([MainReport.Protection_Events_Descr]) ActionsArea(subst(Other(subst(GroupFilter(onclick(ctl.menu("MainWindow.Protection_Filters_Menu"))))))) Stat(use(0)) )

[MainReport.SelfProtection]
@ = [MainReport.File_Monitoring] subst(Group1(subst(d(subst(Report(  filter(TaskID==#eTASK_SELFPROT) ))))) Stat(use(0)))

[MainReport.Protection_Events]
d = [Product_Events] subst(Report(v(#eTASK_GROUP_PROTECTION) prm(#dbRTP)) views([MainWindow.Protection_Filters]))

[MainReport.Protection_Events_Descr]
@ = mg(12,16)
Title   = [Protection_Events_Descr_Title]
Task    = [MainReport_ListRowDesc] subst(Name() Val(subst(Name(text($TaskText))      Icon(i($TaskIcon))))) visible(ctl.parent.parent.parent.parent.parent.id == "Protection")
App     = [MainReport_ListRowDesc] subst(Name() Val(subst(Name(text($AppName))       Icon(i($AppIcon)))))
Object  = [MainReport_ListRowDesc] subst(Name() Val(subst(Name(t(richedit) at(readonly,nofocus,noborder) text($ObjectRichText)))))
Event   = [MainReport_ListRowDesc] subst(Name() Val(subst(Name(text($ProductEventText))))) visible(ctl.Val.Name.text && ctl.Val.Name.text != ctl.parent.parent.Title.Title.text)
Reason  = [MainReport_ListRowDesc] subst(Name() Val(subst(Name(text($ReasonText)))))
Time    = a(rt) xy(,1) f("Normal_Grey") text(datetimeDT(Timestamp))
SandBox = a(ra) xy(,4) [Protection_Events_Descr_SandBox]

[Protection_Events_Descr_Title]
@ = sz(p,a)
Icon = a(lt) i(s_MainProtStatusIcon($NotifyEventSeverity))
Text = a(at) sz(p,a) rs(75) f("Normal_Bold") text(f_ProductEventCaptionText(-1))

[Protection_Events_Descr_SandBox]
@ = visible(f_isSandboxed(nPID)) use(f_isInstalled("SandBox"))
SandBoxL = a(lt) bg("CategoryGreenLeft")   sz(130,5) 
SandBoxM = a(la) bg("CategoryGreenMiddle") sz(130,a) f("Normal_Bold_White") ta(cc) text($SandBox)
SandBoxR = a(la) bg("CategoryGreenRight")  sz(130,5)

[MainReport_ListRowDesc]
@ = xy(,5) a(la) sz(p,a) [LValue] subst(Name(sz(140,a) a(lt) ) Val([MainReport_ItemDesc])) visible(ctl.Val.Name.text)

[MainReport_ItemDesc]
@ = a(as) -xy() sz(p,a) ext(1)
Icon = a(lt) extprm(1)
Name = a(at) extprm(1)

[MainWindow.Protection_Filters_Menu]
@           = at(enum) v(ctl.parent.parent.value)
ByTime      = at(radiolike)
AllItems    = at(radiolike)
ByTask      = at(radiolike)
ByApp       = at(radiolike)

[MainWindow.Protection_Filters]
ByTime      = v("1400010002f9;Ap00000000fa;Na000000003c;Pa00000000c8;PI000000005a;Co000000005a;Ob10000000c8;Ev1000000096;Ti14200000a10000000000000000;Ta1002000066;Pa00020000c8;Re20020000aa;Ac10020000a0;")
AllItems    = v("1400010002f9;Ap00000000fa;Na000000003c;Pa00000000c8;PI000000005a;Co000000005a;Ob10000000c8;Ev1000000096;Ti10200000a1;Ta1002000066;Pa00020000c8;Re20020000aa;Ac10020000a0;")
ByTask      = v("140001000306;Ap00000000fa;Na000000003c;Pa00000000c8;PI000000005a;Co000000005a;Ob10000000c8;Ev1000000096;Ti14200000ae0000000000000000;Ta1402010066;Pa00020000c8;Re20020000aa;Ac10020000a0;")
ByApp       = v("140001000306;Ap04000100fa;Pa000000002a;Na000000002a;PI000000002a;Co000000002a;Ob10000000c8;Ev1000000096;Ti14200000ae0000000000000000;Ta100201007a;Pa00020000c8;Re20020000aa;Ac10020000a0;")

;-------------------------------- Eula ------------------------------------------------

[EulaInfo]
@  = [StyledWindowT_Small_Simple] at(dragable,a_close,nohelp) subst(  BodyEx( [EulaInfo_Body] ) )

[EulaInfo_Body]
@ = mg(,,-1,-1)
TextFake = t(edit) 
Text     = a(lt) t(edit) at(multiline,readonly,vscroll) sz(p,p) text($EulaFile)

;-------------------------------- AvzTroubleshootWizard --------------------------------

[Grid.Groups]
AvzSeverity = [Grid.Group.Template] expand(val > 1) text(s_AvzSeverity(val))

[AvzWizard_Progress]
@           = sz(p,p) ext(1)
Intro       = sz(p,a) extprm(1) f("Wizard_Text")
Progress    = t(progress) a(la) xy(,17) sz(p,20) v(Completion)

[AvzWizard_ProgressVul]
@           = sz(p,p) ext(1) alias(taskview) ns(Scan_Vulnerabilities)
Intro       = sz(p,a) extprm(1) f("Wizard_Text")
Progress    = t(progress) a(la) xy(,17) sz(p,20) v(Completion)
CurObject   = [LValue] xy(,7) f("Wizard_Text") subst(Name() Val(t(edit) at(readonly,singleline,compresspath,noborder) text(CurObject)))

[AvzWizard_Error]
@       = a(lc) sz(p,a) ext(1)
Text

[AvzTroubleshootWizard]
@ = [WizardTpl] onclose(l_res = if(checkPassword(#pwdc_StopTask, name), (if(state & #StateFlagActive, (setstate(#TASK_REQUEST_STOP), ctl.Cancel.enabled = 0, ctl.enabled = 0, modalLoop(state & #StateFlagActive))), true), false); if(f_IsStateActive(Scan_My_Computer.state) && l_res, window("QMLTaskManager")); l_res) subst(BodyEx([AvzTroubleshootWizardPages]) Footer(subst(Back(use(0))))) alias(avzwizard.rollbackable) ns(Avz_Troubleshoot) ext(1)

[AvzTroubleshootWizardPages]
@           = sz(p,p) ext(1)
Welcome     = [WizardPage] h(15613) subst(Name() Body([AvzTroubleshootWizard_Welcome]))
Search      = [WizardPage] h(15614) btns(Next(enable(0))) subst(Name() Body([AvzWizard_Progress] subst(Intro()))) onselect(if(Rollback, ScriptMode = 4, ScriptMode = 1); savesettings(); setstate(#TASK_REQUEST_RUN))
Problems    = [WizardPage] h(15615) subst(Name() Body([AvzTroubleshootWizard_Problems])) visible(state == #StateCompleted && Troubles.size())
Fix         = [WizardPage] h(55271) subst(Name() Body([AvzWizard_Progress] subst(Intro()))) onselect(if(Rollback, ScriptMode = 5, ScriptMode = 2); savesettings(); setstate(#TASK_REQUEST_RUN)) visible(state == #StateCompleted && Troubles.size())
Finish      = [WizardPage] h(55616) $LastPage subst(Name() Body([AvzTroubleshootWizard_Finish]))

[AvzTroubleshootWizard_Welcome]
@			  = sz(p,p) ext(1) at(enum) onchange(if(ctl.value,Rollback=1,Rollback=0))
StartDescr    = sz(p,a) xy(,,,28) f("Wizard_Text")
Start         = $Radio v(0) xy(,) f("Wizard_TextBold") at(default) sz(a,a)
Rollback      = $Radio v(1) f("Wizard_TextBold") a(la) xy(,20) sz(a,a) enable(PersistentData.RollbackPossible)

[AvzTroubleshootWizard_Problems]
@       = sz(p,p) ext(1)
Desc    = a(la) f("Wizard_Text")
List    = [AvzTroubleshootWizard_Problems_List]

[AvzTroubleshootWizard_Problems_List]
@       = $List sz(p,p) a(la) xy(,15,,21) alias(vector) v(Troubles) at(noheader)
Trouble = sz(a) at(checked,fixedpos) text(Description) v(Enabled) group(AvzSeverity,Result,default) sort(index,sortup)

[AvzTroubleshootWizard_Finish]
@       =  sz(p,p) onok(if(ctl.Reboot.value,restartOs()) ) ext(1)
Intro   = a(la) sz(p,a) f("Wizard_Text")
Reboot  = $Check a(la) xy(14,40) f("Wizard_Text") visible(NeedReboot)

;-------------------------------- AvzPrivacyCleanerWizard --------------------------------

[AvzPrivacyCleanerWizard]
@ = [WizardTpl] onclose(if(checkPassword(#pwdc_StopTask, name), (if(state & #StateFlagActive, (setstate(#TASK_REQUEST_STOP), ctl.Cancel.enabled = 0, ctl.enabled = 0, modalLoop(state & #StateFlagActive))), true), false)) subst(BodyEx([AvzPrivacyCleanerWizardPages]) Footer(subst(Back(use(0))))) alias(avzwizard.ex) ns(AVZ_PrivacyCleaner) ext(1)

[AvzPrivacyCleanerWizardPages]
@           = sz(p,p) ext(1)
Welcome     = [WizardPage] h(4289) subst(Name() Body([AvzPrivacyCleanerWizard_Welcome]))
Search      = [WizardPage] h(4514) btns(Next(enable(0))) subst(Name() Body([AvzWizard_Progress] subst(Intro()))) onselect(if(Rollback, ScriptMode = 4, ScriptMode = 1); savesettings(); setstate(#TASK_REQUEST_RUN))
Problems    = [WizardPage] h(4264) subst(Name() Body([AvzPrivacyCleanerWizard_Problems])) visible(state == #StateCompleted && Troubles.size())
Fix         = [WizardPage] h(4515) subst(Name() Body([AvzWizard_Progress] subst(Intro()))) onselect(if(Rollback, ScriptMode = 5, ScriptMode = 2); savesettings(); setstate(#TASK_REQUEST_RUN)) visible(state == #StateCompleted && Troubles.size())
Finish      = [WizardPage] h(4266) $LastPage subst(Name() Body([AvzPrivacyCleanerWizard_Finish]))

[NeoWizard_Header]
@           	= sz(p,89) ext(1)
Img             = a(rt) bg("WizardBg")
HeaderTitle     = [NeoWizard_HeaderTitle]

[NeoWizard_HeaderTitle]
@               = sz(p,a) mg(30,30)
Name            = sz(a,a) a(lt) f("Wizard_Caption") extprm(1)
Line            = sz(p,1) a(la) xy(,20) bg("WizardLine")

[AvzPrivacyCleanerWizard_Welcome]
@			= sz(p,p) ext(1)  at(enum) onchange(if(ctl.value,Rollback=1,Rollback=0))
Intro		= sz(p,a) xy(,,,28) f("Wizard_Text")
Important       = a(la) f("Wizard_Text") i("med") 
Start     = $Radio v(0) f("Wizard_TextBold") a(la) xy(,20) sz(a,a) at(default) 
Rollback  = $Radio v(1) f("Wizard_TextBold") a(la) xy(,20) sz(a,a) enable(PersistentData.RollbackPossible)

[AvzPrivacyCleanerWizard_Problems]
@       = sz(p,p) ext(1)
Desc    = a(la) f("Wizard_Text")
List    = [AvzPrivacyCleanerWizard_Problems_List]

[AvzPrivacyCleanerWizard_Problems_List]
@       =  $List a(la) sz(p,p) xy(,15,,21) alias(vector) v(Troubles) at(noheader)
Trouble = sz(a) at(checked,fixedpos) text(Description) v(Enabled) group(AvzSeverity,Result,default) sort(index,sortdown)

[AvzPrivacyCleanerWizard_Finish]
@       =  sz(p,p) onok(if(ctl.Reboot.value,restartOs()) ) ext(1)
Intro   = a(la) sz(p,a) f("Wizard_Text")
RunOnAppExit = $Check a(la) xy(,14) f("Wizard_Text") v(ApplyOnProductExit) visible(!Rollback) 
Reboot  = $Check a(la) xy(14,40) f("Wizard_Text") visible(NeedReboot)

;-------------------------------- AvzSecurityTweakerWizard --------------------------------

[AvzSecurityTweakerWizard]
@ = [WizardTpl] onclose(if(checkPassword(#pwdc_StopTask, name), (if(state & #StateFlagActive, (setstate(#TASK_REQUEST_STOP), ctl.Cancel.enabled = 0, ctl.enabled = 0, modalLoop(state & #StateFlagActive))), true), false)) subst(BodyEx([AvzSecurityTweakerWizardPages]) Footer(subst(Back(use(0))))) alias(avzwizard.rollbackable) ns(AVZ_SecurityTweaker) ext(1)

[AvzSecurityTweakerWizardPages]
@           = sz(p,p) ext(1)
Welcome     = [WizardPage] h(15583)  subst(Name() Body([AvzSecurityTweakerWizard_Welcome]))
Search      = [WizardPage] h(15584) btns(Next(enable(0))) subst(Name() Body([AvzWizard_Progress] subst(Intro()))) onselect(if(Rollback, ScriptMode = 4, ScriptMode = 1); savesettings(); setstate(#TASK_REQUEST_RUN))
Problems    = [WizardPage] h(15585) subst(Name() Body([AvzSecurityTweakerWizard_Problems])) visible(state == #StateCompleted && Troubles.size())
Fix         = [WizardPage] h(15586) subst(Name() Body([AvzWizard_Progress] subst(Intro()))) onselect(if(Rollback, ScriptMode = 5, ScriptMode = 2); savesettings(); setstate(#TASK_REQUEST_RUN)) visible(state == #StateCompleted && Troubles.size())
Finish      = [WizardPage] h(15587) $LastPage subst(Name() Body([AvzSecurityTweakerWizard_Finish]))

[AvzSecurityTweakerWizard_Welcome]
@		= sz(p,p) ext(1) at(enum) onchange(if(ctl.value,Rollback=1,Rollback=0))
Intro		= sz(p,a) f("Wizard_Text")
Warning		= sz(a,a) a(la) xy(,20,,28) f("Wizard_Text") i("med") 
Start     = $Radio v(0) f("Wizard_TextBold") at(default) sz(a,a)
Rollback  = $Radio v(1) f("Wizard_TextBold") a(la) xy(,20) sz(a,a) enable(PersistentData.RollbackPossible)

[AvzSecurityTweakerWizard_Problems]
@       = sz(p,p) ext(1)
Desc    = a(la) f("Wizard_Text")
List    = [AvzSecurityTweakerWizard_Problems_List]

[AvzSecurityTweakerWizard_Problems_List]
@       = $List sz(p,p) a(la) xy(,15,,21) alias(vector) v(Troubles) at(noheader) id(Name)
Trouble = sz(a) at(checked,fixedpos) text(Description) v(Enabled) group(AvzSeverity,Result,default) sort(index,sortup)

[AvzSecurityTweakerWizard_Finish]
@       = sz(p,p) onok(if(ctl.Reboot.value,restartOs()) ) ext(1)
Intro = sz(p,a) f("Wizard_Text")
Reboot  = $Check a(la) xy(14,40) f("Wizard_Text") visible(NeedReboot)

;-------------------------------- AvzSecurityAnalyzerWizard --------------------------------

[AvzSecurityAnalyzerWizard]
@ = [WizardTpl] onclose(if(checkPassword(#pwdc_StopTask, name), (setstate(#TASK_REQUEST_STOP, "Scan_Vulnerabilities"), setstate(#TASK_REQUEST_STOP, "AVZ_Scan_Vulnerabilities"), if(Scan_Vulnerabilities.state & #StateFlagActive, (setstate(#TASK_REQUEST_STOP,"Scan_Vulnerabilities"), ctl.Cancel.enabled = 0, ctl.enabled = 0, modalLoop(Scan_Vulnerabilities.state & #StateFlagActive))), true), false)) subst(BodyEx([AvzSecurityAnalyzerWizardPages]) ) alias(avzwizard.security) ns(AVZ_Scan_Vulnerabilities) ext(1)

[AvzSecurityAnalyzerWizardPages]
@               = sz(p,p) ext(1)
Welcome         = [WizardPage] h(4295) btns(Back(enable(0)) Next(enable(1))) subst(Name() Descr() Body([AvzSecurityAnalyzerWizard_Welcome]) ) onok(s_AvzSecurityAnalyserWizardWelcomeMask(ctl.Body.value); true)
Search	        = [WizardPage] h(4303) btns(Back(enable(0)) Next(enable(0))) subst(Name() Descr() Body([AvzWizard_ProgressVul] subst(Intro()))) onselect(setstate(#TASK_REQUEST_RUN,"AVZ_Scan_Vulnerabilities"); if(RunMode == 0, setstate(#TASK_REQUEST_RUN,"Scan_Vulnerabilities")))
Vulnerab        = [WizardPage] h(4305) subst(Name() Descr() Body([AvzSecurityAnalyzerWizard_Vulnerab])) onselect(wizMask = wizMask & ~wizPagesMask("ScanVulnerab")) ns(Scan_Vulnerabilities)
Problems        = [WizardPage] h(4292) subst(Name() Descr() Body([AvzSecurityAnalyzerWizard_Problems])) ns(AVZ_Scan_Vulnerabilities)
Fix             = [WizardPage] h(4503) subst(Name() Descr() Body([AvzWizard_Progress] subst(Intro()))) onselect(if(RunMode == 2, ScriptMode = 5, ScriptMode = 2); savesettings(); setstate(#TASK_REQUEST_RUN,"AVZ_Scan_Vulnerabilities")) ns(AVZ_Scan_Vulnerabilities)
Finish          = [WizardPage] h(4506) subst(Name() Descr() Body([AvzSecurityAnalyzerWizard_Finish]))

[AvzSecurityAnalyzerWizard_Welcome]
@       = sz(p,p) ext(1) at(enum)
Intro   = sz(p,a) xy(,,,25)
Scan     = $Radio v(0) at(default) sz(a,a)
LastScanResult  = $Radio v(1) a(la) xy(,7) sz(a,a) enable(state != #StateNotStarted)
Rollback  = $Radio v(2) a(la) xy(,7) sz(a,a) enable(AVZ_Scan_Vulnerabilities.PersistentData.RollbackPossible)

[AvzSecurityAnalyzerWizard_Vulnerab]
@       = sz(p,p) ext(1)
Count
AppList = [AvzSecurityAnalyzerWizard_Vulnerab_AppList]

[AvzSecurityAnalyzerWizard_Vulnerab_AppList]
@       = $ListTransp a(la) xy(,7,,24) alias(vector) v(Threats)
App     = sz(p) rs(47) text(ObjectName)
Todo    = sz(p) rs(30) text(f_VulnerUrl(DetectName)) f("Hotlink_Normal") at(clickable) onclick(url(f_VulnerUrl(DetectName)))
Danger  = sz(p) rs(20) text(s_VulDanger(DetectBehaviour))

[AvzSecurityAnalyzerWizard_Problems]
@       = sz(p,p) ext(1)
Fix     = $Button_Medium a(rb) xy(,14) onclick(wizNext()) subst(Name() Descr())
List    = [AvzSecurityAnalyzerWizard_Solution_List]

[AvzSecurityAnalyzerWizard_Solution_List]
@       = $List sz(p,p) a(lp) xy(,7) alias(vector) v(Troubles)
Trouble = sz(a) at(checked,fixedpos) text(Description) v(Enabled) group(AvzSeverity,Result,default) sort(index,sortup)

[AvzSecurityAnalyzerWizard_Finish]
@       = a(lt) sz(p,p) onok(if(ctl.Reboot.value,restartOs()) ) ext(1)
Reboot  = $Check a(la) xy(14,40)  visible(NeedReboot)

;-------------------------------- AvzCollectSysInfoWizard --------------------------------

[AvzCollectSysInfoWizard]
@ = [WizardTpl] onclose(if(state & #StateFlagActive, (setstate(#TASK_REQUEST_STOP), ctl.Cancel.enabled = 0, ctl.enabled = 0, modalLoop(state & #StateFlagActive))), true) subst(BodyEx([AvzCollectSysInfoWizardPages]) Footer(subst(Back(use(0))))) alias(avzwizard) ns(AVZ_RunScript) ext(1)

[AvzCollectSysInfoWizardPages]
@       = sz(p,p) ext(1)
Scan    = [WizardPage] btns(Next(enable(0))) subst(Name() Descr() Body([AvzWizard_Progress] subst(Intro()))) onselect(ScriptMode = 1; savesettings(); setstate(#TASK_REQUEST_RUN)) h(30437)
Error   = [WizardPage] subst(Name() Descr() Body([AvzWizard_Error])) visible(state == #StateFailed)
Finish  = [WizardPage] $LastPage subst(Name() Descr() Body([AvzCollectSysInfoWizardPages_Finish])) visible(state != #StateFailed) h(30502)

[AvzCollectSysInfoWizardPages_Finish]
@       = a(la) sz(p,a) ext(1)
Intro  = a(la) sz(p,a) f("Wizard_Text")

;-------------------------------- AvzRunScriptWizard --------------------------------

[AvzRunScriptWizard]
@ = [WizardTpl] onclose(if(state & #StateFlagActive, (setstate(#TASK_REQUEST_STOP), ctl.Cancel.enabled = 0, ctl.enabled = 0, modalLoop(state & #StateFlagActive))), true) subst(BodyEx([AvzRunScriptWizardPages]) Footer(subst(Back(use(0))))) alias(avzwizard) ns(AVZ_RunScript) ext(1)

[AvzRunScriptWizardPages]
@       = sz(p,p) ext(1)
Script  = [WizardPage] subst(Name() Descr() Body([AvzRunScriptWizard_Script])) h(30442) btns(Next(enable(Script)))
Exec    = [WizardPage] subst(Name() Descr() Body([AvzWizard_Progress])) onselect(ScriptMode = 0; savesettings(); setstate(#TASK_REQUEST_RUN)) h(30442)
Error   = [WizardPage] $LastPage subst(Name() Descr() Body([AvzWizard_Error])) h(30442)

[AvzRunScriptWizard_Script]
@       = a(la) sz(p,a) ext(1)
Script  = t(edit) a(la) sz(p,170) at(multiline) v(Script) oninit(Script = "")

;-------------------------------- AlertDialogT --------------------------------

[AlertDialogT]
$round = 16
$AlertActions   = a(la) sz(p,a) mg(7,7)
@               = t(dialog) round($round,$round,$round,$round) at(nocaption,dragable,layered,alwaysontop,bottom,noautofocus) sz(350,a) xy(4,4,4,4) text(const(s_AlertDialogCaption(TaskType) + " - " + $ProductNameLong)) h(49897)
Inner           = [AlertDialogT_Inner_Container]


[AlertDialogT_Inner_Container]
@       = sz(p,a) xyq(2,2,2,2)
Header1 = [AlertDialogT_Header1]
Body    = a(la) sz(p,a) [AlertDialogT_Inner]
BottomBorder = a(la) bg((ctl.ApplyToAll.visible ? "AlertFooterBig" : "NotificationWndFooter") + s_AlertWindowColor(DetectDanger)) mg(0,0,0,-1) extprm(1) 
ApplyToAll   = a(lb) xy(11, 11) t(check) sz(a,a) v(bmask(ApplyToAll, #APPLYTOALL_TRUE)) oninit(ctl.value = bmask(ApplyToAll, #APPLYTOALL_TRUE); if(ApplyToAll & #APPLYTOALL_SESSION_ONLY, ApplyToAll = ApplyToAll | #APPLYTOALL_SESSION) ) f("AlertApplyToAll") extprm(1) use($UseApplyToAll)

[AlertDialogT_Inner]
@ = bg("NotificationWndFiller" + s_AlertWindowColor(DetectDanger)) mg(8)
Body    = a(la) sz(p,a) extprm(1)
Bottom  = [AlertDialogT_Bottom] visible($ShowNoLicReminder) extprm(1)

[AlertDialogT_Header1]
@           = a(la) sz(p,85) bg("AlertHeader" + s_AlertWindowColor(DetectDanger) + f_ProductPostfix()) extprm(1)
Help        = a(rt) sz(a,a) xy(15,20) at(btnlike) f("Header0WhiteLite") onclick(help()) use(!$IsRD) enable($IsAdvancedDisinfectionStoped)
Caption     = [AlertDialogT_Header1_Caption] a(cb)

[AlertDialogT_Header1_Caption]
@           = a(as) sz(a,a) xy(8,10)
TaskName    = a(la) sz(a,a) text(const(toupper(s_AlertDialogCaption(TaskType)))) f("AlertTaskName") extprm(1)

[AlertDialogT_Bottom]
@       = a(la) sz(p,a) mg(,,,-4) ext(1) use(EulaVerified)
BG = a(la) i("AlertNoLicReminder")
Text    = a(ct) sz(p,a) xy(,7) f("Normal_Bold_Red")
BuyLink = a(ca) sz(p,a) xy(,,,8) $LinkKL f("DescriptionBlueBold") onclick($HasNoKeys? f_Activate() : if(SubscriptionStatus==#ssExpired && product.LicInfo.KeyInfo.ProviderInfo, url(global.LicInfo.KeyInfo.ProviderInfo), buy()))

[AlertDialogT_InfoArea]
@       = a(la) sz(p,a) bg("AlertInfo") ext(1)
Top     = a(la) sz(p,0) bg("AlertInfoTop")
Info    = a(la) sz(p,a) mg(20,20) extprm(1)
Buttom  = a(la) sz(p,1) bg("AlertInfoBottom")

[AlertDialogT_Green]
@ = [AlertDialogT] bg("AlertOutline") subst(ApplyToAll(use(0))) oninit(DetectDanger=0)

;-------------------------------- AlertDialog --------------------------------

[AlertDialog]
@ = [AlertDialogT] ext(1) subst(Body([AlertDialog_Body])) oninit(if(bSound, sound(s_AlertNotificationSound(DetectDanger))))

[AlertDialog_Body]
@       = sz(p,a) ext1(1)
Descr   = [AlertDialogT_InfoArea] subst(Info([AlertDialog_Descr]))
Action  = [AlertDialog_Body_Action]

[AlertDialog_Descr]
Name = a(la) sz(p,a) xy(,4) text($AlertReservedCodeAutoActivationFailure) f("AlertName") use(TaskType == "InstallKey")
Icon        = [AlertDialog_Descr_Icon]
Sandbox		= a(la) sz(a,a) xy(,,,7) f("Bold") text($RunningInSandbox) use(f_isSandboxed(nPID))
CrowdWizdom = [AlertDialog_Descr_KSN]
Source      = [AlertDialog_Descr_SoftWare]
Browser     = [AlertDialog_Descr_WebWare]
DetectT     = [AlertDialog_Descr_VirWare]
Object      = [AlertDialog_Descr_Object]
RegInfo     = [AlertDialog_Descr_RegInfo]
ObjectC     = [AlertDialog_Descr_CreateObject]
GeoSecurity = [AlertDialog_Descr_GeoSecurity]
AppParents  = [AlertDialog_Descr_AppParentage]

[AlertDialog_Descr_Icon]
@       = a(la) sz(p,a)
Icon    = sz(a,a) xy(,,10) i(s_AlertDialog_Icon(TaskType)) visible(ctl.icon)
TroubleEx = [AlertDialog_Descr_TroubleEx] a(as) sz(p,a)

[AlertDialog_Descr_TroubleEx]
@           = sz(p,a)
Action1     = a(la) sz(p,a) text(f_danger2(Action, nPID)) use(f_isHipsGroup() && !s_HipsSelfAction(Action)) f("AlertTaskText")
AppName     = a(la) sz(a,a,,,230) at(compress,singleline) f("AlertTaskTextBold")  text(s_AppName(appID)) use((f_isHipsGroup() || (TaskType=="oas")) && 0 != appID)
Infolink    = a(as) sz(a,a) xy(5) at(btnlike) i("AlertInfo") onclick($AlertDialogAppInfo)  use((f_isHipsGroup() || (TaskType=="oas")) && 0 != appID)
Action2     = a(la) sz(p,a) $RichText text(const(s_AlertDialogTroubleExByTasktype(TaskType))) 

[AlertDialog_Descr_KSN]
@               = a(la) sz(p,a) use($HasKsnInfo) oninit(l_WoCInfo = c_WoCInfo(appID, appWoCInfo(appID))) xy(,17)
ksnAnounced     = a(sa) sz(p,a) $RichText text(f_BecameFamous(l_WoCInfo.FirstRequestTime)) visible(l_WoCInfo.FirstRequestTime > 0)
ksnPopularity   = a(sa) sz(p,a) $RichText text(f_KsnUsers(l_WoCInfo.UsersCount)) visible(l_WoCInfo.UsersCount > 0)
ksnRatingTrust     = a(sa) sz(p,a) $RichText text(f_KsnTrusted(l_WoCInfo.GroupSharing.TrustedPerc)) xy(,7) visible( (l_WoCInfo.UsersCount<100&&l_WoCInfo.GroupSharing.TrustedPerc>0) || l_WoCInfo.UsersCount>=100)
ksnRatingRestrict  = a(sa) sz(p,a) $RichText text(f_KsnLimited(l_WoCInfo.GroupSharing.LowRestPerc + l_WoCInfo.GroupSharing.HiRestPerc)) visible((l_WoCInfo.GroupSharing.LowRestPerc + l_WoCInfo.GroupSharing.HiRestPerc) > 0 && (l_WoCInfo.GroupSharing.LowRestPerc + l_WoCInfo.GroupSharing.HiRestPerc) < 101)
ksnRatingUntrust   = a(sa) sz(p,a) $RichText text(f_KsnUntrusted(l_WoCInfo.GroupSharing.UntrustedPerc)) visible(l_WoCInfo.GroupSharing.UntrustedPerc > 0 && l_WoCInfo.GroupSharing.UntrustedPerc < 101)

[AlertDialog_Descr_Object]
$IsDriverAction   = #eDriver == ObjectType && (TaskType == "hipstask" || TaskType == "pdm")
@           = a(la) sz(p,a) use((ObjectName || nDestPID > 0) && TaskType != "hips_group" && ObjectType != #eRegKey && !($HasKsnInfo) && !($PdmDriverObject)) xy(,7)
ObjectL     = $RichText a(la) sz(p,a) xy(,14) text(const(s_AlertDialogObjectL(TaskType))) visible(ctl.text)
;onshow(ctl.text=compressPath(const(f_displayPath(nPID, ObjectName)))) made for the bug in engine: text(compressPath(const(f_displayPath(nPID, ObjectName)))) is initilized with 0 size (sz)
Object      = t(richedit) at(readonly,noborder,nofocus,singleline) a(la) sz(p,a) tt(const(f_displayPath(nPID, ObjectName))) text(compressPath(const(f_displayPath(nPID, ObjectName)))) onshow(ctl.text=compressPath(const(f_displayPath(nPID, ObjectName)))) visible(ctl.ObjectL.text && !nDestPID)
Infolink    = a(as) xy(5) i("info,0,1,0,0,0,1") sz(a,a) at(btnlike) onclick(showFileProp(f_displayPath(nPID, ObjectName))) use($IsDriverAction)
ObjectDest  = t(hotlink) a(la) sz(p,a) f("Hotlink_Normal") text(f_ProcessInfo(nDestPID).Module.sImagePath) onclick(dialog("AppRulesEdit:Image", p_image(f_ProcessInfo(nDestPID).Module.sImagePath), p_pid(nDestPID))) use(nDestPID > 0 && nDestPID != #PIDSystem)
ObjectDestSys  = a(la) sz(p,a) f("Normal_Black") text(f_ProcessInfo_ImagePath(nDestPID)) use(nDestPID == #PIDSystem || nDestPID == #PIDAllPrcess)
ObjectNet   = [AlertNetAdressDescrEx] a(la) sz(p,a) use(ObjectType == #eNetwork)
ObjectMail   = [AlertMailDescr] a(la) sz(p,a) use(TaskType == "mc")
History     = $Link onclick(dialog("Investigator")) a(la) xy(,17) use(s_IsHaveHistoryByTask(TaskType))

[AlertMailDescr]
@        = alias(mail_info) xy(,17) 
From     = a(la) [LValue] subst(Name() Val( xy(100) text(From)))    use(ctl.Val.text) xy(,7)
Subject  = a(la) [LValue] subst(Name() Val( xy(100) text(Subject))) use(ctl.Val.text) xy(,7)
Attach   = a(la) [LValue] subst(Name() Val( xy(100) text(Attach)))  use(ctl.Val.text) xy(,7)

[AlertNetAdressDescrEx]
@            = xy(,7)
Action       = t(richedit) at(readonly,singleline,nofocus,noborder) text(f_AlertNetAdressPacket(Data.Proto)) sz(p,a)
;LocalAdress  = xy(,7) use(!f_isOut(Data.Direction)) a(la) sz(p,a) [LValue] subst(Name() Val($LValueShift text(f_NetAddr(Data.LocalIP ))))
RemoteAdress = xy(,7) use(1)  a(la) sz(p,a) [LValue] subst(Name() Val($LValueShift text(f_NetAddr(Data.RemoteIP))))
Details1     = xy(,7) a(la) [LValue] subst(Name(text(s_NetDetailsL(Data.Proto))) Val($LValueShift text(s_NetDetailsR(Data.Proto))))

[AlertDialog_Descr_AppParentage]
@           = a(la) sz(p,a) use(f_isHipsGroup() && nOwnerID && !($HasKsnInfo)) xy(,17)
Header      = sz(p,a)
Tree        = sz(p,a) a(sa) [AppParentage] subst(Executed() Parentage(a(as)))

[AppParentage]
@           = ext(1)
Executed    = extprm(1) sz(a,a)
Parentage   = t(richedit) at(readonly,noborder,nofocus) extprm(1) sz(p,a) text(Parents.format("f_appParenItem()", " > "))

[AlertDialog_Descr_SoftWare]
@           = a(la) sz(p,a) xy(,17) use($PdmDriverObject)
Category    = a(la) xy(,7) f("Bold") text(f_SoftwareCategory())
Name        = a(la) sz(a,a,,,250) xy(,) at(singleline) text(AdditionalInfo ? AdditionalInfo : ObjectName)
DetailsIcon = a(as) xy(5,2) i("info,0,1,0,0,0,1") at(btnlike) onclick(showFileProp(AdditionalInfo)) use(fileattr(AdditionalInfo) != 0)
History     = $Link onclick(dialog("Investigator")) a(la) xy(,17) use(s_IsHaveHistoryByTask(TaskType))

[AlertDialog_Descr_WebWare]
@           = a(la) sz(p,a) xy(,17) use((TaskType == "httpscan" && #DETYPE_PHISHING != DetectType) || TaskType == "mc")
Category    = a(la) xy(,7) text(s_WebWare_CategoryByTask(TaskType))
Name        = a(la) sz(a,a,,,250) xy(,) at(singleline) text(s_AppName(appID)) f("Bold") 
DetailsIcon = a(as) xy(5,2) i("info,0,1,0,0,0,1") at(btnlike) onclick($AlertDialogAppInfo)

[AlertDialog_Descr_VirWare]
@           = a(la) sz(p,a) xy(,11) use(f_UseVirWare())
Category    = a(la) xy(,7)  f("AlertTaskTextBold") text(s_VirwareCategoryByDetectType(DetectType)) 
Name        = a(la) sz(a,a,,,250) xy(,) at(singleline) f("AlertTaskTextBoldRed") text(s_VirwareType(TaskType,DetectName)) 
DetailsIcon = a(as) xy(5,2) i("info,0,1,0,0,0,1") at(btnlike) onclick(s_AlertDetailsDialog(DetectType)) use(s_UseVirWareIcoByTask(TaskType) && s_Use_AlertDialog_VirWareCategoryIco(DetectType))

[AlertDialog_Descr_RegInfo]
@       = a(la) sz(p,a) xy(,17) use((TaskType == "hipstask" || TaskType == "hips") && ObjectType == #eRegKey)
ObjectL = sz(a,a) f("Bold")
Object  = $Link a(la) sz(p,a) text(f_displayRegKey(nPID, ObjectName)) onclick(dialog("RegAccessInfo", p_data(Data))) use(bindok("Data.sValueName"))
Object  = t(edit) at(readonly,noborder,nofocus,singleline,compress) a(la) sz(p,a) text(f_displayRegKey(nPID, ObjectName)) use(!bindok("Data.sValueName"))

[AlertDialog_Descr_CreateObject]
@       = a(la) sz(p,a) xy(,17) use(TaskType == "hips_group" && sOwnerImagePath)
ObjectL = sz(a,a)
Object  = t(hotlink) a(la) sz(p,a) f("Hotlink_Normal") text(f_displayPath(nPID, sOwnerImagePath)) onclick(dialog("AppRulesEdit:Image", p_image(sOwnerImagePath)))

[AlertDialog_Descr_GeoSecurity]
@      = a(la) sz(p,a) xy(,17) use($IsGeoSecurity)
L      = [AlertDialog_Descr_GeoSecurity_L]
R      = [AlertDialog_Descr_GeoSecurity_R] xy(10) a(at)

[AlertDialog_Descr_GeoSecurity_L]
@           = a(la) sz(a,a)
RegionLabel = a(la) sz(a,a)
DomainLabel = a(la) sz(a,a) xy(0,7)
SiteLabel   = a(la) sz(a,a) xy(0,7)

[AlertDialog_Descr_GeoSecurity_R]
@           = a(la) sz(p,a)
Region      = a(la) sz(p,a) f("Bold") text(s_ISO3166_1(TLD, RegionName))
Domain      = a(la) sz(p,a) xy(0,7) f("Bold") text("." + TLD)
Site        = a(la) sz(p,a) xy(0,7) f("Bold") text(ObjectName)

[AlertDialog_Body_Action]
$SilentAddToExcludeDriver = if($IsDriverInstall && !appID, addToExclude(ser(ObjectName), true ,true))
@           = $AlertActions
Question    = a(la) sz(a,a) mg(10,4,10,10) xy(,5) f("AlertTaskHeader") text(f_AlertDialogQuestion()) visible(ctl.text)
Rename      = [AlertDialog_ActionButton] subst(Name() Descr()) v(#ACTION_RENAME)                     use(ActionsAll & #ACTION_RENAME && !bRestrictionDerrived)                       onclick(if(checkPassword(#pwdc_SaveSettings), (ResultAction = ctl.value; close(#m_res_ok))))
RenameChain = [AlertDialog_ActionButton] subst(Name() Descr()) v(#ACTION_RENAME)                     use(ActionsAll & #ACTION_RENAME && bRestrictionDerrived)                        onclick(if(checkPassword(#pwdc_SaveSettings), (ResultAction = ctl.value; close(#m_res_ok))))
;If case means "Allow always" then check for password else don't check
Allow       = [AlertDialog_ActionButton] subst(Name() Descr(visible(!$IsGeoSecurity&&ctl.text))) v(#ACTION_ALLOW)                       use(ActionsAll & #ACTION_ALLOW)                             onclick(if((TaskType == "hipstask" ? (ctl.ApplyToAll.value ? checkPassword(#pwdc_SaveSettings) : true) : true), ($SilentAddToExcludeDriver; ResultAction = ctl.value; close(#m_res_ok))))
Restrict    = [AlertDialog_ActionButton] subst(Name() Descr()) v(#ACTION_QUARANTINE)                 use(ActionsAll & #ACTION_QUARANTINE && TaskType == "hips_group")                onclick(ResultAction = ctl.value; close(#m_res_ok))
;If case means "Deny always" then check for password else don't check
Deny        = [AlertDialog_ActionButton] subst(Name() Descr(visible(!$IsGeoSecurity&&ctl.text))) v(#ACTION_DENY)                        use(ActionsAll & #ACTION_DENY)                                                  onclick(if((TaskType == "hipstask" ? (ctl.ApplyToAll.value ? checkPassword(#pwdc_SaveSettings) : true) : true), (ResultAction = ctl.value; close(#m_res_ok))))
Disinfect   = [AlertDialog_ActionButton] subst(Name() Descr()) v(#ACTION_DISINFECT)                  use(ActionsAll & #ACTION_DISINFECT)                                             onclick(ResultAction = ctl.value; close(#m_res_ok))
Repare      = [AlertDialog_ActionButton] subst(Name() Descr()) v(#ACTION_REPARE)                     use(ActionsAll & #ACTION_REPARE)                                                onclick(ResultAction = ctl.value; close(#m_res_ok))
Quarantine  = [AlertDialog_ActionButton] subst(Name() Descr()) v(#ACTION_QUARANTINE)                 use(ActionsAll & #ACTION_QUARANTINE && TaskType != "hips_group")                onclick(ResultAction = ctl.value; close(#m_res_ok))
;If case means "Terminate and add to Untrusted then check for password else don't check
Terminate   = [AlertDialog_ActionButton] subst(Name() Descr()) v(#ACTION_TERMINATE)                  use(ActionsAll & #ACTION_TERMINATE )                                            onclick(if((TaskType == "hipstask" ? checkPassword(#pwdc_SaveSettings) : true), (ResultAction = ctl.value; close(#m_res_ok))))
Delete      = [AlertDialog_ActionButton] subst(Name() Descr()) v(#ACTION_DELETE)                     use(ActionsAll & #ACTION_DELETE && !(ActionsMask & #ACTION_DELETE_ARCHIVE))     onclick(ResultAction = ctl.value; close(#m_res_ok))
DeleteArch  = [AlertDialog_ActionButton] subst(Name() Descr()) v(#ACTION_DELETE_ARCHIVE)             use(ActionsAll & #ACTION_DELETE_ARCHIVE)                                        onclick(ResultAction = ctl.value; if(msg("CanDeleteArchive", #m_question|#m_okcancel), close(#m_res_ok)))
Skip        = [AlertDialog_ActionButton] subst(Name() Descr()) v(#ACTION_REPORTONLY)                 use(ActionsAll & #ACTION_REPORTONLY)                                            onclick(ResultAction = ctl.value; close(#m_res_ok))
Ok          = [AlertDialog_ActionButton] subst(Name() Descr()) v(#ACTION_OK)                          use(ActionsAll & #ACTION_OK)                                                    onclick(ResultAction = ctl.value; close(#m_res_ok); if(TaskType == "InstallKey", (global.ActivationAction = #ActivationActionType_ReserveCodeActivation, window("QMLActivationWizard"))))
TryAgain    = [AlertDialog_ActionButton] subst(Name() Descr()) v(#ACTION_TRYAGAIN)                   use(ActionsAll & #ACTION_TRYAGAIN)                                              onclick(ResultAction = ctl.value; close(#m_res_ok))
Cancel      = [AlertDialog_ActionButton] subst(Name() Descr()) v(#ACTION_CANCEL)                     use(ActionsAll & #ACTION_CANCEL)                                                onclick(ResultAction = ctl.value; close(#m_res_ok))
CreateRule  = [AlertDialog_ActionButton] subst(Name() Descr()) v(#ACTION_CREATE_RULE)                 use(ActionsAll & #ACTION_CREATE_RULE)                                           onclick(if(checkPassword(#pwdc_SaveSettings), (ResultAction = ctl.value; l_Rule.serinit(#stHipsRuleItem); if(dialog("PacketRuleCreate", p_data(l_Rule), p_appID(appID), p_netAct(Data), p_saveRule(1)), close(#m_res_ok)))))
Rollback    = [AlertDialog_ActionButton] subst(Name() Descr()) v(#ACTION_ROLLBACK)                   use(ActionsAll & #ACTION_ROLLBACK)                                              onclick(ResultAction = ctl.value; close(#m_res_ok))
ToExclude   = [AlertDialog_ActionButton] subst(Name() Descr()) v(s_ResultActionByTaskType(TaskType))  use((ActionsAll & #ACTION_ADD_EXCLUDE) || $ActionUseToExclude) onclick(if(checkPassword(#pwdc_SaveSettings), if(f_addAppToTrusted(f_TaskTypeExcludable(TaskType), s_VerdictPathMask(TaskType)), (ResultAction = ctl.value; ApplyToAll = #APPLYTOALL_FALSE; close(#m_res_ok))))) enable(1)
;Is no longer used AddURLExclude  = [AlertDialog_ActionButton] subst(Name() Descr()) v(#ACTION_ADD_EXCLUDE)			  use(ActionsAll & #ACTION_ADD_EXCLUDE)											 onclick(ResultAction = ctl.value; close(#m_res_ok))
PutIntoSandBox = [AlertDialog_ActionButton] subst(Name() Descr()) v(#ACTION_PUT_INTO_SANDBOX)		  use(ActionsAll & #ACTION_PUT_INTO_SANDBOX)										 onclick(ResultAction = ctl.value; close(#m_res_ok))

[AlertDialog_ActionButton]
@ = [WizardButton] xy(,0) \
bg(ctl.selected ? "AlertHilightBtn" : (ctl.hotlight ? "AlertHilightBtn" : "")) \
subst( \
Name(f("AlertBtnHeader")) \
Descr(f("AlertTaskText")  visible(ctl.text) )) a(la) sz(p,a) enable(const(ActionsMask & ctl.value)) ext(1)

;-------------------------------- MalwareInfo --------------------------------

[MalwareInfo]
@  = [StyledWindowT_Small_Tab] at(dragable,a_close,customfooter,nohelp) subst( BodyEx( [MalwareInfo_Body] ) ) sz(376,a) alias(appinfo)

[MalwareInfo_Body]
Hdr         = [MalwareInfo_Hdr]
Tab         = [MalwareInfo_Tab]
;subst(ResizeBackground(bg(const(s_DlgFooter(DetectDanger)))) Bckgnd(bg(const(s_DlgFooter(DetectDanger)))))

[MalwareInfo_Hdr]
@       = a(la) sz(p,a) rs(100,0) xy(-7,-7,-7) mg(7,7,7,7)
Ico     = xy(7) sz(32,32) i($IsExactDetect ? "e32" : "w32")
Name    = a(ac) xy(7) sz(p,a) f($IsExactDetect ? "Header1Red" : "Header1") text(s_MalwareInfo_Hdr(p_TaskType,DetectName))

[MalwareInfo_Separator]
@ = sz(p,1) a(la) b(SettingsVertSep) xy(-7,,-7) rs(100,0)

[MalwareInfo_Tab]
@       = $Tab a(la) xy(,7,,) sz(p,a)
Malware = [MalwareInfo_Tab_Malware]
File    = [MalwareInfo_Tab_File]

[MalwareInfo_Tab_File]
@       = sz(p,p) mg(7,7) use(sImagePath && f_HttpDetectPhishOrWmuf()==0)
SandboxL = a(la) sz(a,a) xy(,14) f("Bold") text($RunningInSandbox) use(f_isSandboxed(nPID))
File    = [LValue] xy(,7) subst(Name() Val(xy(100) t(edit) at(readonly,singleline,compresspath,noborder) text(f_displayPath(nPID, sImagePath)))) use(bHasFileInfo)
Object  = xy(,7) t(edit) text(f_displayPath(nPID, sImagePath)) at(readonly,singleline,compress,noborder) use(!bHasFileInfo)
sep     = $SettingsGroup xy(-17,14) a(la) use(bHasFileInfo)
Info    = [MalwareInfo_Tab_File_Info] a(la) sz(p,a)

[MalwareInfo_Tab_File_Info]
Size        = [LValue] xy(,) subst(Name() Val(xy(100) text(f_ObjSize(nObjectSize))))
Created     = [LValue] xy(,7) subst(Name() Val(xy(100) text(datetime(tCreation))))
Modified    = [LValue] xy(,7) subst(Name() Val(xy(100) text(datetime(tModify))))

[MalwareInfo_Tab_Malware]
@           = sz(p,a) mg(7,7)
Category    = [LValue] xy(5,7) subst(Name() Val(xy(100) text(const(s_DetectType(DetectType)))))
Type        = [LValue] xy(5,7) subst(Name() Val(xy(100) text(const(f_DetectBehaviourString(TaskType, DetectBehaviour, DetectType)))))
sep1        = $SettingsGroup xy(-17,14) a(la)
Details     = [MalwareInfo_Tab_Malware_Details] a(la) sz(p,a)
sep2        = $SettingsGroup xy(-17,14) a(la)
Info        = [MalwareInfo_Tab_Malware_info] a(ra) use(!$IsRD) sz(p,a)

[MalwareInfo_Tab_Malware_Details]
@       = sz(p,a)
minsize = a(lt) sz(p,150) 
Details = a(lt) sz(p,a) xy(7,) text(f_BehaviourDetails(TaskType, DetectBehaviour, DetectType))

[MalwareInfo_Tab_Malware_info]
Text    = a(la) xy(7,1) sz(a,a)
Link    = t(hotlink) a(wt) at(clickable) i("internet16") f("Hotlink") onclick(url(s_VirusListLink(p_TaskType))) sz(a,a)

;-------------------------------- HipsInfo --------------------------------

[HipsInfo]
@  = [StyledWindowT_Small] at(dragable,a_close,customfooter,nohelp) subst( BodyEx( [HipsInfo_BodyEx] ) ) sz(376,a)

[HipsInfo_BodyEx]
Hdr         = [HipsInfo_Hdr]
Separator   = [MalwareInfo_Separator]
Body        = [HipsInfo_Body]
;subst(ResizeBackground(bg(const(s_DlgFooter(DetectDanger)))) Bckgnd(bg(const(s_DlgFooter(DetectDanger)))))

[HipsInfo_Hdr]
@       = a(la) sz(p,a) rs(100,0) xy(-7,-7,-7) mg(7,7,7,7)
Ico     = sz(32,32) i("w32")
Name    = a(ac) xy(7) sz(p,a) f("Header1") text(p_action ? s_AlertDialog_HipsDescr(p_action) : s_PDM2_ByEventType(p_eventtype))

[HipsInfo_Body]
@       = sz(p,a) xy(,50) bg("")
Details = a(la) sz(p,250) xy(7,) text(p_action ? s_HipsInfo(p_action) : s_PdmInfo(p_eventtype))
Link    = [HipsInfo_Link]

[HipsInfo_Link]
@       = $SettingsGroup xy(,40) a(rb) use(p_action)
Text    = a(la) xy(7,1) sz(a,a)
Link    = t(hotlink) a(at) sz(a,a) at(clickable) i("internet16") f("Hotlink") text("viruslist.com") onclick(url(s_HipsInfoVirusListLink(p_action)))

;-------------------------------- RegAccessInfo --------------------------------

[RegAccessInfo]
$txt    = "<b>" + $key + ":</b>\n" + ObjectName + "\n\n<b>" + $param + ":</b>\n" + sValueName + (nOldType && nNewType ? f_regFormat($old, nOldType, vOldData) + f_regFormat($new, nNewType, vNewData) : if(nOldType, f_regFormat($val, nOldType, vOldData)) + if(nNewType, f_regFormat($val, nNewType, vNewData)))
$Info    = t(richedit) at(readonly) sz(p,p) text(const($txt))
@  = [StyledWindowT_Small] at(dragable,resizable,a_close,nohelp) subst( BodyEx( $Info ) ) sz(400,250) alias(settings)

;--------------------------------------------

[PauseProtectionRequestDialog]
@  = [StyledWindowT_Small] at(dragable,a_cancel) subst( BodyEx( [PauseProtectionRequestDialog_Actions] ) ) sz(380,a) h(30469) onok(ResumeMode = ctl.Actions.value)

[PauseProtectionRequestDialog_Actions]
@           = $DlgBodyAttr mg(10,10) sz(p,a)
Time        = [WizardButton] xy(0,0,0,0) onclick(ResumeMode = 0x40000000; close(#m_res_ok)) subst(Name() Descr([PauseProtectionRequestDialog_TimeButton]) ) a(la)
Reboot      = [WizardButton] xy(0,0,0,0) onclick(ResumeMode = 0x00000000; close(#m_res_ok)) subst(Name() Descr() ) a(la)
OnDemand    = [WizardButton] xy(0,0,0,0) onclick(ResumeMode = 0xFFFFFFFF; close(#m_res_ok)) subst(Name() Descr() ) a(la)

[PauseProtectionRequestDialog_TimeButton]
@       = sz(a,a) mg(,7)
Time    = [PauseProtectionRequestDialog_TimeButton_Time] f(ctl.parent.font)

[PauseProtectionRequestDialog_TimeButton_Time]
@       = t(combo) a(lt) sz(90,20) v(ResumeTime)
60      = v(60)
180     = v(180)
300     = v(300)
900     = v(900)
1800    = v(1800)
3600    = v(3600)
10800   = v(10800)
18000   = v(18000)

;--------------------------------------------

[StatisticsReport]
@    = [StyledWindowT] at(dragable,customfooter,a_close) subst( BodyEx( [MainThreats_Tab_Statistics] ) ) sz(a,535) i("Main") h(25830)

[MainThreats]
@    = [StyledWindowT] at(dragable,customfooter,a_close) subst( BodyEx( [MainThreats_Tab_Statistics] ) ) sz(a,535) i("Main") h(15775)

[StatisticsLegend]
@       = sz(a,a)   a(at) xy(,,7) ext(1)
Val     = sz(30,a)  a(lt) ta(r) extprm(1)
Color   = sz(15,13) a(at) xy(5,1) extprm(1)
Text    = a(at) xy(7) visible(ctl.Val.text == "0") f("StatisticsLegend") extprm(1)
Link    = a(at) xy(7) visible(ctl.Val.text != "0") $Link text(ctl.Text.text) extprm(1)

[MainThreats_Tab_Statistics]
$A = [StatisticsLegend] a(sa) xy(,10) subst(Val(text(
$B = )) Color(bg(if(ctl.Val.text == "0", "ReportChart,11", f_ChartBgLegend(
$C = )))) Text(text(capitalize(s_StatisticsType(
$D = )))) Link(onclick(window(
$D1 = "MainReport:Threats", p_postInit("ctl.Report.GroupFilter.value = \"ByDetectType\"; ctl.Report.selgroup(" + 
$D2 = + ")")
$E = , p_periodBegin(ctl.PeriodSwitch.PeriodBegin.value), p_periodEnd(ctl.PeriodSwitch.PeriodEnd.value), p_periodType(ctl.PeriodSwitch.Combo.value), p_periodShift(ctl.PeriodSwitch.PeriodShift.value)))) )
@       = sz(a,p) bg("TopNavigator") ext(1)
TotalCounter   = [MainWindow.Protection_WorkArea_Home_Stat_Counters]
$PeriodBeginLocal = convertToLocal(ctl.PeriodBegin.value)
$PeriodEndLocal = convertToLocal(ctl.PeriodEnd.value)
PeriodSwitch = [Statistics_Switch_Time] a(la) mg(16,16,10,16) subst(IsChange(+onchange(\
	ctl.parent.StatArea.StatAV.Charts.Virware.setfilter           ( s_MainThreats_Tab_Statistics_Filter(ctl.value, $PeriodBeginLocal, $PeriodEndLocal,"&& (Counter == #eVirware)") ); \
	ctl.parent.StatArea.StatAV.Charts.Troj.setfilter              ( s_MainThreats_Tab_Statistics_Filter(ctl.value, $PeriodBeginLocal, $PeriodEndLocal,"&& (Counter == #eTrojware)") ); \
	ctl.parent.StatArea.StatAV.Charts.Malware.setfilter           ( s_MainThreats_Tab_Statistics_Filter(ctl.value, $PeriodBeginLocal, $PeriodEndLocal,"&& (Counter == #eMalware || Counter == #eScannedOjects)") ); \
	ctl.parent.StatArea.StatAV.Charts.Others.setfilter            ( s_MainThreats_Tab_Statistics_Filter(ctl.value, $PeriodBeginLocal, $PeriodEndLocal,"&& (Counter == #eUrgent || Counter == #ePasswordProtectedExe)") ); \
	ctl.parent.StatArea.StatOS.Charts.Vulnerability.setfilter     ( s_MainThreats_Tab_Statistics_Filter(ctl.value, $PeriodBeginLocal, $PeriodEndLocal,"&& (Counter == #eVulnerability)") );\
	ctl.parent.StatArea.StatOS.Charts.Riskware.setfilter          ( s_MainThreats_Tab_Statistics_Filter(ctl.value, $PeriodBeginLocal, $PeriodEndLocal,"&& (Counter == #eRiskware)") );\
	ctl.parent.StatArea.StatOS.Charts.Adware.setfilter            ( s_MainThreats_Tab_Statistics_Filter(ctl.value, $PeriodBeginLocal, $PeriodEndLocal,"&& (Counter == #eAdware)") );\
	ctl.parent.StatArea.StatCF.Charts.Attack.setfilter            ( s_MainThreats_Tab_Statistics_Filter(ctl.value, $PeriodBeginLocal, $PeriodEndLocal,"&& (Counter == #eAttack)") );\
	ctl.parent.StatArea.StatCF.Charts.MaliciousURL.setfilter      ( s_MainThreats_Tab_Statistics_Filter(ctl.value, $PeriodBeginLocal, $PeriodEndLocal,"&& (Counter == #eMaliciousURL || Counter == #ePhishing)") );\
	ctl.parent.StatArea.StatCF.Charts.Banner.setfilter            ( s_MainThreats_Tab_Statistics_Filter(ctl.value, $PeriodBeginLocal, $PeriodEndLocal,"&& (Counter == #eBanner)") );\
	ctl.parent.StatArea.StatCF.Charts.Spam.setfilter              ( s_MainThreats_Tab_Statistics_Filter(ctl.value, $PeriodBeginLocal, $PeriodEndLocal,"&& (Counter == #eSpam)") );\
	ctl.parent.TotalCounter.ScannedTotal.setfilter                ( s_MainThreats_Tab_Statistics_Filter(ctl.value, $PeriodBeginLocal, $PeriodEndLocal,"&& (Counter == #eScannedOjects)") ) \
	)) )
StatArea  = [MainThreats_Tab_Statistics_Frame_Area]
TotalArea = [MainThreats_Tab_Statistics_Total_Area]

[MainThreats_Tab_Statistics_Total_Area]
@ = a(lb) sz(p,a) mg(16,10,10,10)
Label = a(lc)
Counter = a(as) xy(,-1) f("Normal9_Bold") text(ctl.parent.parent.TotalCounter.ScannedTotal.value)
$ReportsAction = window("MainReport:Threats", p_postInit("ctl.Report.GroupFilter.value = \"ByDetectType\"; ctl.Report.focus()"), p_periodBegin(ctl.PeriodSwitch.PeriodBegin.value), p_periodEnd(ctl.PeriodSwitch.PeriodEnd.value), p_periodType(ctl.PeriodSwitch.Combo.value), p_periodShift(ctl.PeriodSwitch.PeriodShift.value))
ReportsBtn   = [BtnGlass32] sz(a,$Button_Large_CY) a(rb) onclick($ReportsAction) text($LinkFullReport)
SchedulerBtn = t(bmpbutton) sz(40,30) a(ps) xy($Button_Shift) bg("BtnBell,0,1,3,0,3,2") onclick(dialog("StatisticsNotificationSchedulerDlg", p_data(statistics_report_schedule)))

[MainThreats_Tab_Statistics_Frame_Area]
@ = a(lt) sz(a,p) xy(0,53,0,56)
StatAV         = [MainThreats_Tab_Statistics_Frame_AV]
StatOS         = [MainThreats_Tab_Statistics_Frame_OS]
StatCF         = [MainThreats_Tab_Statistics_Frame_CF] use(!$IsKAV)

;----------------------------

[MainThreats_Tab_Statistics_Frame_AV]
@      = a(lt) sz(240,p) mg(5,20) bg("ColorWindow")
Header = sz(p,a) xy(,16|,,20) ta(c) f("Header1")
Charts = xy(,7) [MainThreats_Tab_Statistics_StatChart_AV]
Stat = [MainThreats_Tab_Statistics_FrameLegend_AV]
Mask3D = a(lt) xy(49,55) i("bublik_mask")

[MainThreats_Tab_Statistics_StatChart_AV]
@          = $ChartPie a(ca) sz(125,125)
Background = $EmptyPieBackground
Virware    = $PieData bg(f_ChartBg(#eVirware))  v(Blocked) filter(Counter == #eVirware)  tt(s_RepDetectedType(#eVirware, ctl.value))
Troj       = $PieData bg(f_ChartBg(#eTrojware)) v(Blocked) filter(Counter == #eTrojware) tt(s_RepDetectedType(#eTrojware, ctl.value))
Malware    = $PieData bg(f_ChartBg(#eMalware))  v(Blocked) filter(Counter == #eMalware || Counter == #eScannedOjects)  tt(s_RepDetectedType(#eMalware, ctl.value))
Others     = $PieData bg(f_ChartBg(#eUrgent))   v(Blocked) filter(Counter == #eUrgent || Counter == #ePasswordProtectedExe) tt(s_RepDetectedType(#eUrgent, ctl.value))

[MainThreats_Tab_Statistics_FrameLegend_AV]
@        = a(la) sz(p,p) xy(-10,25)
Virware  = $A ctl.Charts.Virware.value $B #eVirware  $C #eVirware  $D $D1 #DETYPE_VIRWARE  $D2 $E xy(10,4)
Troj     = $A ctl.Charts.Troj.value    $B #eTrojware $C #eTrojware $D $D1 #DETYPE_TROJWARE $D2 $E
Others   = $A ctl.Charts.Others.value  $B #eUrgent   $C #eUrgent   $D $D1 #DETYPE_URGENT   $D2 $E
Malware  = $A ctl.Charts.Malware.value $B #eMalware  $C #eMalware  $D $D1 #DETYPE_MALWARE  $D2 $E


;-----------------------------

[MainThreats_Tab_Statistics_Frame_OS]
@      = a(at) sz(240,p) xy(1) mg(5,20) bg("ColorWindow")
Header = sz(p,a) xy(,16,,20) ta(c) f("Header1")
Charts = xy(,7) [MainThreats_Tab_Statistics_StatChart_OS]
Stat = [MainThreats_Tab_Statistics_FrameLegend_OS]
Mask3D = a(lt) xy(49,55) i("bublik_mask")

[MainThreats_Tab_Statistics_StatChart_OS]
@          = $ChartPie a(ca) sz(125,125)
Background = $EmptyPieBackground
Vulnerability = $PieData bg(f_ChartBg(#eVulnerability)) v(Blocked) filter(Counter == #eVulnerability)   tt(s_RepDetectedType(#eVulnerability, ctl.value))
Riskware   = $PieData bg(f_ChartBg(#eRiskware)) v(Blocked) filter(Counter == #eRiskware) tt(s_RepDetectedType(#eRiskware, ctl.value))
Adware     = $PieData bg(f_ChartBg(#eAdware))   v(Blocked) filter(Counter == #eAdware)   tt(s_RepDetectedType(#eAdware, ctl.value))

[MainThreats_Tab_Statistics_FrameLegend_OS]
@        = a(la) sz(p,p) xy(-10,25)
Vulnerability = $A ctl.Charts.Vulnerability.value $B #eVulnerability $C #eVulnerability $D $D1 #DETYPE_VULNERABILITY $D2 $E xy(10,4)
Riskware = $A ctl.Charts.Riskware.value $B #eRiskware $C #eRiskware $D $D1 #DETYPE_RISKWARE $D2 $E
Adware   = $A ctl.Charts.Adware.value   $B #eAdware   $C #eAdware   $D $D1 #DETYPE_ADWARE   $D2 $E

;-----------------------------

[MainThreats_Tab_Statistics_Frame_CF]
@      = a(at) sz(240,p) xy(1) mg(5,20) bg("ColorWindow")
Header = sz(p,a) xy(,16,,20) ta(c) f("Header1")
Charts = xy(,7) [MainThreats_Tab_Statistics_StatChart_CF]
Stat   = [MainThreats_Tab_Statistics_FrameLegend_CF]
Mask3D = a(lt) xy(49,55) i("bublik_mask")

[MainThreats_Tab_Statistics_StatChart_CF]
@            = $ChartPie a(ca) sz(125,125)
Background   = $EmptyPieBackground
Attack       = $PieData bg(f_ChartBg(#eAttack))       v(Blocked) filter(Counter == #eAttack)     tt(s_RepDetectedType(#eAttack, ctl.value))
MaliciousURL = $PieData bg(f_ChartBg(#eMaliciousURL)) v(Blocked) filter(Counter == #eMaliciousURL || Counter == #ePhishing)   tt(s_RepDetectedType(#eMaliciousURL, ctl.value))
Spam         = $PieData bg(f_ChartBg(#eSpam))         v(Blocked) filter(Counter == #eSpam)       tt(s_RepDetectedType(#eSpam, ctl.value))
Banner       = $PieData bg(f_ChartBg(#eBanner))       v(Blocked) filter(Counter == #eBanner)     tt(s_RepDetectedType(#eBanner, ctl.value))

[MainThreats_Tab_Statistics_FrameLegend_CF]
@             = a(la) sz(p,p) xy(-10,25)
Attack        = $A ctl.Charts.Attack.value       $B #eAttack       $C #eAttack       $D $D1 #DETYPE_ATTACK    $D2 $E xy(10,4)
MaliciousURL  = $A ctl.Charts.MaliciousURL.value $B #eMaliciousURL $C #eMaliciousURL $D $D1 #DETYPE_PHISHING  $D2 $E
Spam          = $A ctl.Charts.Spam.value         $B #eSpam         $C #eSpam         $D "MainReport:Anti_Spam" $E
Banner        = $A ctl.Charts.Banner.value       $B #eBanner       $C #eBanner       $D "MainReport:AdBlocker" $E

[StatisticsNotificationSchedulerDlg]
@  = [StyledWindowT_Small] at(dragable,a_ok,a_cancel) i("bell") subst( BodyEx( [StatisticsNotificationSchedulerDlg_Scheduler] ) ) alias(settings) sz(360,a) onok(if(Type == #schtWeekly && !WeekDay0 && !WeekDay1 && !WeekDay2 && !WeekDay3 && !WeekDay4 && !WeekDay5 && !WeekDay6, balloon("SchedulerDaysEmpty"))) h(25962)

[StatisticsNotificationSchedulerDlg_Scheduler]
@ = a(lt) sz(p,a)
SchedulerView   = [SchedulerView] subst(RunLock(use(0)) RunIfSkipped(use(0)) Type([SchedulerView_SmallType]) PostponeStart(use(0)) ) a(la) xy(,10)

[SchedulerView_SmallType]
@                   = t(combo) sz(p,a) v(Type)
Days                = v(#schtDaily)
Weeks               = v(#schtWeekly)
Monthly             = v(#schtMonthly)

; [Statistics_Switch_Time]
; Ïåðåêëþ÷àòåëü âðåìåíè ïî ïåðèîäàì
; PeriodType - òèï ïåðèîäà
;   #ePeriodDay    - äåíü
;   #ePeriodWeek   - íåäåëÿ
;   #ePeriodMonth  - ìåñÿö
;   #ePeriodYear   - ãîä
;
; PeriodBegin - íà÷àëüíîå çíà÷åíèå ïåðèîäà âðåìåíè
; PeriodEnd   - êîíå÷íîå çíà÷åíèå ïåðèîäà âðåìåíè
; IsChange    - èíäèêàòîð òîãî, ÷òî çíà÷åíèÿ ïîìåíÿëèñü
;               (ïðèâÿçûâàòüñÿ íà onchange)
; IsPeriodChange - èíäèêàòîð òîãî, ÷òî òèï ïåðèîäà ïîìåíÿëñÿ
;               (ïðèâÿçûâàòüñÿ íà onchange)
;
; Âíèìàíèå!!! - Combo.value íå èñïîëüçîâàòü. 
;               âìåñòî íåãî 
;				Combo.PeriodType.value
;

[ArrowLeftBtn]
@ = t(bmpbutton) sz(34,22) a(lc)
Bg = a(lt)  bg("Arrows,0,0,0,1,0,0")

[ArrowRightBtn]
@ = t(bmpbutton) sz(34,22) a(ac)
Bg = a(lt)  bg("Arrows,3,3,3,2,3,3")

[Statistics_Switch_Time]
$Button      = t(bmpbutton) sz(18,18) extprm(1)
$vPrBeg      = ctl.PeriodBegin.value
$vPrEnd      = ctl.PeriodEnd.value
$vPrType     = ctl.PeriodType.value
$vPrShift    = ctl.PeriodShift.value
$prmStat_Filter = $vPrBeg, $vPrEnd, $vPrType, $vPrShift, l_IsPrev, l_IsNext
$IsChangeInc = ctl.IsChange.value = ctl.IsChange.value + 1
; -----
@            = ext(1) a(la) sz(p,a) oninit( l_IsPrev = 0; l_IsNext = 0 )
PeriodBegin  = $ValPrm oninit(ctl.value = -1)
PeriodEnd    = $ValPrm oninit(ctl.value = -1)
PeriodType   = $ValPrm oninit(ctl.value = -1)
IsChange     = $ValPrm oninit(ctl.value = -1)
IsPeriodChange = $ValPrm oninit(ctl.value = -1)
PeriodShift  = $ValPrm
PrevShift    = [ArrowLeftBtn] onclick( f_Statistics_Filter_Down( $prmStat_Filter ); $IsChangeInc ) enable(l_IsPrev)
NextShift    = [ArrowRightBtn] xy(4) onclick( f_Statistics_Filter_Up( $prmStat_Filter ); $IsChangeInc ) enable(l_IsNext)
StatPeriodText = a(ac) sz(a,a) xy(10) text(s_MainThreats_Tab_Statistics_TimePeriod(ctl.Combo.value, $vPrBeg, $vPrEnd ))
Combo        = [Statistics_Switch_Time_Combo] a(rc)
Period       = a(pc) sz(a,a) xy(10)

[Statistics_Switch_Time_Combo]
$vPrBeg      = ctl.PeriodBegin.value
$vPrEnd      = ctl.PeriodEnd.value
$vPrType     = ctl.PeriodType.value
$vPrShift    = ctl.PeriodShift.value
$IsChangeInc = ctl.IsChange.value = ctl.IsChange.value + 1
$IsPeriodChangeInc = ctl.IsPeriodChange.value = ctl.IsPeriodChange.value + 1
$f_update_values = f_Statistics_Filter( $vPrBeg, $vPrEnd, ctl.Combo.value, $vPrShift, l_IsPrev, l_IsNext );\
			            $vPrType = s_Statistics_DefinType( ctl.Combo.value, $vPrBeg, $vPrEnd); $IsChangeInc; $IsPeriodChangeInc; $vPrType
; ----
@            = t(combo) sz(a,a) at(rememberdata) onchange( $f_update_values ) oninit(ctl.value = "Week"; $f_update_values)
Day          = v("Day")
Week         = v("Week")
Month        = v("Month")
Year         = v("Year")
All          = v("All")

;[MainThreats_Tab_Statistics_Line]
;$Button      = t(bmpbutton) sz(18,18) extprm(1)
;$ArrLeft     = $Button bg("Arrows,0,0,0,1,0,0") a(lt) xy(0)
;$ArrRight    = $Button bg("Arrows,3,3,3,2,3,3") a(at) xy(4)
;$vPrBeg      = ctl.PeriodBegin.value
;$vPrEnd      = ctl.PeriodEnd.value
;$vPrType     = ctl.PeriodType.value
;$vPrShift    = ctl.PeriodShift.value
;$prmStat_Filter = $vPrBeg, $vPrEnd, $vPrType, $vPrShift, l_IsPrev, l_IsNext
;$IsChangeInc = ctl.IsChange.value = ctl.IsChange.value + 1
;; ----
;@            = ext(1) sz(p,a) oninit( l_IsPrev = 0; l_IsNext = 0 )
;PeriodBegin  = $ValPrm oninit(ctl.value = -1) extprm(1)
;PeriodEnd    = $ValPrm oninit(ctl.value = -1)
;PeriodType   = $ValPrm oninit(ctl.value = -1)
;IsChange     = $ValPrm oninit(ctl.value = -1)
;PeriodShift  = $ValPrm
;PrevShift    = $ArrLeft  onclick( f_Statistics_Filter_Down( $prmStat_Filter ); $IsChangeInc ) enable(l_IsPrev)
;NextShift    = $ArrRight onclick( f_Statistics_Filter_Up( $prmStat_Filter ); $IsChangeInc ) enable(l_IsNext)
;Descr        = a(as) xy(8) f("KtsHeader0") text( s_MainThreats_Tab_Statistics_TimePeriod(ctl.Period.value, $vPrBeg, $vPrEnd ) )
;Period       = [MainThreats_Tab_Statistics_Line_Period] a(rs) xy(,-5) onchange( f_Statistics_Filter( $vPrBeg, $vPrEnd, ctl.Combo.value, $vPrShift, l_IsPrev, l_IsNext );\
;			                 $vPrType = s_Statistics_DefinType( ctl.Combo.value, $vPrBeg, $vPrEnd); $IsChangeInc  )
;PeriodText   = a(ps) xy(6,5) f("KtsHeader0")
;
;[MainThreats_Tab_Statistics_Line_Period]
;@     = a(la) t(combo) at(rememberdata)
;Day   =
;Week  =
;Month =
;Year  =
;All   = at(default)

[MainThreats_Tab_Statistics.Text]
@       = a(at) sz(p,p)
List    = [Product_Statistics_List] group(CounterGroup, (Counter < 4 ? 1 : (Counter < 30 ? 2 : 3))) subst(Counter(sz(239)) Blocked(sz(90)) Total(use(0)) ) use(!$IsKAV)
List    = [Product_Statistics_List] filter(Counter < 31) group(CounterGroup, (Counter < 4 ? 1 : 2)) subst(Counter(sz(239)) Blocked(sz(90)) Total(use(0)) ) use($IsKAV)


[MainThreats_Tab_Statistics.Charts]
@       = a(lt) sz(p,p) mg(,7) b(System) bg("ColorWindow")
ChartAV = [ProfileHome_ChartStat] subst(Legend([MainWindow.Antivirus.StatChart_Legend] a(cb)) Name(text($Antivirus)) Chart([MainWindow.Antivirus_WorkArea_StatChart_Today])) a(lt) sz(p,p) rs(,33) mg(7)
ChartOS = [ProfileHome_ChartStat] subst(Legend([MainWindow.OnlineSecurity_WorkArea_SysPerf_Legend_Detected] a(cb)) Name(text($ids)) Chart([MainWindow.OnlineSecurity_WorkArea_StatChart_Today])) a(la) sz(p,p) rs(,50) use(f_isInstalled("OnlineSecurity")) mg(7)
ChartCF = [ProfileHome_ChartStat] subst(Legend([MainWindow.ContentFilter_WorkArea_SysPerf_Legend_Detected] a(cb)) Name(text($ContentFilter)) Chart([MainWindow.ContentFilter_WorkArea_StatChart_Today])) a(la) sz(p,p) use(f_isInstalled("Anti_Spam") || f_isInstalled("AdBlocker") || f_isInstalled("ParCtl")) mg(7)

;------------- QB_Storage -----------

[QB_Storage]
@ = [StyledWindowT]  at(resizable,minimizable,a_close) sz(,$TopWindows_Min_Y,630,530) subst( Body( a(lt) -xy() -bg() ) BodyEx( [QB_Storage_BodyEx] ) )

[QB_Storage_BodyEx]
@            = sz(p,p) a(lt)
Bdy          = [QB_Storage_Body]

[QB_Storage_Body]
@           = $DlgBodyAttr a(lt) alias(navigator2) pages(WorkArea)
Navigator   = [QB_Storage_Navigator] xy(,6)
WorkArea    = a(lt) sz(p,p) $dlg_body_xy  rs(100,100) bg("ColorWindow")

[BtmTabLeft]
@ = sz($Tab_ParCtl_Left_CX,$Tab_ParCtl_CY) ext(1) 
L = bg(ctl.parent.selected? "TabLeftWhite":"TabLeftGray") a(lt) sz(24,p) extprm(1)
R = bg(ctl.parent.selected? "TabRightWhite_A":"TabRightGray_A") a(rt) sz(20,p) extprm(1)
M = bg(ctl.parent.selected? "TabMidWhite":"TabMidGray") sz(p,p) xy(24,,17) extprm(1)
Cont = a(lc) ta(cc) sz(p,p) xy(17,,10) extprm(1)

[BtmTabRight]
@ = sz($Tab_ParCtl_Right_CX,$Tab_ParCtl_CY) ext(1) 
L = bg(ctl.parent.selected? "TabLeftWhite_A":"TabLeftGray_A") a(lt) sz(24,p) extprm(1)
R = bg(ctl.parent.selected? "TabRightWhite":"TabRightGray") a(rt) sz(24,p) extprm(1)
M = bg(ctl.parent.selected? "TabMidWhite":"TabMidGray") sz(p,p) xy(17,,24) extprm(1)
Cont = a(lc) ta(cc) sz(p,p) xy(10,,17) extprm(1)

[QB_Storage_Navigator]
@          = a(ct) sz(a,a) at(enum)
Quarantine = [BtmTabLeft] a(lt) at(radiolike) subst(Cont())
Backup     = [BtmTabRight] a(as) at(radiolike) subst(Cont())

[QB_Storage.Quarantine]
@ = sz(p,p) h(19500) onshow(ctl.top.text=$Quarantine)
Header = [QB_Storage_Header] subst(Icon( i("Quarantine48")) Title() Description())
ReportArea = [Product_Threats_ReportArea] subst( Report(filter(ThreatStatus == #Quarantined || ThreatStatus == #AddedByUser || ThreatStatus == #FalseAlarm)) ActionsArea(subst(Other([Product_Threats_Quarantine_Actions]))) )

[QB_Storage.Backup]
@ = sz(p,p) h(55517) onshow(ctl.top.text=$Storage)
Header = [QB_Storage_Header] subst(Icon( i("BackupStorage48")) Title() Description())
ReportArea = [Product_Threats_ReportArea] subst( Report( filter(ThreatStatus == #Disinfected || ThreatStatus == #Deleted || ThreatStatus == #Reboot || ThreatStatus == #RolledBack)) ActionsArea(subst(Other([Product_Threats_Backup_Actions]))) )

[QB_Storage_Header]
@ = sz(p,a) rs(0,0) mg(20,20,20,5) bg("ColorWite") ext(1)
Icon = a(lt) extprm(1)
Spacer = a(as) sz(0,68)
Title = a(as) xy(20) f("Header5Med") extprm(1)
Description = a(sa) xy(,5) extprm(1)

[Product_Threats]
@           = sz(p,p) mg(7,7) ext(1) h($IsKAT ? 16560 : 26078)
Navigator   = [Product_Threats_Navigator]
ReportArea  = [Product_Threats_ReportArea] subst(Report(filter(ThreatStatus != #RolledBack)))

[Product_Threats_Navigator]
@       = sz(p,28) rs(0,0)
Filter  = [Product_Threats_Navigator_Filter]

[Product_Threats_Navigator_Filter]
;$Filter_item  = a(at) sz(a,a) at(radiolike) f((ctl.selected || ctl.focused)? "Hotlink_switch_selected" : "Hotlink_switch") bg(ctl.selected ? "YellowBack" : "") mg(7,3)
@             = t(combo) at(enum, rememberdata) ext(1) sz(a,a) onchange(ctl.Report.setfilter(ctl.value, 1))
All           = v("DetectType != -1") at(default) use($IsKAT)
AllButVuln    = v("DetectType != #DETYPE_VULNERABILITY") at(default) use(!($IsKAT))
Active        = v("ThreatStatus == #Untreated") 
Vulnerability = v("DetectType == #DETYPE_VULNERABILITY") use($IsKAT)
Quarantined   = v("ThreatStatus == #Quarantined || ThreatStatus == #AddedByUser || ThreatStatus == #FalseAlarm") 
Disinfected   = v("ThreatStatus == #Disinfected || ThreatStatus == #Disinfected") 

[Product_Threats_Quarantine_Actions]
@          = sz(a,p)
AddToQB    = [TB_Button] subst(Icon(i("MoveToQb"))) onclick(addToQuarantine()) use(!$IsKAT)
Scan       = [TB_Button] subst(Icon(i("Find"))) onclick(ctl.Report.treat()) enable(depend((ctl.Report.selcount() > 1) || (ctl.Report.seldata().ThreatStatus == #Quarantined || ctl.Report.seldata().ThreatStatus == #AddedByUser))) use(!$IsKAT)
Restore    = [TB_Button] subst(Icon(i("IcoUnblock_16"))) onclick(ctl.Report.restore()) enable(depend((ctl.Report.selcount() > 1) || ctl.Report.seldata().CouldBeRestored))
Discard    = [TB_Button] subst(Icon(i("listctrls,2"))) onclick(ctl.Report.discard()) enable(!ctl.Report.isNode)

[Product_Threats_Backup_Actions]
@          = sz(a,p)
Restore    = [TB_Button] subst(Icon(i("IcoUnblock_16"))) onclick(ctl.Report.restore()) enable(depend((ctl.Report.selcount() > 1) || ctl.Report.seldata().CouldBeRestored))
Discard    = [TB_Button] subst(Icon(i("listctrls,2"))) onclick(ctl.Report.discard()) enable(!ctl.Report.isNode)
DiscardAll = [TB_Button] subst(Icon(i("CleanTool"))) onclick(ctl.Report.discardAll()) enable(depend(ctl.Report.totalCount()))

[Product_Threats_ReportArea]
@               = b(MainTaskSep) a(la) sz(p,p) rs(100,100) ext(1)
Report          = [Product_Threats_Report]
ActionsArea     = [Grid.Toolbar.Template] t(listtoolbar) a(lt) b() extprm(1) subst(Add(use(0)) Edit(use(0)) Delete(use(0)) Other(use(1) xy(0) [Product_Threats_Backup_Actions]))

[Product_Threats_Report]
@           = $List at(rememberdata,noborder,expandall) alias(taskthreats) refresh(100) extprm(1) a(lt) xy(,$ListToolbarOffsetY) toolbar(ctl.parent.ActionsArea)
Status      = sz(p) rs(20) at(hidden) tt(f_displayPath(nPID, ObjectName)) text(s_ThreatStatus(ThreatStatus) + if(RollbackMade,$ThreatStatusRollbackMade)) group(threatstatus,ThreatStatus) filter(auto, s_ThreatStatus(ThreatStatus))
Object      = sz(180) rs(45) text(objfile(ObjectName)) tt(f_displayPath(nPID, ObjectName)) filter(auto,s_DetectObjectTypes(ObjectType))
Path        = sz(300) rs(70) text(objdir(f_displayPath(nPID, ObjectName))) tt(f_displayPath(nPID, ObjectName))
Time        = sz(120) ta(rc) text(datetime(ReportTime)) filter(auto,s_date(dategroup(ReportTime))) group(date,dategroup(ReportTime)) sort(,sortdown)
Detected    = sz(200) rs(35) text($DetectTypeEx) tt(f_displayPath(nPID, ObjectName)) group(dettype,s_GroupByDetectType(DetectType)) filter(auto, s_FilterByDetectType(DetectType))
row         = at(clickable) i(s_DetectDangerIcon(DetectDanger)) ia(lc) onrclick(menu("Product_Threats_Report_Menu"))
views       = extprm(1)

[Product_Threats_Report_Menu]
$GotoFileVirt = exec(env("ProductRoot").addPath("sbstart.exe"), f_getProcessSandboxId(nPID) + " \"iexplore\" -new -e " + objdir(f_displayPath(nPID, ObjectName)))
$GotoFileReal = if(!gotofile(ObjectName),msg("CantOpenFolder"))
@               = t(menu) bg("MenuIconBg")
Treat           = onclick(ctl.Report.treat()) at(default) visible(DetectType!=#DETYPE_VULNERABILITY&&(ThreatStatus == #Untreated))
Scan            = onclick(ctl.Report.treat()) at(default) visible((ThreatStatus == #Quarantined||ThreatStatus == #AddedByUser) && !$IsKAT) 
GotoToVulDesc   = onclick(url(f_VulnerUrl(DetectName))) at(default) visible(DetectType == #DETYPE_VULNERABILITY)
ViewOnWeb       = onclick(url($VirusListThreatLink)) enable(!isNode) visible(DetectType!=#DETYPE_VULNERABILITY && ThreatStatus != #AddedByUser && ThreatStatus != #Untreated) use($IsKAT)
Restore         = onclick(ctl.Report.restore()) enable(CouldBeRestored)
Discard         = onclick(ctl.Report.discard()) enable(!isNode)
GotoFile        = onclick( if(f_isSandboxed(nPID),$GotoFileVirt,$GotoFileReal) ) enable(!s_ObjTypeIsWeb(TaskType)) use(!$IsRD)
SendToKL        = onclick(ctl.Report.sendToKL()) use(env("ProductType") != "wks") enable((bindok("SendToKL") || $IsFunctionalityLevel_Protection) && (ThreatStatus == #Quarantined || ThreatStatus == #AddedByUser || ThreatStatus == #Clear || ThreatStatus == #FalseAlarm))
sep
DiscardAll      = onclick(ctl.Report.discardAll()) enable(ThreatsCount)
sep
ViewOnWeb       = onclick(url($VirusListThreatLink)) enable(!isNode) visible(DetectType!=#DETYPE_VULNERABILITY && ThreatStatus != #AddedByUser && ThreatStatus == #Untreated) use(!$IsRD)

[MainReport.Threats_Filters_Menu]
@              = at(enum) v(ctl.parent.parent.value)
ByTime         = at(radiolike)
AllItems       = at(radiolike)
ByDetectType   = at(radiolike)
ByObjectStatus = at(radiolike)

[MainReport.Threats_Filters]
ByTime         = v("1400010001b6;De100001009e;St100000009a;Pa00020000a8;Ob10020000c1;Ti142000007e;")
AllItems       = v("1400010001c8;De100001009e;St100000009a;Pa00020000a8;Ob10020000c1;Ti102000007e;")
ByDetectType   = v("1400010001b6;De140000009e000000000000003c;St100000009a;Ti102000007e;Pa00020000a8;Ob10020000c1;")
ByObjectStatus = v("1400010001dd;De100000009e;St140200009a0000000000000008;Pa00020000a8;Ob10000000c1;Ti102000007e;")

[MainReport.Threats]
$Threats_Report_OnChange = +onchange(ctl.Group1.Report.setfilter(f_Threats_PeriodFilter(ctl.PeriodBegin.value, ctl.PeriodEnd.value), 1))
@ = [ProfileReport] subst(Group1([MainReport.Threats_Log]) ActionsArea(subst(Other(subst(GroupFilter(onclick(ctl.menu("MainReport.Threats_Filters_Menu"))))))) Descr([MainReport.Threats_Descr]) PeriodSwitch(subst(IsChange($Threats_Report_OnChange) )) )

[MainReport.Threats_Log]
@ = ext(1)
d = [MainReport.Threats_Report] subst(Report(xy() filter(ThreatStatus != #RolledBack)) views([MainReport.Threats_Filters]))

[MainReport.Threats_Report]
@       = sz(p,p) ext(1)
Report  = [Product_Threats_Report] extprm(1)

[MainReport.Threats_Descr]
@ = mg(12,16) ext(1)
Detected   = a(lt) f("Header2_Grey9") text($DetectTypeEx)
Object     = a(la) xy(,5,150) [MainReport_ListRowDesc] subst(Name(sz(50,a)) Val(subst(Name(t(richedit) sz(p,a,0,0,p,60) at(readonly,nofocus,noborder,compresspath) text("<a onclick(gotofile(ObjectName))>" + objdir(f_displayPath(nPID, ObjectName)) + "</a>" + objfile(ObjectName))))))
Status     = [MainReport_ListRowDesc] subst(Name(sz(50,a)) Val(subst(Name(text(s_ThreatStatus(ThreatStatus)))))) extprm(1)
Rollback   = $RichText xy(,5) a(la) visible(RollbackMade) extprm(1)
Time       = a(rt) xy(,1) f("Normal_Grey") text(datetime(ReportTime)) extprm(1)
DetectType = a(ra) xy(,4) [MainReport.Threats_Descr_DetectType] extprm(1)
SandBox    = a(ra) xy(,4) [Protection_Events_Descr_SandBox] extprm(1)

[MainReport.Threats_Descr_DetectType]
$v_margin = 5
$GetDangerSeverity = if(ThreatStatus == #AddedByUser, #eProtStateWarn, s_DetectDanger2ProtSeverity(DetectDanger))
@ = sz(130) rs(0,0)
DetTypeL = a(lt) bg(s_get_danger_l($GetDangerSeverity)) sz(a,$v_margin)
DetTypeM = a(lt) bg(s_get_danger_m($GetDangerSeverity)) sz(p,p) xy(,$v_margin,,$v_margin)
DetTypeR = a(lb) bg(s_get_danger_r($GetDangerSeverity)) sz(a,$v_margin)
Text = sz(p,a) mg(3,4,3,5) a(ct) f("Normal_Bold_White") text(capitalize(s_DetectTypeShort(DetectType))) 

;------------- SettingsWindow.CheckPassword -----------

[CheckProductPassword]
@  = [StyledWindowT_Small] at(dragable,a_ok,a_cancel) subst( BodyEx( [CheckProductPassword_Body] ) ) sz(400,a) h(30435)

[CheckProductPassword_Body]
@           = sz(p,a) mg(8,12,10,18)
Descr       = [CheckProductPassword_Body_Descr]
EditBlock   = [CheckProductPassword_Body_EditBlock]

[CheckProductPassword_Body_Descr]
@           = sz(p,a) a(la)
Ico         = i("TaskPassword32")
DescrText   = a(as) f("SecondWndHeader2") sz(p,a) xy(4) text(s_PasswordConfirmReason(Reason))

[CheckProductPassword_Body_EditBlock]
@               = sz(p,a) a(la) xy(,2)
;Pswd2CheckText = xy(,2) sz(a,a)
Pswd2CheckEdit  = t(edit) f("Normal11_Bold") a(at) xy(40,,10) sz(p,28) at(password) onok(if(global.OPEP != hashMD5(ctl.value), (($IsWin2KOS)? msg("ErrPswrdWrong"):balloon("ErrPswrdWrong")) ))
Pswd2Save       = $Check a(sa) xy(,9,,5) v(SavePswd) use(Reason != #pwdc_Exit)
PswdLink        = $LinkKL f("SecondWndDescriptionSmallHref") a(sa) xy(,20) onclick(window("OptionsWindow:Password"))

;------------- NewAppSniffer -----------

[NewAppSniffer]
@  = [StyledWindowT_Small] at(dragable,a_close,noautofocus) subst( BodyEx( [NewAppSniffer_Body] ) )  sz(300,a) h(34441)

[NewAppSniffer_Body]
Info        = sz(p,a)
App         = a(la) xy(,7) sz(p,a) i(const(getIcon(sImagePath, "unkapp", 1))) text(const(f_UnknownApp(sDescription, sImagePath)))
Progress    = t(progress) a(la) sz(p,20) xy(,7,,) v(nProgress)

;------------- Protection_CommonStatistics -----------

[ProductStatesWindow_Body]
@               = sz(p,p) mg(7,7)
ShowSkipped     = t(check) sz(a,a) a(lb) xy(,,,7) v(l_ShowSkipped) at(rememberdata) visible(f_isSomeStatesSkipped())
StatusesList    = [ProductStatesWindow_Body_StatusesList]

[ProductStatesWindow_Body_StatusesList]
@       = $List at(nosearch,singlesel) a(lp) order(0)
rows    = [ProductStatesWindow_Body_StatusesList_row]
rowedit = [ProductStatesWindow_Body_StatusesList_rowedit]

[ProductStatesWindow_Body_StatusesList_row]
@           = alias(productstateslist) prm(s_ProductStateList)
tpl         = [ProdStatusListItem]
SomeSkipped = [ProdStatusListItem] v(#ProdStateSomeSkipped) visible(f_isSomeStatesSkipped() && !l_ShowSkipped)
AllOk       = [ProdStatusListItem] v(#ProdStateAllOk) visible(ProdStateId == #ProdStateAllOk)

[ProductStatesWindow_Body_StatusesList_rowedit]
@       = sz(p,p) mg(66,,,10)
Do      = t(button) sz(a,23) a(lb) xy(,,4) text(s_ProductLinkText(depend(val))) onclick(s_ProductLinkClick(depend(val))) visible(s_ProductLinkText(depend(val)) && depend(val) != #ProdStateAllOk)
Do2     = t(button) sz(a,23) a(ab) xy(,,4) text(s_ProductLinkText2(depend(val))) onclick(s_ProductLinkClick2(depend(val))) visible(s_ProductLinkText2(depend(val)))
Enable  = t(button) sz(a,23) a(ab) xy(,,4) visible(depend(val) != #ProdStateAllOk && depend(val) != #ProdStateSomeSkipped && depend(val) != #ProdStateProductNoEula && !f_IsProdStateCritical(depend(val))) onclick(prodStateEnable(depend(val), global.StateFilterMask[depend(val)-1]))

[ProdStatusListItem]
@           = bg(ctl.focused ? "GreenSel" : (ctl.selected ? "GreenHotlight" : "")) sz(p,a) ext(1) at(custom,cachetextsize) mg(0,16,16,16) visible((global.ProductStateMask[ctl.value-1]) && (l_ShowSkipped || !(StateFilterMask[ctl.value-1])) && s_ProdStatusVisibleFilter(ctl.value))
Icon        = at(cachetextsize) sz(a,a) a(lt) bg(s_ProtectionLightSmall(s_ProdStateSeverity(ctl.parent.value))) xy(16,) enable(!(StateFilterMask[ctl.parent.value-1]))
Name        = at(cachetextsize) sz(a,a) a(lt) xy(66,) f(ctl.parent.focused ? "Bold9White" : (ctl.Icon.enabled ? "Bold9" : "Bold9Grey")) text(s_ProdState(ctl.parent.value))
Descr       = at(cachetextsize) sz(a,a) a(sa) xy(1,5,,4) f(ctl.parent.focused ? "DescriptionWhite" : (ctl.Icon.enabled ? "Description" : "DescriptionGrey")) text(switch(ctl.parent.value, "ProdState_Description"))
MinVSize    = at(cachetextsize) sz(1,32) a(la) visible(ctl.parent.selected)

;------------- AskQbPathDialog -----------

[BrowseForQbPath]
@ = [BrowseForFolder] ext(1) h(24435)

[AskQbPathDialog]
@  = [StyledWindowT_Small] at(dragable,a_ok,a_cancel,ontop) subst( BodyEx( [AskQbPathDialog_Body] ) ) sz(320,a) at(ontop)

[AskQbPathDialog_Body]
@           = $DlgBodyAtt sz(p,a)
Info        = a(lt)
QbPath      = t(edit) a(la) sz(p,a) v(ResultPath)
RetrBrowse  = t(button) sz(75,21) a(ra) xy(,$Button_Shift) text($Browse) onclick(browseobject(strVal1, "BrowseForQbPath", #SHELL_OBJTYPE_FOLDER))

;------------- ProtectionComponents -----------

; __DELETE__ - [ProtectionComponents] ïîä÷èñòèòü
[ProtectionComponents]
@ = [StyledWindowT]  at(minimizable,a_close) sz(a,a) subst( BodyEx( [ProtectionComponents_Content] ))  h(19618)

[ProtectionComponents_Content]
@       = h(0) sz(790,537) bg("ColorWindow") alias(taskview) ext(1)
Header  = [Components_Header] sz(p)
Body    = [Components_Body] a(sa) mg(14) xy(0,-2)

[Components_Header]
ProductHeader = [Components_GrayHeader] subst(LogoDsc()) 
Caption       = [Components_caption] a(lc) sz(a,a) xy(200,0)

[Components_caption]
Text          = f("Header2White") at(singleline)
KAVWarn       = a(sa) f("Normal_White") at(singleline) use($IsKAV)

[Components_GrayHeader]
@    = a(la) sz(p,66) ext(1) bg("SecondaryWindowHeader_C,0")
Left = a(lt) bg("SecondaryWindowHeader_L")
LogoDsc = [LabelShadow2] subst(B(xy(0,1))) a(lc) xy(20) f("SecondWndHeader2Shadow") extprm(1)
Right = a(rt) bg("SecondaryWindowHeader_R")

[Components_Body]
$l_phishWebFail = (Web_Monitoring.state == #StateFailed && httpscan.HTTPSettings.UseAntiphishing)
$l_phishIMFail  = (IM_Monitoring.state  == #StateFailed && IM_Monitoring.UseAntiphishing)
$l_phishASFail  = (Anti_Spam.state      == #StateFailed && Anti_Spam.UseAntiphishing)
$l_antiphishAllFail = ($l_phishWebFail || !f_isInstalled("Web_Monitoring")) && ($l_phishIMFail || !f_isInstalled("IM_Monitoring")) && ($l_phishASFail || !f_isInstalled("Anti_Spam"))
$l_antiphishAllOff  = (!($g_phish1) || !f_isInstalled("Web_Monitoring")) && (!($g_phish2) || !f_isInstalled("IM_Monitoring")) && (!($g_phish3) || !f_isInstalled("Anti_Spam")) 
$l_antiphishOnOff   = $l_antiphishAllFail ? #red : ($g_antiphishAll ? #green : ($l_antiphishAllOff ? #gray : #warn) )
@      = t(scrollarea)  at(vert) bg("ColorWindow") sz(p,p)
File_Monitoring = alias(taskview) [component_item_template] enable(f_isInstalled(ctl.id)) subst(Name(text($FileAntivirus)) Descr(text($FileAntivirusDesc))  Icon(i("FileAV_1"))    ) xy(0,9)
Mail_Monitoring = alias(taskview) [component_item_template] enable(f_isInstalled(ctl.id)) subst(Name(text($MailAntivirus)) Descr(text($MailAntivirusDesc))  Icon(i("MailAV_1"))    )   a(la)
Web_Monitoring  = alias(taskview) [component_item_template] enable(f_isInstalled(ctl.id)) subst(Name(text($WebAntivirus )) Descr(text($WebAntivirusDesc ))  Icon(i("WebAV_1"))     )   a(la)
IM_Monitoring   = alias(taskview) [component_item_template] enable(f_isInstalled(ctl.id)) subst(Name(text($IMAntivirus))   Descr(text($IMAntivirusDesc))    Icon(i("ImAV_1"))      )   a(la)
HipsTask        = alias(taskview) [component_item_template] enable(f_isInstalled(ctl.id)) subst(Name(text($Hips))          Descr(text($AppCtrlDescription)) Icon(i("Hips_1"))      )   a(la)
SW2             = alias(taskview) [component_item_template] enable(f_isInstalled(ctl.id)) subst(Name(text($SW2) )          Descr(text($SW2Desc))            Icon(i("SW2_1"))       )   a(la)
pdm             = alias(taskview) [component_item_template] enable(f_isInstalled(ctl.id)) subst(Name(text($Pdm))           Descr(text($PdmDesc))            Icon(i("Pdm_1"))       )   a(la)
Firewall        = alias(taskview) [component_item_template] enable(f_isInstalled(ctl.id)) subst(Name(text($Firewall))      Descr(text($FirewallDesc))       Icon(i("Firewall_1"))  )   a(la)
ids             = alias(taskview) [component_item_template] enable(f_isInstalled(ctl.id)) subst(Name(text($ids))           Descr(text($IdsDesc))            Icon(i("ids_1"))       )   a(la)
Anti_Spam       = alias(taskview) [component_item_template] enable(f_isInstalled(ctl.id)) subst(Name(text($Antispam))      Descr(text($AntispamDesc))       Icon(i("AntiSpam_1"))  )   a(la)
antiphishing    = [component_item_template] enable($g_antiphishInstall) subst(Settings(onclick(dialog("SettingChoiceAntiphishing")) ) State(onclick(s_EnableAntiPhishing($l_antiphishOnOff)) i(s_getStateIcon($l_antiphishOnOff) + (ctl.hotlight? ",1" : ",0"))) Name(text($antiphishing)) Descr(text($antiphishingDescr)) Icon(i("anti_phish_1"))  Alarm(visible(0))) a(la)
AdBlocker       = alias(taskedit) [component_item_template] enable(f_isInstalled(ctl.id)) subst(Name(text($AdBlocker))     Descr(text($AdBlockerDescr))     Icon(i("anti_banner")) )   a(la)

[component_item_template]
@          = sz(p,a) ext(1) 
Icon       = a(lc) xy(5) extprm(1)
Component  = a(ac) xy(10) [component_item_info]
Separator  = a(la) xy(,15) sz(a,1) bg("Widget_Window_Separator")
Settings   = a(rc) sz(28,23) xy(10) at(clickable) bg("BtnSettings28,0,2,1,0,0,1") onclick(window("OptionsWindow:" + name, $ModalIfRemote)) extprm(1)
State      = a(pc) xy(10) i(ctl.enabled ? f_getStateSemaphor(state) : "SlideSwitch_off") onclick(if(checkPassword(#pwdc_SaveSettings), enable(!s_IsStateRunning(state) && state != #StateFailed))) at(clickable) extprm(1)

[PushRadioButtonBig]
@          = at(radiolike) sz(108,108) bg("MapBigButton,0,2,1,0,0,1") ext(1)
IconNotSel = a(cs) extprm(1) xy(,13) visible(!ctl.parent.selected && !ctl.parent.hotlight)
IconPushed = a(cs) extprm(1) xy(,13) visible(!ctl.IconNotSel.visible)
_for_align = a(aa)
IconSate   = a(pp) extprm(1)
Name       = a(ca) extprm(1) xy(,4) at(underlineoff) f("PushRadioButtonBig_Sel") f1(ctl.parent.selected ? "PushRadioButtonBig_Sel" : "PushRadioButtonBig_Normal")

[component_item_info]
Name       = extprm(1) a(as) f("SecondWndHeader3")
Descr      = a(sa) f("SecondWndDescription") at(singleline) sz(610) xy(,-3) extprm(1)

[component_selector]
@ = ext(1) sz(p,36) at(btnlike) bg(ctl.selected ? "HilightBtn_sel" : (ctl.hotlight || ctl.Component.component_caption.Alarm.hotlight ? "HilightBtn" : ""))
component_btn = [component_line]

[component_line]
@ = sz(p,p)
ico = extprm(1) a(lc) xy(10)
txt = [component_desc] a(ac)

[component_desc]
$ShowKAVHint = ($IsKAV && s_ComponentKISInstalledOnly(ctl.parent.parent.parent.id))
Name       = extprm(1) a(ls) f("ComponentName")
Descr      = visible(!$ShowKAVHint) extprm(1) a(sa) f("ComponentDesc") at(singleline) sz(450) xy(,-3)
DescrHint  = visible($ShowKAVHint)  text($KAVhint) a(sa) f("ComponentDesc") at(singleline) sz(450) xy(,-3)

[SettingChoiceAntiphishing]
@  = [StyledWindowT] at(dragable,a_close) subst( BodyEx( [SettingChoiceAntiphishing_Body] ) ) sz(540,a) h(32642)

[SettingChoiceAntiphishing_Body]
@           = sz(p,a) a(lt) mg(7,7)
Icon        = i("anti_phish_1")
Header      = a(as) f("Header2") xy(10,3)
Description = a(sa) xy(,7,,15) f("Description")
Web_Monitoring     = [component_selector] enable(f_isInstalled("Web_Monitoring")) a(la) xy(25,5)   subst(ico(i("WebAV_1"))    Descr(text($WebAntivirusDesc)) Name(text($WebAntivirus)))     onclick(window("OptionsWindow:Web_Monitoring"))
IM_Monitoring      = [component_selector] enable(f_isInstalled("IM_Monitoring"))  a(sa) xy(,5)     subst(ico(i("ImAV_1"))     Descr(text($IMAntivirusDesc))  Name(text($IMAntivirus)))      onclick(window("OptionsWindow:IM_Monitoring"))
Anti_Spam          = [component_selector] enable(f_isInstalled("Anti_Spam"))      a(sa) xy(,5)     subst(ico(i("AntiSpam_1")) Descr(text($AntispamDesc))     Name(text($Antispam)))         onclick(window("OptionsWindow:Anti_Spam"))

[TrialSummaryDlg]
@ = [AlertDialogT_Green] subst(TaskName(text($LicenseOver)) Caption(subst(F(text()) B(text()))) Body([TrialSummaryDlg_Body]) ApplyToAll(use(0)))

[TrialSummaryDlg_Body]
Top     = a(la) sz(p,0) bg("AlertInfoTop")
Descr   = [TrialSummaryDlg_Body_Descr]
Buttom  = a(la) sz(p,1) bg("AlertInfoBottom")
Action  = [TrialSummaryDlg_Body_Action]

[TrialSummaryDlg_Body_Descr]
@        = a(la) sz(p,a) mg(17,17) bg("AlertInfo")
Icon     = i("LicOver") a(lt)
Warning  = f("Header2") a(as) sz(p,a) xy(20,5) 
Stat     = [TrialSummary_Descr] a(sa) xy(,20)
Link     = $Link a(sa) xy(,20) onclick(window("StatisticsReport"))

[TrialSummary_Descr]
TrialPeriod = text(f_TrialDuration(LicInfo.LicenseDurationToDisplay.ExpirationDate - LicInfo.LicenseDurationToDisplay.ActivationDate))
Scanned     = text($Scaned + ctl.xProcessed.value ) visible(ctl.xProcessed.value > 0) a(sa)
Detected    = text($Detected + ctl.xBlockedTotal.value) visible(ctl.xBlockedTotal.value > 0) a(sa)
_chart  = [chrt] at(hidden)

;; Data binding
[chrt]
@    = $ChartStat
xProcessed      = $ChartStatData v(Total)   filter(Counter == #eScannedOjects && Date < LicInfo.LicenseDurationToDisplay.ExpirationDate && Date >= LicInfo.LicenseDurationToDisplay.ActivationDate)
xBlockedTotal   = $ChartStatData v(Blocked) filter(Counter >= #eVirware && Counter <= #eSuspicionActivity && Counter!=#eSpam && Counter!=#eBanner && Counter!=#eVulnerability && Date < LicInfo.LicenseDurationToDisplay.ExpirationDate && Date >= LicInfo.LicenseDurationToDisplay.ActivationDate)

[TrialSummaryDlg_Body_Action]
@           = $AlertActions
Question    = a(la) sz(a,a) mg(10,7,10,10) xy(,5) f("Header3Lite")
BuyLicense  = [AlertDialog_ActionButton] onclick(buy(); close(#m_res_ok)) subst(Name() Descr()) enable(1)
BackToKav   = [AlertDialog_ActionButton] use(isMUTrialKIS()) onclick(window("[ConfigureWizard] alias(revert_to_kav)", p_new(#true));close(#m_res_ok)) subst(Name() Descr()) enable(1)
Skip        = [AlertDialog_ActionButton] use(!isMUTrialKIS()) onclick(close(#m_res_ok)) subst(Name() Descr()) enable(1)

[Investigator]
@  = [StyledWindowT_Small] at(dragable,resizable,a_close) subst( BodyEx( [InvestigatorWindow_Body] ) Body(mg(0,0,0,0)) ) sz(500, 400) alias(sw_viewparents) h(58363)

[InvestigatorWindow_Body]
Info         = [ProcInfoArea] sz(p,p)

[ProcInfoArea]
@ = sz(p,p)
ProgHistory   = sz(p,p) a(sa) t(richedit) at(readonly,nofocus,vscroll) 

[AppHistoryWindow]
@  = [StyledWindowT_Small] at(dragable,resizable,a_close) subst( BodyEx( [AppHistoryWindow_Body] ) Body(mg(0,0)) ) sz(480, 320) alias(sw_viewhistory) h(58363)

[AppHistoryWindow_Body]
FilterArea   = [HistoryFilter] sz(p,26) a(sa) rs(0,0)
List         = [HistoryList] sz(p,p) a(sa)

[HistoryFilter]
@                = sz(p,p) bg("TableBigHeader") 
Combo            = [HistoryFilter_Combo] a(rñ) xy(5,3)
Activities       = a(pc) sz(a,a) f("Normal") xy(5)

[HistoryFilter_Combo]
@                = t(combo) at(enum, rememberdata) sz(a,a) onchange(ctl.List.setfilter(s_HistoryFilter(ctl.value)))
All              = at(default)
FilterRegistry
FilterFile    
FilterProc    

[HistoryList]
@      = $List alias(vector) v(aEntries)
Action = text(s_InvEventType(nType, qwFlags)) i(s_IconObjectType(nType)) sort(nType)
Path   = text(sObjectName) 

[ThreatRollback]
@  = [StyledWindowT_Small] at(dragable,resizable,a_close) h(45732) subst( BodyEx( [ThreatRollbackWindow_Body] ) Body(mg(0,0)) ) sz(480, 320)

[ThreatRollbackWindow_Body]
FilterArea   = [MainReport.Threats_Descr] subst( Status(use(0)) Rollback(use(0)) Time(use(0)) DetectType(use(0)) SandBox(use(0)) ) bg("TopNavigator") sz(p,a) a(lt) rs(0,0)
List         = [RollbackList] sz(p,p) a(sa)

[RollbackList]
@      = $List at(rememberdata,noborder) alias(vector) v(getThreatRollbackInfo(UniqueId))
Path   = sz(300) at(hidden) text(SrcObject.Path) 
Object = sz(120) text(SrcObject.Name) i(s_IconRollbackObjectType(ObjectType))
Action = sz(200) text(s_RollbackAction(ObjectType))
Time   = sz(120) ta(rc) text(datetime(ActionTime)) sort(,sortdown)

[DatabasesObsoleteAlert]
@ = [AlertDialogT] sz(350,a) subst(TaskName(text(if(TaskType == "ods", $Scan_My_Computer, switch(Profile, "ProfileName")))) ApplyToAll(use(0)) Body([DatabasesObsoleteAlert_Body]))

[DatabasesObsoleteAlert_Body]
Descr   = [AlertDialogT_InfoArea] subst(Info([DatabasesObsoleteAlert_Descr]))
Actions = [DatabasesObsoleteAlert_Actions]

[DatabasesObsoleteAlert_Descr]
@       = a(la) sz(p,a) mg(17,17) bg("AlertInfo")
Descr1   = t(richedit) at(readonly,noborder,nofocus) a(as) sz(p,a) xy(17) f("AlertTaskTextBold")
Descr2   = t(richedit) at(readonly,noborder,nofocus) a(sa) sz(p,a) f("AlertTaskText")

[DatabasesObsoleteAlert_Actions]
@        = $AlertActions
Update   = [AlertDialog_ActionButton] subst(Name() Descr()) enable(1) v(1) onclick(Result = ctl.value; close(#m_res_ok))
Skip     = [AlertDialog_ActionButton] subst(Name() Descr()) enable(1) v(0) onclick(Result = ctl.value; close(#m_res_ok))

;------KTS_TuneUp------------

[TuneUpWindow]
@ = [StyledWidgetWindowT] subst(Body([TuneUpWindow.Body]) Header(subst(LogoDsc())) Footer(subst(Help(onclick(help(55177))))) Help(use(0)) )

[TuneUpWindow.Body]
@              = t(scrollarea) at(vert) a(la) sz(p,p) bg("ColorWindow") mg(20,10)
IeTweak        = [TuneUpWindow.Row] subst(Task(subst(Icon(i("TaskIeTweak48")) Caption(text($Task_IeWizard)) Desc(text($Task_IeWizard_Desc2)) )) Action(text($TuneUp)                          onclick(if(f_checkFullFunctionality(),f_AvzWizard("AvzSecurityTweakerWizard")))) )
RD             = [TuneUpWindow.Row] subst(Task(subst(Icon(i("rescue_cd48")) Caption(text($RescueDisk)) Desc(text($RescueDisk_Desc)) )) Action(text($Create)                                   onclick(if(f_checkFullFunctionality(),f_AvzWizard("MakeRescueDiskWizard")))) )
SystemRestore  = [TuneUpWindow.Row] subst(Task(subst(Icon(i("TaskTroubleTweak48")) Caption(text($Task_TroubleshootWizard)) Desc(text($Task_TroubleshootWizard_Desc)) )) Action(text($Run)     onclick(if(f_checkFullFunctionality(),f_AvzWizard("AvzTroubleshootWizard")))) )
WipeRemover    = [TuneUpWindow.Row] subst(Task(subst(Icon(i("Shredder48")) Caption(text($WipeRemover)) Desc(text($WipeRemover_Desc)) )) Action(text($Open)                                    onclick(if(f_checkFullFunctionality(),window("WipeRemoverDialog",p_new(true))))) )
PrivacyCleaner = [TuneUpWindow.Row] subst(Task(subst(Icon(i("TaskPrivacyTweak32")) Caption(text($Task_PrivacyCleanerWizard)) Desc(text($Task_PrivacyCleanerWizard_Desc)) )) Action(text($Run) onclick(if(f_checkFullFunctionality(),f_AvzWizard("AvzPrivacyCleanerWizard")))) )
TempDelete     = [TuneUpWindow.Row] subst(Task(subst(Icon(i("KtsTempDelete48")) Caption(text($TempDelete)) Desc(text($TempDelete_Desc)) )) Action(text($Run)                                  onclick(if(f_checkFullFunctionality(),f_AvzWizard("AvzSystemCleanUpWizard")))) )

[TuneUpWindow.Row]
@         = a(la) sz(p,85) ext(1)
Task      = [TuneUpWindow.Row.Task] extprm(1)
Dummy     = a(at) xy(10,22) sz(0,0)
Action    = [BtnGlass37] a(ss) sz(120) extprm(1)
Separator = a(cb) sz(a,1) bg("Widget_Window_Separator")

[TuneUpWindow.Row.Task]
@         = a(la) sz(560,p) ext(1)
Icon      = a(lt) xy(20,20) sz(48,a) extprm(1)
Caption   = a(at) at(singleline) xy(30,12) f("SecondWndHeader2") sz(a,a) extprm(1)
Desc      = a(sa) xy(,4) f("SecondWndDescription") extprm(1)


;----------------------------------------------------
[AvzSystemCleanUpWizard]
@ = [WizardTpl] onclose(if(checkPassword(#pwdc_StopTask, name), (if(state & #StateFlagActive, (setstate(#TASK_REQUEST_STOP), ctl.Cancel.enabled = 0, ctl.enabled = 0, modalLoop(state & #StateFlagActive))), true), false)) subst(BodyEx([AvzTempFileRemover_WizardPages]) Footer(subst(Back(use(0))))) alias(avzwizard.ex) ns(AVZ_SystemCleanUp) ext(1)

[AvzTempFileRemover_WizardPages]
@           = sz(p,p) ext(1)
Welcome     = [WizardPage] h(18575) subst(Name() Descr() Body([AvzTempFileRemover_Welcome]))
Search      = [WizardPage] h(18576) btns(Next(enable(0))) subst(Name() Descr() Body([AvzWizard_Progress] subst(Intro()))) onselect(ScriptMode = 1; savesettings(); setstate(#TASK_REQUEST_RUN))
Problems    = [WizardPage] h(18577) subst(Name() Descr() Body([AvzPrivacyCleanerWizard_Problems])) visible(state == #StateCompleted && Troubles.size())
Fix         = [WizardPage] h(55298) subst(Name() Descr() Body([AvzWizard_Progress] subst(Intro()))) onselect(ScriptMode = 2; savesettings(); setstate(#TASK_REQUEST_RUN)) visible(state == #StateCompleted && Troubles.size())
Finish      = [WizardPage] h(18578) $LastPage subst(Name() Descr() Body([AvzTempFileRemover_Finish]))

[AvzTempFileRemover_Welcome]
@	      = sz(p,p) ext(1)
Intro    = sz(p,a) xy(,,,28)

[AvzTempFileRemover_Finish]
@       =  sz(p,p) ext(1)
Intro   = a(la) sz(p,a)

[WipeRemoverDialog]
@ = [StyledWindowT] subst(BodyEx([WipeRemoverDialogBody])) at(dragable,minimizable,a_cancel) sz(640,500) i("Main") onclose1(if(f_IsStateActive(state),if(msg("ShredderStopConfirm", #m_yesno|#m_warning),(setstate(#TASK_REQUEST_STOP, name),1),0),1)) alias(fileshredder) ns(AVZ_Shredder) btns(Cancel(enable(!f_IsStateActive(state)))) h(18579)

[WipeRemoverDialogBody]
@            = sz(p,p) mg(20,25) xy(0)
Header       = a(lt) f("Wizard_Caption")
Line         = sz(p,1) a(la) xy(,20,,14) bg("WizardLine")
Descr        = a(la) xy(,5) f("SecondWndDescription")
FileLabel    = a(la) xy(,25) f("SecondWndHeader3")
Path         = t(edit) sz(350,a) nl(255) a(la) xy(,6) v(AvzWipePath) enable(!f_IsStateActive(state))
Browse       = $Button a(as) onclick(browseobject(AvzWipePath, "BrowseForFile", #SHELL_OBJTYPE_FOLDER|#SHELL_OBJTYPE_FILE)) text($Browse) xy(7,-2) enable(!f_IsStateActive(state))
Warning      = i("warning") a(la) f("SecondWndDescription") xy(,10)
MethodLabel  = a(la) xy(,30) f("SecondWndHeader3")
MethodSelect = [WipeMethodSelector] sz(350,a) a(la) xy(,6) enable(!f_IsStateActive(state))
Description  = sz(a,a) a(la) xy(,6) text(s_WipeRemoverMethodDescr(AvzWipeMethod)) f("SecondWndDescription")
Erase1       = [BtnGlass37] a(la) xy(,30) sz(144,37) visible(!f_IsStateActive(state)) enable(ctl.Path.value) onclick(if(checkSource(),if(dialog("WipeConfirmDialog"), if(apply(), setstate(#TASK_REQUEST_RUN, name) ))))
Erase2       = [ProgressButton] a(la) xy(,30) visible(f_IsStateActive(state))
Note         = a(as) f("SecondWndDescription") xy(20,10) visible(f_IsStateActive(state))
Error        = a(as) xy(20,10) i("crit") f("SecondWndDescriptionBold") visible(!f_IsStateActive(state) && lastErr)
ErrorText    = a(as) f("SecondWndDescription") xy(5) text(s_ProfileError(type, lastErr)) visible(!f_IsStateActive(state) && lastErr)

[ProgressButton]
@      = sz(144,36)
Left   = a(lt) bg("ButtonLoaderLeft") bp(ctl.animate(ctl.visible ? -1 : 0,2,true))
Center = a(at) bg("ButtonLoaderCenter") sz(p,36) xy(,,24) bp(ctl.animate(ctl.visible ? -1 : 0,2,true))
Right  = a(rt) bg("ButtonLoaderRight") bp(ctl.animate(ctl.visible ? -1 : 0,2,true))
Text   = a(lt) sz(p,p) ta(cc) text(ctl.parent.text) f("BtnSecondWndF")

[WipeMethodSelector]
@            = t(combo) sz(p,a) v(AvzWipeMethod) at(rememberdata)
WipeFast     = v(1)
WipeGost     = v(2)
WipeBS       = v(3)
WipeVSITR    = v(4)
WipeNAVSOMFM = v(5)
WipeNAVSORLL = v(6)
Wipe525022M  = v(7)

[WipeConfirmDialog]
@ = [StyledWindowT] at(dragable,a_ok,a_cancel) sz(420,a) subst(BodyEx([WipeConfirmDialogBody]) Footer(subst(Help(use(0))))) ext(1)

[WipeConfirmDialogBody]
@              = sz(p,a) mg(20,20) xy(0)
Icon           = sz(a,a) i("w32") a(lt)
Header         = a(lt) xy(50) sz(p,a) f("SecondWndHeader2")
Descr          = a(la) xy(50,20) f("SecondWndDescription")
PathText       = a(la) xy(50,20) f("SecondWndDescriptionBold")
Path           = a(la) xy(50,5) text(AvzWipePath) f("SecondWndDescription")
System         = a(la) xy(50,20) visible(IsSystemFile) f("SecondWndDescriptionRed")

;[WipeRemoverDoneDialog]
;@       = $DlgAttrBase sz(400,140) mg(35,20) at(a_ok,nohelp) ns(p_storage)
;Header  = a(la) f("Header4Lite") i("ok_state20")
;Descr   = a(la) xy(25,10) f("KtsHeader1Lite")