;------------- Scan_Objects -----------

[Scan_Objects]
props=$Scan_Panel
State=[Task_Header]
Body=[Scan_Body]

[Scan_Body]
props=$Task_Body
ObjectsGroup=[Scan_ObjectsGroup]
Settings=[Task_Protection_Settings]
Statistics=[Scan_Statistics] disable($($IsTaskIdValid,EnableIfNotZero))

[Scan_ObjectsGroup]
props       = a(la) sz(p,140)
ObjectsList = [ScanObjectsList] alias(vector.ScanObject.ex) sz(p,p) xy(,,110) disable($(state,IsTaskRunning,!,EnableIfNotZero))
Add         = $Button_Medium a(rt) xy(0,0)
Edit        = $Button_Medium a(ra) xy(0,$Button_Shift) at(hide)
Delete      = $Button_Medium a(ra) xy(0,$Button_Shift)
Scan        = $Button_Medium a(rb) at(default) v($(state,IsTaskRunning,ScanRunningCmd):$(name)) text($(state,IsTaskRunning,ScanRunningText))
Actions     = $Button_Medium a(rp) xy(0,$Button_Shift) v(menu:NavigatorWindow.Navigator:$(name))

[Scan_Statistics]
props=$Task_Statistics
Scanned=$Task_Statistics_Item v($(NumScaned))
Detected=$Task_Statistics_Item $Detected
;Untreated=$Task_Statistics_Item $Untreated
Last_Scan=$Task_Statistics_Item v($($IsTaskIdValid,TaskTime_LastRun)) hide($(state,TaskHideRunning))
Progress=t(progress) sz($Statistics_Size,12) a(la) xy(0,2,0,2) v($(Completion)) hide($(state,TaskHideStopped))

;------------- SettingsWindow.Scan_Objects -----------

[SettingsWindow.Scan_Objects]
props=$SettingsViewPanel h(1175)
Header=$SettingsViewHeader i(Scan)
Body=[SettingsWindow.Scan_Objects_Body]

[SettingsWindow.Scan_Objects_Body]
props=$SettingsBodyAttr
SettingsGroup=[LevelGroup3] lb(v($(flags,levfld($OdsLevelFields))))
TreatGroup=[ScanTreat_Group]
ScopeGroup=[Scope_Group]           usefor($IsAkTask)
ApplyGroup=[Apply_Group]           usefor($Apply_Group_Usefor)
ScheduleGroup=[ScanSchedule_Group] usefor($(name,=,Scan_Objects,!))

[ScanTreat_Group]
props=$SettingsGroupNext sz(p,a) v($(ScanAction)) lb(v($(flags,fld($ScanActionFields))))
AskFinish=$Radio $First_Control v(3)
AskDetect=$Radio $Next_Control v(1)
DontAsk=$Radio $Next_Control v(4)
TryDisinfect=$Checkbox a(la) xy(15,7) v($(TryDisinfect)) disable($(ScanAction,EnableIfDisinfect))
TryDelete=$Checkbox a(la) xy(15,7) v($(TryDelete)) disable($(ScanAction,EnableIfDisinfect))

[Scope_Group]
props=$SettingsGroupNext sz(p,p)
ObjectsList=[ScanObjectsList] alias(vector.ScanObject.ex) sz(p,p) xy(,,110)
Add=$Button_Medium a(rt) xy(0,0)
Edit=$Button_Medium a(ra) at(hide)
Delete=$Button_Medium a(ra) xy(0,$Button_Shift)

[Apply_Group]
props=$SettingsGroupNext sz(p,a) v($(ScanAction)) usefor(localgui)
Text=sz(215,a)
ApplyScanSettings=$Button a(rc)

[ScanSchedule_Group]
props=$SettingsGroupNext sz(p,a)
ScheduleEnabled=$Checkbox $First_Control v($(schedule.Mode)) text($(schedule.Type,ScheduleType))
ScheduleChange=$Button a(rs) xy(0,-6) disable($(schedule.Mode,IsScheduleManual,EnableIfNotZero)) v(dialog:SettingsWindow.ScheduleChange)

[ScanObjectsList]
props = t(list) at(noheader,checked) v($(ScanObjects)) unique(ObjectType,ScanObjects)
Object = v($(strName),$(Enabled))

[ScanObjectsList.menu]
SetRecurse = t(menuitem) v(scanobj_setrecurse) usefor($(ObjectType,bindok)) disable($($IsCanChangeScanObjRecurse,EnableIfNotZero))

