[Templates]
$ShowEula    = !l_eulaAccepted && !l_eulaDeclined
$Button_CX                                  = 75
$Button_CY                                  = 23
$Button_Medium_CX                           = 103
$Button_Large_CX                            = 150
$Button_Large_CY                            = 32
$Tab_ParCtl_Left_CX                         = 145
$Tab_ParCtl_Right_CX                        = 128
$Tab_ParCtl_CY                              = 26
$Tab                                        = t(tab) sz(p,p)
;$Button                                     = t(button) sz(a,$Button_CY, $Button_CX)
;$Button_Medium                              = t(button) sz(a,$Button_CY, $Button_Medium_CX)
;$Button_Large                               = t(button) sz(a,$Button_CY, $Button_Large_CX)
$Button                                     = [BtnGlass24] sz(a,$Button_CY, $Button_CX)
$Button_Large                               = [BtnGlass24] sz(a,$Button_CY, $Button_Large_CX)
$Button_Medium                              = [BtnGlass24] sz(a, $Button_CY, $Button_Medium_CX)
$LogoButton                                 = a(ct) at(btnlike,noowncontent) sz(226,42) bg("Widget_Window_ProductTitle,0,2,2,0,0,1") onclick(window("ProductInfo"))
$ToolButton                                 = at(chklike,rememberdata) bg("ToolButton,1,0,0,1,0,0") sz(21,21)
$ListButton                                 = $Button alias(listbutton)
$Check                                      = t(check) sz(a,a) a(la)
$CheckForGroup                              = t(check) sz(a,a) a(lt) at(noparentdisable) xy(0,-21)
$Radio                                      = t(radio) sz(a,a) a(la)
$Combo                                      = t(combo) sz(p,a) a(la)
$IpAddr                                     = t(ipaddress)
$Link                                       = t(hotlink) sz(a,a) f("Hotlink_Normal")
$LinkKL                                     = t(hotlink) sz(a,a) f("DescriptionBlue")
$ListTransp                                 = t(list) sz(p,p)
$List                                       = $ListTransp bg("ColorWindow")
$ListToolbarOffsetY                         = 30
$ListToolbar                                = $List at(noborder) a(lt) xy(,$ListToolbarOffsetY) toolbar(ctl.Toolbar)
$TB_ShiftFirst                              = 5
$TB_ShiftNext                               = 7
$TB_ShiftFirst_Btn                          = 2
$TB_ShiftNext_Btn                           = 1
$TB_Btn                                     = [TB_Button]
$GroupBox                                   = t(group) f("GroupHeader") b1(GroupBox)
$GroupBoxLink                               = t(group) f("GroupHeaderLink") b(GroupBox)
$SettingsGroup                              = t(box) f("SetGroupHeader") b(Topline_grey) a(la) sz(p,a) mg(8,8,0,0) xy(0,$Group_Shift)
$MainSettingsGroup                          = t(box) f("SetGroupHeader") b(Topline_grey) a(la) sz(p,a) xy(,,,20)
$Control_Shift                              = 7
$Button_Shift                               = 6
$Group_Shift                                = 7
$Edit_CenterOffsetY                         = -3
$Edit_CommentOffsetX                        = 4
$TimeEditCX                                 = 80
$Static_Shift                               = xy(0,0,0,3)
$Static_ShiftAfter                          = xy(0,3,0,0)
$ButtonsLineSizeX                           = 81
$ButtonsLineSizeY                           = 31

$DialogPanelSizeY_top                       = 30
$DialogPanelSizeYTab_top                    = 41
$TabOffset_y                                = 11
$DialogPanelSize_DiffTabStd                 = 11
$DialogPanelSizeY_bottom                    = 44
$DialogPanelSizeY                           = 36
$Border_Shift                               = 10

;Body border
$BodyBorder_Top                             = 29; $DialogPanelSizeY_top - 1
$BodyBorder_Bottom                          = 43 ; $DialogPanelSizeY_bottom - 2
$BodyBorder_Shift                           = 9  ; $Border_Shift - 1

$DialogFooterSizeY_InstallerWithSep         = 56
$DialogFooterSizeY_Installer                = 56
$Button_Installer                           = [BtnGlass24] sz(82,$Button_CY)
$Button_Shift_Installer                     = 9

$DialogPanelSizeY                           = 38
$WizardFooterSizeY                          = 48
$ButtonsLineMediumSizeX                     = 109
$RadioCommentShift                          = 18
$LValueLeftArea                             = 140
$LValueShift                                = xy(150)
$RadioCommentShiftXY                        = xy($RadioCommentShift,4)
$MenuCustom                                 = t(dialog) bg("ComboBox_sel") sz(a,a) at(ontop,nocaption,noactivate,menulike) mg(1,1)
$MenuCustomItem                             = sz(a,a) at(btnlike,noowncontent) a(la) bg((ctl.hotlight || ctl.selected) ? "GreenHotlight" : "")
$MessageDialogMinSize                       = sz(260,110)
$DlgAttrBase                                = t(dialog) mg(7,7) at(dragable) bg((isOsGuiThemed && !isTabbed && const(!$IsInitMode)) ? "ColorWindow" : "ColorWindowClassic")
$DlgAttr                                    = $DlgAttrBase at(a_ok,a_cancel)
$Dlg                                        = $DlgAttr
$DlgBodyAttr                                = at(lt) sz(p,p)
$Wizard                                     = t(dialog) mg(7,7) at(dragable,wizard) at(a_next,a_back,a_cancel)
$WizardPage                                 = sz(p,p) xy(,,,$DialogPanelSizeY)
$GroupBody                                  = a(la) bg("GroupBody") sz(p,a) rs(100,0) xy(,7)
$ValPrm                                     = extprm(1) t(v) at(hidden)
$RichText                                   = t(richedit) at(readonly,noborder,nofocus)
$ListColIconOnlySize                        = 30

$TopWindows_Min_X                           = 723
$TopWindows_Min_Y                           = 514
$shiftgw_left                               = 25

$ScanSettings_Min_X                         = 400

------------Customized URLS---------------
$ForumURL                                   = bindok("SupportCustom.aLinks.Forum.URL") && SupportCustom.aLinks.Forum.URL!="" ? SupportCustom.aLinks.Forum.URL : $ForumDefURL
$ForumName                                  = bindok("SupportCustom.aLinks.Forum.TipText") && SupportCustom.aLinks.Forum.TipText!="" ? SupportCustom.aLinks.Forum.TipText: $ForumDefName
$ForumDescr                                 = bindok("SupportCustom.aLinks.Forum.Description") && SupportCustom.aLinks.Forum.Description!="" ? SupportCustom.aLinks.Forum.Description: $ForumDefDescr
$OnlineCoursesURL                           = bindok("SupportCustom.aLinks.OnlineCourses.URL") && SupportCustom.aLinks.OnlineCourses.URL!="" ? SupportCustom.aLinks.OnlineCourses.URL : $OnlineCoursesDefURL
$OnlineCoursesName                          = bindok("SupportCustom.aLinks.OnlineCourses.TipText") && SupportCustom.aLinks.OnlineCourses.TipText!="" ?  SupportCustom.aLinks.OnlineCourses.TipText : $OnlineCoursesDefName
$OnlineCoursesDescr                         = bindok("SupportCustom.aLinks.OnlineCourses.Description")&& SupportCustom.aLinks.OnlineCourses.Description!="" ? SupportCustom.aLinks.OnlineCourses.Description : $OnlineCoursesDefDescr
$PersonalCabinetName                        = bindok("SupportCustom.aLinks.PersonalCabinet.TipText") && SupportCustom.aLinks.PersonalCabinet.TipText!="" ?  SupportCustom.aLinks.PersonalCabinet.TipText : $PersonalCabinetDefName
$PersonalCabinetDescr                       = bindok("SupportCustom.aLinks.PersonalCabinet.Description") && SupportCustom.aLinks.PersonalCabinet.Description!="" ?  SupportCustom.aLinks.PersonalCabinet.Description : $PersonalCabinetDefDescr
$SupportReqName                             = bindok("SupportCustom.aLinks.SupportReq.TipText") && SupportCustom.aLinks.SupportReq.TipText!="" ?  SupportCustom.aLinks.SupportReq.TipText : $SupportReqDefName
$SupportReqDescr                            = bindok("SupportCustom.aLinks.SupportReq.Description") && SupportCustom.aLinks.SupportReq.Description!="" ?  SupportCustom.aLinks.SupportReq.Description : $SupportReqDefDescr
$SupportURL                                 = bindok("SupportCustom.aLinks.Support.URL") && SupportCustom.aLinks.Support.URL!="" ? SupportCustom.aLinks.Support.URL : $SupportDefURL
$SupportName                                = bindok("SupportCustom.aLinks.Support.TipText") && SupportCustom.aLinks.Support.TipText!="" ? SupportCustom.aLinks.Support.TipText: $SupportDefName
$SupportDescr                               = bindok("SupportCustom.aLinks.Support.Description") && SupportCustom.aLinks.Support.Description!="" ? SupportCustom.aLinks.Support.Description: $SupportDefDescr
$BackupURL                                  = f_GetInterceptorLink("backup")
$ParentalControlURL                         = f_GetInterceptorLink("parental_control")
$ManagementConsoleURL                       = f_GetInterceptorLink("management_console")
$EncryptionURL                              = f_GetInterceptorLink("encryption")
$ParentalControlSettingsHelpURL             = f_GetInterceptorLink("st_parentalcontrol")

;-- MainWindow --
$TaskTab                                    = a(lt) sz(p,p) rs(0,0) mg(20,20,20,0)
$TaskWorkArea                               = a(lt) sz(p,p)
$TaskPanel                                  = a(lt) sz(p,p)
$TaskView                                   = $TaskPanel alias(taskview)
$TaskSubGroup                               = alias(taskview) sz(p,a) rs(0,0) a(la) xy(,,,7) ext(1)
$TaskValShift                               = xy(,5)
$TaskVal                                    = [TaskVal] a(la) $TaskValShift
$TaskTabFooterBg                            = sz(p,a) a(lb) bg("MainWindowPanelFooterBg") xy(-35,-13,-20)
$TaskInfoIcon                               = a(as) sz(a,a) i("info,0,1,0,0,0,1") at(btnlike) xy(7,7,,1)
$TaskSettingsInfoIcon                       = $TaskInfoIcon xy(7,6,,1)
$ParamInfoIcon                              = $TaskInfoIcon xy(4,1,,7)

