From 886d5e6f982d65f8d4f9a13ec52cce049fe4757f Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 19 Mar 2015 22:25:22 +0000 Subject: Import: an option added to support profile mirroring (precise copy) git-svn-id: http://svn.miranda-ng.org/main/trunk@12438 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Import/src/miranda.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'plugins/Import/src/miranda.cpp') diff --git a/plugins/Import/src/miranda.cpp b/plugins/Import/src/miranda.cpp index 1b6a3a0b6a..f75450299a 100644 --- a/plugins/Import/src/miranda.cpp +++ b/plugins/Import/src/miranda.cpp @@ -150,13 +150,14 @@ INT_PTR CALLBACK MirandaOptionsPageProc(HWND hwndDlg, UINT message, WPARAM wPara switch (message) { case WM_INITDIALOG: TranslateDialogDefault(hwndDlg); + EnableWindow(GetDlgItem(hwndDlg, IDC_RADIO_COMPLETE), TRUE); EnableWindow(GetDlgItem(hwndDlg, IDC_RADIO_ALL), TRUE); EnableWindow(GetDlgItem(hwndDlg, IDC_STATIC_ALL), TRUE); EnableWindow(GetDlgItem(hwndDlg, IDC_RADIO_CONTACTS), TRUE); EnableWindow(GetDlgItem(hwndDlg, IDC_STATIC_CONTACTS), TRUE); EnableWindow(GetDlgItem(hwndDlg, IDC_RADIO_CUSTOM), TRUE); EnableWindow(GetDlgItem(hwndDlg, IDC_STATIC_CUSTOM), TRUE); - CheckDlgButton(hwndDlg, IDC_RADIO_ALL, BST_UNCHECKED); + CheckDlgButton(hwndDlg, IDC_RADIO_COMPLETE, BST_CHECKED); return TRUE; case WM_COMMAND: @@ -166,9 +167,16 @@ INT_PTR CALLBACK MirandaOptionsPageProc(HWND hwndDlg, UINT message, WPARAM wPara break; case IDOK: + if (IsDlgButtonChecked(hwndDlg, IDC_RADIO_COMPLETE)) { + nImportOption = IMPORT_CUSTOM; + nCustomOptions = INT32_MAX; + PostMessage(GetParent(hwndDlg), WIZM_GOTOPAGE, IDD_PROGRESS, (LPARAM)ProgressPageProc); + break; + } + if (IsDlgButtonChecked(hwndDlg, IDC_RADIO_ALL)) { nImportOption = IMPORT_ALL; - nCustomOptions = 0;//IOPT_MSGSENT|IOPT_MSGRECV|IOPT_URLSENT|IOPT_URLRECV; + nCustomOptions = 0; PostMessage(GetParent(hwndDlg), WIZM_GOTOPAGE, IDD_PROGRESS, (LPARAM)ProgressPageProc); break; } -- cgit v1.2.3