;------------- SettingsWindow.Scan_Objects.Customize -----------

[SettingsWindow.Scan_Objects.Customize]
props=$DlgAttr alias(filemonadvsettdlg) sz(390,378) at(resizable)
Tab=[ScanAdvSettTab]

[ScanAdvSettTab]
props=$DlgBodyTabAttr
FileMonAdvSettCommonTab=[ScanAdvSettCommon] h(1177)
;FileMonAdvSettAddTab=[ScanAdvSettAdd]
FileMonAdvSettRunTab=[ScanAdvSettRun] h(1181)

[ScanAdvSettCommon]
FileTypesGroup=[FileTypes_Group]
DontCheckGroup=[ScanDontCheck_Group]
CompoundFilesGroup=[ScanCompoundFiles_Group]

[FileTypes_Group]
props=$SettingsGroupFirst sz(p,a) v($(ScanFilter))
;lb(v($(flags,fld(ScanFilter))))
All=$Radio $First_Control v(1)		tt($Scan_FileTypes_Group_All)
Infectable=$Radio $Next_Control v(0)	tt($Scan_FileTypes_Group_Infectable)
Predefined=$Radio $Next_Control v(2)	tt($Scan_FileTypes_Group_Predefined)

[ScanCompoundFiles_Group]
props=$SettingsGroupNext sz(p,a)
;lb(v($(flags,fld(ScanArchived,ScanSFXArchived,ScanOLE,ScanMailBases,AskPassword))))
Archive=$Checkbox $First_Control v($(ScanArchived))	
;SFX=$Checkbox $Next_Control v($(ScanSFXArchived))	
OLE=$Checkbox $Next_Control v($(ScanOLE))			
Mail=$Checkbox $Next_Control v($(ScanMailBases))
AskPwd=$CheckBox $Next_Control v($(AskPassword))

[ScanDontCheck_Group]
props=$SettingsGroupNext sz(p,a)
;lb(v($(flags,fld(ScanUnchangedObjects,UseTimeLimit,TimeLimit))))
CheckNew=$CheckBox $First_Control at(invert) v($(ScanUnchangedObjects))
;ScanPeriodText=a(la) xy(16)
;ScanPeriodLabel=a(rs) sz(25)
;ScanPeriodValue=t(edit) at(number) nl(1) a(ps) sz(65,0) xy($Edit_CommentOffsetX,$Edit_CenterOffsetY) v($(MandatoryScanPeriod)) disable($(ScanUnchangedObjects,EnableIfNotZero))
SkipTimeCheck=$Checkbox $Next_Control v($(UseTimeLimit))
SkipTimeLabel=a(rs) sz(25)
SkipTimeValue=t(edit) at(number) nl(1,9999) a(ps) sz(65,0) xy($Edit_CommentOffsetX,$Edit_CenterOffsetY) v($(TimeLimit)) disable($(UseTimeLimit,Enable_if))
SkipSizeCheck=$Checkbox $Next_Control v($(UseSizeLimit))	tt($(UseSizeLimit,CompoundFiles_Group_UseSizeLimit))
SkipSizeLabel=a(rs) sz(25)
SkipSizeValue=t(edit) at(number) nl(1,9999) a(ps) sz(65,0) xy($Edit_CommentOffsetX,$Edit_CenterOffsetY) v($(SizeLimit)) disable($(UseSizeLimit,Enable_if))

[ScanAdvSettAdd]
props=usefor(localgui)
ExclList=[Exclusion_Masks.ExclusionList] a(lt) sz(256,p) v($(AVService.Excludes),$(type))
Add=$Button a(rs)
Edit=$Button a(ra) v(dialog:ExclusionEdit)
Delete=$Button a(ra)

[ScanAdvSettRun]
;props=hide($ShowNTBasedFufure) usefor(localgui)
RunAs=[ScanAdvSettRunGroup] xy(,,,$Group_Shift)
AdvScanOptions=[Adv_Scan_Options]
EnableStartupGroup=[EnableStartup_Group] usefor(admingui)
PauseGroup=[Pause_Group] usefor($(ProductType,env,=,fs))

[ScanAdvSettRunGroup]
props=$GroupBox sz(p,a) mg(8,8) disable($(runas.enable,EnableIfNotZero)) hide($ShowNTBasedFufure) text( ) usefor(localgui)
RunCheck=$CheckboxForGroup v($(runas.enable)) hide($ShowNTBasedFufure)
AccLbl=a(lt) xy(10,7)
Account=t(edit) sz(p) a(ls) xy(140,-3) v($(runas.account))
PwdLbl=a(la) xy(10,7)
Pwd=t(edit) at(passwordset) sz(p) a(ls) xy(140,-3) v($(runas.password,crypt))

