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

[MainWindow_Body.Protection]
@              = $TaskTab ext(1) h($IsKAV ? 16029 : 14940)
_PanelFooterBg  = $TaskTabFooterBg
Header         = f("Header6KGreen") xy(-1)
Descr          = at(readonly,noborder,nofocus) f("Description") a(la) xy(,,,15)
File_Monitoring = alias(taskview) [component_template] enable(f_isInstalled(ctl.id)) subst(Name(text($FileAntivirus))  Icon(i("FileAV_1"))    )   a(la) xy(,10)
Mail_Monitoring = alias(taskview) [component_template] enable(f_isInstalled(ctl.id)) subst(Name(text($MailAntivirus))   Icon(i("MailAV_1"))    )   a(la) xy(,) 
Web_Monitoring  = alias(taskview) [component_template] enable(f_isInstalled(ctl.id)) subst(Name(text($WebAntivirus))   Icon(i("WebAV_1"))     )   a(la) xy(,)
IM_Monitoring   = alias(taskview) [component_template] enable(f_isInstalled(ctl.id)) subst(Name(text($IMAntivirus))       Icon(i("ImAV_1"))      )   a(la) xy(,)
pdm             = alias(taskview) [component_template] enable(f_isInstalled(ctl.id)) subst(Name(text($Pdm))                 Icon(i("Pdm_1"))       )   a(la) xy(,)
antiphishing    = [component_template] enable($g_antiphishInstall) onclick(dialog("SettingChoiceAntiphishing")) subst(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) xy(,)
Firewall        = alias(taskview) [component_template] enable(f_isInstalled(ctl.id)) subst(Name(text($Firewall))            Icon(i("Firewall_1"))  )   a(la) xy(250,-181)
ids             = alias(taskview) [component_template] enable(f_isInstalled(ctl.id)) subst(Name(text($ids))           Descr(text($IdsDesc))            Icon(i("ids_1"))       )   a(la) xy(250,)
Anti_Spam       = alias(taskview) [component_template] enable(f_isInstalled(ctl.id)) subst(Name(text($Antispam))           Icon(i("AntiSpam_1"))  )   a(la) xy(250,)
AdBlocker       = alias(taskedit) [component_template] enable(f_isInstalled(ctl.id)) subst(Name(text($AdBlocker))     Descr(text($AdBlockerDescr))     Icon(i("anti_banner")) )   a(la) xy(250,)
ParCtl          = alias(taskedit) [component_template] enable(f_isInstalled(ctl.id)) subst(Name(text($ParCtl))                Icon(i("ParCtl_1"))   )   a(la) xy(250,)
netmon          = [Netmon_Line] a(la) xy(250,)
KAVWarning     = [MainWindow_Body.Protection.KAVWarning] a(ca) xy(,-7)
Radar          = [MainWindow.Protection_Radar] a(lb) xy(-32,-10)
;Stat           = [MainWindow.Protection_WorkArea_Home_Stat] a(la) sz(p,p) xy(,10,130)

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

[MainWindow.Protection_Radar]
Bg1          = at(clickable) bg("RadarBg1,0,0,1,0,0,1") onclick(window("MainThreats:Threats"))
Processed    = xy(22,16) f("Header0KGreen")
Detected     = xy(353,16) 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(22,16) f("Header0KGreen") text(ctl.DataCounters.BlockedTotal.value)
DetectedVal1 = a(ra) xy(22,4) f("Header0") text(ctl.DataCounters.BlockedVirware.value)
DetectedVal2 = a(ra) xy(22) f("Header0") text(ctl.DataCounters.BlockedTrojware.value)
DetectedVal3 = a(ra) xy(22) f("Header0") text(ctl.DataCounters.BlockedMalware.value)
DetectedVal4 = a(ra) xy(22) f("Header0") text(ctl.DataCounters.BlockedAdware.value)
DetectedVal5 = a(ra) xy(22) f("Header0") text(ctl.DataCounters.BlockedRiskware.value)
Bg2          = bg("RadarBg2") xy(22,35)
Animation    = [MainWindow.Protection_Radar_Animation] visible(s_IsStateRunning(Protection.state))
DataCounters = [MainWindow.Protection_WorkArea_Home_Stat_Counters]

[MainWindow.Protection_Radar_Animation]
Bg3          = bg("RadarBg3") xy(22,35)
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, 1, 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_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)

[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_Home_ProtectArea]
@           = sz(p,a) a(la) xy(,,,5) mg(10,7,10,10) at(btnlike) bg(ctl.selected ? "HilightBtn_sel" : (ctl.hotlight ? "HilightBtn" : "")) ext(1)
Icon        = [MergedIcon] sz(a,a)
Body        = [MainWindow.Protection_WorkArea_Home_ProtectArea_Body] a(as) sz(p,a)

[MergedIcon]
Icon        = extprm(1) a(lt) sz(a,a)
_align      = a(aa) sz(0,0)
IconSate    = extprm(1) a(pp) sz(a,a)

[MainWindow.Protection_WorkArea_Home_ProtectArea_Body]
Caption     = f("Header6Lite") a(lt) xy(-1) extprm(1)
;InfoLink    = [IconLink2] a(rt) xy(,7) sz(140,a) subst(Icon(a(lt) i("info")) Text(a(as) f("DescriptionBlue")) ) extprm(1)
Description = a(lt) sz(p,a) xy(0,23) f("Description") extprm(1)
DescrLink   = t(hotlink) a(la) f("DescriptionBlue") use(0) extprm(1)

[MainReport.Protection]
@ = [ProfileReport] subst(Group1([MainReport.Protection_Events]) Stat(use(0)) )

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

[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_Filters]
@
AllItems    = v("12000100042d;Ti14100000a10000000000000000;Ta1000000066;Ve1000000097;De000000001e;De100000001e;De100000001f;De100000001e;Ex100000001e;Ap00000100a8;Pa0000000024;Na0000000021;PI0000000045;Co000000001e;Ac100000006c;Ob100000012b;Ty100000003c;Pa2000000068;Na2000000087;Re2000000050;")
ByTask      = v("1200010003a7;Ti14100000ae0000000000000000;Ve10000000af;De0000000023;De1000000023;De1000000021;De1000000024;Ex1000000024;Ap00000100a8;Pa000000002a;Na000000002a;PI000000002a;Co000000002a;Ta140201005c;Ac100000006c;Ob10000000e6;Ty100000003c;Pa2000000055;Na2000000055;Re2000000050;") at(default)
ByApp       = v("120001000383;Ti14100000ae0000000000000000;Ap04020100a8;Pa000000002a;Na000000002a;PI000000002a;Co000000002a;Ta100001007a;Ve1000000096;De000000001e;De100000001e;De100000001e;De100000001e;Ex100000001e;Ac100000007b;Ob10000000fa;Ty100000003c;Pa200000005f;Na200000005f;Re2000000050;")

