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

[MainWindow_Body.Protection]
@              = $TaskTab ext(1) h(26030) mg(0,0,0,0) at(enum)
Body            = [MainWindow_Body.Protection_General] a(lt)
ImageCounter    = [MainWindow.Protection_ImageCounter] a(rb) xy(16,11)
;DataSecurity   = [MainWindow.Protection_WorkArea_Home_ProtectArea] subst(IconSate(i(f_getFilesDataStateIcon(true)))   Icon(i("FilesData")) Caption() Description() DescrLink(use(0)                         onclick(window("HipsRules:ConfRes:" + #riKLPrivateData)))  InfoLink(subst(Text())) ) onclick(window("ProtectionComponents:ObjIcon1"))
;SystemSecurity = [MainWindow.Protection_WorkArea_Home_ProtectArea] subst(IconSate(i(f_getSysAppStateIcon(true)))      Icon(i("SysApp"))    Caption() Description() DescrLink(use(0)                         onclick(window("SystemMonitor:Running")))                  InfoLink(subst(Text())) ) onclick(window("ProtectionComponents:ObjIcon2"))
;OnlineSecurity = [MainWindow.Protection_WorkArea_Home_ProtectArea] subst(IconSate(i(f_getProtOnlinesStateIcon(true))) Icon(i("Onlines"))   Caption() Description() DescrLink(use(f_isInstalled("Firewall")) enable(f_IsStateActive(Firewall.state)) onclick(window("NetworkMonitor")))                         InfoLink(subst(Text())) ) onclick(window("ProtectionComponents:ObjIcon3"))
;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_General]
@              = sz(a,a) ontimer(1000, l_BlicMediumCounter = l_BlicMediumCounter + 1) xy(16,14)
DataSecurity   = [MainWindow.Protection_WorkArea_Home_RadioLike] a(lt) subst(StatusValue(v(f_getFilesDataStateIcon(true)))   Caption() Description() Body([MainWindow.Protection_Files_and_data] visible( l_ClickCount==0x0101 ) )) onclick( if(l_ClickCount & 0x0100, if(l_ClickCount & 0x00FF, l_ClickCount = 0x0100, l_ClickCount = 0x0101), l_ClickCount = 0x0101))
brd1           = a(la) sz(p,9)
SystemSecurity = [MainWindow.Protection_WorkArea_Home_RadioLike]       subst(StatusValue(v(f_getSysAppStateIcon(true)))      Caption() Description() Body([MainWindow.Protection_System]         visible( l_ClickCount==0x0201 ) )) onclick( if(l_ClickCount & 0x0200, if(l_ClickCount & 0x00FF, l_ClickCount = 0x0200, l_ClickCount = 0x0201), l_ClickCount = 0x0201)) 
brd2           = a(la) sz(p,9)
OnlineSecurity = [MainWindow.Protection_WorkArea_Home_RadioLike]       subst(StatusValue(v(f_getProtOnlinesStateIcon(true))) Caption() Description() Body([MainWindow.Protection_LAN]            visible( l_ClickCount==0x0401 ) )) onclick( if(l_ClickCount & 0x0400, if(l_ClickCount & 0x00FF, l_ClickCount = 0x0400, l_ClickCount = 0x0401), l_ClickCount = 0x0401))

[MainWindow.Protection_ImageCounter]
;$TotalCounterValue = 41745
$TotalCounterValue = ctl.DataCounters.ScannedTotal.value
$count_frame = 4
$IsLoop = false
@            =  sz(a,a) a(rc) ontimer(2000, if( l_init, l_num = ImageCounter($TotalCounterValue, l_init), l_init = $TotalCounterValue); updatedata()) visible(!(l_ClickCount & 0x00FF))
DataCounters = [MainWindow.Protection_WorkArea_Home_Stat_Counters]
Text         = a(lc) mg(,5) xy(,,4) f("Description") text($TotalScanned)
_9           = a(as) visible( l_num.size() >= 20 ) bg("CounterAnimat") bp( if(l_num.size(), ctl.animate(-1, 1, true, l_num[18] * $count_frame, l_num[19] * $count_frame, $IsLoop )))
_8           = a(as) visible( l_num.size() >= 18 ) bg("CounterAnimat") bp( if(l_num.size(), ctl.animate(-1, 1, true, l_num[16] * $count_frame, l_num[17] * $count_frame, $IsLoop ))) xy(5,)
_7           = a(as) visible( l_num.size() >= 16 ) bg("CounterAnimat") bp( if(l_num.size(), ctl.animate(-1, 1, true, (l_num.size() >= 16 ? l_num[14] * $count_frame : 0), ( l_num.size() >= 16 ? l_num[15] * $count_frame : 0), $IsLoop )))
_6           = a(as) visible( l_num.size() >= 14 ) bg("CounterAnimat") bp( if(l_num.size(), ctl.animate(-1, 1, true, (l_num.size() >= 14 ? l_num[12] * $count_frame : 0), ( l_num.size() >= 14 ? l_num[13] * $count_frame : 0), $IsLoop )))
_5           = a(as) visible( l_num.size() >= 12 ) bg("CounterAnimat") bp( if(l_num.size(), ctl.animate(-1, 1, true, (l_num.size() >= 12 ? l_num[10] * $count_frame : 0), ( l_num.size() >= 12 ? l_num[11] * $count_frame : 0), $IsLoop ))) xy(5,)
_4           = a(as) visible( l_num.size() >= 10 ) bg("CounterAnimat") bp( if(l_num.size(), ctl.animate(-1, 1, true, (l_num.size() >= 10 ? l_num[8] * $count_frame : 0), ( l_num.size() >= 10 ? l_num[9] * $count_frame : 0), $IsLoop )))
_3           = a(as) visible( l_num.size() >= 8 ) bg("CounterAnimat") bp( if(l_num.size(), ctl.animate(-1, 1, true, (l_num.size() >= 8 ? l_num[6] * $count_frame : 0), ( l_num.size() >= 8 ? l_num[7] * $count_frame : 0), $IsLoop )))
_2           = a(as) bg("CounterAnimat") bp( if(l_num.size(), ctl.animate(-1, 1, true, (l_num.size() >= 6 ? l_num[4] * $count_frame : 0), ( l_num.size() >= 6 ? l_num[5] * $count_frame : 0), $IsLoop )) ) xy(5,)
_1           = a(as) bg("CounterAnimat") bp( if(l_num.size(), ctl.animate(-1, 1, true, (l_num.size() >= 4 ? l_num[2] * $count_frame : 0), ( l_num.size() >= 4 ? l_num[3] * $count_frame : 0), $IsLoop )))
_0           = a(as) bg("CounterAnimat") bp( if(l_num.size(), ctl.animate(-1, 1, true, (l_num.size() >= 2 ? l_num[0] * $count_frame : 0), ( l_num.size() >= 2 ? l_num[1] * $count_frame : 0), $IsLoop )))

[MainWindow.Protection_WorkArea_Home_RadioLike]
@            = at(radiolike) a(la) sz(454,a) mg(0,0) ext(1)
StatusValue  = $ValPrm
_Top         = sz(a,7) a(lt) bg("MyProtLenta_top_" + s_getProtBlockColor(ctl.StatusValue.value)) ontimer(1000, if(!((l_BlicMediumCounter + s_BlicMediumCounter_Shift(ctl.parent.id)) % 12), ctl.animate(65, 1, true)))
_Middle      = sz(a,p) a(lt) bg("MyProtLenta_middle_" + s_getProtBlockColor(ctl.StatusValue.value)) xy(,7,,7)
_Bottom      = sz(a,7) a(lb) bg("MyProtLenta_bottom_" + s_getProtBlockColor(ctl.StatusValue.value))
Switch       = sz(a,a) a(rt) xy(14,19) bp(ctl.hotlight = ctl.parent.hotlight) i("MyProtLenta_Switchers," + (ctl.Body.visible ? "3,5,4,0,0,4" : "0,2,1,0,0,1"))
General      = [MainWindow.Protection_WorkArea_Home_RadioLike_General] a(lt) xy(14,1,1,1)

[MainWindow.Protection_WorkArea_Home_RadioLike_General]
@             = sz(p,a)
_ExpandSZFix  = a(lt) sz(p,221) rs(0,0) visible(ctl.Body.visible)
Header        = [MainWindow.Protection_WorkArea_Home_Header]
Body          = sz(p,p) a(la) xy(,-5) mg(0,,16,16) extprm(1)

[MainWindow.Protection_WorkArea_Home_Header]
@           = sz(p,a) mg(6,15,40,15)
Caption     = a(lt) f("ProtectionHeader") extprm(1) sz(p,a) xy(-1)
DescrArea   = [MainWindow.Protection_WorkArea_Home_Header_DescriptionArea]

[MainWindow.Protection_WorkArea_Home_Header_DescriptionArea]
@             = a(la) sz(p,a) xy(,3) visible(ctl.Body.visible || !(l_ClickCount & 0x00FF))
_CollapsSZFix = a(lt) sz(p,40) rs(0,0) visible(!(l_ClickCount & 0x00FF))
Description   = a(lt) sz(p,a) f("Description") extprm(1)

[MainWindow.Protection_Files_and_data]
File_Monitoring = [combobox_template] subst(Name(text($FileAntivirus)) ) onclick(window("combobox_menu_File_Monitoring", p_UseCtx()))
HipsTask        = [combobox_template] subst(Name(text($Hips)) )          onclick(window("combobox_menu_HipsTask", p_UseCtx()))
pdm             = [combobox_template] subst(Name(text($Pdm)) )           onclick(window("combobox_menu_pdm", p_UseCtx()))
Link            = $LinkKL onclick(window("HipsRules:ConfRes:" + #riKLPrivateData)) a(rb) use(f_isInstalled("HipsTask") && $IsKIS)

[MainWindow.Protection_System]
col_1 = [MainWindow.Protection_System_col_1] a(la) sz(p,a) rs(50,0)
col_2 = [MainWindow.Protection_System_col_2] a(as) sz(p,a) xy(14)
Link  = $LinkKL onclick(window("SystemMonitor:Programs:Running")) a(rb) use(f_isInstalled("HipsTask") && $IsKIS)

[MainWindow.Protection_System_col_1]
Mail_Monitoring = [combobox_template] subst(Name(text($MailAntivirus)) ) onclick(window("combobox_menu_Mail_Monitoring", p_UseCtx()))
Web_Monitoring  = [combobox_template] subst(Name(text($WebAntivirus )) ) onclick(window("combobox_menu_Web_Monitoring", p_UseCtx()))
IM_Monitoring   = [combobox_template] subst(Name(text($IMAntivirus)) )   onclick(window("combobox_menu_IM_Monitoring", p_UseCtx()))
HipsTask        = [combobox_template] subst(Name(text($Hips)) )          onclick(window("combobox_menu_HipsTask", p_UseCtx()))

[MainWindow.Protection_System_col_2]
SW2             = [combobox_template] subst(Name(text($SW2)) )           onclick(window("combobox_menu_SW2", p_UseCtx()))
pdm             = [combobox_template] subst(Name(text($Pdm)) )           onclick(window("combobox_menu_pdm", p_UseCtx()))
ids             = [combobox_template] subst(Name(text($ids)) )           onclick(window("combobox_menu_ids", p_UseCtx()))
Anti_Spam       = [combobox_template] subst(Name(text($Antispam)) )      onclick(window("combobox_menu_Anti_Spam", p_UseCtx()))

[MainWindow.Protection_LAN]
col_1 = [MainWindow.Protection_LAN_col_1] a(la) sz(p,a) rs(50,0)
col_2 = [MainWindow.Protection_LAN_col_2] a(as) sz(p,a) xy(14)
Link  = $LinkKL onclick(window("NetworkMonitor")) a(rb) use(f_isInstalled("Firewall"))

[MainWindow.Protection_LAN_col_1]
Mail_Monitoring = [combobox_template] subst(Name(text($MailAntivirus)) ) onclick(window("combobox_menu_Mail_Monitoring", p_UseCtx()))
Web_Monitoring  = [combobox_template] subst(Name(text($WebAntivirus )) ) onclick(window("combobox_menu_Web_Monitoring", p_UseCtx()))
IM_Monitoring   = [combobox_template] subst(Name(text($IMAntivirus)) )   onclick(window("combobox_menu_IM_Monitoring", p_UseCtx()))
Firewall        = [combobox_template] subst(Name(text($Firewall)) )      onclick(window("combobox_menu_Firewall", p_UseCtx()))
ids             = [combobox_template] subst(Name(text($ids)) )           onclick(window("combobox_menu_ids", p_UseCtx()))

[MainWindow.Protection_LAN_col_2]
Anti_Spam       = [combobox_template] subst(Name(text($Antispam)) )      onclick(window("combobox_menu_Anti_Spam", p_UseCtx()))
antiphishing    = [combobox_template] subst(Name(text($antiphishing))    IconCmb( i(s_getStateIcon( depend(f_antiphishOnOff()) ) ) ) ) onclick(window("combobox_menu_antiphishing", p_UseCtx()) ) -use() use($g_antiphishInstall)
AdBlocker       = [combobox_template] subst(Name(text($AdBlocker)) )     onclick(window("combobox_menu_AdBlocker", p_UseCtx()))

[combobox_template]
@          = sz(200,a) mg(3,3) a(la) at(btnlike) bg(ctl.selected ? "ComboBox_sel" : (ctl.hotlight || ctl.State.hotlight ? "ComboBox" : "")) alias(taskview) use(f_isInstalled(ctl.id)) ext(1)
IconCmb    = a(lt) xy(2,1) i(ctl.enabled ? f_getStateSemaphor(state) : "GreenSemaphorSmall") extprm(1)
Name       = extprm(1) a(at) xy(3) f("ComponentName")

[Templates]
$TaskComboboxMenu = $MenuCustom at(menulikecmb)
$combobox_menu_Help = [combobox_template_menu.Body.Item] subst(Icon(i("comp_help")) Caption(text($Help)) Description() ) a(la) visible(!ctl.ErrorSupport.visible)
$combobox_menu_ErrorSupport = [combobox_template_menu.Body.Item] subst(Icon(i("comp_help")) Caption() Description() ) onclick(url($ProfileErrorUrlText); close(0)) a(la) use(#StateFailed == state)

[combobox_template_menu.Body.Item]
@           = $MenuCustomItem ext(1)
Body        = [combobox_template_menu.Body.Item_Body] sz(a,a) mg(7,7,7,7)

[combobox_template_menu.Body.Item_Body]
Icon        = a(lt) sz(a,a) extprm(1)
Caption     = a(at) xy(5) sz(250,a) f("Header0") extprm(1)
Description = a(sa) sz(250,a) xy(1,3) f("Description") extprm(1)

[combobox_menu_File_Monitoring]
@                = $TaskComboboxMenu
File_Monitoring  = [combobox_template_menu.Body.Item] subst(Icon(i("FileAV_1"))  Caption($FileAntivirus) Description(text($FileAntivirusDesc)) ) onclick(if(checkPassword(#pwdc_SaveSettings), enable(!s_IsStateRunning(state) && state != #StateFailed)); close(0)) a(la)
Setting          = [combobox_template_menu.Body.Item] subst(Icon(i("comp_sett")) Caption(text($Settings_2)) Description() ) onclick(window("OptionsWindow:File_Monitoring"); close(0)) a(la)
Help             = $combobox_menu_Help onclick(help(23447); close(0))
ErrorSupport     = $combobox_menu_ErrorSupport

[combobox_menu_HipsTask]
@                = $TaskComboboxMenu
HipsTask         = [combobox_template_menu.Body.Item] subst(Icon(i("Hips_1")) enable(f_isInstalled(ctl.id)) Caption() Description(text($AppCtrlDescription)) ) onclick(if(checkPassword(#pwdc_SaveSettings), enable(!s_IsStateRunning(state) && state != #StateFailed)); close(0))
Setting          = [combobox_template_menu.Body.Item] subst(Icon(i("comp_sett"))  Caption(text($Settings_2)) Description() ) onclick(window("OptionsWindow:HipsTask"); close(0)) a(la)
Help             = $combobox_menu_Help onclick(help(24312); close(0))
ErrorSupport     = $combobox_menu_ErrorSupport

[combobox_menu_SW2]
@                = $TaskComboboxMenu
SW2              = [combobox_template_menu.Body.Item] subst(Icon(i("SW2_1"))  Caption() Description(text($SW2Desc)) ) onclick(if(checkPassword(#pwdc_SaveSettings), enable(!s_IsStateRunning(state) && state != #StateFailed)); close(0))
Setting          = [combobox_template_menu.Body.Item] subst(Icon(i("comp_sett"))  Caption(text($Settings_2)) Description() ) onclick(window("OptionsWindow:SW2"); close(0)) a(la)
Help             = $combobox_menu_Help onclick(help(25998); close(0))
ErrorSupport     = $combobox_menu_ErrorSupport

[combobox_menu_pdm]
@                = $TaskComboboxMenu
pdm              = [combobox_template_menu.Body.Item] subst(Icon(i("Pdm_1"))  Caption() Description(text($PdmDesc)) ) onclick(if(checkPassword(#pwdc_SaveSettings), enable(!s_IsStateRunning(state) && state != #StateFailed)); close(0))
Setting          = [combobox_template_menu.Body.Item] subst(Icon(i("comp_sett"))  Caption(text($Settings_2)) Description() ) onclick(window("OptionsWindow:pdm"); close(0)) a(la)
Help             = $combobox_menu_Help onclick(help(24506); close(0))
ErrorSupport     = $combobox_menu_ErrorSupport

[combobox_menu_Mail_Monitoring]
@                = $TaskComboboxMenu
Mail_Monitoring  = [combobox_template_menu.Body.Item] subst(Icon(i("MailAV_1"))  Caption() Description(text($MailAntivirusDesc)) ) onclick(if(checkPassword(#pwdc_SaveSettings), enable(!s_IsStateRunning(state) && state != #StateFailed)); close(0))
Setting          = [combobox_template_menu.Body.Item] subst(Icon(i("comp_sett"))  Caption(text($Settings_2)) Description() ) onclick(window("OptionsWindow:Mail_Monitoring"); close(0)) a(la)
Help             = $combobox_menu_Help onclick(help(23993); close(0))
ErrorSupport     = $combobox_menu_ErrorSupport

[combobox_menu_Web_Monitoring]
@                = $TaskComboboxMenu
Web_Monitoring   = [combobox_template_menu.Body.Item] subst(Icon(i("WebAV_1"))  Caption() Description(text($WebAntivirusDesc)) ) onclick(if(checkPassword(#pwdc_SaveSettings), enable(!s_IsStateRunning(state) && state != #StateFailed)); close(0))
Setting          = [combobox_template_menu.Body.Item] subst(Icon(i("comp_sett"))  Caption(text($Settings_2)) Description() ) onclick(window("OptionsWindow:Web_Monitoring"); close(0)) a(la)
Help             = $combobox_menu_Help onclick(help(14670); close(0))
ErrorSupport     = $combobox_menu_ErrorSupport

[combobox_menu_IM_Monitoring]
@                = $TaskComboboxMenu
IM_Monitoring    = [combobox_template_menu.Body.Item] subst(Icon(i("ImAV_1"))  Caption() Description(text($IMAntivirusDesc)) ) onclick(if(checkPassword(#pwdc_SaveSettings), enable(!s_IsStateRunning(state) && state != #StateFailed)); close(0))
Setting          = [combobox_template_menu.Body.Item] subst(Icon(i("comp_sett"))  Caption(text($Settings_2)) Description() ) onclick(window("OptionsWindow:IM_Monitoring"); close(0)) a(la)
Help             = $combobox_menu_Help onclick(help(24132); close(0))
ErrorSupport     = $combobox_menu_ErrorSupport

[combobox_menu_Firewall]
@                = $TaskComboboxMenu
Firewall         = [combobox_template_menu.Body.Item] subst(Icon(i("Firewall_1"))  Caption() Description(text($FirewallDesc)) ) onclick(if(checkPassword(#pwdc_SaveSettings), enable(!s_IsStateRunning(state) && state != #StateFailed)); close(0))
Setting          = [combobox_template_menu.Body.Item] subst(Icon(i("comp_sett"))  Caption(text($Settings_2)) Description() ) onclick(window("OptionsWindow:Firewall"); close(0)) a(la)
Help             = $combobox_menu_Help onclick(help(22943); close(0))
ErrorSupport     = $combobox_menu_ErrorSupport

[combobox_menu_ids]
@                = $TaskComboboxMenu
ids              = [combobox_template_menu.Body.Item] subst(Icon(i("ids_1"))  Caption() Description(text($IdsDesc)) ) onclick(if(checkPassword(#pwdc_SaveSettings), enable(!s_IsStateRunning(state) && state != #StateFailed)); close(0))
Setting          = [combobox_template_menu.Body.Item] subst(Icon(i("comp_sett"))  Caption(text($Settings_2)) Description() ) onclick(window("OptionsWindow:ids"); close(0)) a(la)
Help             = $combobox_menu_Help onclick(help(22966); close(0))
ErrorSupport     = $combobox_menu_ErrorSupport

[combobox_menu_Anti_Spam]
@                = $TaskComboboxMenu
Anti_Spam        = [combobox_template_menu.Body.Item] subst(Icon(i("AntiSpam_1"))  Caption() Description(text($AntispamDesc)) ) onclick(if(checkPassword(#pwdc_SaveSettings), enable(!s_IsStateRunning(state) && state != #StateFailed)); close(0))
Setting          = [combobox_template_menu.Body.Item] subst(Icon(i("comp_sett"))  Caption(text($Settings_2)) Description() ) onclick(window("OptionsWindow:Anti_Spam"); close(0)) a(la)
Help             = $combobox_menu_Help onclick(help(14658); close(0))
ErrorSupport     = $combobox_menu_ErrorSupport

[combobox_menu_netmon]
@                = $TaskComboboxMenu
Firewall         = [combobox_template_menu.Body.Item] subst(Icon(i("NetMon_1"))  Caption() Description(text($NetMonDesc)) ) onclick(if(checkPassword(#pwdc_SaveSettings), enable(!s_IsStateRunning(state) && state != #StateFailed)); close(0))
Setting          = [combobox_template_menu.Body.Item] subst(Icon(i("comp_sett"))  Caption(text($Settings_2)) Description() ) onclick(window("OptionsWindow:netmon"); close(0)) a(la)
Help             = $combobox_menu_Help onclick(help(16038); close(0))
ErrorSupport     = $combobox_menu_ErrorSupport

[combobox_menu_antiphishing]
@                = $TaskComboboxMenu alias(taskview)
antiphishing     = [combobox_template_menu.Body.Item] subst(Icon(i("anti_phish_1")) Caption() Description(text($antiphishingDescr)) ) onclick( s_EnableAntiPhishing(f_antiphishOnOff()); close(0))
Setting          = [combobox_template_menu.Body.Item] subst(Icon(i("comp_sett"))  Caption(text($Settings_2)) Description() ) onclick(dialog("SettingChoiceAntiphishing"); close(0)) a(la)
Help             = $combobox_menu_Help onclick(help(24056); close(0))
;ErrorSupport     = $combobox_menu_ErrorSupport

[combobox_menu_AdBlocker]
@                = $TaskComboboxMenu
AdBlocker        = [combobox_template_menu.Body.Item] subst(Icon(i("anti_banner"))  Caption() Description(text($AdBlockerDescr)) ) onclick(if(checkPassword(#pwdc_SaveSettings), enable(!s_IsStateRunning(state) && state != #StateFailed)); close(0))
Setting          = [combobox_template_menu.Body.Item] subst(Icon(i("comp_sett"))  Caption(text($Settings_2)) Description() ) onclick(window("OptionsWindow:AdBlocker"); close(0)) a(la)
Help             = $combobox_menu_Help onclick(help(14659); close(0))
ErrorSupport     = $combobox_menu_ErrorSupport

[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($g_antiphishInstall)
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]) Descr([MainReport.Protection_Events_Descr]) ActionsArea(subst(Other(subst(GroupFilter(onclick(ctl.menu("MainWindow.Protection_Filters"))))))) Stat(use(0)) )

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

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

[MainReport.Protection_Events_Descr]
Title     = [Protection_Events_Descr_Title]
MainGroup = [MainReport.Protection_Events_Descr_MainGroup]
CustomGroup = a(as) xy(15) extprm(1)

[Protection_Events_Descr_Title]
@    = sz(p,a) xy(,,,12)
Icon = a(lc) i(s_VerdictIconBig(s_VerdictIcon(Verdict)))
Text = [Protection_Events_Descr_Title_Text]

[Protection_Events_Descr_Title_Text]
@     = sz(p,a) a(ac) xy(4)
Title = f("Header3Lite") text(f_ProductEventCaptionText(-1))

[MainReport.Protection_Events_Descr_MainGroup]
@       = sz(p,a) a(la)
Time    = [MainReport_ListRowDesc] subst(Name() Val(subst(Name(text(datetimeDT(Timestamp))))))
Task    = [MainReport_ListRowDesc] subst(Name() Val(subst(Name(text($TaskText))      Icon(i($TaskIcon))))) visible(ctl.parent.parent.parent.parent.parent.id == "Protection")
App     = [MainReport_ListRowDesc] subst(Name() Val(subst(Name(text($AppName))       Icon(i($AppIcon)))))
Object  = [MainReport_ListRowDesc] subst(Name() Val(subst(Name(text($ObjectText))    Icon(i(if(TaskID == #eTASK_UPDATER || TaskID == #eTASK_ROLLBACK, $ObjectIcon))))))
Reason  = [MainReport_ListRowDesc] subst(Name() Val(subst(Name(text($ReasonText)))))
Verdict = [MainReport_ListRowDesc] subst(Name() Val(subst(Name(text($VerdictText))))) visible(ctl.Val.Name.text && ctl.Val.Name.text != ctl.parent.parent.Title.Title.text)

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

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

[MainWindow.Protection_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]
@           = at(enum) v(ctl.parent.parent.value)
AllItems    = at(radiolike) v("14000100042d;Ti14100000a10000000000000000;Ta1000000066;Ve1000000097;De000000001e;De100000001e;De100000001f;De100000001e;Ex100000001e;Ap00000100a8;Pa0000000024;Na0000000021;PI0000000045;Co000000001e;Ac100000006c;Ob100000012b;Ty100000003c;Pa2000000068;Na2000000087;Re2000000050;")
ByTask      = at(radiolike) v("1400010003a7;Ti14100000ae0000000000000000;Ve10000000af;De0000000023;De1000000023;De1000000021;De1000000024;Ex1000000024;Ap00000100a8;Pa000000002a;Na000000002a;PI000000002a;Co000000002a;Ta140201005c;Ac100000006c;Ob10000000e6;Ty100000003c;Pa2000000055;Na2000000055;Re2000000050;")
ByApp       = at(radiolike) v("140001000383;Ti14100000ae0000000000000000;Ap04020100a8;Pa000000002a;Na000000002a;PI000000002a;Co000000002a;Ta100001007a;Ve1000000096;De000000001e;De100000001e;De100000001e;De100000001e;Ex100000001e;Ac100000007b;Ob10000000fa;Ty100000003c;Pa200000005f;Na200000005f;Re2000000050;")

;-------------------------------- 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(224,a) mg(9,0) at(btnlike) bg(ctl.selected ? "HilightBtn_sel" : (ctl.hotlight ? "HilightBtn" : ""))
Icon  = extprm(1) sz(a,a) ia(cc) xy(,9,,9)
Text  = extprm(1) a(ac) xy(17) at(underlineoff) f("Header2KGreenLite")
Desc  = extprm(1) a(sa) use(0)

[ExtraItemEx]
@ = [WizardButton] mg(9,9) a(la) sz(p,a) bg(ctl.selected ? "HilightBtn_sel" : (ctl.hotlight ? "HilightBtn" : ""))

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

$shift      = 10
Header      = a(lt) sz(p,a) f("Header6KGreen")
TaskSep     = $TaskSep_Temp
Descr       = f("Description") a(la) xy(,,,4)

RD             = a(la) [ExtraItem] xy(0, $shift) subst(Icon(i("rescue_cd32")) Text(text($RescueDisk)) ) onclick(window("MakeRescueDiskWizard"))
PrivacyCleaner = a(as) [ExtraItem] subst(Icon(i("TaskPrivacyTweak32")) Text(text($Task_PrivacyCleanerWizard)) ) onclick(f_AvzWizard("AvzPrivacyCleanerWizard"))

Scan_Vulnerabilities = a(la) [ExtraItem] xy(0, $shift) subst(Icon(i("vulnerability32")) Text(text($ScanVulnerabilities)) ) onclick(window("VulnerabilityMonitor"))
SystemRestore  = a(as) [ExtraItem] subst(Icon(i("TaskTroubleTweak32")) Text(text($Task_TroubleshootWizard))) onclick(f_AvzWizard("AvzTroubleshootWizard"))

IeTweak        = a(la) [ExtraItem] xy(0, $shift) subst(Icon(i("TaskIeTweak32")) Text(text($Task_IeWizard)) ) onclick(f_AvzWizard("AvzSecurityTweakerWizard"))

;space          = a(la) sz(p,0)
TaskSep        = $TaskSep_Temp visible(ctl.ksn.visible)
ksn            = [MainWindow_Body.AddSvc.KSN] sz(p,a) a(la) visible(!EnableStatistics)

[MainWindow_Body.AddSvc.KSN]
KaspNet        = [ExtraItemEx] sz(p,a) subst( Icon(i("kaspnet") xy()) Name(text($JoinKaspNetText) xy(13,1)) Descr(text($JoinKaspNetDesc)) ) onclick(window("OptionsWindow:Appearance:Feedback")) 


[LicenseManager]
@ = [StyledWindowT]  at(minimizable,a_close) sz(a,a) alias(licenseManager) h(26132) subst( BodyEx( [LicenseManager_Cont] ) Footer([LicenseManager_Footer]) )

[LicenseManager_Cont]
@           = sz(522,a) bg("ColorWindow") ext(1)
CenterPanel = [LicenseManager.CenterPanel] a(la)

[LicenseManager_Footer]
@      = a(lb) sz(p,$DialogPanelSizeY) mg(12,0,8,0) rs(100,0)
Help   = sz(a,a) at(btnlike)  a(lc) f("MainFtr") onclick(help()) text($Help) extprm(1) use($IsHelpExists) enable($IsAdvancedDisinfectionStoped)
S1     = $FooterLinkSep a(ac) xy($Button_Shift,,$Button_Shift) visible(ctl.Help.visible)
Eula   = $LinkKL a(ac) sz(a,a) f("MainFtr") onclick(dialog("EulaInfo"))
Cancel = [BtnGlass] a(rc) onclick(close()) extprm(1)

;__DELETE__ - [LicenseManager2] удалить
[LicenseManager2]
@ = [StyledWindowT]  at(minimizable,minimizable,a_close) subst( BodyEx( [MainWindow.License] ) ) sz(600,500) h(4505)

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

[MainWindow.License_Body]
@           = a(lt) sz(p,a)
ShowActive  = t(v) oninit(ctl.value = 1)
Top         = [MainWindow.License_Body_Top]
Switcher    = [MainWindow.License_Body_Top_Switcher] visible($HasReserveKey)
Actions     = [MainWindow.License_Body_Actions] a(la) xy(16,0,16,16) visible(!$IsSubscription)
ActionsSubscr = [MainWindow.License_Body_ActionsSubscr] a(la) xy(16,,16,16) visible($IsSubscription)

[MainWindow.License_Body_Top]
@ = sz(p,a)
Background = bg(if($HasReserveKey,"LicenseBG","SupportBG")) a(lb) sz(p,193) 
Top = [MainWindow.License_Body_Top2] a(lt) mg(23,23,23,23) 

[MainWindow.License_Body_Top2]
@ = sz(p,a) 
NoKeys     = [MainWindow.License_Body_NoKeys] visible( (global.KeyState & #eNoKeys) || !LicInfo.KeyInfo.KeyType )
ActiveView = [MainWindow.License_Body_Top_ActiveView] a(lt) visible( !ctl.NoKeys.visible && ctl.parent.parent.ShowActive.value)
ReserveView= [MainWindow.License_Body_Top_ReserveView] a(lt) visible( !ctl.NoKeys.visible && !ctl.ActiveView.visible)

[MainWindow.License_Body_Top_Switcher]
$Button      = at(btnlike) sz(18,18) extprm(1)
$ArrLeft     = $Button i("IcoArrows,0,0,0,1,0,0") a(lc) 
$ArrRight    = $Button i("IcoArrows,3,3,3,2,3,3") a(ac)
@     = a(ct) xy(,170) sz(a,a)
Left  = $ArrLeft onclick(ctl.parent.parent.ShowActive.value = 1) enable(!ctl.parent.parent.ShowActive.value)
Cont  = a(ac) sz(a,a) f("Description") xy(5,,5,)
Right = $ArrRight onclick(ctl.parent.parent.ShowActive.value = 0) enable(ctl.parent.parent.ShowActive.value)

[LicButton]
@    = sz(a,19) ta(cc) ext(1)
L    = bg("LicGreenLeft") sz(6,p) a(lt)
R    = bg("LicGreenRight") sz(6,p) a(rt)
M    = bg("LicGreenMiddle") sz(p,p) xy(6,,6) 
Cont = mg(7) sz(a,a) a(cc) f("MainFtrSmallF") enabled(1) extprm(1)

[LicButtonInactive]
@    = sz(a,19) ta(cc) ext(1)
L    = bg("LicGreyLeft") sz(6,p) a(lt)
R    = bg("LicGreyRight") sz(6,p) a(rt)
M    = bg("LicGreyMiddle") sz(p,p) xy(6,,6) 
Cont = mg(7) sz(a,a) a(cc) f("MainFtrSmallF") enabled(1) extprm(1)

[LicenseIcon]
@          = a(lt) sz(a,a) ext(1)
LicenseBig = a(lt) sz(a,100) i("LicenseBig")

[LicenseButtonItem]
@          = a(lt) sz(a,a) ext(1)
BtnAct     = [LicButton] a(lt) extprm(1)
BtnInact   = [LicButtonInactive] a(lt) use(0) extprm(1)

[MainWindow.License_Body_Top_ActiveView]
@                   = sz(p,a)
Header              = [MainWindow.License_Body_Top_ActiveView_Head]
ActiveLicNotif      = [ActiveLicenseNotification] a(la) sz(p,a)

[MainWindow.License_Body_Top_ActiveView_Head]
@                   = sz(p,a)
License             = [LicenseIcon] 
NormalLic           = [MainWindow.License_Body_Top_ActiveView_NormalLic] a(lt) xy(92) visible(!$IsSubscription || $KeyDebug) sz(p,a)
SubscrLic           = [MainWindow.License_Body_Top_ActiveView_SubscrLic] a(lt) xy(92) visible($IsSubscription && !$KeyDebug)
LicenseExpireDate   = [LicenseExpireDate] a(sa) xy(0,0) visible((!$IsSubscription && !ctl.NoKeys.visible) && !(global.KeyState & (#eKeyExpired|#eKeyTrialExpired|#eNoKeys) )) sz(p,a)
Info                = [MainWindow.License_Body_Info] a(sa) sz(p,a) visible(!$IsSubscription && !ctl.NoKeys.visible )
InfoSubscr          = [MainWindow.License_Body_InfoSubscr] a(sa) sz(p,a) visible($IsSubscription )

[MainWindow.License_Body_Top_ActiveView_NormalLic]
@               = a(lt) sz(p,a)
LicDbgInfo      = $Link  f("Header2") a(lt) sz(a,a) onclick(window("LicenseKeys")) text(f_KeySerNum(LicInfo.KeyInfo.KeySerNum))  visible($KeyDebug)
KeyDescr        = a(lt) sz(a,a) f("Header2") text(f_KeySerNum(LicInfo.KeyInfo.KeySerNum))  visible(!$KeyDebug)
RemoveActiveLic = a(as) xy(3) i("listctrls,2") at(btnlike) onclick(if(msg("LicenseRemoveKeyWarning", #m_yesno) && checkPassword(#pwdc_SaveSettings), removeKey() ) ) visible(!$HasReserveKey)
LicBtn 		= [LicenseButtonItem] a(as) xy(7,-2)
ActiveLic       = a(la) sz(a,a) xy(,17) f("Description")

[MainWindow.License_Body_Top_ActiveView_SubscrLic]
@               = a(lt) sz(p,a)
KeyDescr        = a(lt) sz(a,a) f("Header2") text(f_KeySerNum(LicInfo.KeyInfo.KeySerNum)) 
RemoveActiveLic = a(as) xy(3) i("listctrls,2") at(btnlike) onclick(if(msg("LicenseRemoveKeyWarning", #m_yesno) && checkPassword(#pwdc_SaveSettings), removeKey() ) ) visible(ctl.ActiveLic.visible)
ActiveLic       = a(la) sz(a,a) xy(,17) f("Description")

[MainWindow.License_Body_Top_ReserveView]
@               = a(lt) sz(p,p)
License         = [LicenseIcon] subst( BtnAct(use(0)) BtnInact(use(1)) )
NormalLic       = [MainWindow.License_Body_Top_ReserveView_NormalLic] a(lt) xy(92)
ReserveLicDescr = [ReserveLicenseExpireDate] a(sa) xy(0,0)
Info            = [MainWindow.License_ReserveView_Info]

[MainWindow.License_Body_Top_ReserveView_NormalLic]
@               = a(lt) sz(p,a)
KeyDescr        = a(at) sz(a,a) f("Header2") text(f_KeySerNum(ResLicInfo.KeyInfo.KeySerNum)) 
RemoveReservLic = a(as) xy(3) i("listctrls,2") at(btnlike) onclick(if(msg("LicenseRemoveKeyWarning", #m_yesno) && checkPassword(#pwdc_SaveSettings), (ctl.parent.parent.parent.parent.ShowActive.value = 1,removeKey()) ) )
ReserveLic      = a(la) sz(p,a) xy(,17) f("Description")

[MainWindow.License_ReserveView_Info]
@ = a(sa) sz(p,p) 
Cont = [MainWindow.License_ReserveView_Info_Cont]

[MainWindow.License_ReserveView_Info_Cont]
@ = a(lc) sz(p,a)
BrokenKeyReserve    = [BrokenKeyReserve] a(lt) sz(p,a)

[MainWindow.License_Body_NoKeys]
@          = a(lc) sz(p,a)
Desc       = a(lt) sz(p,a) xy(48,) f("Normal11_Bold_Red")
Desc2      = a(sa) sz(p,a) xy(,15) f("Normal9")

[MainWindow.License_Body_Info]
@ = sz(p,p)
Cont = [MainWindow.License_Body_Info_Cont] 

[MainWindow.License_Body_Info_Cont]
@ = a(lc) sz(p,a)
LicenseExpireDays    = [LicenseExpireDays] xy(0,0) visible(!(global.KeyState & (#eKeyExpired|#eKeyTrialExpired|#eNoKeys|#eKeyWillBeExpired|#eKeyAboutExpiration) ))
AboutExpirationText  = text(s_AboutExpirationText(LicInfo.KeyInfo.KeyType)) a(la) 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) ))
KeyLimitExceeded    = [KeyLimitExceeded] a(la) 
BrokenKey           = [BrokenKey] a(la)


[MainWindow.License_Body_InfoSubscr]
@    = sz(p,a)
Cont = [MainWindow.License_Body_InfoSubscr_Cont]

[MainWindow.License_Body_InfoSubscr_Cont]
@       = a(lc) sz(p,a) oninit(l_RefStatForNoDumpOnExit = Product.ProductStateMask.ser())
Text1   = f(switch(SubscriptionStatus,"SubscrStatus_Font")) a(la) text(s_LicenseSubscrText1(SubscriptionStatus)) xy(,,,5) visible(!(global.KeyState & (#eKeyLimited|#eKeyInvalid)))
Text2   = f(switch(SubscriptionStatus,"SubscrStatus_Font")) a(la) text(s_LicenseSubscrText2(SubscriptionStatus)) visible(!(global.KeyState & (#eKeyLimited|#eKeyInvalid)) && AutoActivationError.ErrorCode == 0 && !SubscriptionTolerancePassed )
SubscrTolerancePassed= a(la) f("Normal9_Red") visible(AutoActivationError.ErrorCode == 0 && SubscriptionTolerancePassed)
SubscrUpdateFailed  = a(la) f("Normal9_Red") visible(AutoActivationError.ErrorCode != 0)
SubscrFailedReason  = t(hotlink) f("Hotlink_Normal") a(la) 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) subst( Name() Descr() ) onclick(url($KeyErrorLink)) visible( LicInfo.InvalidReason != #ekirInvalidBlacklist && !(global.KeyState & #eNoKeys) && global.KeyState & (#eKeyBlocked|#eKeyInvalid|#eKeyLimited|#eKeyUpdateFailed|#eKeyExpired|#eKeyTrialExpired) ) 
Update              = [WizardButton] a(la) subst( Name() Descr() ) onclick(f_setState(f_IsStateActive(Updater.state) ? #TASK_REQUEST_STOP : #TASK_REQUEST_RUN, "Updater")) enable(!(Rollback.state & #StateFlagOperational)) visible( LicInfo.InvalidReason == #ekirInvalidBlacklist ) 
BuyRenew            = [WizardButton] a(la) subst( Name() Descr() ) onclick(buy(global.LicRenewStatus != 2))
ActivateLic         = [WizardButton] a(la) subst( Name() Descr() ) onclick(f_Activate()) visible(!$HasReserveKey)
RevertToKAV         = [WizardButton] a(la) subst( Name() Descr() ) onclick(window("[ConfigureWizard] alias(revert_to_kav)", p_new(#true))) use(isMUTrialKIS()) 

[MainWindow.License_Body_ActionsSubscr]
@ = a(la) sz(p,a)
ReasonsAndSolutions = [WizardButton] a(la) subst( Name() Descr() ) onclick(url($KeyErrorLink)) visible( LicInfo.InvalidReason != #ekirInvalidBlacklist && (global.KeyState & (#eKeyBlocked|#eKeyInvalid|#eKeyLimited|#eKeyUpdateFailed|#eKeyExpired|#eKeyTrialExpired) ) ) 
Update              = [WizardButton] a(la) subst( Name() Descr() ) onclick(f_setState(f_IsStateActive(Updater.state) ? #TASK_REQUEST_STOP : #TASK_REQUEST_RUN, "Updater")) enable(!(Rollback.state & #StateFlagOperational)) visible( LicInfo.InvalidReason == #ekirInvalidBlacklist ) 
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); onProviderLinkClicked())

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

[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(la) xy(,$Control_Shift)
Text1   = f("Description") a(lb)
;Text2   = f("Description") a(ab) text(" " + capitalize(datetime(LicInfo.LicenseDurationInfo.ExpirationDate), false))

[ReserveLicenseExpireDate]
@       = sz(a,18) a(la) xy(,$Control_Shift)
Text1   = f("Description") a(lb)


[LicenseExpireDays]
@           = ext(1) sz(a,18) a(la) 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]
@       = a(la) sz(p,a) xy(,$Control_Shift) visible(global.KeyState & (#eKeyInvalid|#eKeyBlocked))
Text    = f("Bold9Red") a(lt) text(s_KeyInvalidReason(LicInfo.InvalidReason)) ns(LicInfo)

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

[ActiveLicenseNotification]
@       = a(la) sz(p,a) xy(,$Control_Shift) visible(ActiveLicNotif.Message)
Text    = t(richedit) at(readonly,noborder,nofocus) f("Description") a(lt) text(ActiveLicNotif.Message) ns(LicInfo)
Link	= $LinkKL a(sa) cxy(,10) text(ActiveLicNotif.URLName) onclick(url(ActiveLicNotif.URL)) visible(ActiveLicNotif.URL && ActiveLicNotif.URLName)

[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]
@  = [StyledWindowT_Small] at(dragable,a_close,nohelp) subst( BodyEx( [EulaInfo_Body] ) ) sz(350,328)

[EulaInfo_Body]
Text    = t(edit) at(multiline,readonly,vscroll) sz(p,p) text($EulaFile)

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

[LicenseKeys]
@  = [StyledWindowT_Small] at(dragable,a_close) subst( BodyEx( [LicenseKeys_Body] ) ) sz(370,a) h(4505)

[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)
LicenseExpireDate   = [LicenseExpireDate]
LicenseExpireDays   = [LicenseExpireDays] mg(,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) f("Wizard_Text")
Progress    = t(progress) a(la) xy(,17) sz(p,20) v(Completion)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[AvzCollectSysInfoWizardPages]
@       = sz(p,p) ext(1)
Scan    = [WizardPage] btns(Next(enable(0))) subst(Name() Descr() Body([AvzWizard_Progress] subst(Intro()))) onselect(ScriptMode = 1; savesettings(); setstate(#TASK_REQUEST_RUN)) h(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) f("Wizard_Text")

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

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

[AvzRunScriptWizardPages]
@       = sz(p,p) ext(1)
Script  = [WizardPage] subst(Name() Descr() Body([AvzRunScriptWizard_Script])) h(15743) btns(Next(enable(Script)))
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(355,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]
Body    = a(la) sz(p,a) extprm(1)
Bottom  = [AlertDialogT_Bottom] visible($ShowNoLicReminder) extprm(1)
Footer  = [AlertDialogT_Footer]

[AlertDialogT_Header1]
@           = a(la) sz(p,52) bg(const(s_AlertHeader(DetectDanger))) extprm(1)
Logo        = a(lc) sz(a,a) xy(8) i("Main.big")
Caption     = [AlertDialogT_Header1_Caption]
Help        = a(rs) sz(a,a) xy(8) at(btnlike) f("Header0WhiteLite") onclick(help()) use(!$IsRD) enable($IsAdvancedDisinfectionStoped)

[AlertDialogT_Header1_Caption]
@           = a(as) sz(a,a) xy(8,-3)
ProductName = a(la) sz(a,a) f("Header0WhiteLite") text($ProductNameLong)
TaskName    = a(la) sz(a,a) xy(,5) text(const(s_AlertDialogCaption(TaskType))) f("ProtBanner") extprm(1)

[AlertDialogT_Footer]
@           = a(la) sz(p,30) mg(14) bg(const(s_AlertFooter(DetectDanger))) extprm(1)
Sep         = $StdFooterSeparator a(lt) xy(-14,,-14)
ApplyToAll  = t(check) sz(a,a) a(lc) v(bmask(ApplyToAll, #APPLYTOALL_TRUE)) oninit(ctl.value = bmask(ApplyToAll, #APPLYTOALL_TRUE); if(ApplyToAll & #APPLYTOALL_SESSION_ONLY, ApplyToAll = ApplyToAll | #APPLYTOALL_SESSION) ) f("Header0WhiteLite") 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(Header1(bg("DlgHeader")) Footer(bg("DlgFooter")) ApplyToAll(use(0)))

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

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

[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))
CrowdWizdom = [AlertDialog_Descr_KSN]
Source      = [AlertDialog_Descr_SoftWare]
Browser     = [AlertDialog_Descr_WebWare]
DetectT     = [AlertDialog_Descr_VirWare]
Object      = [AlertDialog_Descr_Object]
RegInfo     = [AlertDialog_Descr_RegInfo]
ObjectC     = [AlertDialog_Descr_CreateObject]
GeoSecurity = [AlertDialog_Descr_GeoSecurity]
AppParents  = [AlertDialog_Descr_AppParentage]

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

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

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

[AlertDialog_Descr_Object]
$IsDriverAction   = #eDriver == ObjectType && (TaskType == "hipstask" || TaskType == "pdm")
@           = a(la) sz(p,a) use((ObjectName || nDestPID > 0) && TaskType != "hips_group" && ObjectType != #eRegKey && !($HasKsnInfo) && !($PdmDriverObject)) xy(,7)
ObjectL     = $RichText a(la) sz(p,a) xy(,14) text(const(s_AlertDialogObjectL(TaskType))) visible(ctl.text)
Object      = at(singleline,compresspath) a(la) sz(a,a,,,250) tt(const(f_displayPath(nPID, ObjectName))) text(const(f_displayPath(nPID, ObjectName))) visible(ctl.ObjectL.text && !nDestPID)
Infolink    = a(as) xy(5) i("info,0,1,0,0,0,1") sz(a,a) at(btnlike) onclick(showFileProp(f_displayPath(nPID, ObjectName))) use($IsDriverAction)
ObjectDest  = t(hotlink) a(la) sz(p,a) f("Hotlink_Normal") text(f_ProcessInfo(nDestPID).Module.sImagePath) onclick(dialog("AppRulesEdit:Image", p_pid(nDestPID))) use(nDestPID > 0 && nDestPID != #PIDSystem)
ObjectDestSys  = a(la) sz(p,a) f("Normal_Black") text(f_ProcessInfo(nDestPID).Module.sImagePath) use(nDestPID == #PIDSystem)
ObjectNet   = [AlertNetAdressDescrEx] a(la) sz(p,a) use(ObjectType == #eNetwork)
ObjectMail   = [AlertMailDescr] a(la) sz(p,a) use(TaskType == "mc")
History     = $Link onclick(dialog("Investigator")) a(la) xy(,17) use(s_IsHaveHistoryByTask(TaskType))

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

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

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

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

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

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

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

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

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

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

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

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

[AlertDialog_Body_Action]
$SilentAddToExcludeDriver = if($IsDriverInstall && !appID, addToExclude(ser(ObjectName), true ,true))
@           = $AlertActions
Question    = a(la) sz(a,a) mg(10,7,10,10) xy(,5) f("Header3Lite") text(f_AlertDialogQuestion()) visible(ctl.text)
Rename      = [AlertDialog_ActionButton] subst(Name() Descr()) v(#ACTION_RENAME)                      use(ActionsAll & #ACTION_RENAME && !bRestrictionDerrived)                       onclick(if(checkPassword(#pwdc_SaveSettings), (ResultAction = ctl.value; close(#m_res_ok))))
RenameChain = [AlertDialog_ActionButton] subst(Name() Descr()) v(#ACTION_RENAME)                      use(ActionsAll & #ACTION_RENAME && bRestrictionDerrived)                        onclick(if(checkPassword(#pwdc_SaveSettings), (ResultAction = ctl.value; close(#m_res_ok))))
;If case means "Allow always" then check for password else don't check
Allow       = [AlertDialog_ActionButton] subst(Name() Descr(visible(!$IsGeoSecurity))) v(#ACTION_ALLOW)                       use(ActionsAll & #ACTION_ALLOW)                             onclick(if((TaskType == "hipstask" ? (ctl.ApplyToAll.value ? checkPassword(#pwdc_SaveSettings) : true) : true), ($SilentAddToExcludeDriver; ResultAction = ctl.value; close(#m_res_ok))))
Restrict    = [AlertDialog_ActionButton] subst(Name() Descr()) v(#ACTION_QUARANTINE)                  use(ActionsAll & #ACTION_QUARANTINE && TaskType == "hips_group")                onclick(ResultAction = ctl.value; close(#m_res_ok))
;If case means "Deny always" then check for password else don't check
Deny        = [AlertDialog_ActionButton] subst(Name() Descr(visible(!$IsGeoSecurity))) 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; l_Rule.serinit(#stHipsRuleItem); if(dialog("PacketRuleCreate", p_data(l_Rule), p_appID(appID), p_netAct(Data), p_saveRule(1)), close(#m_res_ok)))))
Rollback    = [AlertDialog_ActionButton] subst(Name() Descr()) v(#ACTION_ROLLBACK)                    use(ActionsAll & #ACTION_ROLLBACK)                                              onclick(ResultAction = ctl.value; close(#m_res_ok))
ToExclude   = [AlertDialog_ActionButton] subst(Name() Descr()) v(s_ResultActionByTaskType(TaskType))  use((ActionsAll & #ACTION_ADD_EXCLUDE) || $ActionUseToExclude) onclick(if(checkPassword(#pwdc_SaveSettings), if(f_addAppToTrusted(f_TaskTypeExcludable(TaskType), s_VerdictPathMask(TaskType)), (ResultAction = ctl.value; ApplyToAll = #APPLYTOALL_FALSE; close(#m_res_ok))))) enable(1)
;Is no longer used AddURLExclude  = [AlertDialog_ActionButton] subst(Name() Descr()) v(#ACTION_ADD_EXCLUDE)			  use(ActionsAll & #ACTION_ADD_EXCLUDE)											 onclick(ResultAction = ctl.value; close(#m_res_ok))
PutIntoSandBox = [AlertDialog_ActionButton] subst(Name() Descr()) v(#ACTION_PUT_INTO_SANDBOX)		  use(ActionsAll & #ACTION_PUT_INTO_SANDBOX)										 onclick(ResultAction = ctl.value; close(#m_res_ok))

[AlertDialog_ActionButton]
@ = [WizardButton] subst(Name(f("Header2")) Descr(f("Description"))) a(la) sz(p,a) enable(const(ActionsMask & ctl.value)) ext(1)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[MainThreats]
@ = [StyledWindowT_Tab]  at(customfooter,resizable,minimizable,a_close) sz(,$TopWindows_Min_Y,620,530) subst( BodyEx( [MainThreats_Body] ))

[MainThreats_Body]
@       = sz(p,p) alias(productstatus) prm(s_ProductStateList)
Tab     = [MainThreats_Tab]

[MainThreats_Tab]
@           = $Tab a(lt) alias(taskview) onshow(ctl.StatusesList.focus())
Status      = [ProductStatesWindow_Body] h($IsKAT ? 16560 : 26078)
Threats     = [Product_Threats] h($IsKAT ? 16561 : 25829)
Statistics  = [MainThreats_Tab_Statistics] h(25830) 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 = [Statistics_Switch_Time] a(la) subst(IsChange(+onchange(\
	ctl.parent.StatArea.StatAV.ChartsAV.Virware.setfilter           ( s_MainThreats_Tab_Statistics_Filter(ctl.value, ctl.PeriodBegin.value, ctl.PeriodEnd.value,"&& (Counter == #eVirware)") ); \
	ctl.parent.StatArea.StatAV.ChartsAV.Phishing.setfilter          ( s_MainThreats_Tab_Statistics_Filter(ctl.value, ctl.PeriodBegin.value, ctl.PeriodEnd.value,"&& (Counter == #ePhishing)")); \
	ctl.parent.StatArea.StatAV.ChartsAV.Malware.setfilter           ( s_MainThreats_Tab_Statistics_Filter(ctl.value, ctl.PeriodBegin.value, ctl.PeriodEnd.value,"&& (Counter == #eMalware)")); \
	ctl.parent.StatArea.StatAV.ChartsAV.Troj.setfilter              ( s_MainThreats_Tab_Statistics_Filter(ctl.value, ctl.PeriodBegin.value, ctl.PeriodEnd.value,"&& (Counter == #eTrojware)"));\
	ctl.parent.StatArea.StatOS.ChartsOS.Riskware.setfilter          ( s_MainThreats_Tab_Statistics_Filter(ctl.value, ctl.PeriodBegin.value, ctl.PeriodEnd.value,"&& (Counter == #eRiskware)"));\
	ctl.parent.StatArea.StatOS.ChartsOS.Software.setfilter          ( s_MainThreats_Tab_Statistics_Filter(ctl.value, ctl.PeriodBegin.value, ctl.PeriodEnd.value,"&& (Counter == #eXFiles)"));\
	ctl.parent.StatArea.StatOS.ChartsOS.Pornware.setfilter          ( s_MainThreats_Tab_Statistics_Filter(ctl.value, ctl.PeriodBegin.value, ctl.PeriodEnd.value,"&& (Counter == #ePornware)"));\
	ctl.parent.StatArea.StatOS.ChartsOS.Adware.setfilter            ( s_MainThreats_Tab_Statistics_Filter(ctl.value, ctl.PeriodBegin.value, ctl.PeriodEnd.value,"&& (Counter == #eAdware)"));\
	ctl.parent.StatArea.StatOS.ChartsOS.Vulnerability.setfilter     ( s_MainThreats_Tab_Statistics_Filter(ctl.value, ctl.PeriodBegin.value, ctl.PeriodEnd.value,"&& (Counter == #eVulnerability)"));\
	ctl.parent.StatArea.StatCF.ChartsCF.Attack.setfilter            ( s_MainThreats_Tab_Statistics_Filter(ctl.value, ctl.PeriodBegin.value, ctl.PeriodEnd.value,"&& (Counter == #eAttack)"));\
	ctl.parent.StatArea.StatCF.ChartsCF.Banner.setfilter            ( s_MainThreats_Tab_Statistics_Filter(ctl.value, ctl.PeriodBegin.value, ctl.PeriodEnd.value,"&& (Counter == #eBanner)"));\
	ctl.parent.StatArea.StatCF.ChartsCF.Spam.setfilter              ( s_MainThreats_Tab_Statistics_Filter(ctl.value, ctl.PeriodBegin.value, ctl.PeriodEnd.value,"&& (Counter == #eSpam)"));\
	ctl.parent.StatArea.StatCF.ChartsCF.UnwantedWebContent.setfilter( s_MainThreats_Tab_Statistics_Filter(ctl.value, ctl.PeriodBegin.value, ctl.PeriodEnd.value,"&& (Counter == #eUnwantedWebContent)"));\
	ctl.parent.TotalCounter.ScannedTotal.setfilter                  ( s_MainThreats_Tab_Statistics_Filter(ctl.value, ctl.PeriodBegin.value, ctl.PeriodEnd.value,"&& (Counter == #eScannedOjects)")) \
	  )))

StatArea     = [MainThreats_Tab_Statistics_Frame_Area] a(la)
Scheduler    = $Check a(lb) xy(0,10) ns(statistics_report_schedule) v(NSettings.treeFind("Childs", "EventID == " + #eNotifyStatisticsReportReady).CheckTray)
ReportsBtn   = $Button_Large mg(10,0) sz(a,$Button_CY) a(rb) onclick(window("MainReport")) text($LinkFullReport)

[MainThreats_Tab_Statistics_Frame_Area]
@ = sz(p,p) b(System) bg("ColorWindow") xy(0,7,0,34)
StatAV         = [MainThreats_Tab_Statistics_Frame_AV] rs(100,28)
StatOS         = [MainThreats_Tab_Statistics_Frame_OS] rs(100,43)
StatCF         = [MainThreats_Tab_Statistics_Frame_CF] rs(100,78) use(!$IsKAV)
FootArea       = [MainThreats_Tab_Statistics_Frame_FooterArea] rs(100,100)

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

[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_FooterArea]
@ = a(la) sz(p,p)
Counter = sz(a,a) a(rb) f("Normal9_Bold") xy(10,10)

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

[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]
@  = [StyledWindowT_Small] at(dragable,a_ok,a_cancel) subst( BodyEx( [StatisticsNotificationSchedulerDlg_Scheduler] ) ) alias(settings) sz(360,a) onok(if(Type == #schtWeekly && !WeekDay0 && !WeekDay1 && !WeekDay2 && !WeekDay3 && !WeekDay4 && !WeekDay5 && !WeekDay6, balloon("SchedulerDaysEmpty"))) h(25962)

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

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

; [Statistics_Switch_Time]
; Переключатель времени по периодам
; PeriodType - тип периода
;   #ePeriodDay    - день
;   #ePeriodWeek   - неделя
;   #ePeriodMonth  - месяц
;   #ePeriodYear   - год
;
; PeriodBegin - начальное значение периода времени
; PeriodEnd   - конечное значение периода времени
; IsChange    - индикатор того, что значения поменялись
;               (привязываться на onchange)
;
; Внимание!!! - Combo.value не использовать. 
;               вместо него 
;				Combo.PeriodType.value
;
[Statistics_Switch_Time]
$Button      = t(bmpbutton) sz(18,18) extprm(1)
$ArrLeft     = $Button bg("Arrows,0,0,0,1,0,0") a(lc) xy(0)
$ArrRight    = $Button bg("Arrows,3,3,3,2,3,3") a(ac) xy(4)
$vPrBeg      = ctl.PeriodBegin.value
$vPrEnd      = ctl.PeriodEnd.value
$vPrType     = ctl.PeriodType.value
$vPrShift    = ctl.PeriodShift.value
$prmStat_Filter = $vPrBeg, $vPrEnd, $vPrType, $vPrShift, l_IsPrev, l_IsNext
$IsChangeInc = ctl.IsChange.value = ctl.IsChange.value + 1
; -----
@            = ext(1) a(la) sz(p,a) oninit( l_IsPrev = 0; l_IsNext = 0 )
PeriodBegin  = $ValPrm oninit(ctl.value = -1)
PeriodEnd    = $ValPrm oninit(ctl.value = -1)
PeriodType   = $ValPrm oninit(ctl.value = -1)
IsChange     = $ValPrm oninit(ctl.value = -1) onchange( debugTrace(ctl.PeriodBegin.value, "PeriodBegin"); debugTrace(ctl.PeriodEnd.value, "PeriodEnd"); debugTrace(ctl.PeriodType.value, "PeriodType") )
PeriodShift  = $ValPrm
PrevShift    = $ArrLeft  onclick( f_Statistics_Filter_Down( $prmStat_Filter ); $IsChangeInc ) enable(l_IsPrev)
NextShift    = $ArrRight onclick( f_Statistics_Filter_Up( $prmStat_Filter ); $IsChangeInc ) enable(l_IsNext)
StatPeriodText = a(ac) sz(a,a) xy(10) text(s_MainThreats_Tab_Statistics_TimePeriod(ctl.Combo.value, $vPrBeg, $vPrEnd ))
Combo        = [Statistics_Switch_Time_Combo] a(rc)
Period       = a(pc) sz(a,a) xy(10)

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

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

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


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

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

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

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

[Product_Threats_ReportArea_ActionsArea_Actions]
@          = sz(a,p)
AddToQB    = [TB_Button] subst(Icon(i("MoveToQb"))) onclick(addToQuarantine()) use(!$IsKAT)
CureAll    = [TB_Button] subst(Icon(i("CureAll"))) onclick(treatAll()) enable(UntreatedCount)
Other      = [TB_Button] subst(Icon(i("SaveReport"))) onclick(savereport()) enable(totalCount()) use(!$IsKAT)

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

[Product_Threats_ReportArea_ActionsArea]
@                  = a(lt) sz(p,p) rs(100,0)
Actions            = [Product_Threats_ReportArea_ActionsArea_Actions] 
SeverityFilter     = [Product_Threats_ReportArea_ActionsArea_SeverityFilter] a(rc) xy(4)

[Product_Threats_ReportArea_ActionsArea_SeverityFilter]
$SeverityBtn    = [TB_Button_ChkLike]
$SeverityChoose = ctl.Report.setfilter(if(ctl.Info.value, $CuredVal || $InactiveVal, "false") + "||" + if(ctl.Med.value, $MedVal, "false") + "||" + if(ctl.High.value, $HighVal, "false"))

$CuredVal       = "(s_DetectObjectStatusIcon(ObjectStatus) == " + toExpr($TreatIcon_Clean) + " || s_DetectObjectStatusIcon(ObjectStatus) == " + toExpr($TreatIcon_CuredDelayed) + " || s_DetectObjectStatusIcon(ObjectStatus) == " + toExpr($TreatIcon_Cured) + ")"
$InactiveVal    = "s_DetectObjectStatusIcon(ObjectStatus) == " + toExpr($TreatIcon_Inactive)
$MedVal         = "s_DetectObjectStatusIcon(ObjectStatus) == " + toExpr($TreatIcon_Med)
$HighVal        = "s_DetectObjectStatusIcon(ObjectStatus) == " + toExpr($TreatIcon_High)

@               = sz(a,a) oninit(ctl.Info.value = true; ctl.Med.value = true; ctl.High.value = true)
Info            = $SeverityBtn subst(Icon(i(s_Ico(#ICO_INFO_14)))) onchange($SeverityChoose)
Med             = $SeverityBtn subst(Icon(i(s_Ico(#ICO_WARN_14)))) onchange($SeverityChoose)
High            = $SeverityBtn subst(Icon(i(s_Ico(#ICO_CRIT_14)))) onchange($SeverityChoose)

[Product_Threats_Report]
@           = $List at(rememberdata,noborder) alias(taskthreats) refresh(100) extprm(1) a(lt) xy(,$ListToolbarOffsetY) toolbar(ctl.parent.ActionsArea)
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(var p_Icon; p_Icon = s_DetectObjectStatusIcon(ObjectStatus); if(p_Icon == $TreatIcon_Clean || p_Icon == $TreatIcon_CuredDelayed || p_Icon == $TreatIcon_Cured || p_Icon == $TreatIcon_Inactive, "void16", p_Icon)) ia(lc) onrclick(menu("Product_Threats_Report_Menu"))

[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||ObjectStatus == #OBJSTATUS_INFECTED))
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(s_ObjectStatusExcludable(ObjectStatus) && 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(UntreatedCount)
DiscardAll      = onclick(ctl.Report.discardAll()) enable(ThreatsCount)
sep
ViewOnWeb       = onclick(url($VirusListThreatLink)) enable(!isNode) visible(DetectType!=#DETYPE_VULNERABILITY && ObjectStatus != #OBJSTATUS_ADDEDBYUSER && ObjectStatus == #OBJSTATUS_NOTDISINFECTED) use(!$IsRD)

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

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

[CheckProductPassword_Body]
@           = sz(p,a)
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]
@  = [StyledWindowT_Small] at(dragable,a_close,noautofocus) subst( BodyEx( [NewAppSniffer_Body] ) )  sz(300,a) h(34441)

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

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

[ProductStatesWindow_Body]
@               = sz(p,p) mg(7,7)
ShowSkipped     = t(check) sz(a,a) a(lb) xy(,,,7) v(l_ShowSkipped) at(rememberdata) visible(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(66,,,10)
Do      = t(button) sz(a,23) a(lb) xy(,,4) text(s_ProductLinkText(depend(val))) onclick(s_ProductLinkClick(depend(val))) visible(s_ProductLinkText(depend(val)) && depend(val) != #ProdStateAllOk)
Do2     = t(button) sz(a,23) a(ab) xy(,,4) text(s_ProductLinkText2(depend(val))) onclick(s_ProductLinkClick2(depend(val))) visible(s_ProductLinkText2(depend(val)))
Enable  = t(button) sz(a,23) a(ab) xy(,,4) visible(depend(val) != #ProdStateAllOk && depend(val) != #ProdStateSomeSkipped && depend(val) != #ProdStateProductNoEula && !f_IsProdStateCritical(depend(val))) onclick(prodStateEnable(depend(val), global.StateFilterMask & prodStateBit(depend(val))))

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

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

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

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

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

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

; __DELETE__ - [ProtectionComponents] подчистить
[ProtectionComponents]
@ = [StyledWindowT]  at(minimizable,a_close) sz(a,a) subst( BodyEx( [ProtectionComponents_Content] ))  h($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(p,36) 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]
$ShowKAVHint = ($IsKAV && s_ComponentKISInstalledOnly(ctl.parent.parent.parent.id))
Name       = extprm(1) a(ls) f("ComponentName")
Descr      = visible(!$ShowKAVHint) extprm(1) a(sa) f("ComponentDesc") at(singleline) sz(450) xy(,-3)
DescrHint  = visible($ShowKAVHint)  text($KAVhint) a(sa) f("ComponentDesc") at(singleline) sz(450) xy(,-3)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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