[Adv_Scan_Options]
props=$SettingsGroupFirst sz(p,a)
;lb(v($(flags,fld(UseIChecker,UseIStreams,RegisterThreats))))
iChecker=$Checkbox $First_Control v($(UseIChecker))
iStreams=$Checkbox $Next_Control v($(UseIStreams))
EnableTIF=$Checkbox $Next_Control v($(RegisterThreats))
EnableABS=$Checkbox $Next_Control v($(ABSNumber)) hide($(AVService.UseABS,ShowIfNotZero))

[Pause_Group]
props=$SettingsGroupNext sz(p,a)
;lb(v($(flags,fld($SleepModeFields))))
Schedule=$Checkbox $First_Control v($(smode.EnablePeriod))
SheduleBtn=$Button_Medium a(rs) xy(,-5) v(dialog:PauseScheduleDlg) disable($(smode.EnablePeriod,EnableIfNotZero))
AppStart=$Checkbox $Next_Control v($(smode.EnableAppList)) hide($ShowNTBasedFufure)
AppStartBtn=$Button_Medium a(rs) xy(,-5) v(dialog:PauseAppDlg) disable($(smode.EnableAppList,EnableIfNotZero)) hide($ShowNTBasedFufure)

;------------- SettingsWindow.Scan_Objects.Wizard -----------

[SettingsWindow.Scan_Objects.Wizard]
props=$SettingsViewPanel h(9993)
ScopeGroup=[Scope_Group]

[SettingsWindow.Scan_Objects_Scope.Wizard]
props=$SettingsViewPanel h(9998)
TreatGroup=[ScanTreat_Group] xy(0,0)

;------------- SettingsWindow.ods.Wizard -----------

[SettingsWindow.ods.Policy.Wizard]
props=$SettingsViewPanel mg(0,0) xy(0,-8) h(9997)
SettingsGroup=[LevelGroup3] xy(0,0) rs(100,0) sz(p,100) lb(v($(flags,levfld($OdsLevelFields))))
TreatGroup=[ScanTreat_Group]

[SettingsWindow.ods.Policy.Wizard.Customize]
props=$DlgAttr alias(filemonadvsettdlg) sz(390,378) at(resizable)
Tab=[ScanAdvSettTab]

;------------- ReportWindow.Scan -----------

[Report_Body.StatisticsRun.ods]
@          = $StatTop
L          = [Report_Body.StatisticsRun.ods_L] a(lt) xy(,,$Control_Shift)
R          = [Report_Body.StatisticsRun.ods_R] a(at)
Completion = $ReportProgress

[Report_Body.StatisticsRun.ods_L]
@             = sz(a,a)
Scanning      = $Left_Next
Location      = $Left_Next

[Report_Body.StatisticsRun.ods_R]
@             = sz(p,a)
CurObjectSkip = t(hotlink) f(Hotlink) $Left_Next a(rt) v(processcancel:$(CurCancelId)) disable($(CurCancelId,ShowIfNotZero)$(origin,OdsShowSkipLink))
CurObject     = t(edit) at(readonly,noborder,compress)     $Left_Next a(pt) sz(p) rs(100,0) text($(CurObject,objfile))
CurObjectDir  = t(edit) at(readonly,noborder,compresspath) $Left_Next a(la) sz(p) rs(100,0) text($(CurObject,objdir))

[Report_Body.ReportDetails.qs]
props=$Tab $ReportDetails
Events=[Task_Report]
Objects=[Scan_Objects_List]
Settings=[Task_Report_Settings]

;------------- Alert Dialog -----------

[AlertDialog]
$AlertCaption=$(TaskType,TaskTypes) $(DetectDanger,AlertDialog_DangerLevels)
props=$AlertDialogAttr h(1267) text($(DetectDanger,AlertDialog_Bg)) text($(DetectDanger,AlertDialog_Bg)$AlertCaption)
Dlg=[AlertDialog.Dlg]

[AlertDialog.Dlg]
props=$BorderedDailogAttr
Header=[AlertDialog.Header]
Body=[AlertDialog.Body]
Footer=[AlertDialog.Footer]

