; -------------------------------------------- ; --------------- BackupWizard --------------- [BackupCreateWizard] @ = [StyledWindowT] at(wizard,customfooter,minimizable) sz(660,550) subst(Footer(subst(Separator(use(1)) Help(use(!$IsInitMode)) Next(use(1)) )) BodyEx([BackupCreateWizardBody])) alias(backup_task_wizard) onshow(ctl.dirty() = #true) onapply(if(RunBackupTaskNow, (setstate(#TASK_REQUEST_RUN, name);#true) )) [BackupCreateWizardBody] @ = sz(p,p) Header = [BackupWizardPage_Header] subst(Text(text( s_BackupCreateWizardTitle(depend(curPage))))) Pages = [BackupCreateWizardPages] a(la) at(sheetpages) order(0) [BackupWizardPage_Header] @ = a(la) sz(p,65) ext(1) rs(0,0) bg("SecondaryWindowHeader_C,0") Left = a(lt) bg("SecondaryWindowHeader_L") Text = [LabelShadow2] subst(B(xy(0,1))) a(lc) xy(20) f("SecondWndHeader2Shadow") extprm(1) Right = a(rt) bg("SecondaryWindowHeader_R") [BackupCreateWizard.HeaderTemplate] @ = sz(p,53) mg(15,0) ext(1) Name = a(lc) sz(a,a) f("WndHeaderSingle") extprm(1) [BackupCreateWizardPages] @ = sz(p,p) ext(1) QuickTaskPage = [BackupWizardPage] use(1) subst(Header(subst(Text() Step(v(1)))) Body([BackupCreateWizard.QuickTaskPage])) extprm(1) h(57298) ContentPage = [BackupWizardPage] use(1) subst(Header(subst(Text() Step(v(2)))) Body([BackupCreateWizard.ContentPage])) extprm(1) h(17020) StoragePage = [BackupWizardPage] use(1) subst(Header(subst(Text() Step(v(3)))) Body([BackupCreateWizard.StoragePage])) extprm(1) h(17021) CopyTool = [BackupWizardPage] use(1) subst(Header(subst(Text() Step(v(4)))) Body([BackupCreateWizard.CopyToolPage])) extprm(1) h(66153) Protection = [BackupWizardPage] use(1) subst(Header(subst(Text() Step(v(5)))) Body([BackupCreateWizard.Protection])) extprm(1) h(17001) History = [BackupWizardPage] use(1) subst(Header(subst(Text() Step(v(6)))) Body([BackupCreateWizard.History])) extprm(1) h(17002) AutoRunPage = [BackupWizardPage] use(1) subst(Header(subst(Text() Step(v(7)))) Body([BackupCreateWizard.AutoRunPage])) extprm(1) h(17023) SummaryPage = [BackupWizardPage] use(1) subst(Header(subst(Text() Step(v(8)))) Body([BackupCreateWizard.SummaryPage])) extprm(1) h(17026) ; ------------------------------------------------------------------- ; ------------- BackupCreateWizardPages.QuickTaskPage --------------- [BackupCreateWizard.QuickTaskPage] $OnChange = if(#QuickTaskCustom == ctl.value, (wizMask = wizMask | wizPagesMask("ContentPage")), (wizMask = wizMask & ~wizPagesMask("ContentPage"))) @ = sz(p,p) mg(20,20,20,0) at(enum) v(QuickTask) onok(setupQuickTask(ctl.value); $OnChange) onshow(setupQuickTask(#QuickTaskAllFiles)) Documents = [BackupCreateWizard.QuickTaskPage.Task] subst(Icon(i("backup_quick_task,0")) Title() Descr() Count() Size(text(f_ObjSize(MyDocumentsSize)))) v(#QuickTaskMyDocuments) Video = [BackupCreateWizard.QuickTaskPage.Task] subst(Icon(i("backup_quick_task,1")) Title() Descr() Count() Size(text(f_ObjSize(MyVideoSize)))) xy(,10) v(#QuickTaskMyVideo) Photo = [BackupCreateWizard.QuickTaskPage.Task] subst(Icon(i("backup_quick_task,2")) Title() Descr() Count() Size(text(f_ObjSize(MyPicturesSize)))) xy(,10) v(#QuickTaskMyPictures) Music = [BackupCreateWizard.QuickTaskPage.Task] subst(Icon(i("backup_quick_task,3")) Title() Descr() Count() Size(text(f_ObjSize(MyMusicSize)))) xy(,10) v(#QuickTaskMyMusic) Custom = [BackupCreateWizard.QuickTaskPage.Task] subst(Icon(i("backup_quick_task,4")) Title() Descr()) xy(,10) v(#QuickTaskCustom) [BackupCreateWizard.QuickTaskPage.Task] @ = sz(p,67) at(radiolike) a(la) ext(1) Radio = a(lc) i(ctl.parent.selected ? "Radio,0" : "Radio,1") sz(16,16) Icon = a(ac) xy(2) extprm(1) Title = a(at) xy(5,12) f("SecondWndHeader5") extprm(1) Descr = a(sa) f("SecondWndDescriptionSmall") extprm(1) xy(,4) Count = a(as) t(hotlink) f("SecondWndDescriptionSmallHref") tt($TipText_Category_Count) onclick(setupQuickTask(ctl.parent.value); dialog("BackupFilesDialog",p_type("category"),p_Category(quickTaskId(ctl.parent.value)),p_readonly(1)); setupQuickTask(#QuickTaskAllFiles)) extprm(1) Size = a(as) mg(0,0,5,0) f("SecondWndDescriptionSmall") extprm(1) ; ------------------------------------------------------------------- ; -------------- BackupCreateWizardPages.ContentPage ---------------- [BackupCreateWizard.ContentPage] @ = sz(p,p) mg(0) FolderSelector = [BackupFolderSelectorArea] a(lt) sz(p,200) xy(,10,15,15) CategorySelector = [BackupCategorySelectorArea] a(la) sz(p,p) xy(,,15,35) CategoryLinks = [BackupCategorySelectorLinks] a(lb) sz(p,20) Alpha = a(lt) xy(10,215) sz(625,189) at(ontop) bg("WhiteAlphaSpacer") visible(!BackupFolders.size("Selected")) [BackupCategorySelectorLinks] @ = mg(0) enable(BackupFolders.size("Selected")) EditIcon = a(lb) xy(12,7) sz(20,20) at(btnlike) i("backup_16,3") onclick(ctl.Edit.click()) Edit = a(ab) xy(,11) t(hotlink) f("Hotlink_Normal") onclick( if(dialog("BackupCategoriesEditor",#KtsFileCategory_Audio),refreshStatistics())) ) HiddenIcon = a(ab) xy(12,7) sz(20,20) at(btnlike) i("backup_16,11") onclick(ctl.HiddenSystem.click()) HiddenSystem = a(ab) xy(,11) t(hotlink) f("Hotlink_Normal") onclick(menu("AdvancedSettingsMenu")) TolalSize = a(rb) [ReportArea_Inner] xy(15,12) [BackupCategorySelectorArea] @ = mg(0) enable(BackupFolders.size("Selected")) SectionName = sz(180,a) a(lt) f("SecondWndHeader3") xy(15) CheckAll = $Link a(la) xy(15,8) f("Hotlink_Normal") onclick(selectAllCategories(1)) ClearAll = $Link a(la) xy(15,3) f("Hotlink_Normal") onclick(selectAllCategories(0)) List = [CategorySelectorList] a(lt) xy(195,,,5) Sep = a(lb) xy(15) sz(p,1) b(Group) [CategorySelectorList] @ = t(scrollarea) alias(backup_categories) sz(p,p) onok(if(!Categories.List.size("Selected"), balloon("BackupCategoryNotSelected"))) row = [CategoryItem] [CategoryItem] @ = a(la) sz(p,a) xy(2,4,2,4) at(hidden) Category = $Check sz(a,a) a(la) v(Selected) f("SecondWndDescriptionSmall") onclick(onSelectCategory()) Sep1 = a(as) f("SecondWndDescriptionSmall") text(": ") visible(Selected) Count = a(as) t(hotlink) f("Hotlink_Normal") text(CountFiles + " " + s_files(f_numdeclension(CountFiles))) visible(Selected) tt($TipText_Category_Count) onclick(if(Selected,dialog("BackupFilesDialog",p_type("category"),p_Category(CategoryId)))) Sep2 = a(as) f("SecondWndDescriptionSmall") text(" / ") visible(Selected) Size = a(as) f("SecondWndDescriptionSmall") text(f_ObjSize(SummarySize)) visible(Selected) [BackupFolderSelectorArea] @ = mg(0) SectionName = sz(180,a) a(lt) f("SecondWndHeader3") xy(15,8) Add = [BtnGlass32] sz(160,$Button_Large_CY) xy(15,10,15) a(la) subst(Cont(subst(Icon(i("EncryptionIcons16,2"))))) onclick( browseobject(newFolder(), "BackupBrowseForFolder", #SHELL_OBJTYPE_DRIVE|#SHELL_OBJTYPE_FOLDER|#SHELL_OBJTYPE_LOCAL) )) DropArea = [BackupFolderDropArea] a(lt) xy(195,10) visible(BackupFolders.size("Selected")==0) enable(BackupFolders.size("Selected")==0) List = [FolderSelectorList] a(lt) xy(195,10) visible(BackupFolders.size("Selected")!=0) enable(BackupFolders.size("Selected")!=0) [BackupFolderDropArea] @ = sz(p,p) bg("DropDownArea") at(dragdrop) alias(backup_droparea) Title = a(cb) f("SecondWndHeaderDrop") sz(250,a) xy(,25) [BackupBrowseForFolder] @ = [BrowseForFolder] h(17133) [FolderSelectorList] @ = t(list) sz(p,p) at(singlesel,noautosize,dragdrop) alias(backup_dropable_list) v(BackupFolders) onshow(if(!ctl.selcount(),ctl.focus())) onok(if(!BackupFolders.size("Selected"), balloon("BackupSourceNotSelected"))) filter(Selected) BackupItem = sz(194) i(s_KtsPredefinedPlaceIcon(PredefinedType)) text((s_KtsPredefinedPlaces(PredefinedType) ? s_KtsPredefinedPlaces(PredefinedType) : Path + (Path!=RealPath?(" (" + RealPath + ")"):("")))) Count = at(clickable,fixedsize) sz(120) ta(r) f("Hotlink_Normal") text(CountFiles + " " + s_files(f_numdeclension(CountFiles))) tt($TipText_Folder_Name) onclick(if(dialog("BackupFilesDialog", p_type("location"), p_BackupFolders(BackupFolders), p_SelectedItem(GUID)), ctl.updatedata()))) Size = text(f_ObjSize(SummarySize)) sz(72) ta(r) Delete = a(rc) at(clickable) i("delete_16,1") sz(22) onclick(deleteFolder( ser(Selected) )) row = bg("GridSeparator") [FolderSelectorList.Row] @ = a(la) sz(p,a) xy(15,4,15,4) at(hidden) Delete = a(rc) t(hotlink) i(ctl.hotlight ? "delete_16,1" : "delete_16,0") onclick(deleteFolder( ser(Selected) )) Exception = a(pc) xy(5) f("KtsDescriptionDGrey") text("*") visible(HasExcludes) f("SecondWndDescription") NameBlock = a(ps) [FolderSelectorList_Row_Name] [FolderSelectorList_Row_Name] @ = sz(p,a) Icon = a(lc) i(s_KtsPredefinedPlaceIcon(PredefinedType)) Name = a(ac) t(hotlink) f("SecondWndDescriptionHref") text(s_KtsPredefinedPlaces(PredefinedType) ? s_KtsPredefinedPlaces(PredefinedType) : Path + (Path!=RealPath?(" (" + RealPath + ")"):(""))) tt($TipText_Folder_Name) onclick(dialog("BackupFilesDialog", p_type("location"), p_BackupFolders(BackupFolders), p_SelectedItem(GUID))) [ReportArea_Inner] @ = sz(a,15) ContentSizeMsg = sz(a,a) a(lt) f("SecondWndDescriptionSmall") xy(,3,3) ContentSizeAnimation = sz(a,a) a(at) bg(IsScanning ? "BackupAnimation" : "") bp(ctl.animate(IsScanning ? -1 : 0, 2, #true); productData("BackupWizardScanning") = IsScanning ? "1" : "0") ContentFiles = $Link sz(a,a) a(at) xy(3) text(FilesToBackup + " " + s_files(f_numdeclension(FilesToBackup))) f("Kts_Blue") onclick(dialog("BackupFilesDialog",p_type("category"),p_Category(#KtsFileCategory_AllFiles))) Sep = sz(a,a) a(at) xy(3,1) text(" / ") f("Header2") ContentSize = sz(a,a) a(at) xy(3,1) text(f_ObjSize(RequiredSpaceForBackup)) f("Header2") [AdvancedSettingsMenu] @ = t(menu) HiddenFiles = at(chklike) v(BackupHiddenFiles) onchange(refreshStatistics()) SystemFiles = at(chklike) v(BackupSystemFiles) onchange(refreshStatistics()) ;;AlternativeStreams = at(chklike) v(BackupAlternativeStreams) ;;SecurityDescriptors = at(chklike) v(BackupSecurityDescriptors) ; ------------------------------------------------------------------- ; --------------- BackupCreateWizardPages.StoragePage --------------- [BackupCreateWizard.StoragePage] $DontUseExtendedSettings = ((CurrentStorageType==#backup_online)||(CurrentStorageType==#backup_ftp)||(CurrentStorageType==#backup_network)) $UseRestoreToolSettings = (CurrentStorageType==#backup_usb) @ = sz(p,p) onshow(ctl.updatedata()) oninit(l_more=0; l_short_extended_settings=0; (wizMask = wizMask & ~wizPagesMask("CopyTool,Protection,History"))) \ onok(if(l_more && (!$DontUseExtendedSettings),(wizMask = wizMask | wizPagesMask("History")),(wizMask = wizMask & ~wizPagesMask("History"))); \ if(l_more && $UseRestoreToolSettings && (!l_short_extended_settings),(wizMask = wizMask | wizPagesMask("CopyTool")),(wizMask = wizMask & ~wizPagesMask("CopyTool"))); \ if(l_more && (!l_short_extended_settings) && (!$DontUseExtendedSettings),(wizMask = wizMask | wizPagesMask("Protection")),(wizMask = wizMask & ~wizPagesMask("Protection"))) ) \ mg(20,20,20,10) StoragesText = sz(a,a) a(lt) f("SecondWndHeader3") ListArea = [BackupCreateWizard.StoragePage.ListArea] xy(0,5) sz(p, 335) MoreSettings = t(check) xy(,2) sz(a,a) a(lb) v(l_more) enable(!$DontUseExtendedSettings) [BackupCreateWizard.StoragePage.ListArea] @ = a(la) sz(p,p) b(Group) List = [AvailableStoragesList] a(la) sz(p,304) Legend = [BackupCreateWizard.Legend] [BackupCreateWizard.Legend] @ = a(lb) sz(p,30) RequiredText = a(pc) f("SecondWndDescriptionSmall") xy(5) RequiredBox = sz(12,12) a(pc) xy(6) i("ProgressBarLegend,2") UsedText = a(pc) f("SecondWndDescriptionSmall") xy(10) UsedBox = sz(12,12) a(pc) xy(6) i("ProgressBarLegend,1") Create = t(hotlink) f("Hotlink_Normal") xy(6) subst(Icon(i("EncryptionIcons16,2")) Label(text())) a(lc) onclick(dialog("StorageWizard")) extprm(1) Attach = t(hotlink) f("Hotlink_Normal") xy(6) subst(Icon(i("EncryptionIcons16,1")) Label(text())) a(ac) onclick(dialog("AddStorageDialog")) extprm(1) [AvailableStoragesList] @ = t(scrollarea) at(vert) sz(p,p) at(enum) v(CurrentStorageGuid) alias(storages_scrolllist) \ onshow(CurrentStorage=storage(CurrentStorageGuid); CurrentStorageType=storage(CurrentStorageGuid).StorageType; if(storage(CurrentStorageGuid).Active,l_short_extended_settings=1,l_short_extended_settings=0) ) \ onchange(CurrentStorage=storage(CurrentStorageGuid); CurrentStorageType=storage(CurrentStorageGuid).StorageType; if(storage(CurrentStorageGuid).Active,l_short_extended_settings=1,l_short_extended_settings=0) ) \ onok(if(!CurrentStorageGuid,balloon("BackupStorageNotSelected"),if(storage(CurrentStorageGuid).Active && p_new && #backup_ftp != CurrentStorageType && RequiredSpaceForBackup > storage(CurrentStorageGuid).FreeSpace, balloon("BackupNotEnoughSpace"), if(#backup_online == CurrentStorageType && !storage(CurrentStorageGuid).Active, balloon("BackupOnlineStorageNotActivated"), 1))) ) ;Helper = [BackupMainWindow.Storages.Helper] a(la) sz(p,p) visible(ctl.empty()) row = [AvailableStoragesList_Row] [AvailableStoragesList_Row] @ = a(la) sz(p,a) at(hidden,radiolike) mg(,13,14,13) bg(ctl.selected ? "GreenHotlight" : "White") v(GUID) enable1(FreeSpace>RequiredSpaceForBackup||StorageType==#backup_ftp||!p_new) onrclick(if(Active, menu("[BackupCreateWizard.StorageActions.menu]"))) Clear = a(rt) t(hotlink) xy(2,6) i("BackupIcons,7") visible(if(StorageType==#backup_online, Active, true)) enable(Active) onclick(f_clearStorage(backupGetStorage(GUID), DiskTotalSpace, FreeSpace)) extprm(1) Icon = a(lt) visible(if(StorageType==#backup_online, OnlineStorageState != 1, true)) mg(10,,5) i(s_bigBackupDiskIcon(StorageType)) Waiter = a(lt) visible(StorageType==#backup_online && !Active && OnlineStorageState == 1) xy(10,10) mg(,,10) Icon() bg("BackupAnimation") bp(ctl.animate((StorageType==#backup_online && !Active && OnlineStorageState == 1) ? -1 : 0,2,true)) Name = a(at) f("SecondWndHeader4") xy(3,5) text(Name) sz(220) at(singleline) ;Error = a(sa) visible((StorageType==#backup_ftp) && !Active) f("SecondWndDescriptionSmallRed") xy(4) TextOnline = a(sa) t(hotlink) f("Hotlink_Normal") visible(StorageType==#backup_online && !Active && OnlineStorageState!=1) onclick(url($OnlineBackupInfoLink)) xy(1) TextOnlineConnecting = a(sa) f("SecondWndDescriptionSmall") visible(StorageType==#backup_online && !Active && OnlineStorageState==1) xy(1) TotalSizeText = a(sa) visible(StorageType!=#backup_online || (StorageType==#backup_online && Active)) f("SecondWndDescriptionSmall") xy(1) TotalSize = a(as) f("SecondWndDescriptionSmall") visible(StorageType!=#backup_online) xy(4) text(if(!DiskTotalSpace, f_ObjSize(DataSize), f_ObjSize(DiskTotalSpace) )) ProgressL = a(lt) visible(p_new) xy(280,6) sz(a,a) bg("ProgressBarBlueL") visible(if(StorageType==#backup_online, Active, true)) ProgressM = a(as) visible(p_new) sz(p,a) xy(,,32) bg("ProgressBarGreyM") visible(if(StorageType==#backup_online, Active, true)) ProgressR = a(as) visible(p_new) sz(a,a) xy(-32) bg(if(FreeSpace>RequiredSpaceForBackup,"ProgressBarGreyR","ProgressBarRedR")) visible(if(StorageType==#backup_online, Active, true)) Full = a(ls) visible(p_new) xy(284,,32) sz(p,a) bg(if(FreeSpace>RequiredSpaceForBackup,"ProgressBarGreenM","ProgressBarRedM")) bp(ctl.rsx = f_ProgressValue1(DiskTotalSpace,FreeSpace,RequiredSpaceForBackup)) visible(if(StorageType==#backup_online, Active, true)) Used = a(ls) visible(p_new) xy(284,,32) sz(p,a) bg("ProgressBarBlueM") bp(ctl.rsx=f_ProgressValue(100*(DiskTotalSpace-FreeSpace)/DiskTotalSpace)) visible(if(StorageType==#backup_online, Active, true)) Separator = a(as) visible(p_new) xy(-33) sz(1,a) bg("ProgressBarGreyM") visible(if(StorageType==#backup_online, Active, true)) Required = a(la) xy(282,6) f("SecondWndDescriptionSmall") visible(if(StorageType==#backup_online, Active, true)) SizeLeft = a(as) f("SecondWndDescriptionSmall") text(StorageType==#backup_ftp ? $Unknown : f_ObjSize(RequiredSpaceForBackup)) visible(if(StorageType==#backup_online, Active, true)) Sep = a(as) f("SecondWndDescriptionSmall") text(" / ") visible(if(StorageType==#backup_online, Active, StorageType!=#backup_ftp)) Free = a(as) f("SecondWndDescriptionSmall") visible(if(StorageType==#backup_online, Active, StorageType!=#backup_ftp) && RequiredSpaceForBackup <= FreeSpace) SizeRight = a(as) f("SecondWndDescriptionSmall") text(StorageType==#backup_ftp ? $Unknown : f_ObjSize(FreeSpace)) visible(if(StorageType==#backup_online, Active, StorageType!=#backup_ftp) && RequiredSpaceForBackup <= FreeSpace) NotEnough = a(as) f("SecondWndDescriptionSmallRed") visible(if(StorageType==#backup_online, Active, StorageType!=#backup_ftp) && RequiredSpaceForBackup > FreeSpace) NotEnoughSize = a(as) f("SecondWndDescriptionSmallRed") visible(if(StorageType==#backup_online, Active, StorageType!=#backup_ftp) && RequiredSpaceForBackup > FreeSpace) text(f_ObjSize(RequiredSpaceForBackup-FreeSpace)) OnlineStorageActivateButton = [MiddleGreenButton] visible(StorageType==#backup_online && !Active && OnlineStorageState != 1) a(r) xy(10,6,1,1) subst(Icon(i("")) Label(text())) onclick(backupCreateStorage(ser(GUID), false, "", true), "BackupCreateStorageError")) ) OnlineBackupStateError = a(ra) f("SecondWndDescriptionSmallRed") xy(10) visible(StorageType==#backup_online && !Active && OnlineStorageState == 2) ;OnlineBackupStateCanceled = a(ra) f("SecondWndDescriptionSmallRed") xy(10) visible(StorageType==#backup_online && !Active && OnlineStorageState == 3) StopActivation = [MiddleGreyButton] a(r) xy(10,6,1,1) subst(Icon(i("")) Label(text())) visible(OnlineStorageState == 1) onclick(ctl.enabled = 0; backupStopAuthorization(ser(GUID))) ;Sep0 = a(lt) xy(10,-14) sz(p,1) b(Group) visible(ctl.parent.selected) ;Sep1 = a(lb) xy(10,-14) sz(p,1) b(Group) visible(ctl.parent.selected) [BackupCreateWizard.OnlineStorageElement] [BackupCreateWizard.StorageActions.menu] @ = t(menu) bg("MenuIconBg") ext(1) Edit = t(menuitem) i("BackupIcons,5") visible(CurrentStorageType!=#backup_online) onclick(if(f_IsStorageUnlocked(GUID),dialog("EditStorageWizard",p_storage(backupGetStorage(ser(GUID))))))) at(default) extprm(1) Clear = t(menuitem) i("BackupIcons,7") onclick(f_clearStorage(ser(GUID), DiskTotalSpace, FreeSpace)) visible(DataSize) extprm(1) Delete = t(menuitem) i("EncryptionIcons16,3") onclick(if(f_IsStorageUnlocked(GUID),dialog("BackupRemoveStorageWizard", p_storage(ser(GUID))))) extprm(1) [BackupCreateWizard.CopyToolPage] @ = mg(20,20,20,20) sz(p,p) CopyTool = $Check f("SecondWndHeader3") a(la) v(CopyRecoveryTool) Note = sz(a,a) a(la) xy(18,8) f("SecondWndDescription") [BackupCreateWizard.FtpMode] @ = t(combo) v(CurrentStorage.FtpPassiveMode) Passive = v(1) Active = v(0) [BackupCreateWizard.Protection] @ = mg(20,20,20,20) sz(p,p) Check = $Check f("SecondWndHeader3") a(la) v(CurrentStorage.Encrypted) Note = a(la) f("SecondWndDescription") xy(20,8) Password = [BackupProtection.Password] a(la) xy(,25) AdvDisWarn = a(la) i("warning") ia(lt) xy(1,8,,20) mg(,,80) f("SecondWndDescription") [BackupProtection.Password.Labels] @ = sz(a,a) PasswordText = a(la) xy(,5) f("SecondWndDescription") PasswordCheckText = a(la) xy(,16) f("SecondWndDescription") [BackupProtection.Password] @ = sz(a,a) a(la) mg(20) Labels = [BackupProtection.Password.Labels] a(lt) PasswordEdit = t(edit) a(at) sz(200) at(password) xy(10) enable(ctl.Check.value) onok(if(CurrentStorage.Encrypted && !ctl.value,balloon("ErrNoPasswordEntered"),1)) v(CryptPassword) PasswordCheckEdit = t(edit) a(sa) sz(200) at(password) xy(,10) enable(ctl.Check.value) onok(if(CurrentStorage.Encrypted && ctl.PasswordEdit.value != ctl.value,(balloon("ErrDifferPswrds"),false),true)) Note = f("SecondWndDescriptionSmall") a(sa) xy(,3) [BackupCreateWizard.ConnectionSettings] @ = sz(p,a) Dummy = sz(0,0) onok((RootFolder = checkFtpServerName(ctl.Address.Edit.value) + checkFtpPathName(ctl.Path.Edit.value),1)) Descr = a(la) f("SecondWndHeader3") a(la) xy(,,,10) Path = [StorageWizard.EditTemplate] a(la) subst(Text() Edit(sz(250))) xy(18) onshow(ctl.Edit.value=checkFtpPathName(CurrentStorage.RootFolder)) Address = [StorageWizard.EditTemplate] a(la) subst(Text() Edit(sz(150))) xy(18,3) onshow(ctl.Edit.value=checkFtpServerName(CurrentStorage.RootFolder)) onok(if(!ctl.Edit.value,balloon("ErrInvalidPath"),1)) Port = [StorageWizard.EditTemplate] a(ls) xy(281) subst(Text(sz(45)) Edit(sz(50) xy(45) at(number) nl(0,65535) v(CurrentStorage.FtpPort))) Login = [StorageWizard.EditTemplate] a(la) subst(Text() Edit(sz(250) v(CurrentStorage.AuthUser))) xy(18,3) Password = [StorageWizard.EditTemplate] a(la) subst(Text() Edit(sz(250) at(password) v(CurrentStorage.AuthPassword))) xy(18,3) Mode = [StorageWizard.EditTemplate] a(la) subst(Text() Edit([BackupCreateWizard.FtpMode] sz(250))) xy(18,3) Sep = a(la) sz(p,1) b(Group) xy(,25,,25) [BackupCreateWizard.History] @ = mg(20,20,20,20) sz(p,p) Connection = a(la) [BackupCreateWizard.ConnectionSettings] xy(,,,5) use(CurrentStorage && CurrentStorage.StorageType==#backup_ftp) FileVersionsCheck = $Check f("SecondWndHeader3") a(la) v(1) v(l_useversions) onshow(l_useversions = (CurrentStorage.HistoryDepth != 0xffffffff)) onchange(CurrentStorage.HistoryDepth = l_useversions ? ctl.Versions.value : -1)) Note1 = a(la) xy(18,8) f("SecondWndDescription") use(!CurrentStorage || CurrentStorage.StorageType != #backup_ftp) VersionsText = a(la) xy(18,18) f("SecondWndDescription") Versions = a(as) t(edit) at(number) sz(40,a) xy(18,-3) enable(l_useversions) nl(1,10) onshow(ctl.value = l_useversions ? CurrentStorage.HistoryDepth : 3) onchange(CurrentStorage.HistoryDepth = ctl.value) DeletedFilesCheck = $Check f("SecondWndHeader3") a(la) v(1) xy(,30) v(l_usedeleted) onshow(l_usedeleted = (CurrentStorage.HistoryDays != 0xffffffff)) onchange(CurrentStorage.HistoryDays = l_usedeleted ? l_units*l_count: -1) Note2 = a(la) xy(18,8) f("SecondWndDescription") use(!CurrentStorage || CurrentStorage.StorageType != #backup_ftp) DeletedFilesText = a(la) xy(18,18) f("SecondWndDescription") DeletedFiles = [BackupHistory.DeletedFiles] xy(18,-3) a(as) [BackupHistory.DeletedFiles] Count = t(edit) at(number) a(la) sz(40,a) enable(l_usedeleted) nl(1,999) v(l_count) onshow(l_units = l_usedeleted && (0==CurrentStorage.HistoryDays%7) ? 7 : 1; l_count = l_usedeleted ? CurrentStorage.HistoryDays/l_units : 60) onchange(CurrentStorage.HistoryDays = l_count*l_units) Units = [BackupHistory.UnitType] a(as) sz(a,a) xy(10) enable(l_usedeleted) onchange(CurrentStorage.HistoryDays = l_count*l_units) [BackupHistory.UnitType] @ = t(combo) v(l_units) onchange(CurrentStorage.HistoryDays = l_count*l_units) Days = v(1) Weeks = v(7) ; ------------------------------------------------------------------- ; --------------- BackupCreateWizardPages.AutoRunPage --------------- [BackupCreateWizard.AutoRunPage] @ = sz(p,a) onshow(ctl.updatedata()) ext(1) mg(20,20,20,20) ns(schedule) v(Mode) OnStorageConnect = t(check) sz(a,a) a(sa) xy(,10) v(BackupOnStorageConnect) visible(if(CurrentStorageType==#backup_usb,(#true),(#false))) f("SecondWndDescription") Sep = a(la) sz(p,1) b(Group) xy(,20,,10) visible(ctl.OnStorageConnect.visible) ScheduleOff = t(radio) sz(a,a) a(sa) xy(,10) v(0) f("SecondWndDescription") ScheduleOn = t(radio) sz(a,a) a(sa) xy(,10) v(1) f("SecondWndDescription") Schedule = [SchedulerViewModified] ns(schedule) a(la) xy(18,15) enable(schedule.Mode == #schmEnabled) [SchedulerViewModified] $SchedulePage = a(lt) sz(p,a) mg(,0) xy(,36) at(hide) $LabelSize = 120 @ = sz(601,a) mg(15,15,20,15) bg("AlertInfo") ext(1) Period = a(la) sz($LabelSize,a) Type = [SchedulerView_Type] a(ls) xy($LabelSize,-4) sz(160) extprm(1) Once = [SchedulerView_Once] AtStartup = [SchedulerView_AtStartup] AfterUpdate = [SchedulerView_AfterUpdate] Minutely = [SchedulerView_Minutely] Hourly = [SchedulerView_Hourly] Daily = [SchedulerView_Daily] Weekly = [SchedulerView_Weekly] subst(WeekDays(sz($LabelSize,a))) Monthly = [SchedulerView_Monthly] Time = a(lt) xy(,65) sz($LabelSize,a) visible(switch(Type, "Scheduler_Time_Show")) TimeEdit = t(timeedit) at(notz) a(ls) xy($LabelSize,-4) sz($TimeEditCX) v(Time) visible(switch(Type, "Scheduler_Time_Show")) Sep = a(lt) xy(-15,98) sz(601,1) b(ScheduleBorder) visible(switch(Type, "Scheduler_RunIfSkipped_Show")) RunIfSkipped = $Check a(lt) xy(,115) v(RaiseIfSkipped) f("SecondWndHeader3") visible(switch(Type, "Scheduler_RunIfSkipped_Show")) extprm(1) Descr = a(la) xy(18,2) f("SecondWndDescription") visible(switch(Type, "Scheduler_RunIfSkipped_Show")) ; ------------------------------------------------------------------- ; ---------------- BackupCreateWizardPages.SummaryPage -------------- [BackupCreateWizard.SummaryPage] @ = sz(p,p) onshow(if(!BackupTaskName||p_new,BackupTaskName=checkAndIndexBackupTaskName(generateTaskName()) );ctl.updatedata()) ext(1) mg(20,20,20,20) TaskNameText = sz(a,a) a(la) xy(,10) f("SecondWndHeader3") TaskName = t(edit) sz(300,a) xy(5,-2) a(as) v(BackupTaskName) onok(if( !ctl.value, (balloon("BackupTaskShouldBeNamed"); ctl.value=checkAndIndexBackupTaskName(generateTaskName());false), (if(p_new, if( isBackupTaskNameExist(ctl.value), (balloon("BackupTaskExists"); false), if (isBackupTaskNameContainsBadSymbols(ctl.value), (balloon("BackupTaskBadSymbols"); false), true) )) ) )) nl(32) f("SecondWndDescription") Sep1 = a(la) sz(p,1) b(Group) xy(,25,,25) Content = sz(a,a) a(la) f("SecondWndDescription") SpaceRequiredAnimation = sz(a,a) a(as) xy(5) bg(ProcessingCount ? "BackupAnimation" : "") bp(ctl.animate(ProcessingCount ? -1 : 0, 2, #true)) ContentInfo = sz(a,a) xy(5) a(as) text(f_ObjSize(RequiredSpaceForBackup)) f("SecondWndDescription") CountFiles = sz(a,a) a(as) text(" (" + FilesToBackup + " " + s_files(f_numdeclension(FilesToBackup)) + ")") f("SecondWndDescription") Storage = sz(a,a) xy(,15) a(la) f("SecondWndDescription") StorageInfo = sz(a,a) xy(10) a(as) text(CurrentStorage.Name) onshow(ctl.text=CurrentStorage.Name) f("SecondWndDescription") Schedule = sz(a,a) xy(,15) a(la) f("SecondWndDescription") ScheduleInfo = [Value] $TaskVal ns(schedule) a(as) xy(10) sz(a,a) subst(Name() Val(f("SecondWndDescription") a(at) text(switch(schedule.Mode, "SchedulerDescription")) )) ;ScheduleInfoRunSkipped = sz(a,a) a(as) visible(schedule.RaiseIfSkipped) OnConnectText = sz(a,a) xy(,15) a(la) visible(BackupOnStorageConnect && (CurrentStorageType==#backup_usb)) f("SecondWndDescription") ScheduleInfoOnConnect = sz(a,a) a(as) xy(10) visible(BackupOnStorageConnect && (CurrentStorageType==#backup_usb)) f("SecondWndDescription") Sep2 = a(la) sz(p,1) b(Group) xy(,25,,25) RunAfter = t(check) sz(a,a) a(la) bg("Chart7") extprm(1) v(RunBackupTaskNow) f("SecondWndHeader3") ; ------------------------------------------------------------------- [BackupFilesDialog] @ = [StyledWindowT] at(dragable,customfooter,a_ok,a_cancel) subst(Body(a(lt) -xy() -bg()) BodyEx([BackupFilesDialog.Body])) sz(640,500) i("Main") h(p_type == "location" ? 17378 : 17131) at(enum) v(p_type) alias(backup_files_dialog) [TabLeft_Dark] @ = sz(a,$Tab_ParCtl_CY) ext(1) L = bg(ctl.parent.selected? "TabLeftWhite_Dark":"TabLeftGray_Dark") a(lt) sz(24,p) extprm(1) R = bg(ctl.parent.selected? "TabRightWhite_A_Dark":"TabRightGray_A_Dark") a(rt) sz(20,p) extprm(1) M = bg(ctl.parent.selected? "TabMidWhite_Dark":"TabMidGray_Dark") sz(p,p) xy(24,,17) extprm(1) Cont = a(lc) ta(cc) sz(a,p) xy(17,,10) extprm(1) [TabRight_Dark] @ = sz(a,$Tab_ParCtl_CY) ext(1) L = bg(ctl.parent.selected? "TabLeftWhite_A_Dark":"TabLeftGray_A_Dark") a(lt) sz(24,p) extprm(1) R = bg(ctl.parent.selected? "TabRightWhite_Dark":"TabRightGray_Dark") a(rt) sz(24,p) extprm(1) M = bg(ctl.parent.selected? "TabMidWhite_Dark":"TabMidGray_Dark") sz(p,p) xy(17,,24) extprm(1) Cont = a(lc) ta(cc) sz(a,p) xy(10,,17) extprm(1) [BackupFilesDialog.Body] @ = sz(p,p) a(lt) Body1 = [BackupCategoryDialog_Body] a(lt) xy(10,30,10,$DialogPanelSizeY_bottom) visible(p_type == "category") Body2 = [BackupLocationDialog_Body] a(lt) xy(10,30,10,$DialogPanelSizeY_bottom) visible(p_type == "location") Location = [TabLeft_Dark] a(lt) xy(230,6) at(radiolike) v("location") subst(Cont()) Category = [TabRight_Dark] a(as) at(radiolike) v("category") subst(Cont()) [BackupCategoryDialog_Body] @ = sz(p,p) bg("White") Header = [BackupWizardPage_Header] subst(Text()) a(lt) Content = [FilesSortedByCategoryDialog_Inner] [FilesSortedByCategoryDialog_Inner] @ = sz(p,p) a(la) Groups = [FilesSortedByCategoryDialog_Groups] a(lt) Sep = a(at) sz(1,p) b(Group) FilesInGroup = [FilesSortedByCategoryDialog_Files] a(at) [FilesSortedByCategoryDialog_Groups] @ = sz(200,p) Label = f("SecondWndHeader3") mg(20,14,20,14) List = [FilesSortedByCategoryDialog_GroupsList] a(la) sz(p,p) xy(,,,50) onfocus(ctl.FilesList.setCategory(ctl.seldata())) Note = a(lb) xy(10,10) f("SecondWndDescriptionSmall") [FilesSortedByCategoryDialog_GroupsList] @ = t(list) at(noheader,noborder,singlesel,noautosize) alias(vector) v(Categories.List) onshow(ctl.focus("CategoryId==p_Category")) ontimer(500, ctl.updatedata()) filter(Selected) f("SecondWndDescription") row = [FilesSortedByCategoryDialog_GroupsList_Row] [FilesSortedByCategoryDialog_GroupsList_Row] @ = at(custom) mg(,2,,2) Icon = a(la) xy(20) i(s_BackupFileCategoryIcon(CategoryType)) BackupItem = a(as) xy(5,2) text( (CategoryType ? s_KtsFileCategoryName(CategoryType) : CategoryName) + " (" + CountFiles + ")" ) f("SecondWndDescriptionSmall") Exclusion = a(as) f("SecondWndDescriptionSmall") text(HasExcludes ? "*" : " ") [FilesSortedByCategoryDialog_Files] @ = sz(p,p) FilesList = [FilesSortedByCategoryDialog_FilesList] a(la) oninit(ctl.setFilter(BackupHiddenFiles,BackupSystemFiles)) [FilesSortedByCategoryDialog_FilesList] @ = $List sz(p,p) at(singlesel,noborder,striped,checkall) alias(categoryFilesList) Name = sz(a) at(checked) i(getIconAsync(Name,"unkobj")) text(Name) v(Selected) use(!p_readonly) f("SecondWndDescription") ReadOnly = sz(a) i(getIconAsync(Name,"unkobj")) text(Name) use(p_readonly) f("SecondWndDescription") Location = sz(a) text(skipPathPrefix(PathToFile)) f("SecondWndDescription") Size = sz(a) text(f_ObjSize(Size)) f("SecondWndDescription") row = bg("GridSeparator") ; ------------------------------------------------------------------- [BackupLocationDialog_Body] @ = a(la) sz(p,p) bg("White") Path = [BackupTaskFoldersDialog_Path] FilesInGroup = [BackupTaskFoldersDialog_Content] [BackupTaskFoldersDialog_Path] @ = a(la) sz(p,a) L = bg("SecondaryWindowHeader_L") a(lt) C = bg("SecondaryWindowHeader_C,0") a(at) sz(p) R = bg("SecondaryWindowHeader_R") a(rt) Text = a(lt) mg(20,20,20,20) f("SecondWndHeader2") extprm(1) Up = at(clickable) a(ra) sz(16,16) xy(5,10,5,10) i(if(ctl.hotlight,"Navigation16,3","Navigation16,2")) onclick(ctl.PathComboBox.up()) Back = at(clickable) a(ps) sz(16,16) xy(5,0,5,0) i(if(ctl.hotlight,"Navigation16,1","Navigation16,0")) onclick(ctl.PathComboBox.back()) Block = a(ps) xy(0,-2,0,0) [BackupTaskFoldersDialog_Path_Block] Label = a(lt) sz(0,0) Space = a(la) sz(p,10) [BackupTaskFoldersDialog_Path_Block] @ = sz(p,a) Label1 = f("SecondWndDescription") sz(a,a) a(lc) xy(20,0,0,0) bp(ctl.text = ctl.parent.parent.Label.text) PathComboBox = t(combo) a(ac) xy(5,0,5,0) sz(p,a) alias(backup_path_selector) itemtext(s_KtsPredefinedPlaces(PredefinedType) ? s_KtsPredefinedPlaces(PredefinedType) : Path) onshow(ctl.setBackupFolders(BackupFolders)) onchange(ctl.FileBrowserList.value = ctl.value) [BackupTaskFoldersDialog_Content] @ = sz(p,p) a(la) b(Group) Folders = [BackupTaskFoldersDialog_Folders] a(lt) Sep = a(at) sz(1,p) b(Group) Files = [BackupTaskFoldersDialog_Files] a(at) Sep = a(lt) sz(p,1) b(Group) [BackupTaskFoldersDialog_Folders] @ = sz(200,p) Label = f("SecondWndHeader2") mg(20,14,20,14) List = [BackupTaskFoldersDialog_FoldersList] a(la) sz(p,p) xy(,,,50) onfocus(if(!l_IgnoreFocusEvent,ctl.FileBrowserList.value = ctl.seldata().RealPath)) Note = a(lb) xy(10,10) f("SecondWndDescriptionSmall") [BackupTaskFoldersDialog_FoldersList] @ = t(list) at(noheader,noborder,singlesel,noautosize) alias(vector) v(BackupFolders) filter(Selected) onshow(ctl.focus("p_SelectedItem==GUID")) ontimer(500,(l_IgnoreFocusEvent=1;ctl.refresh();l_IgnoreFocusEvent=0)) row = [BackupTaskFoldersDialog_FoldersList_Row] [BackupTaskFoldersDialog_FoldersList_Row] @ = at(custom) mg(,2,,2) Icon = a(la) xy(20) i(s_KtsPredefinedPlaceIcon(PredefinedType)) BackupItem = a(as) xy(5,2) text((s_KtsPredefinedPlaces(PredefinedType) ? s_KtsPredefinedPlaces(PredefinedType) : Path + (Path!=RealPath?(" (" + RealPath + ")"):("")))) f("SecondWndDescriptionSmall") Exclusion = a(as) f("KtsDescriptionDGrey") text((Selected && HasExcludes) ? "*" : "") f("SecondWndDescriptionSmall") [BackupTaskFoldersDialog_Files] @ = sz(p,p) FileBrowserList = [BackupTaskFoldersDialog_FilesList] a(lt) onshow(ctl.setFilter(Categories,BackupHiddenFiles,BackupSystemFiles,BackupFolders)) [BackupTaskFoldersDialog_FilesList] @ = $List sz(p,p) at(singlesel,noborder,striped,checkall) alias(backup_directory_browser) onfolder(ctl.PathComboBox.value = ctl.value) f("SecondWndDescription") Name = sz(a) at(checked) i(IsFolder ? "appgroup" : getIconAsync(ShortName,"unkobj")) text(ShortName) v(Selected) use(!p_readonly) f("SecondWndDescription") ReadOnly = sz(a) i(IsFolder ? "appgroup" : getIconAsync(ShortName,"unkobj")) text(ShortName) use(p_readonly) f("SecondWndDescription") Count = sz(a) text(if(IsFolder && Selected,(FilesCount + if(HasExclusions," *")))) f("SecondWndDescription") Size = sz(a) text(if(Selected,f_ObjSize(Size))) f("SecondWndDescription") row = at(clickable) onrclick(if(IsFolder,ctl.parent.value = FullName)) bg("GridSeparator") [BackupWarningDialog] @ = [StyledWindowT] at(dragable,customfooter) subst(BodyEx([BackupWarningDialog.Body]) Footer([BackupWarningDialog.Footer])) sz(500,a) i("Main") [BackupWarningDialog.Footer] @ = a(lb) sz(p,$DialogPanelSizeY) panel = [DialogPanel] subst(BtnsGroup([BackupWarningDialog_BtnsGroup]) Help(use(0)) [BackupWarningDialog_BtnsGroup] @ = sz(a,$Button_CY) rs(0,0) a(rb) xy(7,7) extprm(1) Close = [BtnGlass24] a(lt) xy($Button_Shift) onclick(close()) text($Close) [BackupWarningDialog.Body] @ = $DlgBodyAttr sz(p,a) mg(20,25,30,25) oninit(l_show=0) Icon = sz(a,a) i("backup48") Caption = at(singleline) a(at) xy(5,-3) f("Header6Lite") CaptionAfterPos = a(sa) xy(1) sz(0,0) Status = [BackupWarningDialog_Body_Status] xy(,0) a(sa) sz(p,a) [BackupWarningDialog_Body_Status] Duration = [Value] a(la) xy() subst(Name(f("Description") at(singleline)) Val(f("Description") at(singleline) a(a) sz(p,a) text(capitalize(timestamp(f_ProfileDurationTime()), false)))) Result = [Value] a(la) xy() subst( Name(f("Description") at(singleline)) Val(visible(SkippedFiles) f("Description") at(singleline) a(a) sz(p,a)) ) Errors = [Value] a(la) xy() subst( Name(f("Description") at(singleline)) Val(f("KtsHeader0Red") at(singleline) a(a) sz(p,a) text(Errors)) ) visible(Errors) ShowFiles = $LinkKL a(la) xy(,20) at(singleline) onclick(l_show=!l_show) Files = $List xy(,20) alias(vector) at(singlesel,noheader) v(SkippedFilesList) visible(l_show)