;------------- update --------------

[Updater]
props=$Update_Panel
State=[Task_Header]
Body=[Update_Body]

[Update_Body]
props          = $Task_Body
Description    = [Task_Description]
Settings       = [Update_Settings]
Statistics     = [Update_Statistics] disable($($IsTaskIdValid,EnableIfNotZero))
Update         = $Button_Large at(default) $Next_Control a(ra) v($(state,IsTaskRunning,ScanRunningCmd):$(name))
UpdateRollback = $Button_Large $Next_Control a(ra) v($(Rollback.state,IsTaskRunning,ScanRunningCmd):Rollback) disable($(Protection.bRollbackAllowed,Enable_if))
;Actions        = $Button_Large $Next_Control a(ra) v(menu:NavigatorWindow.Navigator:$(name))

[Update_Settings]
props=$Task_Settings
UpdateMethod=$Task_Statistics_Item v($(schedule.Mode,Update_Method))
RetranPath=$Task_Statistics_Item at(compresspath) v($(RetrPath,unicode)) hide($(UseRetr2,ShowIfNotZero))

[Update_Statistics]
props=$Task_Statistics
LastUpdate=$Task_Statistics_Item v($(StartTime,datetime))
ThreatDate=$Task_Statistics_Item v($(AVService.BasesDate,datetime))
VirusSigns=$Task_Statistics_Item v($(AVService.NumRecords))

;------------- SettingsWindow.Updater -----------

[SettingsWindow.Updater]
props=$SettingsViewPanel h(1189)
Header=$SettingsViewHeader i(Updater)
Body=[SettingsWindow.Updater_Body]

[SettingsWindow.Updater_Body]
props=$SettingsBodyAttr
UpdateType=[Update_Type]
SettingsGroup=[Settings_Group]
OptionsGroup=[Options_Group]

[Update_Type]
props           = $SettingsGroupFirst sz(p,a) v($(schedule.Mode)) usefor($($IsAK,!))
ScheduleAuto    = t(radio) a(la) xy(,,,$Control_Shift) v(2) tt($Updater_Update_Type_ScheduleAuto) hide($(type,=,updater,ShowIfNotZero))
ScheduleEnabled = t(radio) a(la) xy(,,,$Control_Shift) v(1) text($(schedule.Type,ScheduleType)) tt($Updater_Update_Type_Schedule)
ScheduleManual  = t(radio) a(la) v(0) tt($Updater_Update_Type_Manual)
ScheduleChange  = $Button a(rc) disable($(schedule.Mode,IsScheduleManual,EnableIfNotZero)) v(dialog:SettingsWindow.ScheduleChange) tt($Updater_Update_Schedule_Change)

[Settings_Group]
props=$SettingsGroupNext sz(p,a) lb(v($(state,fld(UpdateExecutables,UpdateAH,$UpdaterLANFields,$UpdaterRetrFields))))
UpdateModules=$Checkbox $First_Control v($(UpdateExecutables)) tt($Updater_Update_Modules)
UpdateAH=$Checkbox $Next_Control v($(UpdateAH)) usefor($($IsUpdateAHShow)) text($($UpdateAHText)) tt($Updater_Update_AH)
ProxySettings=$Button_Large $Next_Control a(ra) v(dialog:SettingsWindow.Updater.ProxySettings) text($Configure) tt($Updater_Update_Settings)

[Options_Group]
props=$SettingsGroupNext sz(p,a) lb(v($(state,fld(RescanQuarantineAfterUpdate))))
Quarantine=$Checkbox $First_Control v($(RescanQuarantineAfterUpdate)) tt($Updater_Quarantine)

;------------- SettingsWindow.Updater.Wizard -----------

[SettingsWindow.Updater.Wizard]
props=$SettingsViewPanel h(9992)
UpdateSources=[Update_Sources] sz(p,p)

;------------- SettingsWindow.Updater.Wizard -----------

[SettingsWindow.updater.Policy.Wizard]
props=$SettingsViewPanel h(1189)
SettingsGroup=[Settings_Group]
OptionsGroup=[Options_Group]

;------------- SettingsWindow.Updater.ProxySettings -----------