[MainWindow_Body.License]
@ =  $TaskTab ext(1) h(16158)
header     = [LicenseManager_Header] a(al) xy(-16,-9)
NoKeys     = [MainWindow.License_Body_NoKeys] xy(,60) visible( (global.KeyState & #eNoKeys) || !LicInfo.KeyInfo.KeyType )
Status     = [MainWindow.License_Body_Status] a(la) xy(20,20) visible( !ctl.NoKeys.visible )
Info       = [MainWindow.License_Body_Info] a(la) xy(,-20) visible(!$IsSubscription && !ctl.NoKeys.visible )
InfoSubscr = [MainWindow.License_Body_InfoSubscr] a(la) xy(100,20) visible($IsSubscription )
KeyLimitExceeded    = [KeyLimitExceeded] a(la)
BrokenKey           = [BrokenKey] a(la)
BrokenKeyReserve    = [BrokenKeyReserve] a(la)
Progress   = [MainWindow.License_Body_Progress] a(lt) sz(480,a) xy(,190) visible(!ctl.NoKeys.visible && !(global.KeyState & #eNoKeys) )
;Descr      = [MainWindow.License_Body_Descr] a(la) visible( !$IsContactSubscrProvider && ctl.Progress.visible && global.KeyState && !(global.KeyState & (#eNoKeys)) )
;Act        = [MainWindow.License_Body_Activation] a(lt) xy(,178) visible( !ctl.NoKeys.visible && !$IsSubscription  && !(global.KeyState & #eNoKeys) )
;ActSubscr  = [MainWindow.License_Body_ActivationSubscr] a(lt) xy(,178) visible( !ctl.NoKeys.visible && $IsSubscription && !(global.KeyState & #eNoKeys) )
;Bottom     = [MainWindow.License_Body_Bottom] 
Actions     = [MainWindow.License_Body_Actions] a(la) xy(15,15) visible(!$IsSubscription)
ActionsSubscr = [MainWindow.License_Body_ActionsSubscr] a(la) xy(0,15) visible($IsSubscription)
SeeEula     = $LinkKL a(ra) xy(,5) sz(a,a) onclick(dialog("EulaInfo"))
_PanelFooterBg  = $TaskTabFooterBg

;-------------------------------- MainWindow.License --------------------------------

[MainWindow_Info_Panel_Aero]
@ = [MainWindow_Info_Panel] a(la) at(btnlike) t() subst(Text(xy(36,0) f("Header6Lite"))) sz(p,a) mg(8,4) bg(ctl.selected ? "HilightBtn_sel" : (ctl.hotlight ? "HilightBtn" : "")) ext(1)

[ExtraItem]
@ = ext(1) sz(240, a) mg(8,4,8,7) at(btnlike) bg(ctl.selected ? "HilightBtn_sel" : (ctl.hotlight ? "HilightBtn" : ""))
Icon = extprm(1)
Text = a(ac) at(underlineoff) f("Header2KGreenLite") extprm(1)

[MainWindow_Body.AddSvc]
@           = $TaskTab ext(1) h($IsKAV ? 14822 : 14821)

_PanelFooterBg  = $TaskTabFooterBg

Header      = a(lt) sz(p,a) f("Header6KGreen")
Descr       = f("Description") a(la) xy(,,,5)

vkbd        = [MainWindow_Info_Panel_Aero] i("vkbd32") visible(f_isVkbdInstalled()) subst(Text(text($VirtualKB)) Desc(text($VkbdDesc))) onclick(window("VirtualKeyboard"))
parctl        = [MainWindow_Info_Panel_Aero] i("parctl") subst(Text(text($ParCtl)) Desc(text($ParCtlDesc))) onclick(window("OptionsWindow:ParCtl")) use(f_isInstalled("ParCtl"))

Extras      = a(la) sz(p,a) f("NavBtnSmall")
RD             = a(la) [ExtraItem] subst(Icon(i("rescue_cd32")) Text(text($RescueDisk)) ) onclick(window("MakeRescueDiskWizard"))
SystemRestore  = a(as) [ExtraItem] subst(Icon(i("TaskTroubleTweak32")) Text(text($Task_TroubleshootWizard))) onclick(f_AvzWizard("AvzTroubleshootWizard"))

IeTweak        = a(la) [ExtraItem] subst(Icon(i("TaskIeTweak32")) Text(text($Task_IeWizard)) ) onclick(f_AvzWizard("AvzSecurityTweakerWizard"))
PrivacyCleaner = a(as) [ExtraItem] subst(Icon(i("TaskPrivacyTweak32")) Text(text($Task_PrivacyCleanerWizard)) ) onclick(f_AvzWizard("AvzPrivacyCleanerWizard"))

Sniffer        = a(la) [ExtraItem] subst(Icon(i("sniffer32")) Text(text($Sniffer)) ) onclick(window("SnifferStatistic")) use(!$IsKAV) visible(Gui.ShowNetDetails) 

;align to bottom
_bottom  = a(lb) sz(p,1)
ksn = [MainWindow_Body.AddSvc.KSN] a(lp) sz(p,a)

[MainWindow_Body.AddSvc.KSN]
KaspNetHeader  = a(la) xy(,7) sz(p,a) f("NavBtnSmall") text($JoinKaspNet + ":") visible(!EnableStatistics)
KaspNet        = [MainWindow_Info_Panel_Aero] visible(!EnableStatistics) i("kaspnet") subst(Text(text($JoinKaspNetText)) Desc(text($JoinKaspNetDesc))) onclick(window("OptionsWindow:Feedback"))

[LicenseManager]
@ = [StyledCaptionWindowT] at(minimizable,a_close) sz(a,a) alias(taskview) h(16158) subst(Body([LicenseManager_Cont]) )

[LicenseManager_Cont]
@           = sz(530,a) bg("ColorWindow") ext(1)
hdr         = [LicenseManager_Header]
CenterPanel = [LicenseManager.CenterPanel] a(la) mg(23,15,23,8)

[LicenseManager2]
@      = $DlgAttrBase at(a_close, minimizable) mg(34,15,38,20) sz(600,500) h(4505)
Body = [MainWindow.License]

[LicenseManager_Header]
@           = sz(p,66) a(lt)
Caption     = a(lt) sz(p,a) xy(16,8) f("Header6KGreen")
Desc        = a(la) sz(p,a) xy(16,2) f("HeaderLicenseLite")
;Sep         = $StdFooterSeparator a(lb)

[LicenseManager.CenterPanel]
@           = sz(p,a)
Body        = [MainWindow.License_Body]

[MainWindow.License_Body]
@ = sz(p,a)
NoKeys     = [MainWindow.License_Body_NoKeys] xy(0,60) visible( (global.KeyState & #eNoKeys) || !LicInfo.KeyInfo.KeyType )
Status     = [MainWindow.License_Body_Status] a(la) xy(,,,20) visible( !ctl.NoKeys.visible )
;Info       = [MainWindow.License_Body_Info] a(la) visible(!$IsSubscription && !ctl.NoKeys.visible )
;InfoSubscr = [MainWindow.License_Body_InfoSubscr] a(la) visible($IsSubscription )
KeyLimitExceeded    = [KeyLimitExceeded] a(la)
BrokenKey           = [BrokenKey] a(la)
BrokenKeyReserve    = [BrokenKeyReserve] a(la)
Progress   = [MainWindow.License_Body_Progress] a(lt) xy(,100) visible(!ctl.NoKeys.visible && !(global.KeyState & #eNoKeys) )
;Descr      = [MainWindow.License_Body_Descr] a(la) visible( !$IsContactSubscrProvider && ctl.Progress.visible && global.KeyState && !(global.KeyState & (#eNoKeys)) )
;Act        = [MainWindow.License_Body_Activation] a(lt) xy(,178) visible( !ctl.NoKeys.visible && !$IsSubscription  && !(global.KeyState & #eNoKeys) )
;ActSubscr  = [MainWindow.License_Body_ActivationSubscr] a(lt) xy(,178) visible( !ctl.NoKeys.visible && $IsSubscription && !(global.KeyState & #eNoKeys) )
;Bottom     = [MainWindow.License_Body_Bottom]
Actions     = [MainWindow.License_Body_Actions] a(la) xy(0,15) visible(!$IsSubscription)
ActionsSubscr = [MainWindow.License_Body_ActionsSubscr] a(la) xy(0,15) visible($IsSubscription)
SeeEula     = $LinkKL a(ra) xy(,5) sz(a,a) onclick(dialog("EulaInfo"))

[MainWindow.License_Body_NoKeys]
@          = a(lt) sz(p,a)
Desc       = ta(c) a(as) sz(p,a) xy(12,0) f("Normal9_Bold_Red")

[MainWindow.License_Body_Status]
@              = sz(p,a)
ActiveLicText   = a(lt) sz(a,a) f("Normal9")
ActiveLic       = [Value] a(la) xy(0,6,20) subst(Name(a(as) sz(p,a) f("Normal9") ) Val($Link sz(148,a) f("Hotlink_Normal9") onclick(window("LicenseKeys")) text(f_KeySerNum(LicInfo.KeyInfo.KeySerNum))) ) visible(!$IsSubscription || $KeyDebug)
RemoveActiveLic = a(rs) xy(-5,0) i("listctrls,2") at(btnlike) onclick(if(msg("LicenseRemoveKeyWarning", #m_yesno) && checkPassword(#pwdc_SaveSettings), removeKey() ) ) visible((!$IsSubscription || $KeyDebug)&& !$HasReserveKey)
ActiveLicSubscr = [Value] a(la) xy(0,11,20) subst(Name(a(as) sz(p,a) f("Normal9")) Val(sz(148,a) f("Normal9") text(f_KeySerNum(LicInfo.KeyInfo.KeySerNum))) ) visible($IsSubscription && !$KeyDebug)
RemoveActiveLicSubscr= a(rs) xy(-5,0) i("listctrls,2") at(btnlike) onclick(if(msg("LicenseRemoveKeyWarning", #m_yesno) && checkPassword(#pwdc_SaveSettings), removeKey() ) ) visible(ctl.ActiveLicSubscr.visible)
ReserveLicText  = a(la) sz(a,a) xy(0,13) f("Normal9") visible($HasReserveKey)
ReserveLic      = [Value] a(la) xy(0,6,20) subst(Name(a(as) sz(p,a) f("Normal9")) Val($Link sz(148,a) f("Hotlink_Normal9") onclick(dialog("LicenseKeys")) text(f_KeySerNum(ResLicInfo.KeyInfo.KeySerNum))) ) visible($HasReserveKey)
RemoveReservLic = a(rs) xy(-5,0) i("listctrls,2") at(btnlike) onclick(if(msg("LicenseRemoveKeyWarning", #m_yesno) && checkPassword(#pwdc_SaveSettings), removeKey() ) ) visible($HasReserveKey)

[MainWindow.License_Body_Info]
@ = sz(p,a)
SepUp = a(la) sz(0,30) visible(!$HasReserveKey && !ctl.parent.KeyLimitExceeded.visible && !ctl.parent.BrokenKey.visible)
LicenseExpireDate   = [LicenseExpireDate] xy(0,0) visible(!(global.KeyState & (#eKeyExpired|#eKeyTrialExpired|#eNoKeys) ))
LicenseExpireDays   = [LicenseExpireDays] xy(0,0) visible(!(global.KeyState & (#eKeyExpired|#eKeyTrialExpired|#eNoKeys|#eKeyWillBeExpired|#eKeyAboutExpiration) ))
AboutExpirationText = text(s_AboutExpirationText(LicInfo.KeyInfo.KeyType)) a(ca) sz(p,a) f("Normal9_Bold_Red") xy(0,5) visible(!(global.KeyState & (#eKeyExpired|#eKeyTrialExpired|#eNoKeys)) && (global.KeyState&(#eKeyWillBeExpired|#eKeyAboutExpiration)) )
Text1   = f("Normal9_Bold_Red") a(ca) text(s_LicenseNoKeyText(global.LicRenewStatus)) xy(,,,5) visible(LicInfo.KeyInfo.KeyType && (global.KeyState & (#eKeyExpired|#eKeyTrialExpired) ))
Text2   = f("Normal_Bold_Red") a(ca) text(s_LicenseNoKeyHint(global.LicInfo.FuncLevel, global.KeyState)) visible(LicInfo.KeyInfo.KeyType && (global.KeyState & (#eKeyExpired|#eKeyTrialExpired) ))

[MainWindow.License_Body_InfoSubscr]
@ = sz(p,a)
SepUp = a(la) sz(p,30) visible(!($HasReserveKey))
Text1   = f(switch(SubscriptionStatus,"SubscrStatus_Font")) a(ca) text(s_LicenseSubscrText1(SubscriptionStatus)) xy(,,,5) visible(!(global.KeyState & (#eKeyLimited|#eKeyInvalid)))
Text2   = f(switch(SubscriptionStatus,"SubscrStatus_Font")) a(ca) text(s_LicenseSubscrText2(SubscriptionStatus)) visible(!(global.KeyState & (#eKeyLimited|#eKeyInvalid)) && AutoActivationError.ErrorCode == 0 && !SubscriptionTolerancePassed )
SubscrTolerancePassed= a(ca) f("Normal9_Red") visible(AutoActivationError.ErrorCode == 0 && SubscriptionTolerancePassed)
SubscrUpdateFailed  = a(ca) f("Normal9_Red") visible(AutoActivationError.ErrorCode != 0)
SubscrFailedReason  = t(hotlink) f("Hotlink_Normal") a(ca) ns(AutoActivationError) onclick(msg(s_LicenseError(ErrorCode), #m_error)) visible(ErrorCode != 0)

[MainWindow.License_Body_Actions]
@ = a(la) sz(p,a)
ReasonsAndSolutions = [WizardButton] a(la) xy(,,,5) visible( LicInfo.InvalidReason != #ekirInvalidBlacklist && !(global.KeyState & #eNoKeys) && global.KeyState & (#eKeyBlocked|#eKeyInvalid|#eKeyLimited|#eKeyUpdateFailed|#eKeyExpired|#eKeyTrialExpired) ) subst( Name() Descr() ) onclick(url($KeyErrorLink))
Update              = [WizardButton] a(la) xy(,,,5) visible( LicInfo.InvalidReason == #ekirInvalidBlacklist ) subst( Name() Descr() ) onclick(f_setState(f_IsStateActive(Updater.state) ? #TASK_REQUEST_STOP : #TASK_REQUEST_RUN, "Updater")) enable(!(Rollback.state & #StateFlagOperational))
BuyRenew            = [WizardButton] a(la) xy(,,,5) subst( Name() Descr() ) onclick(buy(global.LicRenewStatus != 2))
ActivateLic         = [WizardButton] a(la) subst( Name() Descr() ) onclick(f_Activate()) visible(!$HasReserveKey)

[MainWindow.License_Body_ActionsSubscr]
@ = a(la) sz(p,a)
ReasonsAndSolutions = [WizardButton] a(la) visible( LicInfo.InvalidReason != #ekirInvalidBlacklist && (global.KeyState & (#eKeyBlocked|#eKeyInvalid|#eKeyLimited|#eKeyUpdateFailed|#eKeyExpired|#eKeyTrialExpired) ) ) subst( Name() Descr() ) onclick(url($KeyErrorLink))
Update              = [WizardButton] a(la) xy(,,,5) visible( LicInfo.InvalidReason == #ekirInvalidBlacklist ) subst( Name() Descr() ) onclick(f_setState(f_IsStateActive(Updater.state) ? #TASK_REQUEST_STOP : #TASK_REQUEST_RUN, "Updater")) enable(!(Rollback.state & #StateFlagOperational))
UpdateStatus        = [WizardButton] a(la) subst( Name() Descr(text(s_ActivationSubscr_Description(SubscriptionStatus))) ) onclick(update_subscr_status())
ContactProvider     = [WizardButton] a(la) subst( Name() Descr() ) onclick(url($KeyProviderLink))

[ProgressGlass]
@   = ta(cc) f(ctl.enabled ? "BtnGlass" : "BtnGlassGray") ext(1)
L   = bg("BtnGlassLeft,0,3,2,1,4,2") sz(a,a) a(lt) extprm(1)
R   = bg("BtnGlassRight,0,3,2,1,4,2") sz(a,a) a(rt) extprm(1)
M   = bg("BtnGlassMiddle,0,3,2,1,4,2") sz(p,a) xy(6,,6) extprm(1)

[LicProgress]
@   = sz(p,a) ext(1)
Activated = [ProgressGlass] subst( R(bg(s_get_act_lic_r(LicInfo.InvalidReason)) ) M(bg(s_get_act_lic_m(LicInfo.InvalidReason))) L(bg(s_get_act_lic_l(LicInfo.InvalidReason))) ) sz(p,a) extprm(1)
Expires   = [ProgressGlass] subst( R(bg(s_get_exp_lic_r(LicInfo.InvalidReason)) ) M(bg(s_get_exp_lic_m(LicInfo.InvalidReason))) L(use(0)bg(s_get_exp_lic_l(LicInfo.InvalidReason))) ) sz(p,a) a(rs) bp(ctl.rsx=f_calcActive()) visible(f_calcActive()) extprm(1)
LT  = a(lc) sz(a,p) xy(6) f("Normal_Bold_White") visible( !(global.KeyState & #eNoKeys) ) extprm(1)
RT  = a(rc) sz(a,p) xy(6) f("Normal_Bold_White") visible( !(global.KeyState & #eNoKeys) ) extprm(1)

[LicProgressSubscr]
@   = sz(p,a) ext(1)
Activated = [ProgressGlass] subst( R(bg(s_get_act_lic_r(LicInfo.InvalidReason)) ) M(bg(s_get_act_lic_m(LicInfo.InvalidReason))) L(bg(s_get_act_lic_l(LicInfo.InvalidReason))) ) sz(p,a) extprm(1)
Expires   = [ProgressGlass] subst( R(bg(s_get_exp_lic_r(LicInfo.InvalidReason)) ) M(bg(s_get_exp_lic_m(LicInfo.InvalidReason))) L(use(0)bg(s_get_exp_lic_l(LicInfo.InvalidReason))) ) sz(p,a) a(rs) bp(ctl.rsx=f_calcActiveSubscr()) visible(f_calcActiveSubscr()) extprm(1)
LT  = a(lc) sz(a,p) xy(6) f("Normal_Bold_White") visible( !(global.KeyState & #eNoKeys) && SubscriptionStatus != #ssExpired ) extprm(1)
RT  = a(rc) sz(a,p) xy(6) f("Normal_Bold_White") visible( !(global.KeyState & #eNoKeys) && SubscriptionStatus != #ssExpired ) extprm(1)


[MainWindow.License_Body_Progress]
@          = sz(p,a)
Activated        = [Value] a(lt) sz(a,a) subst(Name() Val(a(as) text(date(LicInfo.LicenseDurationInfo.ActivationDate))) ) visible(!$IsSubscription)
Expires          = [Value] a(rs) sz(a,a) subst(Name() Val(a(as) text(date(LicInfo.LicenseDurationInfo.ExpirationDate))) ) visible(!$IsSubscription)
Progess          = [LicProgress] subst(LT() RT()) a(la) sz(p,19) xy(,10) visible(!$IsSubscription)
ActivatedSubscr  = [Value] a(lt) sz(a,a) subst(Name(text(s_ActivatedSubscr(SubscriptionStatus))) Val(a(as) text(date(LicInfo.LicenseDurationInfo.ActivationDate) ) )) visible($IsSubscription)
ExpiresSubscr    = [Value] a(rs) sz(a,a) subst(Name() Val(a(as) text(s_ExpiresSubscrDate(SubscriptionStatus))) ) visible($IsSubscription)
ProgessSubscr    = [LicProgressSubscr] subst(LT() RT(text(if(LicInfo.InvalidReason!=#ekirKeyInstallDateInvalid,s_ProgessSubscr_RT(SubscriptionStatus)) ))) a(la) sz(p,19) xy(,10) visible($IsSubscription)


[MainWindow.License_Body_Descr]
@          = sz(p,a)
Text       = t(richedit) at(readonly,noborder,nofocus) sz(p,a)

[MainWindow.License_Body_Activation]
@          = sz(p,a)
ActLic     = [WizardButton] subst(Name() Descr()) onclick(f_Activate()) visible(!$HasReserveKey)

[MainWindow.License_Body_ActivationSubscr]
@          = sz(p,60)
ActLic     = [WizardButton] subst(Name(text(s_ActivationSubscr_Caption(SubscriptionStatus))) Descr(text(s_ActivationSubscr_Description(SubscriptionStatus)))) onclick( ($IsContactSubscrProvider)? url($KeyProviderLink) : update_subscr_status() ) visible( switch( SubscriptionStatus,"ActivationSubscr_ActLic_Visible") || global.KeyState || LicInfo.InvalidReason!=#ekirValid) )
Descr      = t(richedit) at(readonly,noborder,nofocus) sz(p,a) a(lb)

[MainWindow.License_Body_Bottom]
@               = sz(p,a)
;Separator       = t(group) a(lt) sz(p,2) xy(0,0,0,20) at(3dborder)
;BuyRenew        = t(hotlink) a(rt) sz(a,a) f("Hotlink_Normal") xy(,10) onclick(buy(global.LicRenewStatus != 2)) visible(!$IsSubscription)
;SeeEula         = t(hotlink) a(lb) sz(a,a) f("Hotlink_Normal") xy(,6) onclick(dialog("EulaInfo"))
;MergeDelete     = t(hotlink) a(lt) sz(a,a) f("Hotlink_Normal") xy(,22) i("TaskLicense16") onclick(f_Activate()) visible( !$HasReserveKey && !(global.KeyState & #eNoKeys) && !$IsSubscription )
;UpdateSubscr    = t(hotlink) a(lt) sz(a,a) f("Hotlink_Normal") xy(,10) i("TaskLicense16") onclick(update_subscr_status()) visible( $IsSubscription )
;DeleteSubscr    = t(hotlink) a(la) sz(a,a) f("Hotlink_Normal") xy(,6) i("listctrls,2") onclick(if(msg("LicenseRemoveKeyWarning", #m_yesno) && checkPassword(#pwdc_SaveSettings), removeKey() ) ) visible( $IsSubscription )
;DeleteLic       = t(hotlink) a(lt) sz(a,a) f("Hotlink_Normal") xy(,22) i("listctrls,2") onclick(if(msg("LicenseRemoveKeyWarning", #m_yesno) && checkPassword(#pwdc_SaveSettings), removeKey() ) ) visible( $HasReserveKey )

[MainWindow.License]
@           = $TaskTab ext(1) h(4505)
WorkArea    = [MainWindow.License_WorkArea]

[MainWindow.License_WorkArea]
@       = $TaskWorkArea
Home    = [ProfileHome] subst(Header(subst(Icon(i("TaskLicense")) Caption(text($License)) Description(text($LicenseDescr)))) Tasks(use(0)) Group1([MainWindow.License_WorkArea_Body]) Group2([MainWindow.License_WorkArea_Home_Actions]))

[MainWindow.License_WorkArea_Body]
KeysInfo = [MainWindow.License_WorkArea_Home_Keys]

[MainWindow.License_WorkArea_Home_Keys]
@                   = sz(p,a) a(lc)
KeysList            = [KeysList]
NonSubscrBlock      = [NonSubscrBlock] visible(!$IsSubscription)
SubscrBlock         = [SubscrBlock] visible($IsSubscription)
KeyLimitExceeded    = [KeyLimitExceeded]
BrokenKey           = [BrokenKey]

[KeysList]
@           = sz(p,a) a(la) visible(LicInfo.KeyInfo.KeyType)
Caption1    = f("Bold") at(fixstyle) a(lt) xy(,10) mg(5,0)
ActiveSubs  = [Value] a(la) xy(7,7) subst(Name(text(f_KeySerNum(LicInfo.KeyInfo.KeySerNum))) Val(a(lt) xy(250) text(f_KeyTypeDescription(LicInfo.KeyInfo)))) visible($IsSubscription && !$KeyDebug)
ActiveKey   = [Value] a(la) xy(7,7) subst(Name(text(f_KeySerNum(LicInfo.KeyInfo.KeySerNum))) Val($Link a(lt) xy(250) text(f_KeyTypeDescription(LicInfo.KeyInfo)) onclick(dialog("LicenseKeys")))) visible(!$IsSubscription || $KeyDebug)
ReservedKey = [Value] a(la) xy(7,7) subst(Name(text(f_KeySerNum(ResLicInfo.KeyInfo.KeySerNum))) Val($Link a(lt) xy(250) text(f_KeyTypeDescription(ResLicInfo.KeyInfo)) onclick(dialog("LicenseKeys")))) visible(ResLicInfo.KeyInfo.KeyType)

[NoKeyStatus]
@       = sz(p,a) a(la) xy(,$Control_Shift) visible(global.KeyState & (#eKeyExpired | #eKeyTrialExpired | #eNoKeys))
Text1   = f("Bold11") a(ca) text(s_LicenseNoKeyText(global.LicRenewStatus)) xy(,,,10)
Text2   = f("Bold") a(ca) text(s_LicenseNoKeyHint(global.LicInfo.FuncLevel, global.KeyState))
AutoActivateErr = [AutoActivateError]

[AutoActivateError]
@        = sz(p,a) a(la) xy(,$Control_Shift) visible(Ins_ActivationCode != "" && AutoActivationError.ErrorCode != 0)
Error    = a(ca) xy(,$Control_Shift)
Activate = t(hotlink) f("Hotlink_Normal") a(ca) xy(,$Control_Shift) onclick(f_Activate())

[WaitingForKey]
@       = sz(p,a) a(la) xy(,$Control_Shift) visible(global.KeyState & #eKeyWaitActivation)
Text1   = f("Bold11") a(ca) xy(,,,10)
Text2   = a(ca)

[NonSubscrBlock]
@       = sz(p,a) a(sa)
NoKeyStatus         = [NoKeyStatus]
WaitingForKey       = [WaitingForKey]
LicenseExpireDate   = [LicenseExpireDate] xy(0,10) visible(f_IsKeyNotExpired(global.KeyState))
LicenseExpireDays   = [LicenseExpireDays] visible(f_IsKeyNotExpired(global.KeyState))

[SubscrBlock]
@       = sz(p,a) a(sa)
SubscriptionStatus  = [Value] a(la) xy(7,$Control_Shift) subst(Name() Val(a(lt) xy(250) text(s_SubscriptionStatus(SubscriptionStatus)))) visible(AutoActivationError.ErrorCode == 0 && !SubscriptionTolerancePassed)
SubscriptionFailed  = [Value] a(la) xy(7,$Control_Shift) subst(Name() Val(a(lt) xy(250) f("BoldRed")))                                   visible(AutoActivationError.ErrorCode != 0 || SubscriptionTolerancePassed)
SubscriptionExpDate = [Value] a(la) xy(7,4) subst(Name() Val(a(lt) xy(250) text(s_SubscriptionExpDate(SubscriptionStatus))))
SubscrTolerancePassed= a(ca) xy(,$Control_Shift) visible(AutoActivationError.ErrorCode == 0 && SubscriptionTolerancePassed)
SubscrUpdateFailed  = a(ca) xy(,$Control_Shift) visible(AutoActivationError.ErrorCode != 0)
SubscrFailedReason  = t(hotlink) f("Hotlink_Normal") a(ca) xy(,$Control_Shift) ns(AutoActivationError) onclick(msg(s_LicenseError(ErrorCode), #m_error)) visible(ErrorCode != 0)

[LicenseExpireDate]
@       = sz(a,18) a(ca) xy(,$Control_Shift)
Text1   = f("Bold") a(lb)
Text2   = f("Normal9_Bold") a(ab) text(" " + capitalize(datetime(LicInfo.LicenseDurationInfo.ExpirationDate), false))

[LicenseExpireDays]
@           = ext(1) sz(a,18) a(ca) xy(,$Control_Shift)
TextBefore  = f("Bold") a(ab)
Text        = f("Bold9") a(ab) text(" " + LicInfo.LicenseDurationInfo.DaysTillExpiration + " ")
TextAfter   = f("Bold") a(ab)

[KeyLimitExceeded]
@       = sz(p,a) a(ca) xy(,$Control_Shift) visible(global.KeyState & #eKeyLimited)
Text1   = f("Bold9Red") a(ct)
Text2   = f("BoldRed") a(ca)

[BrokenKey]
@       = sz(p,a) a(ca) xy(,$Control_Shift) visible(global.KeyState & (#eKeyInvalid|#eKeyBlocked))
Text    = f("Bold9Red") a(ct) text(s_KeyInvalidReason(LicInfo.InvalidReason)) ns(LicInfo)

[BrokenKeyReserve]
@       = sz(p,a) a(ca) xy(,$Control_Shift) visible( $HasReserveKey && global.ResLicInfo.InvalidReason != #ekirValid)
Text    = f("Bold9Red") a(ct) text(s_KeyInvalidReason(global.ResLicInfo.InvalidReason)) ns(global.ResLicInfo)

[BtnSquareLic]
@ = [BtnSquare] sz(130,83)

[MainWindow.License_WorkArea_Home_Actions]
SubscrProvider= [BtnSquareLic] a(lt) onclick(url($KeyProviderLink)) subst(Icon(i("LicBuy,0,0,0,0,0,1")) Name()) visible($IsSubscription)
BuyRenew    = [BtnSquareLic] a(lt) onclick(buy(global.LicRenewStatus != 2)) subst(Icon(i("LicBuy,0,0,0,0,0,1")) Name()) visible(!$IsSubscription)
AddRemove   = [BtnSquareLic] a(ct) onclick(f_Activate()) enable((global.KeyState & #eKeyWaitActivation) == 0) subst(Icon(i("LicActivate,0,0,0,0,0,1")) Name(text\
	($HasReserveKey	? $LicDelete	\
		: ($HasNoKeys ? $LicAdd		\
			: !$IsSubscription ? $LicAddDelete	\
				: ($IsRefreshSubAvail	? $LicRefreshDelete	: $LicDelete)))))
SeeEula     = [BtnSquareLic] a(rt) onclick(dialog("EulaInfo"))              subst(Icon(i("LicRead,0,0,0,0,0,1")) Name())

[EulaInfo]
@       = $DlgAttrBase at(a_close,nohelp) sz(350,328)
Text    = t(edit) at(multiline,readonly,vscroll) sz(p,p) xy(,,,$DialogPanelSizeY) text(const(filebody(env("EulaFile")))))

;-------------------------------- LicenseKeys --------------------------------

[LicenseKeys]
@       = $DlgAttrBase at(a_close) sz(350,a) h(4505) bg("MainWindow")
Body    = [LicenseKeys_Body]

[LicenseKeys_Body]
@           = $DlgBodyAttr sz(p,a)
ABody       = [AKey_Body]
ASeparator  = [License_Key_Separator]
RBody       = [RKey_Body]				visible(ResLicInfo.KeyInfo.KeyType)
RSeparator  = [License_Key_Separator]	visible(ResLicInfo.KeyInfo.KeyType)
Total       = [License_Total]			visible(LicInfo.DaysTillExpiration)

[License_Key_Separator]
@ = a(la) sz(p,8) at(fixstyle)

[License_Total]
@                   = a(la) sz(p,a) at(fixstyle) mg(5,5) xy(,,,$DialogPanelSizeY)
LicenseExpireDate   = [LicenseExpireDate]
LicenseExpireDays   = [LicenseExpireDays] mg(0,10)

[AKey_Body]
@           = sz(p,a) a(la) at(fixstyle) mg(5,5)
KeyHeader   = [AKey_Header]
KeyInfo     = [AKey_Info]

[AKey_Header]
@       = sz(p,a) at(singleline,fixstyle)
KeyIcon = i("privacy")
KeyType = xy(40,5) f("Bold") text($ActiveKey)

[AKey_Info]
@       = sz(p,a) a(la)
Keys    = [ConfigureWizard.ActivationChooseKey_Info_KeyInfo] ns(LicInfo)

[RKey_Body]
@           = sz(p,a) a(la) at(fixstyle) mg(5,5)
KeyHeader   = [RKey_Header]
KeyInfo     = [RKey_Info]

[RKey_Header]
@       = sz(p,a) at(singleline,fixstyle)
KeyIcon = i("privacy")
KeyType = xy(40,5) f("Bold") text($ReservedKey)

[RKey_Info]
@       = sz(p,a) a(la)
Keys    = [ConfigureWizard.ActivationChooseKey_Info_KeyInfo] ns(ResLicInfo)

;-------------------------------- Tasks --------------------------------

[Task.SecurityWizard]
@ = [TaskIcon] ext(1) subst(Icon(i("TaskSecurityTweak") onclick(f_AvzWizard("AvzSecurityAnalyzerWizard"))) Desc())

[Task.IeWizard]
@ = [TaskIcon] ext(1) subst(Icon(i("TaskIeTweak") onclick(f_AvzWizard("AvzSecurityTweakerWizard"))) Desc())

[Task.TroubleshootWizard]
@ = [TaskIcon] ext(1) subst(Icon(i("TaskTroubleTweak") onclick(f_AvzWizard("AvzTroubleshootWizard"))) Desc())

[Task.PrivacyCleanerWizard]
@ = [TaskIcon] ext(1) subst(Icon(i("TaskPrivacyTweak") onclick(f_AvzWizard("AvzPrivacyCleanerWizard"))) Desc())

[Task.RescueDiskWizard]
@ = [TaskIcon] ext(1) subst(Icon(i("TaskRescueCD") onclick(window("MakeRescueDiskWizard"))) Desc())

[Task.TrainWizard]
@ = [TaskIcon] ext(1) subst(Icon(i("TaskAsTrain") onclick(f_StartAntiSpamTrainingWizard()) Desc())

[Task.NetMon]
@ = [TaskIcon] ext(1) subst(Icon(i("TasksNetMon") onclick(window("NetworkMonitor"))) Desc()) use(f_isInstalled("Firewall"))

[Task.Sniffer]
@ = [TaskIcon] ext(1) subst(Icon(i("TaskPacketSniff") onclick(window("SnifferStatistic"))) Desc()) use(f_isInstalled("NetDetails"))

[Task.VKeyboard]
@ = [TaskIcon] ext(1) subst(Icon(i("TaskVkbd") onclick(window("VirtualKeyboard"))) Desc()) visible(f_isVkbdInstalled())

;-------------------------------- 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)
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)
Progress    = t(progress) a(la) xy(,17) sz(p,20) v(Completion)
CurObject   = [LValue] xy(,7) 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(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(Pages([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() Descr() Body([AvzTroubleshootWizard_Welcome]))
Search      = [WizardPage] h(15614) btns(Next(enable(0))) subst(Name() Descr() Body([AvzWizard_Progress] subst(Intro()))) onselect(if(Rollback, ScriptMode = 4, ScriptMode = 1); savesettings(); setstate(#TASK_REQUEST_RUN))
Problems    = [WizardPage] h(15615) subst(Name() Descr() Body([AvzTroubleshootWizard_Problems])) visible(state == #StateCompleted && Troubles.size())
Fix         = [WizardPage] h(15616) subst(Name() Descr() 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(15616) $LastPage subst(Name() Descr() 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)
Start         = $Radio v(0) xy(,) f("PIW_Radio") at(default) sz(a,a)
Rollback      = $Radio v(1) f("PIW_Radio") a(la) xy(,20) sz(a,a) enable(PersistentData.RollbackPossible)

[AvzTroubleshootWizard_Problems]
@       = sz(p,p) ext(1)
List    = [AvzTroubleshootWizard_Problems_List]

[AvzTroubleshootWizard_Problems_List]
@       = $List sz(p,p) xy(,,,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)
Reboot  = $Check a(la) xy(14,40) 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(Pages([AvzPrivacyCleanerWizardPages]) Footer(subst(Back(use(0))))) alias(avzwizard.ex) ns(AVZ_PrivacyCleaner) ext(1)

[AvzPrivacyCleanerWizardPages]
@           = sz(p,p) ext(1)
Welcome     = [WizardPage] h(15620) subst(Name() Descr() Body([AvzPrivacyCleanerWizard_Welcome]))
Search      = [WizardPage] h(15621) btns(Next(enable(0))) subst(Name() Descr() Body([AvzWizard_Progress] subst(Intro()))) onselect(if(Rollback, ScriptMode = 4, ScriptMode = 1); savesettings(); setstate(#TASK_REQUEST_RUN))
Problems    = [WizardPage] h(15622) subst(Name() Descr() Body([AvzPrivacyCleanerWizard_Problems])) visible(state == #StateCompleted && Troubles.size())
Fix         = [WizardPage] h(15623) subst(Name() Descr() 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(15624) $LastPage subst(Name() Descr() Body([AvzPrivacyCleanerWizard_Finish]))

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

[AvzPrivacyCleanerWizard_Problems]
@       = sz(p,p) ext(1)
List    = [AvzPrivacyCleanerWizard_Problems_List]

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

[AvzPrivacyCleanerWizard_Finish]
@       =  sz(p,p) onok(if(ctl.Reboot.value,restartOs()) ) ext(1)
Intro   = a(la) sz(p,a)
RunOnAppExit = $Check a(la) xy(,14) v(ApplyOnProductExit) visible(!Rollback)
Reboot  = $Check a(la) xy(14,40)  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(Pages([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() Descr() Body([AvzSecurityTweakerWizard_Welcome]))
Search      = [WizardPage] h(15584) btns(Next(enable(0))) subst(Name() Descr() Body([AvzWizard_Progress] subst(Intro()))) onselect(if(Rollback, ScriptMode = 4, ScriptMode = 1); savesettings(); setstate(#TASK_REQUEST_RUN))
Problems    = [WizardPage] h(15585) subst(Name() Descr() Body([AvzSecurityTweakerWizard_Problems])) visible(state == #StateCompleted && Troubles.size())
Fix         = [WizardPage] h(15586) subst(Name() Descr() 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() Descr() Body([AvzSecurityTweakerWizard_Finish]))

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

[AvzSecurityTweakerWizard_Problems]
@       = sz(p,p) ext(1)
List    = [AvzSecurityTweakerWizard_Problems_List]

[AvzSecurityTweakerWizard_Problems_List]
@       = $List sz(p,p) xy(,,,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)
Reboot  = $Check a(la) xy(14,40)  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(Pages([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(Pages([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(7098)
Error   = [WizardPage] subst(Name() Descr() Body([AvzWizard_Error])) visible(state == #StateFailed)
Finish  = [WizardPage] $LastPage subst(Name() Descr() Body([AvzCollectSysInfoWizardPages_Finish])) visible(state != #StateFailed) h(16458)

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

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

[AvzRunScriptWizard]
@ = [WizardTpl] onclose(if(state & #StateFlagActive, (setstate(#TASK_REQUEST_STOP), ctl.Cancel.enabled = 0, ctl.enabled = 0, modalLoop(state & #StateFlagActive))), true) subst(Pages([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(15743)
Exec    = [WizardPage] subst(Name() Descr() Body([AvzWizard_Progress])) onselect(ScriptMode = 0; savesettings(); setstate(#TASK_REQUEST_RUN)) h(15744)
Error   = [WizardPage] $LastPage subst(Name() Descr() Body([AvzWizard_Error])) h(15745)

[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]
$AlertActions   = a(la) sz(p,a) mg(7,7)
@               = t(dialog) at(nocaption,dragable,layered,alwaysontop,bottom,noautofocus) sz(350,a) xy(4,4,4,4) mg(1,1) bg("WindowOuterBorder") text(const(s_AlertDialogCaption(TaskType) + " - " + $ProductNameLong))
Border          = bg(const("Window" + s_NotifyWindowColor(s_DetectDanger2ProtSeverity(DetectDanger)) + "Border")) sz(p,p)
Inner           = [AlertDialogT_Inner]

[AlertDialogT_Inner]
@       = sz(p,a) xy(2,2,2,2) bg("ColorWindow")
Header1 = [AlertDialogT_Header1]
Header2 = [AlertDialogT_Header2]
Body    = a(la) sz(p,a) extprm(1)
Bottom  = [AlertDialogT_Bottom] visible($ShowNoLicReminder)
Footer  = [AlertDialogT_Footer]

[AlertDialogT_Header1]
@       = a(la) sz(p,49) bg(const(s_DlgHeader(DetectDanger))) extprm(1)
Logo    = sz(a,a) bg(s_ProductLogo(env("ProductType"))) a(lc) xy(10)
Help    = a(rc) sz(a,a) xy(17) at(btnlike) f("Header1White") onclick(help()) use(!$IsRD) enable($IsAdvancedDisinfectionStoped)

[AlertDialogT_Header2]
@       = a(la) sz(p,36) bg(const(s_ProtectionBannerBg(s_DetectDanger2ProtSeverity(DetectDanger)))) extprm(1)
Caption = [LabelShadow] a(cc) subst(B(text(const(s_AlertDialogCaption(TaskType))) f(s_ProtectionBannerBGFont(s_DetectDanger2ProtSeverity(DetectDanger))) ) F(f("ProtBanner"))) extprm(1)

[AlertDialogT_Footer]
@           = a(la) sz(p,33) mg(14) bg(const(s_DlgFooter(DetectDanger))) extprm(1)
Sep         = $StdFooterSeparator a(lt) xy(-14,,-14)
ApplyToAll  = t(check) sz(a,a) a(lc) v(bmask(ApplyToAll, #APPLYTOALL_TRUE)) oninit(if(ApplyToAll & #APPLYTOALL_SESSION_ONLY, ApplyToAll = ApplyToAll | #APPLYTOALL_SESSION) ) f("Header1White") extprm(1) use($UseApplyToAll)

[AlertDialogT_Bottom]
@       = a(la) sz(p,a) bg("AlertInfo") ext(1)
Top     = a(la) sz(p,1) bg("AlertInfoTop")
Text    = a(ca) sz(p,a) xy(,4) f("Normal_Bold_Red")
BuyLink = a(ca) sz(p,a) xy(,,,8) $LinkKL f("DescriptionBlueBold") onclick($IsTrialKeyExpired? buy(0) : $IsKeyExpired? buy(1) : $HasNoKeys? f_Activate() : buy(0) )

[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(17,17) extprm(1)
Buttom  = a(la) sz(p,1) bg("AlertInfoBottom")

[AlertDialogT_Green]
@ = [AlertDialogT] bg("AlertOutline") subst(Caption(subst(B(f("ProtBannerNormBg")))) Header1(bg("DlgHeader")) Header2(bg("ProtectionBanner")) Footer(bg("DlgFooter")) ApplyToAll(use(0)))

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

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

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

[AlertDialog_Descr]
Icon        = [AlertDialog_Descr_Icon]
Sandbox		= a(la) sz(a,a) xy(,,,7) f("Bold") text($RunningInSandbox) use(f_isSandboxed(nPID))
Object      = [AlertDialog_Descr_Object]
DetectT     = [AlertDialog_Descr_VirWare]
RegInfo     = [AlertDialog_Descr_RegInfo]
Parentage   = [AlertDialog_Descr_AppParentage]
ObjectC     = [AlertDialog_Descr_CreateObject]

[AlertDialog_Descr_Icon]
@       = a(la) sz(p,a)
IconSys = sz(a,a) i("system32") use(nPID == 0 || EventType == #PDM2_EVENT_NEGATIVE_PID || TaskType == "wmuf" || strInterceptor == "icq"  || strInterceptor == "msn" )
Icon    = sz(a,a) i(const(getIcon(sImagePath, sImagePath ? "unkapp" : "Main.big", 1))) at(clickable) onclick(dialog("AppRulesEdit:Image", p_image(sImagePath), p_appID(0))) use(nPID != 0 && EventType != #PDM2_EVENT_NEGATIVE_PID && TaskType != "wmuf" && strInterceptor != "icq"  && strInterceptor != "msn"))
Trouble = t(richedit) at(readonly,noborder,nofocus) mg(,10) a(as) sz(p,a) xy(17) text(const(s_AlertDialogTrouble(TaskType)))

[AlertDialog_Descr_Object]
@           = a(la) sz(p,a) use((ObjectName || nDestPID > 0) && TaskType != "hips_group" && ObjectType != #eRegKey)
Threat		=  a(la) xy(,) sz(p,a) f("Bold") use(TaskType == "pdm")
Name		= a(la) xy(,) sz(p,a) t(hotlink) onclick(url($ViruslistThreatLink)) text(s_PDM2_ByEventType(EventType)) f("Hotlink_Red") use(TaskType == "pdm")
ObjectL     = a(la) sz(a,a) xy(,14) f("Bold") text(s_AlertDialogObjectL(TaskType))
Object      = t(edit) at(readonly,singleline,compresspath,noborder) a(la) sz(p,a) text(f_displayPath(nPID, ObjectName)) use(ObjectName && ObjectType != #eNetwork)
ObjectDest  = t(hotlink) a(la) sz(p,a) f("Hotlink_Normal") text(f_ProcessInfo(nDestPID).Module.sImagePath) onclick(dialog("AppRulesEdit:Image", p_pid(nDestPID))) use(nDestPID > 0)
;ObjectNet   = a(la) sz(p,a) text(f_AlertNetAdressDescr(Data.Proto == 6, Data.Direction == #wsOut || Data.Direction == #wsOutStream)) use(ObjectType == #eNetwork)
ObjectNet   = a(la) sz(p,a) text(s_AlertNetAdressDescrEx(Data.Proto)) use(ObjectType == #eNetwork)

[AlertDialog_Descr_VirWare]
@           = a(la) sz(p,a) xy(,7) use(DetectType != #DETYPE_URGENT && DetectDanger < 0x8 && TaskType != "wmuf" && TaskType != "pdm" && TaskType != "hipstask")
Category    = a(la) xy(,7) f("Bold") text(s_VirwareCategory(TaskType,DetectType) ) use(s_Use_AlertDialog_VirWareCategory(TaskType))
Name        = a(la) xy(,) at(btnlike,singleline) f("Hotlink_Red") text(s_VirwareType(TaskType,DetectName)) onclick(s_AlertDetailsDialog(DetectType)) use(s_Use_AlertDialog_VirWareCategory(TaskType) && !EventType))

[AlertDialog_Descr_RegInfo]
@       = a(la) sz(p,a) xy(,17) use(TaskType == "hipstask" && 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  = a(la) sz(p,a) text(f_displayRegKey(nPID, ObjectName)) use(!bindok("Data.sValueName"))

[AlertDialog_Descr_AppParentage]
@       = a(la) sz(p,a) xy(,17) use((TaskType == "hipstask" || TaskType == "firewall") && nOwnerID)
Label   = sz(a,a) f("Bold")
Parent  = t(richedit) at(readonly,noborder,nofocus) a(la) mg(,9) sz(p,a)

[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_Body_Action]
@           = $AlertActions
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()) v(#ACTION_ALLOW)                      use(ActionsAll & #ACTION_ALLOW)                                                 onclick(if((TaskType == "hipstask" ? (ctl.ApplyToAll.value ? checkPassword(#pwdc_SaveSettings) : true) : true), (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()) 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))
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; if(dialog("PacketRuleCreate", p_appID(appID), p_netAct(Data)), 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($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)

[AlertDialog_ActionButton]
@ = [WizardButton] a(la) sz(p,a) enable(const(ActionsMask & ctl.value)) ext(1)

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

[MalwareInfo]
@           = $DlgAttrBase at(a_close,customfooter,nohelp) sz(376,400) alias(appinfo)
Hdr         = [MalwareInfo_Hdr]
Separator   = [MalwareInfo_Separator]
Tab         = [MalwareInfo_Tab]
Footer      = [DialogPanel] xy(-7,-7,-7,)
;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) bg("ColorWindow")
Ico     = sz(32,32) i(DetectDanger == #DETDANGER_HIGH ? "e32" : "w32")
Name    = a(ac) xy(7) sz(p,a) f("DetectDanger == #DETDANGER_HIGH ? Header1Red" : "Header1") text(s_MalwareInfo_Hdr(p_TaskType,DetectName))

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

[MalwareInfo_Tab]
@       = $Tab a(la) xy(,7,,$DialogPanelSizeY) rs(100,100)
Malware = [MalwareInfo_Tab_Malware]
File    = [MalwareInfo_Tab_File]

[MalwareInfo_Tab_File]
@       = sz(p,p) mg(7,7) use(sImagePath && p_TaskType != "antiphishing")
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,p) 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(s_DetectBehaviour(p_TaskType != "antiphishing" ? DetectBehaviour : 1000)))))
sep1        = $SettingsGroup xy(-17,14) a(la)
Details     = [MalwareInfo_Tab_Malware_Details] a(la) sz(p,a)
Info        = [MalwareInfo_Tab_Malware_info] a(rb) use(!$IsRD) sz(p,a)
sep2        = $SettingsGroup xy(-17,14) a(lb)

[MalwareInfo_Tab_Malware_Details]
Details = a(la) sz(p,a) xy(7,) text(s_BehaviourDetails(p_TaskType != "antiphishing" ? DetectBehaviour : 1000))

[MalwareInfo_Tab_Malware_info]
Text    = a(la) xy(7,1) sz(a,a)
Link    = t(hotlink) a(at) at(clickable) i("internet16") f("Hotlink") text($VirusListName) onclick(url(p_TaskType != "antiphishing" ? $ViruslistThreatLink : $ViruslistPhishingLink)) sz(a,a)

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

[HipsInfo]
@           = $DlgAttrBase at(a_close,customfooter,nohelp) sz(376,400)
Hdr         = [HipsInfo_Hdr]
Separator   = [MalwareInfo_Separator]
Body        = [HipsInfo_Body]
Footer      = [DialogPanel] xy(-7,-7,-7,)
;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) bg("ColorWindow")
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,p) xy(,50) bg("")
Details = a(la) sz(p,a) 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($VirusListName) 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)))
@       = $DlgAttrBase at(resizable,a_close,nohelp) sz(400,250) alias(settings)
Info    = t(richedit) at(readonly) sz(p,p) xy(,,,$DialogPanelSizeY) text(const($txt))

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

[PauseProtectionRequestDialog]
@    = $DlgAttrBase sz(380,a) at(a_cancel) bg("ColorWindow") h(15564) mg(0,0) onok(ResumeMode = ctl.Actions.value)
Header = [ProductHeader] sz(p,63)
Body = [PauseProtectionRequestDialog_Actions]

[PauseProtectionRequestDialog_Actions]
@           = $DlgBodyAttr sz(p,a) a(la) mg(10,10)
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)
Name    = sz(a,a) xy(,1) f(ctl.parent.font)
Time    = [PauseProtectionRequestDialog_TimeButton_Time] f(ctl.parent.font)

[PauseProtectionRequestDialog_TimeButton_Time]
@       = t(combo) a(at) xy(7,-1) 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)

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

[MainThreats]
$MainThreats_X = 620
$MainThreats_Y = 520
@       = $DlgAttrBase mg(0,0) at(resizable,minimizable,a_close) sz($MainThreats_X,$MainThreats_Y) alias(productstatus) prm(s_ProductStateList)
Header  = [ProductHeader] sz(p,54)
Banner  = [MainThreats_Banner] xy(206)
Tab     = [MainThreats_Tab]

[MainThreats_Banner]
@       = a(lt) sz(p,78) rs(100,0) bg(s_ProtectionSmallBannerBg(s_ProdStateSeverity(ProdStateId)))
BannerRs = xy(373) sz(p,a) bg(s_ProtectionSmallBannerRsBg(s_ProdStateSeverity(ProdStateId)))
Text    = [LabelShadow1] xy(80,30) a(lt) text(s_ProdState_Threats(ProdStateId)) f(s_ProtectionBannerSmBGFont(s_ProdStateSeverity(ProdStateId))) subst(F(f("ProtBannerSm")) )
Light   = sz(a,a) a(lt) xy(12,9) bg(s_ProtectionLightSmall(s_ProdStateSeverity(ProdStateId)))

[MainThreats_Tab]
@           = $DlgBodyAttr t(tab) a(la) xy(7,0,7,45) alias(taskview) onshow(ctl.StatusesList.focus())
Status      = [ProductStatesWindow_Body] h($IsKAT ? 16560 : 15772)
Threats     = [Product_Threats] h($IsKAT ? 16561 : 15771)
Statistics  = [MainThreats_Tab_Statistics] h(15775) use(!$IsRD && !$IsKAT)

[MainThreats_Tab_Statistics]
$A = [Value] a(sa) xy(,2) subst(Name([ChartLegend] subst(Text(text(capitalize(s_RepDetectType(
$B = )))) Color(bg(s_ChartBg(
$C = )))) ) Val(text(
$D = )) )
@       = sz(p,p) mg(7,7) ext(1)
TotalCounter = [MainWindow.Protection_WorkArea_Home_Stat_Counters]
PeriodSwitch = [MainThreats_Tab_Statistics_Switch] a(la) onchange( \
	ctl.parent.StatArea.StatAV.ChartsAV.Phishing.setfilter( s_MainThreats_Tab_Statistics_Filter(ctl.value, localtime()/(60*60*24)*(60*60*24),"&& (Counter == #ePhishing)")); \
	ctl.parent.StatArea.StatAV.ChartsAV.Malware.setfilter( s_MainThreats_Tab_Statistics_Filter(ctl.value, localtime()/(60*60*24)*(60*60*24),"&& (Counter == #eMalware)")); \
	ctl.parent.StatArea.StatAV.ChartsAV.Troj.setfilter( s_MainThreats_Tab_Statistics_Filter(ctl.value, localtime()/(60*60*24)*(60*60*24),"&& (Counter == #eTrojware)"));\
	ctl.parent.StatArea.StatOS.ChartsOS.Riskware.setfilter( s_MainThreats_Tab_Statistics_Filter(ctl.value, localtime()/(60*60*24)*(60*60*24),"&& (Counter == #eRiskware)"));\
	ctl.parent.StatArea.StatOS.ChartsOS.Software.setfilter( s_MainThreats_Tab_Statistics_Filter(ctl.value, localtime()/(60*60*24)*(60*60*24),"&& (Counter == #eXFiles)"));\
	ctl.parent.StatArea.StatOS.ChartsOS.Pornware.setfilter( s_MainThreats_Tab_Statistics_Filter(ctl.value, localtime()/(60*60*24)*(60*60*24),"&& (Counter == #ePornware)"));\
	ctl.parent.StatArea.StatOS.ChartsOS.Adware.setfilter( s_MainThreats_Tab_Statistics_Filter(ctl.value, localtime()/(60*60*24)*(60*60*24),"&& (Counter == #eAdware)"));\
	ctl.parent.StatArea.StatOS.ChartsOS.Vulnerability.setfilter( s_MainThreats_Tab_Statistics_Filter(ctl.value, localtime()/(60*60*24)*(60*60*24),"&& (Counter == #eVulnerability)"));\
	ctl.parent.StatArea.StatCF.ChartsCF.Attack.setfilter( s_MainThreats_Tab_Statistics_Filter(ctl.value, localtime()/(60*60*24)*(60*60*24),"&& (Counter == #eAttack)"));\
	ctl.parent.StatArea.StatCF.ChartsCF.Banner.setfilter( s_MainThreats_Tab_Statistics_Filter(ctl.value, localtime()/(60*60*24)*(60*60*24),"&& (Counter == #eBanner)"));\
	ctl.parent.StatArea.StatCF.ChartsCF.Spam.setfilter( s_MainThreats_Tab_Statistics_Filter(ctl.value, localtime()/(60*60*24)*(60*60*24),"&& (Counter == #eSpam)"));\
	ctl.parent.StatArea.StatCF.ChartsCF.UnwantedWebContent.setfilter( s_MainThreats_Tab_Statistics_Filter(ctl.value, localtime()/(60*60*24)*(60*60*24),"&& (Counter == #eUnwantedWebContent)"));\
	ctl.parent.TotalCounter.ScannedTotal.setfilter( s_MainThreats_Tab_Statistics_Filter(ctl.value, localtime()/(60*60*24)*(60*60*24),"&& (Counter == #eScannedOjects)")); \
	ctl.parent.StatArea.StatAV.ChartsAV.Virware.setfilter( s_MainThreats_Tab_Statistics_Filter(ctl.value, localtime()/(60*60*24)*(60*60*24),"&& (Counter == #eVirware)")) )

Scheduler    = $Check a(rt) xy(,2) ns(statistics_report_schedule) v(NSettings.treeFind("Childs", "EventID == " + #eNotifyStatisticsReportReady).CheckTray)
StatPeriodText = a(la) xy(4,14) sz(a,a) f("Header2") text(s_MainThreats_Tab_Statistics_TimePeriod(ctl.parent.PeriodSwitch.value, localtime()/(60*60*24)*(60*60*24)))
StatArea = [MainThreats_Tab_Statistics_Frame_Area] a(la)


ReportsBtn = $Button_Large a(rb) onclick(window("MainReport")) text($LinkFullReport)

[MainThreats_Tab_Statistics_Frame_Area]
@ = sz(p,p) b(System) bg("ColorWindow") xy(4,4,4,30)
StatAV         =[MainThreats_Tab_Statistics_Frame_AV] rs(100,33)
StatOS         =[MainThreats_Tab_Statistics_Frame_OS] rs(100,50)
StatCF         =[MainThreats_Tab_Statistics_Frame_CF] rs(100,100) use(!$IsKAV)

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

[MainThreats_Tab_Statistics_Frame_AV]
@=a(la) sz(p,p) mg(7,7)
Stat = [MainThreats_Tab_Statistics_FrameLegend_AV]
ChartsAV       = [MainThreats_Tab_Statistics_StatChart_AV]
;Sep = a(lb) sz(p,2) bg("GridGroup")

[MainThreats_Tab_Statistics_FrameLegend_AV]
@=a(la) sz(300,p) rs(0)
Header = [Value] subst(Name(f("Header2")) Val(text(ctl.ChartsAV.Virware.value + ctl.ChartsAV.Troj.value + ctl.ChartsAV.Malware.value + ctl.ChartsAV.Phishing.value) f("Header2")))
Virware = $A #eVirware $B #eVirware $C ctl.ChartsAV.Virware.value $D xy(10,4)
Troj = $A #eTrojware $B #eTrojware $C ctl.ChartsAV.Troj.value $D
Malware = $A #eMalware $B #eMalware $C ctl.ChartsAV.Malware.value $D
Phishing = $A #ePhishing $B #ePhishing $C ctl.ChartsAV.Phishing.value $D

[MainThreats_Tab_Statistics_StatChart_AV]
@       = $ChartStat a(as) sz(p,p) mg(10,17) xy(,11)
Plot    = t(chartplotarea)
AxisY   = $ChartStatAxisY
AxisX   = $ChartStatAxisX
Virware   = $ChartStatData bg(s_ChartBg(#eVirware)) v(Blocked) filter(Counter == #eVirware)  tt(s_RepDetectedType(#eVirware))
Troj   = $ChartStatData bg(s_ChartBg(#eTrojware)) v(Blocked) filter(Counter == #eTrojware) tt(s_RepDetectedType(#eTrojware))
Malware   = $ChartStatData bg(s_ChartBg(#eMalware)) v(Blocked) filter(Counter == #eMalware)  tt(s_RepDetectedType(#eMalware))
Phishing   = $ChartStatData bg(s_ChartBg(#ePhishing)) v(Blocked) filter(Counter == #ePhishing)   tt(s_RepDetectedType(#ePhishing))


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

[MainThreats_Tab_Statistics_Frame_OS]
@=a(la) sz(p,p) mg(7,7)
Stat = [MainThreats_Tab_Statistics_FrameLegend_OS]
ChartsOS       = [MainThreats_Tab_Statistics_StatChart_OS]
;Sep = a(lb) sz(p,2) bg("GridGroup")


[MainThreats_Tab_Statistics_FrameLegend_OS]
@=a(la) sz(300,p) rs(0)
Header = [Value] subst(Name(f("Header2")) Val(text(ctl.ChartsOS.Riskware.value + ctl.ChartsOS.Software.value + ctl.ChartsOS.Pornware.value + ctl.ChartsOS.Adware.value + ctl.ChartsOS.Vulnerability.value) f("Header2")))
Riskware = [Value] a(sa) xy(10,4) subst(Name([ChartLegend] subst( Text() Color(bg(s_ChartBg( #eRiskware ))) ) ) Val(text( ctl.ChartsOS.Riskware.value )) )
Software = $A #eXFiles $B #eXFiles $C ctl.ChartsOS.Software.value $D
Pornware = $A #ePornware $B #ePornware $C ctl.ChartsOS.Pornware.value $D
Adware = $A #eAdware $B #eAdware $C ctl.ChartsOS.Adware.value $D
Vulnerability = $A #eVulnerability $B #eVulnerability $C ctl.ChartsOS.Vulnerability.value $D

[MainThreats_Tab_Statistics_StatChart_OS]
@       = $ChartStat a(as) sz(p,p) mg(10,17) xy(,11)
Plot    = t(chartplotarea)
AxisY   = $ChartStatAxisY
AxisX   = $ChartStatAxisX
Riskware   = $ChartStatData bg(s_ChartBg(#eRiskware)) v(Blocked) filter(Counter == #eRiskware)  tt(s_RepDetectedType(#eRiskware))
Software   = $ChartStatData bg(s_ChartBg(#eXFiles)) v(Blocked) filter(Counter == #eXFiles) tt(s_RepDetectedType(#eXFiles))
Pornware   = $ChartStatData bg(s_ChartBg(#ePornware)) v(Blocked) filter(Counter == #ePornware)  tt(s_RepDetectedType(#ePornware))
Adware   = $ChartStatData bg(s_ChartBg(#eAdware)) v(Blocked) filter(Counter == #eAdware)   tt(s_RepDetectedType(#eAdware))
Vulnerability   = $ChartStatData bg(s_ChartBg(#eVulnerability)) v(Blocked) filter(Counter == #eVulnerability)   tt(s_RepDetectedType(#eVulnerability))


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

[MainThreats_Tab_Statistics_Frame_CF]
@=a(la) sz(p,p) mg(7,7)
Stat = [MainThreats_Tab_Statistics_FrameLegend_CF] xy(,7)
ChartsCF       = [MainThreats_Tab_Statistics_StatChart_CF]

[MainThreats_Tab_Statistics_FrameLegend_CF]
@=a(la) sz(300,p) rs(0)
Header = [Value] subst(Name(f("Header2")) Val(text(ctl.ChartsCF.Attack.value + ctl.ChartsCF.Banner.value + ctl.ChartsCF.Spam.value + ctl.ChartsCF.UnwantedWebContent.value) f("Header2")))
Attack = $A #eAttack $B #eAttack $C ctl.ChartsCF.Attack.value $D xy(10,4)
Banner = $A #eBanner $B #eBanner $C ctl.ChartsCF.Banner.value $D
Spam = $A #eSpam $B #eSpam $C ctl.ChartsCF.Spam.value $D
UnwantedWebContent = $A #eUnwantedWebContent $B #eUnwantedWebContent $C ctl.ChartsCF.UnwantedWebContent.value $D

[MainThreats_Tab_Statistics_StatChart_CF]
@       = $ChartStat a(as) sz(p,p) mg(10,17) xy(,11)
Plot    = t(chartplotarea)
AxisY   = $ChartStatAxisY
AxisX   = $ChartStatAxisX
Attack   = $ChartStatData bg(s_ChartBg(#eAttack)) v(Blocked) filter(Counter == #eAttack)  tt(s_RepDetectedType(#eAttack))
Banner   = $ChartStatData bg(s_ChartBg(#eBanner)) v(Blocked) filter(Counter == #eBanner) tt(s_RepDetectedType(#eBanner))
Spam   = $ChartStatData bg(s_ChartBg(#eSpam)) v(Blocked) filter(Counter == #eSpam)  tt(s_RepDetectedType(#eSpam))
UnwantedWebContent   = $ChartStatData bg(s_ChartBg(#eUnwantedWebContent)) v(Blocked) filter(Counter == #eUnwantedWebContent)   tt(s_RepDetectedType(#eUnwantedWebContent))

[StatisticsNotificationSchedulerDlg]
@ = $DlgAttr alias(settings) sz(340,185) onok(if(Type == #schtWeekly && !WeekDay0 && !WeekDay1 && !WeekDay2 && !WeekDay3 && !WeekDay4 && !WeekDay5 && !WeekDay6, balloon("SchedulerDaysEmpty"))) h(15868)
Scheduler = [StatisticsNotificationSchedulerDlg_Scheduler]

[StatisticsNotificationSchedulerDlg_Scheduler]
@ = $SettingsGroup xy(,7)
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)

[MainThreats_Tab_Statistics_Switch]
$Switch_item = a(ac) sz(a,a) at(radiolike) f((ctl.selected || ctl.focused)? "Hotlink_switch_selected" : "Hotlink_switch") bg(ctl.selected ? "YellowBack" : "") mg(7,3)
@         = at(enum,rememberdata) ext(1) sz(a,a)
Text      = sz(a,a) a(lt) xy(,3) use(0)
Today     = $Switch_item
Yesterday = $Switch_item
Week      = $Switch_item
Month     = $Switch_item
All       = $Switch_item 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)

[Product_Threats]
@           = sz(p,p) mg(7,7) ext(1)
Navigator   = [Product_Threats_Navigator]
Report      = [Product_Threats_Report]

[Product_Threats_Navigator]
@       = sz(p,28) rs(0,0)
Filter  = [Product_Threats_Navigator_Filter]
Save    = $Button sz(a,$Button_CY) a(rb) xy(0,4) onclick(ctl.Report.savereport()) use(!$IsKAT)

[Product_Threats_Navigator_Filter]
@           = t(combo) sz(225,a) onchange(ctl.Report.setfilter(ctl.value, 1))
Active      = v("ObjectStatus == #OBJSTATUS_NOTDISINFECTED") sz(0,0)
Vulnerability = v("DetectType == #DETYPE_VULNERABILITY") sz(0,0) use($IsKAT)
Quarantined = v("ObjectStatus == #OBJSTATUS_QUARANTINED || ObjectStatus == #OBJSTATUS_ADDEDBYUSER || ObjectStatus == #OBJSTATUS_FALSEALARM") sz(0,0)
Disinfected = v("ObjectStatus == #OBJSTATUS_DISINFECTED || ObjectStatus == #OBJSTATUS_DELETED || ObjectStatus == #OBJSTATUS_DELETED_ON_REBOOT || ObjectStatus == #OBJSTATUS_QUARANTINED_ON_REBOOT") sz(0,0)
All         = v("DetectType != -1") at(default) sz(0,0) use($IsKAT)
AllButVuln  = v("DetectType != #DETYPE_VULNERABILITY") at(default) sz(0,0) use(!($IsKAT))


[Product_Threats_Report_Footer]
@       = f("GridGroup") sz(p,22) rs(100,0) ext(1)
CureAll = t(hotlink) sz(a,a) a(lt) xy(5,4) f("Hotlink_Normal") onclick(ctl.Report.treatAll()) enable(AVService.NumUntreated)
AddToQB = t(hotlink) sz(a,a) a(at) xy(20,4) f("Hotlink_Normal") onclick(ctl.Report.addToQuarantine()) use(!$IsKAT)
border  = a(lt) sz(p,2) bg("GridGroup")

[Product_Threats_Report]
@           = $List at(rememberdata) alias(taskthreats) refresh(100) extprm(1) a(la)
Time        = sz(150) text(datetime(ReportTime)) filter(auto,s_date(dategroup(ReportTime))) group(date,dategroup(ReportTime))
Status      = sz(p) rs(17) text(s_DetectObjectStatus(ObjectStatus)) group(detobjstatus,ObjectStatus,default) filter(auto)
Detected    = sz(p) rs(31) text(s_DetectTypeEx(TaskType)) group(dettype,DetectType) filter(auto, s_DetectType(DetectType),s_DetectTypeEx(TaskType))
Object      = [Product_Threats_Report_Object]
Danger      = sz(p) rs(15) text(if(DetectType == #DETYPE_VULNERABILITY, s_VulDanger(DetectBehaviour), $DetectDangerText ))
row         = at(clickable) i(s_DetectObjectStatusIcon(ObjectStatus)) onrclick(menu("Product_Threats_Report_Menu"))
footer      = [Product_Threats_Report_Footer]

[Product_Threats_Report_Object]
@       = sz(p) rs(35) text(f_displayPath(nPID, ObjectName)) group(detobjtype, ObjectType) filter(auto,s_DetectObjectTypes(ObjectType))
Type    = sz(30) text(s_DetectObjectTypesEx(TaskType, ObjectType)) i(f_ObjTypeIconEx(TaskType, ObjectType, ObjectName))
Sandbox = sz(p) rs(10) text(f_isSandboxed(nPID) ? $RunningInSandbox : "") use(f_isInstalled("SandBox"))
Path    = sz(p) rs(35) text(objdir(f_displayPath(nPID, ObjectName)))
Name    = sz(p) rs(35) text(objfile(ObjectName))

[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&&ObjectStatus == #OBJSTATUS_NOTDISINFECTED)
Scan            = onclick(ctl.Report.treat()) at(default) visible((ObjectStatus == #OBJSTATUS_QUARANTINED||ObjectStatus == #OBJSTATUS_ADDEDBYUSER) && !$IsKAT) 
GotoToVulDesc   = onclick(url(f_VulnerUrl(DetectName))) at(default) visible(DetectType == #DETYPE_VULNERABILITY)
ViewOnWeb       = onclick(url($ViruslistThreatLink)) at(default) enable(!isNode) visible(DetectType!=#DETYPE_VULNERABILITY && ObjectStatus != #OBJSTATUS_ADDEDBYUSER && ObjectStatus != #OBJSTATUS_NOTDISINFECTED) use($IsKAT)
AddToExclude    = onclick(if(checkPassword(#pwdc_SaveSettings), f_addAppToTrusted(#true))) visible((ObjectStatus == #OBJSTATUS_INFECTED || ObjectStatus == #OBJSTATUS_SUSPICION || ObjectStatus == #OBJSTATUS_NOTDISINFECTED) && DetectName && f_TaskTypeExcludable(TaskType) && !$IsKAT) enable(!AVService.Excludes.isMandat())
GotoFile        = onclick( if(f_isSandboxed(nPID),$GotoFileVirt,$GotoFileReal) ) enable(!s_ObjTypeIsWeb(TaskType) && ObjectType == #ObjectFile) use(!$IsRD)
Discard         = onclick(ctl.Report.discard()) enable(!isNode)
;Delete          = onclick(ctl.Report.discard()) enable(!isNode) visible(ObjectStatus == #OBJSTATUS_NOTDISINFECTED)
Restore         = onclick(ctl.Report.restore()) enable(QBObjectId)
SendToKL        = onclick(ctl.Report.sendToKL()) use(env("ProductType") != "wks") enable((bindok("SendToKL") || $IsFunctionalityLevel_Protection) && (ObjectStatus == #OBJSTATUS_QUARANTINED || ObjectStatus == #OBJSTATUS_ADDEDBYUSER || ObjectStatus == #OBJSTATUS_FALSEALARM))
sep
TreatAll        = onclick(ctl.Report.treatAll()) enable(AVService.NumUntreated)
DiscardAll      = onclick(ctl.Report.discardAll()) enable(AVService.NumThreats)
sep
ViewOnWeb       = onclick(url($ViruslistThreatLink)) enable(!isNode) visible(DetectType!=#DETYPE_VULNERABILITY && ObjectStatus != #OBJSTATUS_ADDEDBYUSER && ObjectStatus == #OBJSTATUS_NOTDISINFECTED) use(!$IsRD)

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

[CheckProductPassword]
@       = $Dlg sz(320,a) h(6892)
Body    = [CheckProductPassword_Body]

[CheckProductPassword_Body]
@           = sz(p,a) xy(,,,$DialogPanelSizeY)
Descr       = [CheckProductPassword_Body_Descr]
EditBlock   = [CheckProductPassword_Body_EditBlock]

[CheckProductPassword_Body_Descr]
@           = sz(p,a) a(la)
Ico         = i("password")
DescrText   = a(as) sz(p,a) xy(12) text(s_PasswordConfirmReason(Reason))

[CheckProductPassword_Body_EditBlock]
@               = sz(p,a) a(la) xy(,15)
Pswd2CheckText  = xy(,2) sz(a,a)
Pswd2CheckEdit  = t(edit) a(at) xy(5) sz(p) at(password) onok(if(global.OPEP != hashMD5(ctl.value), (($IsWin2KOS)? msg("ErrPswrdWrong"):balloon("ErrPswrdWrong")) ))
Pswd2Save       = $Check a(sa) xy(,5,,5) v(SavePswd) use(Reason != #pwdc_Exit)

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

[NewAppSniffer]
@           = $DlgAttrBase at(a_close,noautofocus) sz(300,a) h(6319)
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,,$DialogPanelSizeY) 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(global.StateFilterMask)
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(global.StateFilterMask && !l_ShowSkipped)
AllOk       = [ProdStatusListItem] v(#ProdStateAllOk) visible(ProdStateId == #ProdStateAllOk)

[ProductStatesWindow_Body_StatusesList_rowedit]
@       = sz(p,p) mg(27,,,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 && !f_IsProdStateCritical(depend(val))) onclick(prodStateEnable(depend(val), global.StateFilterMask & prodStateBit(depend(val))))

[ProdStatusListItem]
@           = sz(p,a) ext(1) at(custom,cachetextsize) mg(,3,3) visible((global.ProductStateMask & prodStateBit(ctl.value)) && (l_ShowSkipped || !(global.StateFilterMask & prodStateBit(ctl.value))) && s_ProdStatusVisibleFilter(ctl.value))
Icon        = at(cachetextsize) sz(a,a) a(la) i(s_MainProtStatusIcon(s_ProdStateSeverity(ctl.parent.value))) xy(4,) enable(!(global.StateFilterMask & prodStateBit(ctl.parent.value)))
Name        = at(cachetextsize) sz(a,a) f(ctl.parent.focused ? "Bold9White" : (ctl.Icon.enabled ? "Bold9" : "Bold9Grey")) a(at) text(s_ProdState(ctl.parent.value)) xy(4,)
Descr       = at(cachetextsize) sz(a,a) a(sa) xy(,5,,4) f(ctl.parent.focused ? "Normal_White" : (ctl.Icon.enabled ? "Normal" : "Normal_Grey")) text(switch(ctl.parent.value, "ProdState_Description"))
MinVSize    = at(cachetextsize) sz(1,32) a(la) visible(ctl.parent.selected)

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

[AskQbPathDialog]
@           = $Dlg sz(300,a) at(ontop)
Body        = [AskQbPathDialog_Body]

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

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

[ProtectionComponents]
@ = [StyledCaptionWindowT] sz(a,a) at(minimizable,a_close) subst(Body([ProtectionComponents_Content])) h($IsKAV ? 16026 : 15972)

[ProtectionComponents_Content]
$Select1 = (ctl.ObjIcon1.selected)
$Select2 = (ctl.ObjIcon2.selected)
$Select3 = (ctl.ObjIcon3.selected)
@       = 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 = [ProductHeader] sz(p,48)
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_Body]
@          = $DlgBodyAttr
selector   = [Components_Selector_Pane] a(as)
components = [Components_Pane] a(as) sz(p,p)

[Components_Selector_Pane]
icons = [Components_Icons] xy(10,15) at(enum)
trees = [Components_Trees] a(as)

[Components_Icons]
ObjIcon1    = [PushRadioButtonBig] subst(IconSate(i(f_getFilesDataStateIcon(ctl.IconPushed.visible)))   IconNotSel(i("FilesData_na"))   IconPushed(i("FilesData"))   Name(text($PersonalSecurity))) a(sa) xy(,25)
ObjIcon2    = [PushRadioButtonBig] subst(IconSate(i(f_getSysAppStateIcon(ctl.IconPushed.visible)))      IconNotSel(i("SysApp_na")) IconPushed(i("SysApp")) Name(text($SystemSecurity))) a(sa) xy(,40)
ObjIcon3    = [PushRadioButtonBig] subst(IconSate(i(f_getProtOnlinesStateIcon(ctl.IconPushed.visible))) IconNotSel(i("Onlines_na")) IconPushed(i("Onlines")) Name(text($OnlineSecure))) a(sa) xy(,40)

[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")

[Components_Trees]
tree1    = bg("SelectorTree1") visible($Select1) a(ss)
tree2    = bg("SelectorTree2") visible($Select2) a(ss) xy(,36)
tree3    = bg("SelectorTree3") visible($Select3) a(ss) xy(,36)

[Components_Pane]
$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) )
File_Monitoring = alias(taskview) [component_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_template] enable(f_isInstalled(ctl.id)) subst(Name(text($MailAntivirus)) Descr(text($MailAntivirusDesc))  Icon(i("MailAV_1"))    )   a(la)
Web_Monitoring  = alias(taskview) [component_template] enable(f_isInstalled(ctl.id)) subst(Name(text($WebAntivirus )) Descr(text($WebAntivirusDesc ))  Icon(i("WebAV_1"))     )   a(la)
IM_Monitoring   = alias(taskview) [component_template] enable(f_isInstalled(ctl.id)) subst(Name(text($IMAntivirus))   Descr(text($IMAntivirusDesc))    Icon(i("ImAV_1"))      )   a(la)
HipsTask        = alias(taskview) [component_template] enable(f_isInstalled(ctl.id)) subst(Name(text($Hips))          Descr(text($AppCtrlDescription)) Icon(i("Hips_1"))      )   a(la)
pdm             = alias(taskview) [component_template] enable(f_isInstalled(ctl.id)) subst(Name(text($Pdm))           Descr(text($PdmDesc))            Icon(i("Pdm_1"))       )   a(la)
Firewall        = alias(taskview) [component_template] enable(f_isInstalled(ctl.id)) subst(Name(text($Firewall))      Descr(text($FirewallDesc))       Icon(i("Firewall_1"))  )   a(la)
ids             = alias(taskview) [component_template] enable(f_isInstalled(ctl.id)) subst(Name(text($ids))           Descr(text($IdsDesc))            Icon(i("ids_1"))       )   a(la)
Anti_Spam       = alias(taskview) [component_template] enable(f_isInstalled(ctl.id)) subst(Name(text($Antispam))      Descr(text($AntispamDesc))       Icon(i("AntiSpam_1"))  )   a(la)
netmon          = [Netmon_Line] a(la)
antiphishing    = [component_template] enable($g_antiphishInstall) onclick(dialog("SettingChoiceAntiphishing")) subst(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_template] enable(f_isInstalled(ctl.id)) subst(Name(text($AdBlocker))     Descr(text($AdBlockerDescr))     Icon(i("anti_banner")) )   a(la)
ParCtl          = alias(taskedit) [component_template] enable(f_isInstalled(ctl.id)) subst(Name(text($ParCtl))        Descr(text($ParCtlDesc))         Icon(i("ParCtl_1" )) State(onclick((s_IsStateRunning(state)) ? (if(checkPassword(#pwdc_SaveSettings), enable(false))) : (if(checkPassword(#pwdc_SaveSettings)&&f_ParCtlPasswordNotEnabled2(), enable(true)))))  )   a(la)

[Netmon_Line]
; [Netmon_Line] standalone because Components_Pane already has section 'Firewall', but we need alias(taskview) here
@ = enable(f_isInstalled("Firewall")) onclick(window("NetworkMonitor")) bg(ctl.hotlight ? "HilightBtn" : "") sz(p,36)
Firewall   = alias(taskview) [component_template] subst(Name(text($NetMonitor)) Descr(text($NetMonDesc)) Icon(sz(26,a) i("NetMon_1")))

[component_template]
@          = sz(220,30) ext(1) at(btnlike) bg(ctl.selected ? "HilightBtn_sel" : (ctl.hotlight || ctl.State.hotlight ? "HilightBtn" : "")) onclick(window("OptionsWindow:" + name))
State      = i(ctl.enabled ? f_getStateSemaphor(state) : "GreenSemaphorSmall") a(rc) xy(10) onclick(if(checkPassword(#pwdc_SaveSettings), enable(!s_IsStateRunning(state) && state != #StateFailed))) at(clickable) extprm(1)
Icon       = a(lc) xy(5) extprm(1)
Component  = [component_info] a(ac)

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

[component_caption]
@ = sz(p,a)
Name       = extprm(1) a(as) f("ComponentName")
AlarmSep   = a(as) f("ComponentName") visible(#StateFailed == state)
Alarm      = t(hotlink) a(as) f("ComponentAlarm") visible(#StateFailed == state) onclick(f_ComponentFailErrorLink())

[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]
Name       = extprm(1) a(ls) f("ComponentName")
Descr      = extprm(1) a(sa) f("ComponentDesc") at(singleline) sz(450) xy(,-3)

[SettingChoiceAntiphishing]
@       = t(dialog) at(dragable,a_close) sz(540,a) bg("ColorWindow") mg(10,10) h($IsKAV ? 16086 : 15971)
Body    = [SettingChoiceAntiphishing_Body]

[SettingChoiceAntiphishing_Body]
@           = $DlgBodyAttr sz(p,a)
Icon        = i("anti_phish_1")
Header      = a(as) f("Header2") xy(10,3)
Description = a(sa) xy(,7,,15) f("Description")
web         = [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          = [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"))
as          = [component_selector] enable(f_isInstalled("Anti_Spam"))      a(sa) xy(,5,,20) subst(ico(i("AntiSpam_1")) Descr(text($AntispamDesc))     Name(text($Antispam)))         onclick(window("OptionsWindow:Anti_Spam"))