;--- DlgWizard ------
$DlgWizardInnerAttr                         = sz(p,p) 
$WizardGroupNext                            = t(box) f("Normal_Grey") b(Topline_light) a(la) sz(p,a) mg(8,8,0,0) xy(0,$Group_Shift)
$Duplicate                                  = msg("Duplicate", #m_error|#m_res_cancel)

;--- Charts ------
$ChartStatPctrl                             = t(chartstat) mg(0,0) refresh(1000)
$ChartStat                                  = t(chartstat) mg(10,10) refresh(1000)
$ChartStatAxisY                             = t(chartaxisval) b(AxisLine) sz(32,a) xy(2) ticks(a) ticktype(1) drawpos(0) min(0) max(a) f("AxisLineText")
$ChartStatAxisX                             = t(chartaxiscat) b(AxisLine) sz(a,4)  ticks(2) drawpos(1)
$ChartStatData                              = t(chartseries) alias(blstat) mg(5) prm(#dbStatistics)
$DynamicChartAxisY                          = t(chartaxisval) b(AxisLine_Green) sz(24,a) xy(-1) ticks(4) ticktype(1) drawpos(0) min(0) max(a) f("AxisLineText")
$DynamicChartAxisX                          = t(chartaxiscat) b(AxisLine_Green) sz(a,1)  ticks(2) drawpos(1)
$TableStyleCaption1                         = f("Normal_Bold") at(fixstyle) a(lt) xy(,10) mg(5,0)
$TableStyleHeader                           = f("Normal") at(fixstyle) a(ls) xy(,16) sz(p,23) mg(5,4)
$TableStyleColumn1                          = f("Normal") at(fixstyle) a(rs) xy(12,) sz(,23)
$TableStyleRow                              = f("Normal") at(fixstyle) a(la) xy(,1) sz(p,23) mg(5,4)
$ProfileHome_Report                         = window("MainReport:" + s_Profile2ProfileGroup_Reports(name), p_postInit(if(!persistent, "ctl.Report.selgroup(" + id + ")")), $ModalIfRemote)
$KavDescr                                   = a(lb) xy(,10) i("info") ia(lt) sz(p,a) use($IsKAV)

$ChartPie                                   = t(chartpie) bg("ColorWindow") radius(50,100) refresh(1000)
$PieData                                    = t(chartseries) alias(blstat) prm(#dbStatistics)
$EmptyPieBackground                         = at(default) bg("ChartEmpty")

$StdAreaSeparator                           = sz(p,1) a(la) b(SettingsVertSep) rs(100,0)
$StdFooterSeparator                         = $StdAreaSeparator b(BlackSeparator)
$KtsBlueSeparator                           = t(box) f("KtsSeparatorFont") sz(p,a) a(la) rs(100,0) b(KtsSeparatorLineBorder)

$FooterLinkSep                              = bg("FooterLinkSep") sz(a,a)
;$FooterLinkSep                              = [LabelShadow2] f("MainFtr") text("|")
$FooterLink                                 = at(btnlike) sz(a,a) f("MainFtr")
$HeaderLink                                 = [IconLink] f("Widget_Window_Link")

$IsAdvancedDisinfectionStoped = !s_IsStateRunning(AdvDis.state)

$OpenScanProgressWindow = product.Local ? window("QMLTaskManager") : window("ScanProgressWindow", p_itemID(name), $ModalIfRemote)

; разделительная линия для страниц главного окна
$TaskSep_Temp     = b(MainTaskSep) sz(p,1) a(la) xy(,7,,8)

;------------- Dialog Panels ------------

[DialogPanel]
$LinkYBottomOffset  = 11
@                   = a(lb) xy(2,2,2,0) sz(p,$DialogPanelSizeY) ext(1) rs(100,0)
BtnsGroup           = [DialogPanel_BtnsGroup]
;Bckgnd              = sz(700,a) bg("DlgFooter") a(rt) extprm(1)
;ResizeBackground    = sz(p,p) rs(100,0) bg("DlgFooter_rs") a(pt) extprm(1)
ResizeBackground    = sz(p,p) rs(100,0) a(pt) extprm(1)
;Sep                 = $StdFooterSeparator a(lt) extprm(1)
WndResizer          = a(rb) sz(a,a) bg("WndResizer") xy(-4,-4)
Dummy               = a(lc) sz(a,a) xy(9,)
Body                = sz(p,p) a(ac) use(0) extprm(1)
Help                = [Footer_Linc] a(lb) xy(15,$LinkYBottomOffset) onclick(help()) text($Help) extprm(1) use($IsHelpExists) enable($IsAdvancedDisinfectionStoped)
S1                  = a(ac) xy($Button_Shift,,$Button_Shift) visible(ctl.Link1.visible)
Link1               = sz(a,a) [Footer_Linc]  a(ab) xy(,$LinkYBottomOffset) f($FooterLincFont) use(0) extprm(1)
S2                  = a(ac) xy($Button_Shift,,$Button_Shift) visible(ctl.Link2.visible)
Link2               = sz(a,a) [Footer_Linc]  a(ab) xy(,$LinkYBottomOffset) f($FooterLincFont) use(0) extprm(1)
S3                  = a(ac) xy($Button_Shift,,$Button_Shift) visible(ctl.Link3.visible)
Link3               = sz(a,a) [Footer_Linc]  a(ab) xy(,$LinkYBottomOffset) f($FooterLincFont) use(0) extprm(1)

[Footer_Linc]
$FooterLincFont = ctl.parent.hotlight? "Widget_Window_Link_foot" : "Widget_Window_Link_foot"
@ = sz(a,a) at(clickable,btnlike,noowncontent) ext(1)
F   = at(underlineoff) sz(a,a)         f($FooterLincFont)  bp(ctl.text = depend(ctl.parent.text); ctl.hotlight = ctl.parent.hotlight; ctl.focused = ctl.parent.focused) extprm(1)


[DialogPanel_BtnsGroup]
@           = sz(a,a) rs(0,0) a(rb) xy(7,3) extprm(1)
Confirm     = [BtnGlass32] a(lt) xy($Button_Shift)
YesToAll	= [BtnGlass32] a(at) xy($Button_Shift)
WizardGroup = [DialogPanel_BtnsGroup_WizardGroup] extprm(1)
No          = [BtnGlass32] a(at) xy($Button_Shift) extprm(1)
Cancel      = [BtnGlass32] a(at) xy($Button_Shift) onclick(close()) extprm(1)
Apply       = [BtnGlass32] a(at) xy($Button_Shift)

[DialogPanel_BtnsGroup_WizardGroup]
@       = sz(a,p) a(at) rs(0,0)
Back    = [BtnGlass32] xy($Button_Shift) extprm(1)
Next    = [BtnGlass32] a(at) xy(2) extprm(1)

;------------- Button Glass ------------

[BtnGlass24]
$btnWd = 10
$btnIndexes = 1,2,1,1,1,0
@    = t(bmpbutton) at(noowncontent) sz(a,$Button_CY) ta(cc) f(depend(ctl.enabled) ? "BtnGlass" : "BtnGlassGray")
L    = bg("BtnGlass24Left,$btnIndexes") sz($btnWd,p) a(lt) extprm(1)
R    = bg("BtnGlass24Right,$btnIndexes") sz($btnWd,p) a(rt) extprm(1)
M    = bg("BtnGlass24Middle,$btnIndexes") sz(p,p) xy($btnWd,,$btnWd) extprm(1)
Cont = [BtnGlass_Cont] mg(7) sz(a,a) a(cc) extprm(1)
MinSize = a(lt) sz($Button_CX,$Button_CY) extprm(1)

[BtnGlass28]
$Height = 28
$btnWd  = 5
$btnIndexes = 1,2,1,1,1,0
@    = t(bmpbutton) at(noowncontent) sz(a,$Height) ta(cc) f(depend(ctl.enabled) ? "BtnSecondWnd" : "BtnSecondWnd")
L    = bg("BtnGlass28Left,$btnIndexes") sz($btnWd,p) a(lt) extprm(1)
R    = bg("BtnGlass28Right,$btnIndexes") sz($btnWd,p) a(rt) extprm(1)
M    = bg("BtnGlass28Middle,$btnIndexes") sz(p,p) xy($btnWd,,$btnWd) extprm(1)
Cont = [BtnGlass_Cont] subst( Text( subst( B( use(0))) )) mg(7) sz(a,a) a(cc) extprm(1)
MinSize = a(lt) sz($Button_CX,$Height) extprm(1)

[BtnGlass32]
$btnWd = 15
;$btnIndexes = 3,1,4,5,3,2
$btnIndexes = 1,2,1,1,1,0
@    = t(bmpbutton) at(noowncontent) sz($Button_CX,$Button_Large_CY) ta(cc) f(ctl.enabled ? "BtnGlass" : "BtnGlassGray") ext(1)
L    = bg("BtnGlassLeft,$btnIndexes") sz($btnWd,p) a(lt) extprm(1)
R    = bg("BtnGlassRight,$btnIndexes") sz($btnWd,p) a(rt) extprm(1)
M    = bg("BtnGlassMiddle,$btnIndexes") sz(p,p) xy($btnWd,,$btnWd) extprm(1)
Cont = [BtnGlass_Cont] mg(7) sz(a,a) a(cc) extprm(1)

[BtnGlass37]
@     = ext(1) at(btnlike) sz(a,37)
Left  = a(lc) sz(5,p) bg(ctl.parent.selected ? "BtnGlass37Left,2" : ctl.parent.hotlight ? "BtnGlass37Left,1" : "BtnGlass37Left,0")
Bg    = a(ac) sz(p,p) bg(ctl.parent.selected ? "BtnGlass37Middle,2" : ctl.parent.hotlight ? "BtnGlass37Middle,1" : "BtnGlass37Middle,0") xy(,,5)
Right = a(rc) sz(5,p) bg(ctl.parent.selected ? "BtnGlass37Right,2" : ctl.parent.hotlight ? "BtnGlass37Right,1" : "BtnGlass37Right,0")
F     = a(cc) sz(a,37) mg(10) at(underlineoff) ta(cc) f("BtnSecondWndF") bp(ctl.text = depend(ctl.parent.text); ctl.hotlight = ctl.parent.hotlight; ctl.focused = ctl.parent.focused) extprm(1)

[BtnGreen37]
@     = ext(1) at(btnlike) sz(a,37)
Left  = a(lc) sz(5,p) bg(ctl.parent.selected ? "BtnGreen37Left,2" : ctl.parent.hotlight ? "BtnGreen37Left,1" : "BtnGreen37Left,0")
Bg    = a(ac) sz(p,p) bg(ctl.parent.selected ? "BtnGreen37Middle,2" : ctl.parent.hotlight ? "BtnGreen37Middle,1" : "BtnGreen37Middle,0") xy(,,5)
Right = a(rc) sz(5,p) bg(ctl.parent.selected ? "BtnGreen37Right,2" : ctl.parent.hotlight ? "BtnGreen37Right,1" : "BtnGreen37Right,0")
F     = a(cc) sz(a,37) mg(10) at(underlineoff) ta(cc) f("SecondWndMiddleButtonF") bp(ctl.text = depend(ctl.parent.text); ctl.hotlight = ctl.parent.hotlight; ctl.focused = ctl.parent.focused) extprm(1)

[BtnGlass37.Split]
@     = at(btnlike) sz(30,37)
Bg    = sz(p,p) bg(ctl.parent.selected ? "BtnGlass37Split,2"  : ctl.parent.hotlight ? "BtnGlass37Split,1" : "BtnGlass37Split,0")

[BtnGreen37.Split]
@     = at(btnlike) sz(30,37)
Bg    = sz(p,p) bg(ctl.parent.selected ? "BtnGreen37Split,2"  : ctl.parent.hotlight ? "BtnGreen37Split,1" : "BtnGreen37Split,0")


[BtnGlassFix]
@    = t(bmpbutton) at(noowncontent,btnlike) sz(a,$Button_CY) f(ctl.enabled ? "BtnGlass" : "BtnGlassGray")
L    = bg( s_ButtonFixBg_L(s_ProdStateSeverity(ProdStateId)) ) sz(20,p) a(lt) extprm(1)
R    = bg( s_ButtonFixBg_R(s_ProdStateSeverity(ProdStateId)) ) sz(20,p) a(rt) extprm(1)
M    = bg( s_ButtonFixBg_M(s_ProdStateSeverity(ProdStateId)) ) sz(p,p) xy(6,,6) extprm(1)
Text = [LabelShadow1] mg(15) a(lt) xy(,4) sz(a,a) at(underlineoff) text(ctl.parent.text) f(ctl.parent.font) subst(B(at(underlineoff)) F(at(underlineoff)) ) extprm(1)

[BtnGlass_Cont]
@ = ext(1)
Icon = a(lc) sz(a,a) extprm(1)
Text = [LabelShadow2] a(ac) at(underlineoff) text(depend(ctl.parent.parent.text)) f(depend(ctl.parent.parent.font)) subst(B(at(underlineoff)) F(at(underlineoff)) ) extprm(1)

[BtnGlassMedium]
@ = ext(1) [BtnGlass24] subst(MinSize(sz($Button_Medium_CX,$Button_CY)))

[BtnBottomMedim]
@    = t(bmpbutton) at(noowncontent) sz(a,20) ta(cc) f("MainFtr")
L    = bg("BtnBottomLeft,0,1,2,0,0,2") sz(20,p) a(lt) extprm(1)
R    = bg("BtnBottomRight,0,1,2,0,0,2") sz(20,p) a(rt) extprm(1)
M    = bg("BtnBottomMiddle,0,1,2,0,0,2") sz(p,p) xy(20,,20) extprm(1)
Cont = [BtnBottom_Cont] mg(7,,7) extprm(1)

[BtnBottom_Cont]
@ = a(lt) sz(a,p) ext(1)
Icon = a(lc) sz(a,a) extprm(1)
Text = a(ac) sz(a,a) xy(,1) text(ctl.parent.parent.text) f(ctl.parent.parent.font) extprm(1)

[IconLink]
@    = sz(a,a) at(btnlike,noowncontent) ext(1)
Icon = a(lc) extprm(1)
Text = a(ac) bp(ctl.text = ctl.parent.text; ctl.font = ctl.parent.font; ctl.focused = ctl.parent.focused; ctl.hotlight = ctl.parent.hotlight) extprm(1)

[IconLink2]
@    = sz(a,a) at(btnlike,noowncontent) ext(1)
Icon = a(lc) extprm(1)
Text = a(ac) bp(ctl.text = ctl.parent.text; ctl.font = ctl.parent.font; ctl.focused = ctl.parent.focused; ctl.hotlight = ctl.parent.hotlight) extprm(1)

[InfoLink]
@    = sz(a,a) ext(1)
Text = a(lt) extprm(1)
Icon = i("info,0,1,0,0,0,1") at(btnlike) sz(a,a) a(as) extprm(1)

[BtnSquare]
$BpStates   = bp(ctl.hotlight = ctl.parent.hotlight; ctl.selected = ctl.parent.selected; ctl.focused = ctl.parent.focused)
@           = sz(83,83) at(btnlike) ext(1)
L           = bg("BtnSquareLeft,0,0,1,0,0,1") sz(3,p) a(lt) $BpStates
R           = bg("BtnSquareRight,0,0,1,0,0,1") sz(3,p) a(rt) $BpStates
M           = bg("BtnSquareMiddle,0,0,1,0,0,1") sz(p,p) xy(3,,3) $BpStates
Icon        = a(ct) xy(,8) $BpStates extprm(1)
Body        = [BtnSquare_Body] a(ca)

[BtnSquare_Body]
@       = a(ca) sz(p,p) mg(7,4)
Name    = a(cc) f(ctl.enabled ? "BtnSquare" : "BtnSquareGray") extprm(1)

[BtnSquarePlay]
@ = [BtnSquare] subst(Icon(i("Play,0,0,1,0,0,1") xy(-2,8)))

[BtnSquareStop]
@ = [BtnSquare] subst(Icon(i("Stop,0,0,1,0,0,1") xy(0,8)))

[WarinngBlock]
@    = sz(p,a) at(noowncontent) ext(1)
Ico  = i("warning")
Text = xy(10) a(as) text(ctl.parent.text)

;------------- Browse Dialogs ------------

[BrowseForObject]
@    = [StyledWindowT_Small] at(dragable,resizable,a_ok,a_cancel) subst( BodyEx( [BrowseForObject_Body] ) ) sz(300,300) ext(1) h(5207) btns(Ok(enable(isValidObj())))

[BrowseForObject_Body]
@           = sz(p,p)
Recursive   = $Check a(lb) xy(0,,,$Group_Shift) v(Recursive) extprm(1)
PathLabel   = a(lp) sz(a,20) xy(0,,,$Group_Shift) extprm(1)
EditGrp     = [BrowseForObject_Body_EditGrp]
ShellTree   = t(tree) alias(shelltree) a(lp) sz(p,p) xy(0,$Group_Shift) extprm(1)

[BrowseForObject_Body_EditGrp]
@           = a(as) sz(p,a) rs(100,0)
Add         = $Button a(rt) xy(,-2,5) text($Add) extprm(1) enable(isValidObj())
PathEdit    = t(edit) at(autocomplete) a(pt) sz(p) extprm(1)

[BrowseForFolder]
@ = [BrowseForObject] at(resizable) subst(PathLabel() Add(use(0)) Recursive(use(0))) ext(1)

[BrowseForFile]
@ = [StyledWindowT_Small]  at(resizable,dragable,a_ok,a_cancel) sz(280,250) subst( BodyEx( [BrowseForFile_Body] ))  ext(1) h(21064) btns(Ok(enable(isValidObj())))

[BrowseForFile_Body]
@           = sz(p,p)
PathLabel   = sz(a,20) a(lb) xy(,5)
PathEdit    = t(edit) a(ab) sz(p) xy(5) at(autocomplete)
ShellTree   = t(tree) alias(shelltree) sz(p,p) xy(,5) a(lp)

[BrowseForScanObject]
@ = [StyledWindowT_Small]  at(dragable,minimizable,resizable,a_ok,a_cancel) sz(320,320) subst( BodyEx( [BrowseForScanObject_Body] )) ext(1) h(30209) btns(Ok(enable(isValidObj())))

[BrowseForScanObject_Body]
@           = sz(p,p)
Recursive   = $Check a(lb) xy(0,,,$Group_Shift) v(Recursive)
PathLabel   = sz(a,20) a(lp) xy(0,,,$Group_Shift)
EditGrp     = [BrowseForScanObject_Edit]
ShellTree   = t(tree) alias(shelltree) a(lp) sz(p,p) xy(0,$Group_Shift)

[BrowseForScanObject_Edit]
@           = a(as) xy(3,-1) sz(p,a) rs(100,0)
Add         = $Button a(rt) xy(,-2,5) text($Add) enable(isValidObj())
PathEdit    = t(edit) at(autocomplete) a(pt) sz(p)

[BrowseForUpdateSource]
@  = [StyledWindowT_Small] at(dragable,resizable,a_ok,a_cancel) subst( BodyEx( [BrowseForUpdateSource_Body] ) ) sz(350,280) ext(1) h(18901) btns(Ok(enable(isValidObj())))

[BrowseForUpdateSource_Body]
@           = sz(p,p) a(lt)
PathLabel   = sz(a,20) a(lb) xy(0,,,$Group_Shift)
PathEdit    = t(edit) a(ab) sz(p,20) xy(3,-5) rs(100,0) at(autocomplete)
ShellTree   = t(tree) alias(shelltree) a(lp) sz(p,p) xy(0,$Group_Shift)

[BrowseForRegistry]
@       = [StyledWindowT_Small] at(dragable,a_ok,a_cancel,resizable) sz(350,280) subst( BodyEx( [BrowseForRegistry_Body] ))  ext(1) h(5047) btns(Ok(enable(isValidObj())))

[BrowseForRegistry_Body]
@           = sz(p,p)
ValueLabel  = sz(80,20) a(lb) xy(0,,,$Group_Shift)
ValueEdit   = t(edit) a(ab) sz(p,20) xy(3,-5) rs(100,0) v(KeyValue)
PathLabel   = sz(80,20) a(lp) xy(0,,,$Group_Shift)
PathEdit    = t(edit) a(as) sz(p,20) xy(3,-5) rs(100,0) v(KeyPath)
ShellTree   = t(tree) alias(regtree) a(lp) sz(p,p) xy(0,$Group_Shift)

[BrowseForAppMenu]
@       = t(menu)
AppList
Browse  = text($Browse)

;------------- Message Dialog ------------

[MessageDialog]
@ = [StyledWindowT_Small] sz(a,a) at(minimizable,nohelp,customfooter) subst( BodyEx([MessageDialog_Body]) Caption(subst(Text(text(msg.Caption)))) ) bg($IsInitMode ? "ColorWindowClassic" : ((isOsGuiThemed && !isTabbed) ? "ColorWindow" : "ColorWindowClassic")))
MinSize = $MessageDialogMinSize

[MessageDialog_Body]
@       = sz(a,a) mg(14,14)
Icon    = sz(32,32) xy(,,17) i(s_MsgBoxIcon(msg.Icon))
Text    = t(richedit) at(readonly,noborder,nofocus) a(ac) sz(a,a,200,,500) order(4) text(msg.Text)

;------------- License Message Dialog ------------

[LicenseMessageDialog]
@ = [StyledWindowT_Small] text(msg.Caption) sz(a,a) at(minimizable,nohelp,customfooter) subst(BodyEx([LicenseMessageDialog_Body]) Footer([LicenseMessageDialog_Footer]) bg($IsInitMode ? "ColorWindowClassic" : ((isOsGuiThemed && !isTabbed) ? "ColorWindow" : "ColorWindowClassic")))
MinSize = $MessageDialogMinSize

[LicenseMessageDialog_Footer]
Close   = [BtnGlass24] a(ra) xy($Button_Shift, $Button_Shift) text($Close) onclick(close())
Action  = [BtnGlass24] a(ps) xy($Button_Shift) sz(a,$Button_CY) text(ActionName) onclick(f_licenseAction(ActionType, URL)) visible(ActionName)

[LicenseMessageDialog_Body]
@       = sz(a,a) mg(14,14)
Icon    = sz(32,32) xy(,,17) i(s_MsgBoxIcon(msg.Icon))
Text    = t(richedit) at(readonly,noborder,nofocus) a(ac) sz(a,a,200,,500) order(4) text(msg.Text)

;------------- Grid Groups --------

[Grid.Group.Bold]
@       = f("GridGroup") sz(p,30) rs(100,0)
border  = a(lb) sz(p,2) bg("GridGroup")

[Grid.Group.Template]
@       = f(isExpanded ? "GridGroup" : "Normal") sz(p,30) rs(100,0)
border  = a(lb) sz(p,2) bg("GridGroup")

[Grid.Group.Normal]
@ = sz(p,0) rs(100,0)

[Grid.Footer.Template]
@       = f("GridGroup") sz(p,22) rs(100,0) ext(1)
Add     = t(hotlink) sz(a,a) a(lt) xy(5,4) i("listctrls,0") f("Hotlink_Normal") extprm(1)
border  = a(lt) sz(p,2) bg("GridGroup")

[Grid.Footer2.Template]
@           = f("GridGroup") sz(p,22) rs(100,0) ext(1)
Add         = t(hotlink) sz(a,a) a(lc) xy(5) i("listctrls,0") f("Hotlink_Normal") extprm(1) enable(depend(canAdd()))
Edit        = t(hotlink) sz(a,a) a(as) xy(7) i("listctrls,1") f("Hotlink_Normal") extprm(1) enable(depend(canEdit()))
Delete      = t(hotlink) sz(a,a) a(as) xy(7) i("listctrls,2") f("Hotlink_Normal") extprm(1) enable(depend(canDelete()))
MoveUp      = t(hotlink) sz(a,a) a(as) xy(7) i("listctrls,3") f("Hotlink_Normal") extprm(1) enable(depend(canMoveUp())) use(0)
MoveDown    = t(hotlink) sz(a,a) a(as) xy(7) i("listctrls,4") f("Hotlink_Normal") extprm(1) enable(depend(canMoveDown())) use(0)
Import      = t(hotlink) sz(a,a) a(as) xy(7) i("listctrls,4") f("Hotlink_Normal") extprm(1) use(0)
Export      = t(hotlink) sz(a,a) a(as) xy(7) i("listctrls,3") f("Hotlink_Normal") extprm(1) use(0)
Other       = a(ac) xy(7) extprm(1) use(0)
border      = a(lt) sz(p,2) bg("GridGroup")

[TB_Hotlink]
@    = at(btnlike,noowncontent) sz(a,a) a(ac) xy($TB_ShiftNext) ext(1)
Icon = a(lc) sz(a,a) i(ctl.parent.icon) extprm(1)
Cont = a(ac) sz(a,a) f("Description") text(ctl.parent.text) extprm(1)

[TB_Button]
@    = at(btnlike,noowncontent) sz(a,23) a(ac) xy($TB_ShiftNext_Btn) ext(1)
Left = a(lt) sz(6,p) bg(ctl.parent.selected? "TBButtonLeft,1" : (ctl.parent.hotlight? "TBButtonLeft,0":"") )
Right= a(rt) sz(6,p) bg(ctl.parent.selected? "TBButtonRight,1" : (ctl.parent.hotlight? "TBButtonRight,0":"") )
Mid  = a(lt) sz(p,p) bg(ctl.parent.selected? "TBButtonMiddle,1" : (ctl.parent.hotlight? "TBButtonMiddle,0":"") ) xy(6,,6)
Icon = a(lc) sz(a,a) xy(6) extprm(1)
Cont = a(ac) sz(a,a) xy(3,,6) ta(lc) f("Description") text(ctl.parent.text) extprm(1)

[TB_Button_Menu]
@    = at(btnlike,noowncontent) sz(a,23) a(ac) xy($TB_ShiftNext_Btn) ext(1)
Left = a(lt) sz(6,p) bg(ctl.parent.selected? "TBButtonLeft,1" : (ctl.parent.hotlight? "TBButtonLeft,0":"") )
Right= a(rt) sz(6,p) bg(ctl.parent.selected? "TBButtonRight,1" : (ctl.parent.hotlight? "TBButtonRight,0":"") )
Mid  = a(lt) sz(p,p) bg(ctl.parent.selected? "TBButtonMiddle,1" : (ctl.parent.hotlight? "TBButtonMiddle,0":"") ) xy(6,,6)
AreaLeft = xy(6) a(lc) extprm(1)
Cont = a(ac) sz(a,a) xy(2) ta(lc) f("Description") text(ctl.parent.text) extprm(1)
Icon = a(ac) sz(a,a) xy(3,,3) i("ToolbarMenuIcon") extprm(1)

[TB_Button_ChkLike]
@    = at(chklike, rememberdata) a(ac) sz(20,20) rs(0,0) bg(ctl.selected ? "ToolBarItemPressed" : (ctl.hotlight ? "ToolBarItemHilight" : "")) xy($TB_ShiftNext_Btn) ext(1)
Icon = a(cc) ia(cc) sz(a,a) extprm(1)
Cont = a(ac) sz(a,a) f("Description") text(ctl.parent.text) use(0) extprm(1)

[Grid.Toolbar.Template]
@           = a(la) bg("ToolBarItem") b(SettingsVertSep) f("GridGroup") sz(p,28) rs(100,0) ext(1)
Add         = [TB_Button] subst(Icon(i("listctrls,0"))) xy($TB_ShiftFirst_Btn) extprm(1) enable(depend(ctl.parent.List.canAdd()))      onclick(ctl.parent.List.add()) 
Allow       = [TB_Button] subst(Icon(i("listctrls,7"))) extprm(1) enable(depend(ctl.parent.List.canEdit()))   use(0)
Deny        = [TB_Button] subst(Icon(i("listctrls,8"))) extprm(1) enable(depend(ctl.parent.List.canEdit()))   use(0)
AllowDeny   = [TB_Button] extprm(1) enable(depend(ctl.parent.List.canEdit()))   use(0)
Ask         = [TB_Button] subst(Icon(i("listctrls,12"))) extprm(1) enable(depend(ctl.parent.List.canEdit()))   use(0)
Edit        = [TB_Button] subst(Icon(i("listctrls,1"))) extprm(1) enable(depend(ctl.parent.List.canEdit()))     onclick(ctl.parent.List.edit())
Delete      = [TB_Button] subst(Icon(i("listctrls,2"))) extprm(1) enable(depend(ctl.parent.List.canDelete()))   onclick(ctl.parent.List.delete())
MoveUp      = [TB_Button] subst(Icon(i("listctrls,3"))) extprm(1) enable(depend(ctl.parent.List.canMoveUp()))   onclick(ctl.parent.List.moveUp()) use(0)
MoveDown    = [TB_Button] subst(Icon(i("listctrls,4"))) extprm(1) enable(depend(ctl.parent.List.canMoveDown())) onclick(ctl.parent.List.moveDown()) use(0)
Import      = [TB_Button] subst(Icon(i("listctrls,4"))) extprm(1) use(0)
Export      = [TB_Button] subst(Icon(i("listctrls,3"))) extprm(1) use(0)
Other       = a(ac) xy(7) extprm(1) use(0)
Sep         = a(lb) sz(p,1) b(SettingsVertSep)

[Grid.Editor.Template]
@           = f("GridGroup") sz(p,30) rs(100,0) ext(1)
Delete      = at(clickable) sz(a,a) a(rc) i("listctrls,2") extprm(1)
Edit        = at(clickable) sz(a,a) a(pc) i("listctrls,1") extprm(1)
MoveDown    = at(clickable) sz(a,a) a(pc) i("listctrls,4") use(0) extprm(1)
MoveUp      = at(clickable) sz(a,a) a(pc) i("listctrls,3") use(0) extprm(1)

[Grid.Groups]
footer              = [Grid.Footer.Template]
rowedit             = [Grid.Editor.Template]
date                = [Grid.Group.Bold]
dateonly            = [Grid.Group.Bold] expand(1) sort(-val,sortdown)
task                = [Grid.Group.Template] text(s_TaskID(val) + $items)
taskname            = [Grid.Group.Template] text(format_struct(profile(val), "ProfileReport")) expand(profile(val).state & #StateFlagOperational)
runtask             = [Grid.Group.Template] text(format_struct(profile(val), "ProfileReport")+ $items) expand(profile(val).state & #StateFlagOperational)
scantask            = [Grid.Group.Template] text(format_struct(profile(val), "ProfileReport") + f_scanEventsGroup(profile(val))) expand(profile(val).state & #StateFlagOperational)
dettype             = [Grid.Group.Bold] expand(1)
threatstatus        = [Grid.Group.Bold] expand(1)
PIDGroup            = [Grid.Group.Template] i(s_PIDIcon(val))
AppGroup            = [Grid.Group.Template] i(s_AppIcon(val)) text($AppGroup + $items) sort($AppGroup,sortdown)
AppItem             = [Grid.Group.Normal]   i(s_AppIcon(val)) text($AppGroup) sort($AppGroup)
CounterItem         = [Grid.Group.Normal] text(s_RepDetectType(val)) sort(s_RepDetectType(val))
CounterGroup        = [Grid.Group.Template] text(s_CounterGroup(val)) expand(1)
BasesCounterItem    = [Grid.Group.Normal]   text(s_BasesCounterType(val)) sort(s_BasesCounterType(val))
ObjectSite          = [Grid.Group.Template] text(val)
AppProgramm         = [Grid.Group.Template] text( s_filterEmptyText(val) )
AppAсtivity         = [Grid.Group.Template] expand(1) text( val == "" ? $GroupUnk : val )
default             = [Grid.Group.Template]


[Grid.Find]
@  = [StyledWindowT_Small] at(dragable) subst( BodyEx( [Grid.Find_Body] ) ) sz(370,a) h(25852)

[Grid.Find_Body]
Btn     = [Grid.FindBody.Btns]
Dlg     = [Grid.FindBody] a(pt) xy($Button_Shift)


[Grid.FindBody.Btns]
@       = a(rt) sz(a,a)
Find    = $Button a(lt) at(default)         sz($Button_Medium_CX,$Button_CY)
Mark    = $Button a(la) xy(0,5) sz($Button_Medium_CX,$Button_CY)

[Grid.FindBody]
@           = sz(p,a)
FindLbl     = a(la) xy(,5,5)
FindEdit    = a(ls) sz(p) t(edit) xy(55,$Edit_CenterOffsetY) v(Mask)
ColumnLbl   = a(la) xy(,11,5)
ColumnCmb   = [Grid.ColumnCmb]
MatchCase   = $Check a(la) xy(,10) v(MatchCase)
WholeWord   = $Check a(la) xy(,6) v(WholeWord)

[Grid.Export]
@  = [StyledWindowT_Small] at(dragable) subst( BodyEx( t(progress) a(lt) sz(p,22) v(Progress) ) ) sz(250,a) h(16452)

[Grid.ColumnCmb]
@   = a(ls) sz(p) t(combo) xy(55,$Edit_CenterOffsetY) v(Column) alias(columns)
All = at(default)

[Grid.Filter]
@  = [StyledWindowT_Small] at(dragable) subst( BodyEx( [Grid.Filter_Body] ) ) sz(a,a) v(opType) h(25854)

[Grid.Filter_Body]
Label       = sz(a,a)
Cond1       = [Grid.Filter.Condition] a(la) xy(,10,20) v(cond1)
ValMask1    = t(edit) a(as) sz(245,a) v(mask1) enable(ctl.Cond1.value != "None" && ctl.Cond1.value != "Blanks" && ctl.Cond1.value != "NonBlanks") visible(colType == 1)
ValEnum1    = t(combo) dl(10) alias(enum) a(as) v(enum1) sz(a) enable(ctl.Cond1.value != "None" && ctl.Cond1.value != "Blanks" && ctl.Cond1.value != "NonBlanks") visible(colType == 2)
ValDate1    = t(timeedit) at(date) a(as) v(date1) sz(245,a) enable(ctl.Cond1.value != "None" && ctl.Cond1.value != "Blanks" && ctl.Cond1.value != "NonBlanks") visible(colType == 3)
And         = t(radio) sz(a,a) a(la) xy(20,10) v(1)
Or          = t(radio) sz(a,a) a(as) xy(20) v(2)
Cond2       = [Grid.Filter.Condition] a(la) xy(,10,20) v(cond2)
ValMask2    = t(edit) a(as) sz(245,a) v(mask2) enable(ctl.Cond2.value != "None" && ctl.Cond2.value != "Blanks" && ctl.Cond2.value != "NonBlanks") visible(colType == 1)
ValEnum2    = t(combo) dl(10) alias(enum) a(as) v(enum2) sz(a) enable(ctl.Cond2.value != "None" && ctl.Cond2.value != "Blanks" && ctl.Cond2.value != "NonBlanks") visible(colType == 2)
ValDate2    = t(timeedit) at(date) a(as) v(date2) sz(245,a) enable(ctl.Cond2.value != "None" && ctl.Cond2.value != "Blanks" && ctl.Cond2.value != "NonBlanks") visible(colType == 3)

[Grid.Filter.Condition]
@                   = t(combo) sz(110) ext(1)
None                = at(default)
Equals              = use(colType!=3)
DoNotEqual          = use(colType!=3)
GreaterThan         = use(colType==3)
GreaterThanOrEqual  = use(0)
LessThan            = use(colType==3)
LessThanOeEqual     = use(0)
Blanks              = use(colType!=3 && colType!=2)
NonBlanks           = use(colType!=3 && colType!=2)
Like                = use(0)
NotLike             = use(0)

[Grid.HdrPopup]
@           = t(menu) bg("MenuIconBg")
SortDown    = i("GridMenu,1")
SortUp      = i("GridMenu,0")
Separator
Find        = i("GridMenu,4")
Group       = i("GridMenu,2")
Filter      = i("GridMenu,3")
Separator

[Grid.FltPopup]
@           = t(menu) bg("MenuIconBg")
Custom
All
Separator

;------------- Templates ------------

[ValuePointed]
@       = sz(p,a) ext(1)
Name    = sz(a,a) a(lt) extprm(1)
ValArea = [ValuePointed_ValArea]

[ValuePointed_ValArea]
@       = sz(p,a) a(at) xy($Control_Shift)
Val     = sz(a,a) a(rt) extprm(1)
Dots    = a(pb) bg("Points") sz(p,1) xy(,2) extprm(1)

[Value]
@       = sz(p,a) ext(1)
Name    = sz(a,a) extprm(1) a(lt)
Val     = sz(a,a) a(rt) extprm(1)

[LValue]
@ = ext(1) [Value] a(la) subst(Name(a(lc)) Val(a(lt) xy(100) sz(p,a)))

[Value2]
@       = sz(p,a) ext(1)
Val     = sz(a,a) xy() a(rt) extprm(1)
NameArea = [Value2_NameArea] a(pt) sz(p,a) xy(7)

[Value2_NameArea]
Name    = sz(a,a) extprm(1) a(lt)

[ValueA]
@ = ext(1) [Value] sz(a,a) subst(Val(a(at)) )

[ProfileHome_Chart]
@           = sz(p,p) ext(1)
Zoom        = [ProfileHome_Chart_Zoom]
Chart       = sz(p,p) a(lp) mg(0,3,0,5) extprm(1)
Legend      = a(rt) xy(,4) sz(a,a) extprm(1)
Name        = extprm(1) xy(40,7) f("PlotAreaFont")
;PeriodDesc  = extprm(1) a(rt) xy(14,7) f("PlotAreaFont") text($ChartPeriod+ctl.Chart.Period()/60 + " " + s_minutes(f_numdeclension(ctl.Chart.Period()/60)) )


[ProfileHome_Chart_Zoom]
@               = a(rb) sz(a,11) extprm(1)
button_minus    = t(bmpbutton) sz(11,11) a(lt) bg("grafplusminus,1,1,1,1,1,1") onclick(ctl.Chart.zoom("-", "60,180,300,600"))
sep             = bg("grafsep") a(at) xy(1,4,1)
button_plus     = t(bmpbutton) sz(11,11) a(at) bg("grafplusminus,0,0,0,0,0,0") onclick(ctl.Chart.zoom("+", "60,180,300,600"))

[ProfileHome_ChartStat]
@ = ext(1) [ProfileHome_Chart] subst( Zoom(use(0)) Name(xy() a(ct) f("GridGroup")) Chart(xy(,,,14)) )

[ChartLegend]
@       = sz(a,a) a(at) xy(,,7) ext(1)
Color   = a(lt) xy(,3) sz(8,8) extprm(1)
Text    = a(at) xy(7) extprm(1)

[TaskIcon]
@       = a(ca) sz(p,a) xy(,5)
Icon    = sz(90,92) ia(ct) at(btnlike) extprm(1)
Desc    = a(ls) xy(110) sz(p,78) at(dynshow) extprm(1) use(0)

[TaskCheck]
@       = sz(a,a) at(btnlike) onclick(menu("TaskCheckMenu")) ext(1)
Icon    = sz(a,a) xy(,1) bg(s_ProfileStateImage(state)) bp(ctl.hotlight = ctl.parent.hotlight)
Text    = a(at) xy(7) text($ProfileName) f($ProfileStateFont) extprm(1) bp(ctl.hotlight = ctl.parent.hotlight; ctl.focused = ctl.parent.focused)

[TaskCheckMenu]
@           = t(menu) ext(1)
ErrInfo     = visible($IsErr || (state & #StateFlagMalfunction)) onclick(msg("ProfileErrorInfo", f_ErrFail(lastErr) || (state & #StateFlagMalfunction) ? #m_error : #m_warning))
sep
Report      = text($Reports) onclick(window("MainReport:" + s_Profile2ProfileGroup(name)))
sep
Enable      = text(s_ProfileStateEnableText(state)) onclick(s_ProfileStateClick(state)) extprm(1)
Settings    = text($Settings) onclick(window("OptionsWindow:" + s_Profile2ProfileGroup(name)))

[TaskVal]
@ = ext(1) [ValuePointed] subst(Dots(use(0)))

[RunAsGroup]
@       = $SettingsGroup xy(0,) use(product.Local) ext(1)
Enable  = t(check) sz(a,a) v(runas.enable)
Account = [LValue] xy(20,7) enable(runas.enable) subst(Name() Val(t(edit) v(runas.account) onok(if(runas.enable && !ctl.value, balloon("NoRunAsAccount")))))
Pswd    = [LValue] xy(20,7) enable(runas.enable) subst(Name() Val(t(edit) at(password) oninit(if(runas.password=="",runas.password=crypt(""))) v(bicrypt(runas.password))))

;------------- Tray Window ------------

[Tray]
@ = t(tray) alias(producttray) prm(s_ProductTrayId(env("ProductType"))) onclick(f_showMainWindow("MainLauncherWindow")) ext(1)

[Tray.menu]
@                 = t(menu)
LaunchQMLTaskManager  = onclick(window("QMLTaskManager")) enable(EulaVerified)
sep
Updater           = alias(taskview) onclick(f_StartUpdater())
sep
Tools             = [Tray.menu_Tools] use(!$IsKAV) enable(EulaVerified)
sep               = visible($IsKAV && (ctl.Tools.visible || ctl.Updater.visible || ctl.Scan_Startup.visible || ctl.Scan_My_Computer.visible || ctl.Scan_Qscan.visible))
LockPasswordManager = onclick(passwordManager("lock"))
UnlockPasswordManager = onclick(passwordManager("unlock"))
PasswordManagerAccounts = [PasswordManager.Accounts.menu]
PasswordManagerAdd  = [PasswordManager.Add.menu]
sep
kis               = onclick(f_showMainWindow("MainLauncherWindow")) at(default)
EnableParCtl      = alias(taskview) ns(ParCtl) onclick(if(f_checkFullFunctionality(),(var pUserSett; pUserSett = users.find("UserId == " + toExpr(CurrentUserSID)).settings; pUserSett.Enabled = !pUserSett.Enabled; name.ser().setProfileSettingsDirty()))) use(f_isInstalled("ParCtl")) enable(EulaVerified)
DisableProtect    = alias(taskview) onclick(s_IsStateRunning(Protection.state) ? f_setState(#TASK_REQUEST_PAUSE, "Protection") : setstate(#TASK_REQUEST_RUN, "Protection")) use(!$IsProtectionNotInstalled) enable(!s_IsStateTransitional(Protection.state) && !$IsSafeMode && EulaVerified)
Settings          = alias(taskview) onclick(window("OptionsWindow")) enable(EulaVerified)
About             = onclick(window("ProductInfo"))
sep
RestartOS         = onclick(f_RestartOs()) use($IsNeedReboot)
Unload            = onclick(exit()) use(!IsRunInSandbox())

[Tray.menu_Tools]
VirtualKeyboard   = onclick(window("VirtualKeyboard")) use($PersonalOnly && f_isVkbdInstalled())
SafeDesktop       = use($CanRunSafeDesktop) onclick(if(!IsRunInSandbox(), runSafeDesktop(), goToBaseDesktop())) enable(EulaVerified)
sep
HipsTask          = alias(taskview) enable(f_isInstalled(ctl.id)) onclick(window("SystemMonitor:Programs:Running"))
NetMonitor        = alias(taskview) onclick(window("NetworkMonitor")) use(f_isInstalled("Firewall")) enable(f_IsStateActive(Firewall.state))

[PasswordManager.Add.menu]
WebAccount = onclick(passwordManager("add_web_account"))
AppAccount = onclick(passwordManager("add_app_account"))
BoockMark  = onclick(passwordManager("add_bookmark"))
Card       = onclick(passwordManager("add_identity"))
Note       = onclick(passwordManager("add_securememo"))

[PasswordManager.Accounts.menu]
Account = at(hidden) onclick(passwordManager("account", ctl.id))

[Tray.menu_Item]
@           = $MenuCustomItem sz(280,a) ext(1)
Icon        = a(lt) extprm(1) sz(45,p) ia(ct) xy(,11)
SepVert     = sz(1,p) xy(45,) a(lt) b(SettingsVertSep) rs(0,0)
Data        = [Tray.menu_Item.Data] mg(12,11) a(at) extprm(1)
Arrow       = a(ac) i("MenuSubArrow") use(0) extprm(1)

[Tray.menu_Item.Data]
@           = sz(208,a)
Caption     = a(at) sz(a,a) f("Header0") extprm(1)
Description = a(sa) sz(a,a) xy(,7) f("Description") extprm(1)

[Tray.menu_Item.Sep]
@ = [Tray.menu_Item] subst( Data( sz(p,1) xy(4,,4,) a(at) b(MainTaskSep) rs(0,0)) Icon( use(0) ) )

[TrayNews]
@ = t(tray) alias(newstray) text($NewsFromKL) onclick(UnreadNewsCount == 1 ? window("QMLNewsItem") : window("QMLNewsList"))

;------------- Main Window ------------

;[MainWindow]
;@   = $DlgAttrBase mg(0,0) alias(taskview) at(minimizable) sz(a,a) onclose(if(env("WithoutSysShell"), if($IsKAT ? (if(isUserClose && uninstallAVPTool(msg("UninstallAVPToolWarning", #m_yesno|#m_warning)), url($url_trials)), true) : msg("ProductExitConfirm", #m_yesno), exit(), false)))
;b   = [MainWindow_Compact]
;b   = [MainWindow_Std]

[MainWindow]
@ = [StyledCaptionWindowT] alias(taskview) at(minimizable) sz(a,a) onclose(if(env("WithoutSysShell"), if($IsKAT ? (if(isUserClose && uninstallAVPTool(msg("UninstallAVPToolWarning", #m_yesno|#m_warning)), url($url_trials)), true) : msg("ProductExitConfirm", #m_yesno), exit(), false))) subst(Footer(use(0)) Body([MainWindow_Body] xy(,,,0)))

[MainWindowScanObjects]
@ = t(mvpdialog) class("MainWindow_widget:Scan")

[MainWindowProtectionUpdater]
@ = t(mvpdialog) class("MainWindow_widget:Updater")

[MainWindow_widget]
@ = [Widget_window] sz(a,a) onclose(if(env("WithoutSysShell"), if($IsKAT ? (if(isUserClose && uninstallAVPTool(msg("UninstallAVPToolWarning", #m_yesno|#m_warning)), url($url_trials)), true) : msg("ProductExitConfirm", #m_yesno), exit(), false))) subst(Footer(use(0)) Body([MainWindow_Body] xy(,,,0)))

[MainWindowPage]
@    = sz(p,p) alias(taskview)
Body = [MainWindow_Body]

[MainWindow_Body]
@   = ext(1) alias(taskview) 
b   = [MainWindow_Compact]
b   = [MainWindow_Std]

[MainWindow_Std]
@           = sz(770,550)
Bg          = a(lt) bg("Widget_WindowBg")
Header      = [MainWindow_Header] subst(hdr(bg()) )
Navigator   = [MainWindow_Navigator]
Footer      = [LauncherWindowFooter]
Banner      = [MainWindow_Navigator_Banner] a(rt) use(!$IsKTS)

[MainWindow_Header]
@               = sz(p,90) rs(100,0) ext(1)
hdr             = [ProductHeader] sz(p,p) subst(LogoDsc() Sep(use(0)) Bg(use(0)) BackBtn(use(1)) _rs(use(0)) Logo(use(1) xy(5,4) bg("titledsc_prot")) ) extprm(1)
Logo            = $LogoButton
Close           = $WindowCloseBtn 
Minimize        = $WindowMinimizeBtn enable(1)
Reports         = $HeaderLink subst(Icon(i("MainEvents")) )   a(rb) xy(20,15)         onclick(window("MainThreats")) extprm(1)
Settings        = $HeaderLink subst(Icon(i("MainSettings")) ) a(ps) xy($Button_Shift) onclick(window("OptionsWindow:" + s_Navigator2SettingsRedirection(ctl.Navigator.value))) extprm(1)
CloudProt       = [Cloud_Protection] xy(,13) onclick(window("QMLKSN"))

[Cloud_Protection]
$btnWd = 12
$btnIndexes = 1,2,1,1,1,0
@    = a(cb) t(bmpbutton) at(btnlike,noowncontent) sz(a,$Button_CY) ta(cc)
L    = bg("Widget_Window_CloudProtL,$btnIndexes") sz($btnWd,p) a(lt) extprm(1)
R    = bg("Widget_Window_CloudProtR,$btnIndexes") sz($btnWd,p) a(rt) extprm(1)
M    = bg("Widget_Window_CloudProtC,$btnIndexes") sz(p,p) xy($btnWd,,$btnWd) extprm(1)
Text = at(underlineoff) mg(20) sz(a,a) a(cc) extprm(1) f(depend(ctl.enabled) ? "Widget_Window_CloudProt" : "Widget_Window_CloudProt")

[MainWindow_Navigator]
@               = alias(navigator) btns(Btns) a(lt) xy(0,90) sz(p,p) mg(,,4,) at(enum,loadpages)
Btns            = [MainWindow_Navigator_Btns] xy(2)
_client_area    = sz(p,p) a(at) xy(,,,38) ;bg("ColorWindow")
ActionPanel     = [MainWindow_Navigator_ActionPanel]
Top             = a(lt) sz(p,6) bg("Widget_Window_ContentTop")
Bottom          = a(lb) xy(,38) sz(p,6) bg("Widget_Window_ContentBottom")

[MainWindow_Navigator_ActionPanel]
@               = a(lb) sz(a,a) xy(20,55) 
Quarantine      = [MainWindow_Navigator_ActionButton] subst( Icon( i("Widget_Window_Quarantine") ) Text() Value( use(1) \
 f(ctl.parent.hotlight ? (depend(numQuarantined())? "ActionPanelBtnRed_sel" : "ActionPanelBtn_sel") : (depend(numQuarantined())? "ActionPanelBtnRed" : "ActionPanelBtn")) \
 )) onclick(window("QB_Storage")) 
Sep             = [MainWindow_Navigator_Btns_Sep] xy(-15,7,,6) sz(245)
NetworkMon      = [MainWindow_Navigator_ActionButton] subst(Icon(i("Widget_Window_NetworkMon") ) Text() ) onclick(if(f_checkNoFeatures(),window("NetworkMonitor")))
AppCtrl         = [MainWindow_Navigator_ActionButton] subst(Icon(i("Widget_Window_AppMon")     ) Text() ) onclick(if(f_checkNoFeatures(),window("SystemMonitor:Programs:Running")))

[MainWindow_Navigator_ActionButton]
@       = sz() a(la) at(btnlike) mg(,5) ext(1) 
Icon    = a(lc) sz(29) extprm(1)
Text    = a(ac) sz(a,a) at(singleline1) f(ctl.parent.hotlight ? "ActionPanelBtn_sel" : "ActionPanelBtn") extprm(1)
Value   = a(ac) sz(a,a) at(singleline1) f(ctl.parent.hotlight ? "ActionPanelBtn_sel" : "ActionPanelBtn") use(0) extprm(1)

[MainWindow_Navigator_Btns_Sep]
@ = a(la) sz(a,a)
Bg = a(ct) sz(a,3)  i("Widget_Window_NavBtnSep")

[MainWindow_Navigator_Btns]
@               = sz(a,p) xy(0,0) order(0)
Bg              = a(lt) bg("Widget_WindowBgTabs")
_btns_pos       = a(lt) sz(0,0) rs(0,0)
Protection      = [MainWindow_Navigator_Button] subst(Icon(i(ctl.parent.selected ? "Widget_Window_Protection_Sel" : "Widget_Window_Protection")    ) Text(text($Protection)) Text2()            Desc(text($ProtectionDescSmall))) onshow(ctl.focus())
Scan            = [MainWindow_Navigator_Button] subst(Icon(i(ctl.parent.selected ? "Widget_Window_Scan_Sel" : "Widget_Window_Scan")      ) Text() Text2()                             Desc())
Updater         = [MainWindow_Navigator_Button] subst(Icon(i(ctl.parent.selected ? "Widget_Window_Update_Sel" : "Widget_Window_Update")  ) Text(text()) Text2()                       Desc(text($UpdaterDescSmall))) enable1(s_IsFunctionalityLevel_Updater(LicInfo.UpdaterLevel)) use(f_isInstalled("Updater"))
;AppCtrl         = [MainWindow_Navigator_Button] subst(Icon(i("TaskHIPS")   sz(45)) Text() Text2() Body(a(ac))                 Desc()) use(f_isInstalled("HipsTask"))

[MainWindow_Navigator_Banner]
@          = sz(610,115) rs(0,0) alias(productstatus) prm(s_ProductStateList) ext(1)
Bg         = xy(86,30) bg(s_MainProtectionBannerBg(s_ProdStateSeverity(ProdStateId)))
Text       = [LabelShadow1] xy(120,37) text(s_ProtectionBannerText(s_ProdStateSeverity(ProdStateId))) f(s_ProtectionBannerBGFont(s_ProdStateSeverity(ProdStateId))) subst(F(f("ProtBanner")) ) extprm(1)
TextDescr  = [LabelShadow1] a(sa) xy(,-2) text(s_ProdState_Threats(ProdStateId)) f(s_ProtectionBannerDscBGFont(s_ProdStateSeverity(ProdStateId))) subst(F(f("ProtBannerDsc")) ) extprm(1)
Fix        = [MainWindow_Banner_DetailsBtn] xy(10,41) a(rt) visible(s_ProdStateSeverity(ProdStateId) != #eProtStateNormal && s_ProductLinkText(ProdStateId)) extprm(1) onclick(s_ProductLinkClick(ProdStateId))
Light      = sz(a,a) a(lt) xy(21,10) bg(s_MainWindowProtectionLight(s_ProdStateSeverity(ProdStateId))) at(clickable) onclick(window("MainThreats")) oninit(ctl.animate(10,4))
BannerArea = a(at) xy(,27,180) sz(p,46) at(clickable) onclick(window("MainThreats"))

[MainWindow_Banner_DetailsBtn]
@ = ext(1) [BtnGlass24] sz(a,27) f(s_ProtectionBannerBtnBGFont(s_ProdStateSeverity(ProdStateId))) subst(Text([LabelShadow1] subst(F(f("ProtBannerBtn")) )) Cont(mg(17)) Icon(use(0)) L(bg(s_ProtectionBannerDetailsBtnBg_L(s_ProdStateSeverity(ProdStateId)))) R(bg(s_ProtectionBannerDetailsBtnBg_R(s_ProdStateSeverity(ProdStateId)))) M(bg(s_ProtectionBannerDetailsBtnBg_M(s_ProdStateSeverity(ProdStateId)))) )

[MainWindow_Footer]
@               = sz(p,35) a(lb) rs(100,0) mg(15) ext(1)
Close           = [BtnGlassCustom] a(rc) xy(,,$Button_Shift) onclick(close()) use($IsKTS) text($Close)
Unload          = [BtnGlassCustom] a(rc) xy(,,$Button_Shift) onclick(close()) use(env("WithoutSysShell"))
Events          = [BtnGlassCustom] a(pc) xy(,,$Button_Shift) onclick(window("MainReport:" + s_Profile2ProfileGroup_Reports(ctl.Navigator.value))) use($IsKAT)
;Detected        = [BtnGlassCustom] a(pc) xy(,,$Button_Shift) onclick(window("MainThreats")) use(!$IsKAT)
License         = [BtnGlassCustom] a(pc) oninit(l_LicenseFlashCount = 20) ontimer(100, if(l_LicenseFlashCount, (ctl.hotlight = (l_LicenseFlashCount + 1)%2; l_LicenseFlashCount = l_LicenseFlashCount - 1))) subst(Icon(i("TaskLicense16")) Text() ) xy(,,$Button_Shift) sz(a,$Button_CY) onclick(buy(global.LicenseRenewAvailable)) use(!$IsRD && !$IsKAT) visible(product.LicRenewStatus && !$IsSubscription) extprm(1)
LicenseSubscr   = [BtnGlassCustom] a(pc) subst(Icon(i("TaskLicense16")) Text() ) xy(,,$Button_Shift) sz(a,$Button_CY) onclick((AutoActivationError.ErrorCode == 0 && !SubscriptionTolerancePassed)? url($KeyProviderLink) : update_subscr_status() ) use(!$IsRD && !$IsKAT) visible($IsSubscription) extprm(1)
;Upgrade         = [BtnGlassCustom] sz(a,$Button_CY) a(pc) xy(0) onclick(url(env("ProductUpgradeLink"))) use($IsKAV && env("ProductUpgradeLink"))
LinksPos        = a(lc) xy(0) sz(0,0)
Help            = $FooterLink text($Help) a(ac) onclick(help()) use($IsKAT || $IsHelpExists) enable($IsAdvancedDisinfectionStoped)
S1              = $FooterLinkSep a(ac) xy($Button_Shift,,$Button_Shift) visible(ctl.Support.visible)
Cabinet         = $FooterLink a(ac) onclick(f_PersCab()) use(1) use(!$IsRD && !$IsKAT) extprm(1)
Sep             = $FooterLinkSep a(ac) xy($Button_Shift,,$Button_Shift) visible(ctl.Cabinet.visible)
Support         = $FooterLink a(ac) onclick(window("SupportWindow")) use(!$IsRD && !$IsKAT) extprm(1)
S3              = $FooterLinkSep a(ac) xy($Button_Shift,,$Button_Shift) use(!$IsRD && !$IsKAT) extprm(1)
LicDesc         = $FooterLink a(ac) onclick($ShowLicenseManager) use(!$IsRD && !$IsKAT)  extprm(1)
LicDescAt       = $FooterLink a(ac) xy(-1) use(!$IsRD && !$IsKAT)  extprm(1)
LicDesc2        = sz(a,a) f("MainFtrSmall") a(ac) xy(,) use(!$IsRD && !$IsKAT)  extprm(1)
S2              = $FooterLinkSep a(ac) xy($Button_Shift,,$Button_Shift) visible(ctl.FullProtection.visible) use(!$IsRD)
FullProtection  = $FooterLink a(ac) onclick(url(env("ProductUpgradeLink"))) use($IsKAT)

[MainWindow_Footer_ResizeBackground]
@ = sz(0,p) a(rt) rs(100,0) bg("MainWindowCorp")

[MainWindow_Navigator_Button]
@       = sz(256,55) a(la) mg(18,,0) at(radiolike) ext(1) bg(ctl.selected ? "Widget_Window_NavSel" : (ctl.hotlight ? "Widget_Window_NavHover":""))
Icon    = a(lc) extprm(1)
Body    = [MainWindow_Navigator_Button_Body] xy(10) sz(p,a) a(ac) extprm(1)

[MainWindow_Navigator_Button_Body]
Text    = a(lt) sz(p,a) at(singleline1) f(ctl.parent.parent.selected ? "NavBtn_sel" : "NavBtn") extprm(1)

[MainWindow_Info_Panel]
@       = t(bmpbutton) sz(p,a) a(la) ia(lt) ext(1)
Text    = a(lt) sz(p,a) xy(40) extprm(1) f("Header5Lite")
Desc	= a(sa) sz(p,a) xy(,4,,7) mg(,,4) f("Description")  extprm(1)

[MainWindow_Compact]
@       = sz(510,a) bg("MainWindowBg") use($IsKAT || $IsRD)
Header  = [MainWindow_Header] use($IsKAT) sz(p,62) subst(Settings(use(0)) Banner(subst(Text(use(0)) Details(xy(110))) sz(300,36) bg(s_MainProtectionBannerBg(s_ProdStateSeverity(ProdStateId)))))
Header  = [MainWindow_Header] use($IsRD) subst(Banner(subst(Text(use(0)) Details(xy(110))) sz(300,36) bg(s_MainProtectionBannerBg(s_ProdStateSeverity(ProdStateId)))))
Body    = [MainWindow_Compact_Body]
Light   = sz(a,a) a(lp) xy(400,-32) alias(productstatus) prm(s_ProductStateList) bg(s_MainWindowProtectionLight(s_ProdStateSeverity(ProdStateId))) bp(ctl.hotlight = ctl.Banner.hotlight; ctl.focused = ctl.Banner.focused; f_MainLightBlink(s_ProdStateSeverity(ProdStateId))) at(clickable) onclick(window("MainThreats"))
Footer  = [MainWindow_Footer]

[MainWindow_Compact_Body]
@       = a(la) xy(,0,,$DialogPanelSizeY) mg(10,10) sz(p,a) bg("ColorWindow")
Navigator   = [MainWindow_Compact_Tasks]

[MainWindow_Compact_Tasks]
@               = $Tab sz(p,407) mg(0,0) xy(0,13,0,0) at(xpstyle)
Scan_Objects    = [MainWindow.Scan_Objects] subst(Scan_Objects(subst(Group1(sz(p,152) subst(footer(use($IsRD)) rowedit(use($IsRD))))))) text($Scan_Objects) h($IsKAT ? 15754 : 0)
AVZ_Scan        = [AVZ_Scan] use($IsKAT) text($AVZ_Scan) h($IsKAT ? 15755 : 0)
Updater         = [MainWindow.Updater] subst(Home(subst(Group1(sz(p,152))))) text($Updater) use(f_isInstalled("Updater"))

;------------- StyledCaptionWindowT ------------

[StyledCaptionWindowT]
@              = $DlgAttrBase mg(0,0) at(customfooter,nocaption1) round1(9,9) sz(700,300) i("Main")
Footer         = [DialogPanel] xy1(3,3,3,3) extprm(1)
;Caption        = [StyledCaptionWindowT_Caption]
;Border         = [StyledCaptionWindowT_Border] a(la) order(0)
Body   = sz(s,s) xy(,,,$DialogPanelSizeY) extprm(1)

[StyledCaptionWindowT_Caption]
@        = sz(p,a)
L        = a(lt) bg("SCW_CaptionL")
M        = a(lt) bg("SCW_CaptionM") sz(p) xy(12,,12)
R        = a(rt) bg("SCW_CaptionR")
Icon     = a(lc) xy(6,-1) i(ctl.parent.parent.icon) at(clickable)
Text     = a(ac) xy(0,-1) at(singleline) f("Header1White") text(ctl.parent.parent.text) extprm(1)
Close    = at(btnlike) bg("SCW_Caption_BtnClose,0,1,3,0,0,3") a(rt) xy(6) onclick(close())
Minimize = at(btnlike) bg("SCW_Caption_BtnMinimize,0,1,3,0,0,3") a(pt) onclick(showMode(#showMinimized))

[StyledCaptionWindowT_Border]
@      = b(SCW_Outside) sz(s,s)
Middle = [StyledCaptionWindowT_Border_Middle]

[StyledCaptionWindowT_Border_Middle]
@      = b(SCW_Middle) sz(s,s)
Inside = [StyledCaptionWindowT_Border_Middle_Inside]

[StyledCaptionWindowT_Border_Middle_Inside]
@      = b(SCW_Inside) sz(s,s)
Body   = sz(s,s) xy(,,,$DialogPanelSizeY) extprm(1)

[StyledCaptionWindowT_Caption.Icon.menu]
Minimize = onclick(showMode(#showMinimized))
sep
Close    = at(default) onclick(close())

------------- Widget_window ------------

[Widget_window]
@              = t(propsheetpage) mg(0,0) at(customfooter,nocaption1) round1(9,9) sz(700,300) i("Main")
Footer         = [DialogPanel] xy1(3,3,3,3) extprm(1)
;Caption        = [StyledCaptionWindowT_Caption]
;Border         = [StyledCaptionWindowT_Border] a(la) order(0)
Body   = sz(s,s) xy(,,,$DialogPanelSizeY) extprm(1)

;------------- StyledWidgetWindowT ------------

[StyledWidgetWindowT]
@        = t(propsheetpage) mg(0,0) sz(770,550) ext(1)
Bg       = a(lt) bg("Widget_WindowBg")
Footer   = [LauncherWindowFooter] extprm(1)
Caption  = [StyledWidgetWindowT_Caption] extprm(1)
Top      = a(la) sz(p,6) bg("Widget_Window_ContentTop") extprm(1)
BodyEx   = [StyledWidgetWindowT_Body] xy(,,,$DialogPanelSizeY) extprm(1)
Bottom   = a(lb) xy(,38) sz(p,6) bg("Widget_Window_ContentBottom") extprm(1)

[StyledWidgetWindowT_Caption]
@        = a(lt) sz(p,90)
Header   = [ProductHeader] sz(p,p) subst(Sep(use(0)) Bg(use(0)) BackBtn(use(1)) _rs(use(0)) Logo(use(1) xy(5,4) bg("titledsc_prot")) LogoDsc(text($Header)) ) extprm(1)
Logo     = $LogoButton
Close    = $WindowCloseBtn 
Minimize = $WindowMinimizeBtn enable(1)
Links    = a(rb) xy(20,15)
Reports  = $HeaderLink subst(Icon(i("MainEvents")) Text()) a(ps) xy(,,5) text($Reports) onclick(window("MainThreats")) use(0) extprm(1)
Help     = $HeaderLink subst(Icon(i("MainInfo")) Text()) a(ps) onclick(help()) extprm(1)

[StyledWidgetWindowT_Body]
@    = a(la) mg(3,,3,6) sz(p,p)
Body = sz(p,p) extprm(1)

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

[LauncherWindowFooter]
@    = a(lb) sz(p,38) rs(100,0) ext(1)
Back = [BtnGlass28] a(rb) xy(15,5) onclick(back) extprm(1)
Help = [Footer_Linc] a(lc) xy(15,1) onclick(help()) extprm(1) use(1) enable($IsAdvancedDisinfectionStoped)

;------------- StyledWindowT ------------

[Templates]
$dlg_pic_lt_x = 100
$dlg_pic_lt_y = 100
$dlg_pic_rt_x = 100
$dlg_pic_rt_y = 100

$dlg_pic_lb_x = 100
$dlg_pic_lb_y = 100
$dlg_pic_rb_x = 100
$dlg_pic_rb_y = 100

$dlg_body_xy    = xy($Border_Shift,$DialogPanelSizeY_top,$Border_Shift,$DialogPanelSizeY_bottom)
$dlg_bodyTab_xy = xy($Border_Shift,$DialogPanelSizeYTab_top,$Border_Shift,$DialogPanelSizeY_bottom)

; ------------------- Design of Template Style Window -------------------

[DesignWindowT]
@ = sz(p,p) ext(1)
CaptionBg      = [DesignWindowT_CaptionBg]
middle         = [DesignWindowT_Middle]
FooterBg       = [DesignWindowT_FooterBg]
;BorderOutSide  = [DesignWindowT_BorderOutSide] visible(!ctl.parent.parent.IsStyle("is_maximaze"))
BorderInSide   = [DesignWindowT_BorderInSide]
;Body           = [DesignWindowT_Body]

[DesignWindowT_Body]
@        = a(lt) bg("ColorWindowClassic") $dlg_body_xy  sz(p,p) extprm(1)

[DesignWindowT_CaptionBg]
$isMaximize = ctl.parent.parent.parent.IsStyle("is_maximaze")
@        = sz(p,a) ext(1)
L        = extprm(1) a(lt) bg($isMaximize ? "dlg_topleft_flat_bg":"dlg_topleft_bg") 
M        = extprm(1) a(lt) bg("dlg_topfiller_bg") sz(p,) xy($dlg_pic_lt_x,,$dlg_pic_rt_x,)
R        = extprm(1) a(rt) bg($isMaximize? "dlg_topright_flat_bg":"dlg_topright_bg")

[DesignWindowT_Middle]
@        = sz(p,p) ext(1)
L        = extprm(1) a(lt) xy(,$dlg_pic_lt_y,,$dlg_pic_lb_y) sz(a,p) bg("dlg_leftfiller_bg")
R        = extprm(1) a(rt) xy(,$dlg_pic_rt_y,,$dlg_pic_rb_y) sz(a,p) bg("dlg_rightfiller_bg")

[DesignWindowT_FooterBg]
$isMaximize = ctl.parent.parent.parent.IsStyle("is_maximaze")
@        = sz(p,a) a(lb) ext(1)
L        = extprm(1) a(lb) bg($isMaximize ? "dlg_bottomleft_flat_bg":"dlg_bottomleft_bg")
M        = extprm(1) a(lb) xy($dlg_pic_lb_x,,$dlg_pic_rb_x,) sz(p,) bg("dlg_bottomfiller_bg")
R        = extprm(1) a(rb) bg($isMaximize ? "dlg_bottomright_flat_bg":"dlg_bottomright_bg")

[DesignWindowT_BorderOutSide]
@        = sz(p,p)
t_l      = a(lt) bg("dlg_b_topleft") sz(6,6) rs(0,0)
t_m      = a(lt) bg("dlg_b_topfiller") sz(p,3) xy(6,,6,)
t_r      = a(rt) bg("dlg_b_topright") sz(6,6) rs(0,0)
m_l      = a(lt) bg("dlg_b_middleleft") xy(,6,,6) sz(3,p) 
m_r      = a(rt) bg("dlg_b_middleright") xy(,6,,6) sz(3,p) 
b_l      = a(lb) bg("dlg_b_bottomleft") sz(6,6) rs(0,0)
b_m      = a(lb) bg("dlg_b_bottomfiller") xy(6,,6,) sz(p,3)
b_r      = a(rb) bg("dlg_b_bottomright") sz(6,6) rs(0,0)

[DesignWindowT_BorderInSide]
$CornerSize = 5
@         = sz(p,p) xy($BodyBorder_Shift,$BodyBorder_Top,$BodyBorder_Shift,$BodyBorder_Bottom)
rect_layer           = b(dlg_border_layer)  sz(p,p) xy2($BodyBorder_Shift,$BodyBorder_Top,$BodyBorder_Shift,$BodyBorder_Bottom)
rect_layer_shadow    = b(dlg_border_layer_shadow)  xy(-1,-1,-1,-1) sz(p,p) xy2($BodyBorder_Shift,$BodyBorder_Top,$BodyBorder_Shift,$BodyBorder_Bottom)
;TL        = extprm(1) a(lt) bg("dlg_content_top_left_corner")
;TM        = extprm(1) a(lt) bg("dlg_content_top_filler")          xy($CornerSize,,$CornerSize,) sz(p,) 
;TR        = extprm(1) a(rt) bg("dlg_content_top_right_corner")
;ML        = extprm(1) a(lt) bg("dlg_content_left_filler")         xy(,$CornerSize,,6) sz(a,p)
;MR        = extprm(1) a(rt) bg("dlg_content_right_filler")        xy(,$CornerSize,,6) sz(a,p)
;BL        = extprm(1) a(lb) bg("dlg_content_bottom_left_corner")  xy(0,-6)
;BM        = extprm(1) a(lb) bg("dlg_content_bottom_filler")       xy($CornerSize,,$CornerSize,) sz(p,)
;BR        = extprm(1) a(rb) bg("dlg_content_bottom_right_corner") xy(0,-6)

; ------------------- Elements of Template Style Window -------------------

[Templates]
$iconStates = "1,3,2,0,1,2"
$IsWindowMaximaze  = ctl.parent.parent.IsStyle("is_maximaze")
$UseMaximize = ctl.top.IsStyle("resizable")
$UseMinimize  = ctl.top.IsStyle("minimizable") || $UseMaximize
$WindowMinimizeBtn = at(clickable) a(pt) xy(,0) onclick(showMode(#showMinimized))                                              bg("window_minimize,"+$iconStates) enable(ctl.top.IsStyle("minimizable"))               use($UseMinimize)
$WindowMaximizeBtn = at(clickable) a(pt) xy(,0) onclick(!$IsWindowMaximaze ? showMode(#showMaximazed) : showMode(#showNormal)) bg(!$IsWindowMaximaze ? "window_maximize,"+$iconStates : "window_restore,"+$iconStates) use($UseMaximize)
$WindowCloseBtn    = at(clickable) a(rt) xy(15,0) onclick(close())                                               bg(($UseMinimize ? "window_close,":"window_close_singl,")+$iconStates)

[StyledWindowT_Caption]
@        = sz(p,$DialogPanelSizeY_top) rs(100,0) ext(1)
Icon     = a(lc) xy(7,) i(ctl.parent.parent.icon) at(clickable)
Text     = a(ac) xy(,-1,90) at(singleline) f("SecondWindowTitle") text(ctl.parent.parent.text) extprm(1)

; При добавление кнопки, также её добавить WinDlg.cpp -> CheckHitTest(...)
Close     = $WindowCloseBtn
Maximize  = $WindowMaximizeBtn 
Minimize  = $WindowMinimizeBtn


; ------------------- Template Style Window -------------------
; шаблон для большого окна
[StyledWindowT]
$roundR = 9
@              = $DlgAttrBase mg(0,0) sz(700,300) i("Main") at(customfooter) props(if(!$IsInitMode, "at(customfooter,noborder,nocaption) round($roundR,$roundR,$roundR,$roundR)")) ext(1)
design         = [DesignWindowT] use(!$IsInitMode) extprm(1)
Caption        = [StyledWindowT_Caption] use(!$IsInitMode) extprm(1)
Body           = [StyledWindowT_Body_NoCaption] use(!$IsInitMode) extprm(1)
Body           = [StyledWindowT_Body_Classic] use($IsInitMode) extprm(1)
Footer         = [DialogPanel] use(!$IsInitMode) extprm(1)
Footer         = [DialogPanelClassic] use($IsInitMode) extprm(1)

; без рамки окна
[StyledWindowT_Body_NoCaption]
@              = sz(s,s) $dlg_body_xy bg((isOsGuiThemed || true) ? "ColorWindow" : "ColorWindowClassic") extprm(1) 
BodyEx         = sz(s,s) extprm(1)

; стандартный вид
[StyledWindowT_Body_Classic]
@              = sz(s,s) xy(,,,$DialogPanelSizeY) extprm(1)
BodyEx         = sz(s,s) extprm(1)

; шаблон для маленького окна
[StyledWindowT_Small]
@              = [StyledWindowT] subst( Body(mg(12,12,12,12) ) design( [DesignWindowT] ) )

[StyledWindowT_Small_Simple]
@              = [StyledWindowT] subst( design( [DesignWindowT] ) ) sz(500,400)

; шаблон для окна содержащего TAB-control
[StyledWindowT_Tab]
$parDesign     = design( [DesignWindowT] )
$parBodyEx     = Body( $dlg_bodyTab_xy bg("") )
@              = [StyledWindowT] subst( $parDesign $parBodyEx )

; шаблон для окна содержащего small TAB-control
[StyledWindowT_Small_Tab]
$parDesign     = design( [DesignWindowT] )
$parBodyEx     = Body( $dlg_bodyTab_xy bg("") )
@              = [StyledWindowT] subst( $parDesign $parBodyEx )

; шаблон для окна без оформления
[StyledWindowT_Null]
@              = [StyledWindowT] subst( design( use(0) ) )

;------------- Wizards ------------

[WizardHeader]
@       = sz(p,p)
pic     = sz(a,a) a(lt) bg("InstallerHeader") rs(0,0) use($IsInitMode) ext(1)
pic     = sz(a,a) a(lt) bg("MainWindowHeader") rs(,0) use(!$IsInitMode) ext(1)
;_rs     = sz(p,p) a(rt) at(fixstyle) bg("WizardHeader_rs") xy(320) visible(!$IsInitMode)
Sep     = t(group) at(3dborder) xy(,,-1) sz(p,2) a(lb) use($IsInitMode) extprm(1)
Sep     = $StdFooterSeparator a(lb) use(!$IsInitMode) extprm(1)

[DialogPanelClassic]
@                   = a(lb) sz(p,$DialogFooterSizeY_Installer) ext(1) rs(100,0)
;NOTE: negative axis Y offset is necessary for correct separator displaying both with and without Copyright (compare look, for example, for [ConfigureWizard.InitBegin] and [ConfigureWizard.InitFinish])
;So you must keep above controls height not too large to prevent visual bugs
Copyright           = a(lt) [LabelShadow] at(noowncontent) subst(B(f("Normal_White") text(ctl.parent.text)) F(enable(0)) ) sz(a,a) xy(4,,1) use(0) extprm(1)
Separator           = t(group) a(at) xy(,10,-1) sz(p,2) at(3dborder) use(0) extprm(1)
BtnsGroup           = [WizardDialogPanel_BtnsGroup] a(rb) xy(6,12)
Help                = at(btnlike) a(lc) xy(9,) text($Help) f("MainFtr") onclick(help()) extprm(1) use($IsHelpExists) enable($IsAdvancedDisinfectionStoped)

[WizardDialogPanel_BtnsGroup]
@           = sz(a,$Button_CY) rs(0,0) extprm(1)
Confirm     = $Button_Installer a(lt) xy($Button_Shift_Installer)
WizardGroup = [WizardDialogPanel_BtnsGroup_WizardGroup]
No          = $Button_Installer a(at) xy($Button_Shift_Installer)
Cancel      = $Button_Installer a(at) xy($Button_Shift_Installer) onclick(close()) extprm(1)
Apply       = $Button_Installer a(at) xy($Button_Shift_Installer)

[WizardDialogPanel_BtnsGroup_WizardGroup]
@       = sz(a,p) a(at) rs(0,0)
Back    = $Button_Installer xy($Button_Shift_Installer) extprm(1)
Next    = $Button_Installer a(at) extprm(1)

[WizardTpl]
@ = [StyledWindowT] at(wizard,customfooter,minimizable) sz(a,a) subst(Footer(subst(Separator(use(1)) Help(use(!$IsInitMode)) Next(use(1)) )) BodyEx( props($IsInitMode ? "sz(493,324)" : "sz(548,383)") at(sheetpages) order(0) ))

[WizardPage]
@       = ext(1) sz(p,p)
Header  = [WizardPage_Header_Neo] use(!$IsInitMode)
Header  = [WizardPage_Header_Classic] use($IsInitMode)
Body    = a(la) sz(p,p) mg(30,10,30,7) extprm(1) use(!$IsInitMode)
Body    = a(la) sz(p,p) mg(33,23,33,7) extprm(1) use($IsInitMode)

[WizardPage_Header]
@       = sz(p,58) extprm(1)
hdr     = [WizardHeader] sz(p,p)
Body    = [WizardPage_Header_Body] sz(p,a) a(lc) xy(27)

[WizardPage_Header_Body]
Name    = sz(a,a) f("Header0White") extprm(1)
Descr   = sz(a,a) a(sa) xy(,7,) f("Header0WhiteLite") visible(ctl.text) extprm(1)

[WizardPage_Header_Neo]
@           	= sz(p,a) extprm(1)
MinHeght		= sz(a,89) a(lt)
HeaderTitle     = [WizardPage_Header_Body_Neo]

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

[WizardPage_Header_Classic]
@       = sz(p,60) extprm(1)
hdr     = [WizardHeader] sz(p,p)
Body    = [WizardPage_Header_Body_Classic] sz(p,a) a(lt) xy(20,9)


[WizardPage_Header_Body_Classic]
Name    = sz(a,a) f("Normal_Bold_Black") extprm(1)
Descr   = sz(a,a) a(sa) xy(13,7,) f("Normal_Black") visible(ctl.text) extprm(1)


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

[WizardButton]
@       = at(btnlike) a(la) sz(p,a) mg(10,7,3,10) xy(,5) bg(ctl.selected ? "HilightBtn_sel" : (ctl.hotlight ? "HilightBtn" : "")) ext(1)
Icon    = i("Arrow_select") extprm(1) xy(,2,5)
Name    = a(at) xy(1) sz(a,a) f("Header3KGreenLite") extprm(1)
Descr   = a(sa) xy(1,4) sz(a,a) f("Description") extprm(1)

[LWizardButton]
@ = [WizardButton] subst(Name(i("listctrls,5")))

[SupportWindow]
@    = [StyledWindowT] at(dragable,customfooter,a_close) sz(a,a) alias(taskview) i("Main") subst( Footer(subst(Link1(use(1) onclick(dialog("SupportWindow.Traces"))) Link2(use(1) onclick(dialog("EulaInfo"))) )) BodyEx([SupportWindow_Cont] ) ) h(15741)

[SupportWindow_Cont]
@       = sz(522,a) bg("ColorWindow") ext(1)
;Header  = [SupportWindow_Header]
Body    = [SupportWindow_New_Body] xy(,,,16)

[SupportWindow_Header]
@       = sz(p,a)
Hdr     = sz(p,66) a(lt) bg("MainWindowHeader")
Caption = a(lt) sz(p,a) xy(25,8) f("Header3White") 
Desc    = a(la) sz(p,a) xy(25,2,25) f("Header0WhiteLite")
Sep     = $StdFooterSeparator a(lb)

[SupportWindow_New_Body]
@       = sz(p,a) xy(,7) a(la)
SysInfo = [SupportWindow_New_Body_SysInfo_Block] a(lt) xy(0,0)bg("SupportBG") sz(,180)
OnClick = [SupportWindow_New_OneClickSprt] a(la) xy(16,6,16)

[SupportWindow_New_Body_SysInfo_Block]
@           = sz(p,a) mg(20,20)
Avatar	 = a(lt) i("Support") xy(,8)
Body	 = [SupportWindow_New_Body_SysInfo] a(at)  xy(16,5,14)
; xy(16,19,14)

[SupportWindow_New_Body_SysInfo]
@           = sz(p,a)
Desc    = a(lt) sz(p,a) xy(-1,,,14) f("Header5Med")
ProdVer     = [LValue] subst(Name(a(lt) f("Description")) Val(xy(180) f("Description") text($ProductVersion + if(global.ProductHotfix, " (" + global.ProductHotfix + ")"))))
Signatures  = [LValue] xy(,5) subst(Name(a(lt) f("Description")) Val(xy(180) f("Description") text(datetime(AVService.BasesDate))))
OSVer       = [LValue] xy(,5) subst(Name(a(lt) f("Description")) Val(xy(180) f("Description") text(global.OSVersion + $LtrMark)))
NoKeys      = [LValue] xy(,5) subst(Name(a(lt) f("Description")) Val(xy(180) f("Description") ) ) visible( (global.KeyState & #eNoKeys) || !LicInfo.KeyInfo.KeyType )
ActiveLic   = [LValue] xy(,5) subst(Name(a(lt) f("Description")) Val($LinkKL xy(180) text($LtrMark + f_LicenseDisplayKey(LicInfo)+if($HasReserveKey,"\n"+f_LicenseDisplayKey(ResLicInfo)) + $LtrMark) onclick(window("QMLAdditionalLicenseInfo", p_singleton(true))) ) ) visible( !ctl.NoKeys.visible && !$IsSubscription )
SubscrLic   = [LValue] xy(,5) subst(Name(a(lt) f("Description")) Val(xy(180) f("Description") text(f_LicenseDisplayKey(LicInfo) ) ) ) visible( $IsSubscription )

[SupportWindow_New_OneClickSprt]
@           = sz(p,a)
Arrow       = [WizardButton] onclick(url($OneClickSupportLink)) a(lt) subst(Name() Descr() )
KnowlegeBase= [WizardButton] a(la) onclick(url($KnowledgeBaseLink)) subst(Name() Descr() )
Forum       = [WizardButton] a(la) onclick(url($ForumDefURL)) subst(Name(text($ForumDefName)) Descr() )

[SupportWindow.Traces]
@       = [StyledWindowT] at(dragable,a_close) sz(550,a) subst( BodyEx( [SupportWindow.Traces_Body] ) ) h(30441)

[SupportWindow.Traces_Body]
@           = sz(p,a)
Intro   = sz(p,a) ia(lt) i("warning") xy(7,7)
Trace   = [SupportWindow.Traces_Trace]
Action  = [SupportWindow.Traces_Action]

[SupportWindow.Traces_Trace]
@           = $SettingsGroup xy(,7,8)
Label       = sz(p,a)
StateLabel  = a(la) xy(,7) sz(a,a)
State       = a(ls) xy(60,) sz(a,a)
LevelLabel  = a(la) xy(,10) sz(a,a)
Level       = [SupportWindow.Traces_Trace_Level]
OnOff       = $Button_Medium a(rs) onclick(switch_tracer())

[SupportWindow.Traces_Trace_Level]
@       = t(combo) a(ls) xy(60,-3) sz(150,0) v(tracer_level())
lvl100  = v(100) sz(a,a)
lvl200  = v(200) sz(a,a)
lvl300  = v(300) sz(a,a)
lvl400  = v(400) sz(a,a)
lvl500  = v(500) at(default) sz(a,a)
lvl600  = v(600) sz(a,a)

[SupportWindow.Traces_Action]
@           = $SettingsGroup mg(8,8,8,7)
AvzReport   = [WizardButton] sz(a,a) xy(,) subst(Name(text()) Descr()) onclick(f_AvzDialog("AvzCollectSysInfoWizard"))
Send        = [WizardButton] xy(,) subst(Name(text()) Descr()) onclick(dialog("SendTroublesDialogEx"))
AvzScript   = [WizardButton] xy(,) subst(Name(text()) Descr()) onclick(f_AvzDialog("AvzRunScriptWizard"))
GotoFolder  = $Button_Medium a(rt) xy(,10) enable(bmask(fileattr(objdir(env("AVZSysInfo"))), 0x10)) onclick(if(!gotofile(objdir(env("AVZSysInfo"))), msg("CantOpenFolder"))) use(!$IsRD)

[Product_Notification]
$round = 16
@       = t(dialog) sz(350,a) round($round,$round,$round,$round) at(nocaption,dragable,layered,ontop,bottom,noautofocus) onchange(if(CheckSound, sound(s_ProductNotificationSound($NotifyEventSeverity)))) prm($ProductNotificationText, $ProductNotificationTipText)
Body      = [Product_Notification_Body]

[Product_Notification_Body]
@           = sz(s,s) bg("White")
HdrTop      = [Product_Notification_Body_HdrTop]
DescrBody   = [Product_Notification_Body_DescrBody]
BottomBorder = a(la) bg("NotificationWndFooter" + s_NotifyWindowColor($NotifyEventSeverity)) mg(0,0,0,-1)

[Product_Notification_Body_HdrTop]
$btnIndexes = 0,2,0,0,0,1
@       = sz(p,55) bg("NotificationWndHeader" + s_NotifyWindowColor($NotifyEventSeverity))
Close   = at(btnlike) a(rt) sz(a,a) xy(10,10) bg("BalloonBtnClose,$btnIndexes")
Options = at(btnlike) a(ps) sz(a,a) xy(3) bg("BalloonBtnCfg,$btnIndexes") visible(global.settings.EnableInteraction) onclick(menu("Product_Notification_OptionsMenu"))  use(!$IsKAT)

[Product_Notification_Body_DescrBody]
$mg_x = 28
$mg_y = 13
@          = sz(p,a) a(la) mg($mg_x,$mg_y,$mg_x,$mg_y)
BackGround = sz(p,p) xy(-$mg_x,-$mg_y,-$mg_x,-$mg_y) bg("NotificationWndFiller" + s_NotifyWindowColor($NotifyEventSeverity))
Descr   = t(richedit) sz(p,a) at(readonly,noborder,nofocus) text(DisplayText) tt(f_RemoveTags(DisplayTipText)) a(lt)
Link    = $LinkKL onclick($ProductNotificationLink) a(la) xy(,10) text($ProductNotificationLinkText) visible(ctl.text)
DescrBottom = xy(-20, 10,-20,-$mg_y) [AlertDialogT_Bottom] visible($ShowNoLicReminder && (EventID != #eNotifyLicensing))

[Product_Notification_OptionsMenu]
@                   = t(menu)
;bg("MenuIconBg")
NotifyDisable
NotifyDisableAll
sep
NotifyConfigure     = onclick(window("OptionsWindow:Appearance:Notifications")) text($Configure)

[LabelShadow]
@   = sz(a,a) ext(1)
B   = sz(a,a) xy(1,1) at(singleline) extprm(1)
F   = sz(a,a) a(ss) xy(-1,-1) text(ctl.B.text) at(singleline) extprm(1)

[LabelShadow2]
@   = sz(a,a) at(noowncontent) ext(1)
B   = sz(a,a) xy(1,1) bp(ctl.text = ctl.parent.text; ctl.font = depend(ctl.parent.font); ctl.hotlight = ctl.parent.hotlight; ctl.focused = ctl.parent.focused) extprm(1)
F   = sz(a,a) f(depend(ctl.parent.font) + "F") bp(ctl.text = depend(ctl.parent.text); ctl.hotlight = ctl.parent.hotlight; ctl.focused = ctl.parent.focused) extprm(1)

[LabelShadow1]
;@ = [LabelShadow2] subst(B(xy(0,0)) F(xy(1,1)) ) ext(1)
@   = sz(a,a) at(noowncontent) ext(1)
B   = sz(a,a) bp(ctl.text = ctl.parent.text; ctl.font = ctl.parent.font; ctl.hotlight = ctl.parent.hotlight; ctl.focused = ctl.parent.focused) extprm(1)
F   = sz(a,a) xy(1,1) f(ctl.parent.font + "F") bp(ctl.text = ctl.parent.text; ctl.hotlight = ctl.parent.hotlight; ctl.focused = ctl.parent.focused) extprm(1)

[LabelShadow1_SL]
@   = sz(p,a) at(noowncontent) ext(1)
B   = sz(p,a) at(singleline) bp(ctl.text = ctl.parent.text; ctl.font = ctl.parent.font; ctl.hotlight = ctl.parent.hotlight; ctl.focused = ctl.parent.focused) extprm(1)
F   = sz(p,a) at(singleline) xy(1,1) f(ctl.parent.font + "F") bp(ctl.text = ctl.parent.text; ctl.hotlight = ctl.parent.hotlight; ctl.focused = ctl.parent.focused) extprm(1)

[LabelShadowRightBottom]
@   = sz(a,a) at(noowncontent) ext(1)
B   = sz(a,a) xy(1,1) bp(ctl.text = ctl.parent.text; ctl.font = ctl.parent.font; ctl.hotlight = ctl.parent.hotlight; ctl.focused = ctl.parent.focused) extprm(1)
F   = sz(a,a) f(ctl.parent.font + "F") bp(ctl.text = ctl.parent.text; ctl.hotlight = ctl.parent.hotlight; ctl.focused = ctl.parent.focused) extprm(1)

[Wizard_Navigator_Button]
@     = sz(a,25) a(at) at(radiolike) ext(1)
Bg    = a(lc) sz(p,25) bg(ctl.parent.selected ? "WizardToolbarButton,1" : "")
Left  = a(lc) sz(10,25) bg(ctl.parent.selected ? "WizardToolbarButton,0" : "") extprm(1)
Text  = a(ac) sz(a,a) at(singleline,underlineoff) f(ctl.parent.selected ? "SecondWndDescription" : ctl.parent.enabled ? "SecondWndDescriptionWhite" : "SecondWndDescriptionDisabled") xy(20,,20) extprm(1)
Right = a(ac) sz(10,25) bg(ctl.parent.selected ? "WizardToolbarButton,2" : "") extprm(1)

[MainWindow_ProfileDoWork]
@ = [WizardButton] alias(taskview) a(la) sz(p,a) bg(if(ctl.Caption.enabled, ctl.selected ? "HilightBtn_sel" : (ctl.hotlight ? "HilightBtn" : ""))) subst(Icon(i(s_MainWindow_ProfileDoWork_Icon(name)) enable(ctl.Caption.enabled)) Name([MainWindow_DoWork_Body] xy(2,-3)) Descr(use(0)) ) onclick(if(ctl.Caption.enabled, f_setState(f_IsStateActive(state) ? #TASK_REQUEST_STOP : #TASK_REQUEST_RUN, name))) ext(1)

[MainWindow_DoWork_Body]
@        = sz(p,a) ext(1)
Caption  = at(singleline) xy(-1) f("Header6Lite") text(s_MainWindow_ProfileDoWork_Caption(name)) extprm(1)
Body     = a(la) sz(0,0) extprm(1)

[ProfileHome]
@           = ext(1) sz(p,p)
Header      = [ProfileHome_Header] extprm(1)
TasksPos    = sz(0,0) a(ra)
Tasks       = extprm(1) sz(100,206) a(ps) mg(7,7) xy(,,7) bg("ProfileBodyGroup")
Group1      = extprm(1) sz(p,206) a(ps) mg(17,10) bg("ProfileBodyGroup")
Group2      = extprm(1) sz(p,p) a(la) mg(17,10) xy(,7) bg("ProfileBodyGroup")

[ProfileHome_Header]
@           = a(lt) sz(p,91) ext(1)
Icon        = sz(80,a) xy(8) a(lc) i(s_ProfileIcon(type)) extprm(1)
Caption     = a(at) xy(7,7) text(switch(name, "ProfileName") + if(!persistent && f_IsStateActive(state), " (" + Completion + "%)")) f("TaskName") extprm(1)
Description = a(sa) xy(,5) text(s_ProfileDescription(type)) extprm(1)

[ProfileHome_Progress]
@           = a(la) ext(1) sz(p,a)
MinVSize    = sz(a,a)
LastStart   = [Value] a(lt) sz(p,a) rs(0) visible(!f_IsStateActive(state)) extprm(1) subst(Name() Val([ProfileHome_Progress_LastStart]))
Completion  = [Value] a(lt) sz(p,a) rs(0) visible(f_IsStateActive(state)) subst(Name() Val([ProfileHome_Progress_Compl])) extprm(1)

[ProfileHome_Progress_LastStart]
@       = ext(1) xy(,,120)
Never   = a(lt) text(capitalize(s_ProfileState(#StateNotStarted, false))) visible(state == #StateNotStarted)
Last    = $LinkKL a(lt) text(lastErr ? s_ProfileError(type, lastErr) : capitalize(s_ProfileState(state, false))) visible(state != #StateNotStarted) onclick($ProfileHome_Report) extprm(1)

[ProfileHome_Progress_Compl]
@           = sz(p,a) a(rt) ext(1)
Details     = $LinkKL a(rt) onclick($ProfileHome_Report) extprm(1)
Progress    = t(progress) a(pt) xy(7,2,80) sz(p,12) v(Completion) extprm(1)

;------------- ProductInfo --------------

[ProductInfo]
$roundR = 9
@         = t(dialog) at(dragable,a_close,nohelp,customfooter,noborder,nocaption) round($roundR,$roundR,$roundR,$roundR) sz(397,408) alias(taskview) bg("AboutWindow")
Title     = [ProductInfo_Title]        xy(,48) a(lt)
Version   = f("Normal9_Bold")     a(c) xy(,120) text($ProductVersion + (global.ProductHotfix ? (" (" + global.ProductHotfix + ")") : ""))
About     = [ProductInfo_Body_About]   xy(90,170)   visible($IsRD || !ctl.Title.selected)
Credits   = [ProductInfo_Body_Credits] xy(30,150)  visible(ctl.Title.selected) use(!$IsRD)
Separator = bg("AboutSeparator") xy(,330)
Close     = [BtnGlass32] xy(165, 363) onclick(close())

[ProductInfo_Title]
@       = sz(p,a) at(chklike,clickable) 
Logo    = bg(s_ProductAboutLogo(env("ProductType"))) a(c) visible(!ctl.parent.selected)
Team    = bg(s_ProductAboutTeam(env("ProductType"))) a(c) visible(ctl.parent.selected)

[ProductInfo_Body_About]
@           = sz(228,170) 
ThreatDate  = [Value] xy(,10,,3) a(la) subst(Name() Val(text(datetime(AVService.BasesDate)))) use($IsKAT)
Copyright   = a(la) xy(,7) sz(a,a) f("Normal_Bold")
Warning2    = a(sa) xy(,7) sz(a,a)

[ProductInfo_Body_Credits]
@       = sz(348,185)
Credits = t(credits) sz(p,p) xy(,,,7)

[DialogInfoHeader]
@       = a(la) sz(p,a) bg("AlertInfo") ext(1)
Info    = a(la) sz(p,a) mg(17,17) extprm(1)
Buttom  = a(la) sz(p,4) bg("AlertInfoBottom")
Text    = sz(a,a) xy(17,4) extprm(1) a(lc) f("DialogInfoHeader")

[ProductHeader]
@          = sz(p,90) rs(,0) ext(1)
Bg         = a(lt) [ProductHeader_Bg] extprm(1)
AllignItem = sz(0,0) a(lt)
BackBtn    = [BackButton_Area] sz(39,43) a(lc) use(0) extprm(1) 
LogoArea   = [ProductHeader_LogoArea] xy(16,0) sz(220,a) a(ac) extprm(1)

[ProductHeader_Bg]
@ = sz(p,66)
Left    = sz(a,a)  a(lt) bg("SecondaryWindowHeader_L")
Center  = sz(p,a)  a(lt) bg("SecondaryWindowHeader_C") xy(6,,6,) 
Right   = sz(a,a)  a(rt) bg("SecondaryWindowHeader_R")

[BackButton_Area] 
;@ = xy(0,0)
;Btn = sz(39,43) bg("Widget_Window_ButtonBack") a(lt) extprm(1) at(btnlike) onclick(back)
@ = xy(0,0) oninit(ctl.TimerItem.enabled = 0; ctl.FakeBoolItem.enabled = 0)
Btn = sz(39,43) bg("ButtonBackAnimation") a(lt) extprm(1) at(btnlike) onclick(back) oninit(ctl.animate(13,1,false); ctl.TimerItem.enabled = 1)
TimerItem = ontimer(700,if(ctl.TimerItem.enabled == 1, if(ctl.FakeBoolItem.enabled == 0, ctl.FakeBoolItem.enabled = 1, (ctl.Btn.bg = "ButtonBackAnimation,14,15,15,15,15,16"; ctl.TimerItem.enabled = 0 ))))
FakeBoolItem


[ProductHeader_LogoArea]
LogoDsc  = [LabelShadow2] subst(B(xy(0,1))) a(lt) sz(p,a) use(1) f("Widget_Window_Title") extprm(1)

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

;------------- ProductInfo --------------

; This section is used in ChartSinkImp.cpp
[__Chart__]
@                               = alias(taskview)
Hips_InBytes                    = v(Firewall.InBytes)
Hips_OutBytes                   = v(Firewall.OutBytes)

[SandboxPanel]
@       = t(dialog) sz(592,29) at(nocaption,layered,ontop,top,noautofocus) mg(0,0) bg("Header_saferun") round(0,0,9,9)
Close	    = a(rc) xy(0,0) bg("Header_saferun_btns,0,2,1,0,0,1") at(btnlike)
Minimize    = a(pc) xy(0,0) bg("Header_saferun_btns,3,5,4,3,3,4") at(btnlike)
Fixed	    = a(pc) xy(0,0) bg("Header_saferun_btns,6,8,6,6,6,6") at(chklike,clickable) 
Text 		= a(cc) f("MainFtrSmall")

[EulaRequestDialog]
@ = [StyledWindowT_Small] at(dragable,customfooter,nohelp) sz(548,383) alias(taskedit) subst(BodyEx([EulaKsn_Body]) Footer([EulaRequestDialog_Footer])) text($ProductNameLong) oninit(l_eulaDeclined = false; l_eulaAccepted = false) 

[EulaRequestDialog_Footer]
$onCloseAction = if(l_eulaAccepted, acceptEula()); RunAtSystemStartup = l_eulaAccepted; UseKSN = l_ksn; if(l_eulaAccepted, savesettings(), if(l_eulaDeclined, f_shutdown())); close()
@                   = a(lb) sz(p,$DialogPanelSizeY) ext(1) rs(100,0) oninit(l_ksnAccepted = false)
Accept              = [BtnGlass24] a(rc) onclick(l_eulaAccepted = true)              visible($ShowEula)  xy($Button_Shift)
Decline             = [BtnGlass24] a(pc) onclick(l_eulaDeclined = true)              visible($ShowEula)
Next				= [BtnGlass24] a(rc) onclick(l_ksnAccepted = $ShowKsnGrace)      visible( l_eulaAccepted &&   $ShowKsnGrace && l_ksn && !l_ksnAccepted) xy($Button_Shift)
Finish              = [BtnGlass24] a(rc) onclick($onCloseAction) xy($Button_Shift)   visible((l_eulaAccepted && !($ShowKsnGrace && l_ksn && !l_ksnAccepted)) || l_eulaDeclined)
Back                = [BtnGlass24] a(ps) onclick(l_eulaDeclined = false; l_eulaAccepted = l_ksnAccepted; l_ksnAccepted = false) visible(l_eulaAccepted || l_eulaDeclined)

[EulaKsn_Body]
Eula    = sz(p,p) a(lt) [EulaInfoEx]  visible($ShowEula)
Ksn     = sz(p,p) a(lt) [Ksn_InfoEx]  visible(l_eulaAccepted && !l_ksnAccepted)
Cancel  = sz(p,p) a(lt)               visible(!l_eulaAccepted && l_eulaDeclined)
KsnGrace = sz(p,p) a(lt)			  visible(l_ksnAccepted)

[EulaInfoEx]
@          = sz(p,p)
eula_hdr   = sz(p,a) f("Header2DGrey")
eula       = [EulaInfo_Body] a(sa) xy(,$Border_Shift) sz(p,p)

[Ksn_InfoEx]
@          = sz(p,p)
ksn_hdr    = sz(p,a) f("Header2DGrey") text($KSN)
ksn        = [KsnInfo_Body] a(sa) xy(,$Border_Shift) sz(p,p)

[KsnInfo_Body]
@ = oninit(l_ksn = 1)
ksn_full   = $Button     a(sb) onclick(dialog("FullKsnTerms"))
ksn_check  = $Check      a(sp) xy(,$Border_Shift) v(l_ksn)
ksn_text   = t(richedit) a(sp) xy(,$Border_Shift) sz(p,p) at(readonly,vscroll) text($KsnBriefFile)

[FullKsnTerms]
@  = [StyledWindowT_Small] at(dragable,a_close,nohelp) subst( BodyEx( [KsnTerms_Body] ) ) sz(350,328) text($ProductNameLong)

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

[QMLNewsList]
@ = t(qmldialog) at(nocaption,minimizable,noborder) round(30,30,30,30) source(news/NewsList.qml) viewmodelid(NewsList)

[QMLNewsItem]
@ = t(qmldialog) at(nocaption,minimizable,noborder) round(30,30,30,30) source(news/NewsItem.qml) viewmodelid(NewsList)

[QMLActivationWizard]
@ = t(qmldialog) at(nocaption,minimizable,noborder) round(30,30,30,30) source(activation/ActivationWizard.qml) viewmodelid(ActivationWizard)

[QMLTaskManager]
@ = t(qmldialog) at(nocaption,minimizable,noborder) round(30,30,30,30) source(task_manager/TaskManager.qml) viewmodelid(TaskList)

[QMLCheckHosts]
@ = t(qmldialog) at(nocaption,minimizable,noborder) round(30,30,30,30) source(startup/CheckHosts.qml) viewmodelid(CheckHosts)

[QMLLicenseManager]
@ = t(qmldialog) at(nocaption,noborder) round(15,15,15,15) source(license/LicenseManager.qml) viewmodelid(LicenseManager)

[QMLRemoteLicenseManager]
@ = t(qmldialog) at(nocaption,noborder) round(15,15,15,15) source(license/LicenseManager.qml) viewmodelid(LicenseManager)

[QMLProblemList]
@ = t(qmldialog) at(nocaption,noborder) round(15,15,15,15) source(problem_list/ProblemList.qml) viewmodelid(ProblemList)

[QMLRemoteProblemList]
@ = t(qmldialog) at(nocaption,noborder) round(15,15,15,15) source(problem_list/ProblemList.qml) viewmodelid(ProblemList)

[QMLKSN]
@ = t(qmldialog) at(nocaption,noborder) round(15,15,15,15) source(ksn/OnlineServices.qml) viewmodelid(OnlineServices)

[QMLAboutCloudProtection]
@ = t(qmldialog) at(nocaption,noborder) round(15,15,15,15) source(ksn/AboutCloudProtection.qml) viewmodelid(OnlineServices)

[QMLAdditionalLicenseInfo]
@ = t(qmldialog) at(nocaption,noborder) round(15,15,15,15) source(license/AdditionalLicenseInfo.qml) viewmodelid(AdditionalLicenseInformation)

[QMLRemoteAdditionalLicenseInfo]
@ = t(qmldialog) at(nocaption,noborder) round(15,15,15,15) source(license/AdditionalLicenseInfo.qml) viewmodelid(AdditionalLicenseInformation)

[QMLEndOfLicense]
@ = t(qmldialog) at(nocaption,noborder) round(15,15,15,15) source(license/EndOfLicense.qml) viewmodelid(EndOfLicense)

[QMLCleanSafeDesktop]
@ = t(qmldialog) at(nocaption,noborder) round(15,15,15,15) source(sandbox/CleanSandbox.qml) viewmodelid(Sandbox)

[QMLCleanSafeBrowser]
@ = t(qmldialog) at(nocaption,noborder) round(15,15,15,15) source(sandbox/CleanSafeBrowser.qml) viewmodelid(Sandbox) 

[QMLSafeBrowserSettings]
@ = t(qmldialog) at(nocaption,noborder) round(15,15,15,15) source(sandbox/SafeBrowserSettings.qml) viewmodelid(SafeBrowserSettings)

[QMLWaitingForSafeDesktop]
@ = t(qmldialog) at(nocaption,noborder,alwaysontop,fullscreen,maximized) round(0,0,0,0) source(sandbox/SafeDesktopWaitingScreen.qml) viewmodelid(Sandbox)

[ProductSafeDesktopWindow]
@ = t(qmldialog) at(nocaption,noborder) round(15,15,15,15) source(sandbox/SafeDesktopWelcomeScreen.qml) viewmodelid(SafeDesktopWelcomeScreen)

[QMLRebootPage]
@ = t(qmldialog) at(nocaption,minimizable,noborder) round(15,15,15,15) source(startup/RebootPage.qml) viewmodelid(RebootPage)

[QMLFileAdvisor]
@ = t(qmldialog) at(nocaption,minimizable,noborder) round(15,15,15,15) source(ksn/FileAdvisor.qml) viewmodelid(FileAdvisor)

[QMLSandboxAlert]
@ = t(qmldialog) at(nocaption,noborder,a_ok,a_cancel) round(15,15,15,15) source(sandbox/ResolveLicenseProblem.qml) viewmodelid(SafeDesktopLicenseAlert)

[QMLMessageBox]
@ = t(qmldialog) at(nocaption,noborder,qmlmsgbox) round(15,15,15,15) contextname(MessageBoxContext) source(common/widgets/MessageBox.qml) viewmodelid(SafeDesktopLicenseAlert)

[QMLParCtlAlert]
@ = t(qmldialog) at(nocaption,noborder,a_ok,a_cancel) round(15,15,15,15) source(parental_control/ResolveLicenseProblem.qml) viewmodelid(ParentalControlAlert)

[QMLMessageBoxTemplate]
@ = t(qmldialog) at(nocaption,noborder) round(15,15,15,15)

[QMLWelcomePage]
@ = t(qmldialog) at(nocaption,noborder) round(15,15,15,15) source(startup/WelcomePage.qml) viewmodelid(WelcomePage)