[SettingsWindow.Updater.ProxySettings]
props=$DlgAttr sz(400,380) at(resizable)
Tab=[Update_Tab]

[Update_Tab]
props=$DlgBodyTabAttr
LANSettings=[LAN_Settings] h(1193) text($LANSettings)
UpdateSources=[Update_Sources] h(1190)
Additional=[Update_Additional] h(1194)

;------------- LAN_Settings -----------

[LAN_Settings]
$dlg_enable_ok=$(UseProxy,Update_Check_Proxy)
ConnSettings=[Conn_Settings]
ProxySettings=[Proxy_Settings]
;Test=$Button_Medium a(rt) v(dialog:)

[Conn_Settings]
props=$SettingsGroupFirst sz(p,a)
;lb(v($(state,fld(FTPPassive,FTPConnTimeout))))
Passive=$Checkbox $First_Control v($(FTPPassive)) tt($Updater_FTP_Passive)
Text1=$Next_Control
TimeOut=t(edit) at(number) a(as) sz(50) nl(1,180) xy($Edit_CommentOffsetX,$Edit_CenterOffsetY) v($(FTPConnTimeout))
Text2=a(as) xy($Edit_CommentOffsetX,3)

[Proxy_Settings]
props=$SettingsGroupNext sz(p,a) v($(UseIEProxySettings)) xy(,10) disable($(UseProxy,EnableIfNotZero)) text( )
;lb(v($(state,fld($UpdaterProxyFields))))
UseProxy=$CheckboxForGroup v($(UseProxy)) tt($Updater_Proxy_Use)
IEProxy=$Radio $First_Control v(1) tt($Updater_Proxy_IE)
CustomProxy=$Radio $Next_Control v(0) tt($Updater_Proxy_Custom)
AddrText=$Next_Control xy(16,7) disable($(UseIEProxySettings,!,EnableIfNotZero))
AddrEdit=t(edit) a(as) sz(100) xy($Edit_CommentOffsetX,$Edit_CenterOffsetY) v($(ProxyHost)) disable($(UseIEProxySettings,!,EnableIfNotZero))
PortText=a(as) xy(10,3) disable($(UseIEProxySettings,!,EnableIfNotZero))
PortEdit=t(edit) at(number) nl(1,65535) a(as) sz(55) xy($Edit_CommentOffsetX,$Edit_CenterOffsetY) v($(ProxyPort)) disable($(UseIEProxySettings,!,EnableIfNotZero))
AuthGroup=[Proxy_Settings_Auth_Group] usefor($(Version,=,1))
AuthGroup_v2=[Proxy_Settings_Auth_Group_v2] usefor($(Version,gt,1))
Bypass=$Checkbox $Next_Control v($(BypassProxyForLocalServer)) hide($ShowWinNTExtendedFuture) tt($Updater_Proxy_Bypass)

[Proxy_Settings_Auth_Group]
props        = a(la) sz(p,a) v($(UseNTLMAuth)) disable($(ProxyAuth,EnableIfNotZero))
RequireAuth  = $Checkbox $Next_Control at(noparentdisable) v($(ProxyAuth))

AuthNTLM     = $Radio $Next_Control v(1) usefor($($IsNTBasedOS))
AuthCustom   = $Radio $Next_Control v(0) usefor($($IsNTBasedOS))

UserText     = $Next_Control xy(16,7)                                                                      disable($($ProxyUseNTLMAuth,!,EnableIfNotZero))
UserEdit     = t(edit) a(ls) sz(100) xy(150,$Edit_CenterOffsetY) v($(ProxyLogin))                          disable($($ProxyUseNTLMAuth,!,EnableIfNotZero))
PswdText     = $Next_Control xy(16,7)                                                                      disable($($ProxyUseNTLMAuth,!,EnableIfNotZero))
PswdEdit     = t(edit) at(passwordset) a(ls) sz(100) xy(150,$Edit_CenterOffsetY) v($(ProxyPassword,crypt)) disable($($ProxyUseNTLMAuth,!,EnableIfNotZero))