[AlertDialog.Header]
props=a(lt) sz(p,25) at(fixstyle) xy(-5,-5,-5) bg(AlertHeaderLegal) text($(DetectDanger,AlertDialog_HeaderBg))
CaptionText=a(lt) xy(10,4) sz(a,20) i(i32) f(Alert_Caption) text($AlertCaption)

[AlertDialog.Footer]
props=a(lb) sz(p,a)
DontCheck=t(hotlink) f(Hotlink) a(rt) xy(7) v($(TaskType,AlertDialog_AddToExcludes)) text($(TaskType,AlertDialog_DontCheckNames)) hide($(ExcludeAction,=,#ACTION_UNKNOWN,!,ShowIfNotZero)) disable($(TaskType,AlertDialog_DisableDontCheck,EnableIfZero))

;------------- body -------------

[AlertDialog.Body]
props         = a(lt) sz(p,p) xy(0,30)

TreatGroup    = [AlertDialog.Body.TreatGroup.antiphishing]  usefor($(TaskType,=,antiphishing))
TreatGroup    = [AlertDialog.Body.TreatGroup]

ActionGroup   = [AlertDialog.Body.ActionGroup.antiphishing] usefor($(TaskType,=,antiphishing))
ActionGroup   = [AlertDialog.Body.ActionGroup]

[AlertDialog.Body.TreatGroup]
props=$SettingsGroupFirst sz(p,a)
ThreatType=f(Bold) a(as) text($(DetectStatus,DetectSureTypes):)
ThreatName=t(hotlink) a(sa) at(center) f(Hotlink_red) text($(DetectName)) v($(TaskType,AlertThreatNameLink)) hide($(DetectType,ShowIfNotRegModify))
RegKeyName=t(edit) a(la) at(readonly,noborder,compresspath) sz(p,a) v($(strKeyName)) hide($(DetectType,ShowIfRegModify))
Object_Label=f(Bold) $Next_Control text($(ObjectType,ObjectTypes)$(TaskType,AlertObjectLabel_AddInfo):) usefor($(ObjectName,!!))
ObjectName=t(edit) a(la) sz(p) at(readonly,noborder,compresspath) v($(ObjectName)) usefor($(ObjectName,!!))
ObjectDetails=t(hotlink) a(ra) sz(p) f(Hotlink_Normal) v(dialog:PDM2_ProcInfo) usefor($(TaskType,=,pdm2))

[AlertDialog.Body.ActionGroup]
props           =$SettingsGroupNext sz(p,p) xy(,,,23)
ApplyToAll      =$Checkbox  a(lb) xy(,,,8) v($(ApplyToAll)) bits(#APPLYTOALL_TRUE) hide($(ApplyToAll,=,#APPLYTOALL_NONE,!,ShowIfNotZero))
CreateRule      =$Checkbox  a(lb) xy(,,,8) at(nobindhide) v($(SavePosition)) usefor($(TaskType,=,pdm)) hide($(EventType,=,#PDM_EVENT_REGMODIFY,ShowIfNotZero)$(bShowCreateRule,ShowIfNotZero))
CreateRule      =$Checkbox  a(lb) xy(,,,8) at(nobindhide) v($(CreateRule))   usefor($(TaskType,=,regguard2)) hide($(bShowCreateRule,ShowIfNotZero))
DescriptionArea =[DescriptionArea] sz(p,p) a(lp) xy(,,$ButtonsLineSizeX)
AskResults      =[AlertDialog.AskResults] order(0)

[DescriptionArea]
Description=t(richedit) at(readonly,noborder,nofocus) a(lc) sz(p,a) text($(TaskType,AlertDialog_Decision_Description)$(TaskType,AlertDetails_IsDetails,AlertDetails_LinkShow)$(ActionsMask,bits(#ACTION_DELETE_ARCHIVE),AlertDeleteArchive_Hide))

[AlertDialog.AskResults]
$AlertActionsButtonShift=xy(,,,8)
props=a(rt)
Button0=$Button a(rt) $AlertActionsButtonShift
Button1=$Button a(ra) $AlertActionsButtonShift
Button2=$Button a(ra) $AlertActionsButtonShift

;------------- AlertDetails_Riskware -----------

[AlertDetails_Riskware]
props=$DlgAttr sz(400,300) at(resizable,nohelp,a_close) text($AlertDetails)
Body=[AlertDetails_Riskware_Body]

[AlertDetails_Riskware_Body]
props    = $DlgBodyTabAttr
InfoPage = [AlertDetails_Riskware_Info]

[AlertDetails_Riskware_Info]
props    = sz(p,p) text($AlertDetailsInfo)
Info     = t(richedit) at(readonly,vscroll) a(lt) sz(p,p)

;------------- Active Detection -----------

[ADetectionDialog]
props=$AlertDialogAttr bg(AlertWindowHigh)
Dlg=[ADetectionDialog.Dlg]

[ADetectionDialog.Dlg]
props=$BorderedDailogAttr
Header=[ADetectionDialog.Header]
Body=[ADetectionDialog.Body]

[ADetectionDialog.Header]
props=a(lt) sz(p,25) at(fixstyle) xy(-5,-5,-5) bg(AlertHeaderHigh)
CaptionText=a(lt) xy(10,4) sz(a,20) f(Alert_Caption) i(danger32)

[ADetectionDialog.Body]
props=a(lt) sz(p,p) xy(0,30)
TreatGroup=[ADetectionDialog.Body.TreatGroup]
ActionGroup=[ADetectionDialog.Body.ActionGroup]

[ADetectionDialog.Body.TreatGroup]
props=$SettingsGroupFirst sz(p,a)
ThreatType=f(Bold) a(as) text($(DetectStatus,DetectSureTypes):)
ThreatName=t(hotlink) a(sa) at(center) f(Hotlink_red) text($(DetectName)) v(url:$ViruslistThreatLink)
Object_Label=f(Bold) $Next_Control text($(ObjectType,ObjectTypes):)
ObjectName=t(edit) a(la) sz(p) at(readonly,noborder,compresspath) v($(ObjectName))

[ADetectionDialog.Body.ActionGroup]
props=$SettingsGroupNext sz(p,135)
Description=t(richedit) at(readonly,noborder,nofocus) a(lc) sz(p,a) xy(,,83)
AskResults=[ADetectionDialog.AskResults]

[ADetectionDialog.AskResults]
props=a(rt)
Button0=$Button a(rt) xy(,,,8)
Button1=$Button a(ra) xy(,,,8)

;------------- Restore Object Dialog -----------

[RestoreObjectDialog]
props=$AlertDialogAttr sz(270,270) 
Body=[RestoreObjectDialog_Body]

[RestoreObjectDialog_Body]
props=$BorderedDailogAttr
Header=[RestoreObjectDialog.Header]
Info=[RestoreObjectDialog.Info]
Action=[RestoreObjectDialog.Action]
Footer=[RestoreObjectDialog.Footer]

[RestoreObjectDialog.Header]
props=a(lt) sz(p,25) at(fixstyle) xy(-5,-5,-5) bg(AlertHeaderLegal)
CaptionText=a(lt) xy(10,4) sz(a,20) f(Alert_Caption) i(i32) 

[RestoreObjectDialog.Info]
props=$SettingsGroupFirst sz(p,a) xy(0,10)
Object_Label=f(Bold) $First_Control 
ObjectName=t(edit) a(la) sz(p) at(readonly,noborder,compresspath) v($(ObjectName))
Status_Label=f(Bold) $Next_Control
StatusName=a(sa) at(center) f(Bold_green)

[RestoreObject_Group]
props=$GroupBox sz(p,p) mg(7,7)
ObjectName=t(edit) sz(p,a) at(readonly,noborder,compresspath) text($(ObjectName))

[RestoreObjectDialog.Action]
props=$SettingsGroupNext sz(p,105)
Description=t(richedit) at(readonly,noborder,nofocus) a(lc) xy(,10) sz(125,a)
AskResults=[RestoreObjectDialog.AskResults]

[RestoreObjectDialog.AskResults]
$AlertActionsButtonShift=xy(,,,8)
props=a(rt)
SaveAs=$Button_Medium a(rt) $AlertActionsButtonShift
Skip=$Button_Medium a(ra) $AlertActionsButtonShift

;------------- Password request Dialog -----------

[PasswordRequestDialog]
props=$DlgAttr at(ontop,noautofocus,nohelp) sz(300,a)
Body=[PasswordRequestDialog_Body]
SkipAll=$Button a(rb)
Skip=$Button a(pb) xy(5)
Ok=$Button a(pb) xy(5) at(default) disable($(Password,EnableIfNotZero))

[PasswordRequestDialog_Body]
props=$DlgBodyAttr sz(p,a)
ArchiveLbl=a(la)
ArchiveName=t(edit) a(ls) xy(70,1) sz(p) at(readonly,noborder,compresspath) v($(ArchiveObject))
PasswordLbl=a(la) xy(0,15)
Password=t(edit) at(password) a(ls) xy(70,-1) sz(p) v($(Password))