[Proxy_Settings_Auth_Group_v2]
props        = a(la) sz(p,a)
SetCredentials= $Checkbox $Next_Control v($(UseProxyCredentials))
UserText     = $Next_Control xy(16,7)                                                                      disable($(UseProxyCredentials,EnableIfNotZero))
UserEdit     = t(edit) a(ls) sz(100) xy(150,$Edit_CenterOffsetY) v($(ProxyLogin))                          disable($(UseProxyCredentials,EnableIfNotZero))
PswdText     = $Next_Control xy(16,7)                                                                      disable($(UseProxyCredentials,EnableIfNotZero))
PswdEdit     = t(edit) at(passwordset) a(ls) sz(100) xy(150,$Edit_CenterOffsetY) v($(ProxyPassword,crypt)) disable($(UseProxyCredentials,EnableIfNotZero))

;------------- Update_Sources -----------

[Update_Sources]
$dlg_enable_ok=$(UseInternalSources,Update_Check_Sources)
Region=[Update_Regions] a(lb) xy(,,,$Button_Shift)
Sources=[Update_Sources_ListView] a(lp)

[Update_Regions]
props=$SettingsGroupNext sz(p,a) text( ) disable($(UseRegion,EnableIfNotZero))
;lb(v($(state,fld(UseRegion,Region))))
RegionCheck=$CheckboxForGroup v($(UseRegion)) tt($Updater_Source_Region)
RegionCombo=t(combo) alias(regions) at(sorted) $Next_Control sz(p) v($(Region))

[Update_Sources_ListView]
props=sz(p,p)
;AutoUpdate=$Checkbox $First_Control v($(SourcesAutoUpdate))
;DelimiterLine=b(Topline_light) a(lt) sz(p,7) xy(,7) usefor($IsAkPolicy) lb(v($(state,fld(Sources,UseInternalSources,AKServerUse))))
List=[Update_Sources.List] $Next_Control a(la) xy(,$Button_Shift,$ButtonsLineSizeX) unique(Path)
Add=$Button a(rs) tt($Updater_Source_Add)
Edit=$Button $Next_Control a(ra) tt($Updater_Source_Edit)
Delete=$Button $Next_Control a(ra) tt($Updater_Source_Delete)
MoveDown=$Button a(rb) tt($Updater_Source_Down)
MoveUp=$Button a(rp) xy(,$Button_Shift) tt($Updater_Source_Up)

[Update_Sources.List]
props=t(list) alias(vector.UpdaterSource) at(checked,noheader) sz(p,p) v($(Sources))
Name=v($(Path),$(Enable))

;------------- Update_Additional -----------

[Update_Additional]
$dlg_enable_ok=$(UseRetr2,Update_Check_Retr)
RunAs=[ScanAdvSettRunGroup] hide($ShowNTBasedFufure) usefor($($IsAK,!)) tt($$Updater_RunAs)
RetrGroup=[UpdRetr_Group] hide($(Version,gt,1,ShowIfNotZero))

[UpdRetr_Group]
props=$SettingsGroupNext sz(p,a) xy(,10) text( )
UseRetr=$CheckboxForGroup v($(UseRetr2)) tt($Updater_Retran)
Browse=$Button a(rt) v(browse:folder(RetrPath)) disable($(UseRetr2,EnableIfNotZero)$(UseRetr2,$IsVarLocallyLocked,EnableIfZero))
Folder=t(edit) a(ps) sz(p) xy($Button_Shift,1) v($(RetrPath)) disable($(UseRetr2,EnableIfNotZero))
RetranslateAll	= $Checkbox $Next_Control v($(RetranslateAll)) disable($(UseRetr2,EnableIfNotZero)) tt($Updater_Retran_All)

;------------- LAN_Settings.Test -----------

[LAN_Settings.Test]
props=$DlgAttr alias(updatertestconn) sz(a,a)
Dlg=[LAN_Settings.Test.Dlg]

[LAN_Settings.Test.Dlg]
props=$DlgBodyAttr sz(a,a)
Text=$First_Control sz(250,30)

;------------- Update_Retran_Settings -----------

[Update_Retran_Settings]
props = $DlgAttr sz(300,205) at(resizable) h(1301)
Body  = [Update_Retran_Settings_Body]

[Update_Retran_Settings_Body]
props = $DlgBodyAttr
List  = [Retran_Applications.List] sz(p,p)

[Retran_Applications.List]
props = t(list) alias(vector.RetrFilter) at(checked,noheader) v($(RetranslationCfg.RetrFilter)) tt($(CategoryDescription))
Name  = v($(CategoryName),$(Flags))

;------------- ReportWindow.Updater -----------

[Report_Body.StatisticsRun.updater]
props=$StatTop h(1071)
Downloading=$Left_Next
CurObject=t(edit) at(readonly,noborder,compress) a(ls) $StatValTop v($(FileName,objfile))
Location=$Left_Next
CurObjectDir=t(edit) at(readonly,noborder,compresspath) a(ls) $StatValTop v($(HostPath))
Completion=$ReportProgress

[Report_Body.StatisticsRun.rollback]
props=$StatTop h(1071)
Restoring=$Left_Next
CurObject=t(edit) at(readonly,noborder,compress) a(ls) $StatValTop v($(FileName,objfile))
Location=$Left_Next
CurObjectDir=t(edit) at(readonly,noborder,compresspath) a(ls) $StatValTop v($(HostPath))
Completion=$ReportProgress

[Report_Body.StatisticsResult.updater]
props=$StatTop b(Footer_Border) h(1071)
Status=xy(,10) f(BoldInfo) text($(UpdateError,UpdateResult))

[Report_Body.StatisticsResult.rollback]
props=$StatTop b(Footer_Border) h(1071)
Status=xy(,10) f(BoldInfo) text($(UpdateError,RollbackResult))

[Report_Body.StatisticsLeft.updater]
props=a(la) $StatLeft
UpdateSize=a(lt) $StatValLeft v($(TotalDownloadBytesCount,filesize))
Traffic=a(la) $StatValLeft v($(DownloadedBytesCount,filesize))
TransferRate=a(la) $StatValLeft v($(Speed) $UpdateSpeed)

[Report_Body.StatisticsLeft.rollback]
props=a(la) $StatLeft

[Report_Body.ReportDetails.updater]
props=$Tab $ReportDetails
Events=[Updater_Report] h(1196)
Settings=[Task_Report_Settings]

[Report_Body.ReportDetails.rollback]
props=$Tab $ReportDetails
Events=[Updater_Report] h(1208)
Settings=[Task_Report_Settings]

[Updater_Report]
ReportSelector=$ReportSelectorDefOff hide($(eventsDeleted,ShowIfZero))
Actions=$ReportActions
EventsLog=[Report_Body.ReportDetails.updater.Events] a(lp) sz(p,p)

[Report_Body.ReportDetails.updater.Events]
props=t(list) at(sorted,autoscroll) alias(taskreport) v(eventlog,eventcritlog)
Event=sz(p,30)v($(Event,UpdaterEvents))
ObjectName=sz(p,40) v($(Event,UpdaterObjName))
ReportTime=sz(p,20) v($(ReportTime,datetime)) at(index)
ObjectSize=sz(p,10) v($(Event,UpdaterObjSize)) sorted($(FileSize))

[Report_Body.ReportDetails.updater.Events.menu]
props         = t(menu)
Separator     = t(menuitem)
ReportCleanup = t(menuitem)

;------------- ProxyAuth Dialog -----------

[ProxyAuthDialog]
props=$DlgAttr at(ontop,bottom,nohelp) sz(300,a)
Body=[ProxyAuthDialog_Body]

[ProxyAuthDialog_Body]
props=$DlgBodyAttr sz(p,a)
UserText=$Next_Control
UserEdit=t(edit) a(ls) sz(p) xy(100,$Edit_CenterOffsetY) v($(ProxyLogin))
PswdText=$Next_Control
PswdEdit=t(edit) at(password) a(ls) sz(p) xy(100,$Edit_CenterOffsetY) v($(ProxyPassword,crypt))
Save=$Checkbox $Next_Control v($(Save))

;------------- UpdateExecutables Dialog -----------

[UpdateExecutablesDialog]
props=$DlgAttr sz(450,420) at(resizable)
Body=[UpdateExecutablesDialog_Body]

[UpdateExecutablesDialog_Body]
props=$DlgBodyAttr
Comment=sz(a,a)
Content=t(edit) a(la) at(readonly,multiline) sz(p,p) xy(0,7) v($(Content,UpdateApplicationContent))
