summaryrefslogtreecommitdiff
path: root/plugins/FileAsMessage/optionsdlg.cpp
diff options
context:
space:
mode:
authorVadim Dashevskiy <watcherhd@gmail.com>2012-07-18 06:59:36 +0000
committerVadim Dashevskiy <watcherhd@gmail.com>2012-07-18 06:59:36 +0000
commit3634576b3903f8316b1dcdc396a70f40fa43f5f5 (patch)
tree55f87e6fccf45c3b2e5b7adf12a1e959f2d6f12e /plugins/FileAsMessage/optionsdlg.cpp
parent7a65cbd15d4f808f973d782deea2a5e1a02accd6 (diff)
ExtraIcon, Favcontacts, FileAsMessage, FingerPrintModPlus: changed folder structure
git-svn-id: http://svn.miranda-ng.org/main/trunk@1006 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/FileAsMessage/optionsdlg.cpp')
-rw-r--r--plugins/FileAsMessage/optionsdlg.cpp112
1 files changed, 0 insertions, 112 deletions
diff --git a/plugins/FileAsMessage/optionsdlg.cpp b/plugins/FileAsMessage/optionsdlg.cpp
deleted file mode 100644
index 748a118db5..0000000000
--- a/plugins/FileAsMessage/optionsdlg.cpp
+++ /dev/null
@@ -1,112 +0,0 @@
-#include "main.h"
-
-DWORD settingDefault[] =
-{
- RGB(64,255,64),
- RGB(255,255,64),
- RGB(128,128,128),
- RGB(192,192,192),
-
- 6000,
- 5000
-};
-char *settingName[] =
-{
- "colorRecv",
- "colorSent",
- "colorUnsent",
- "colorTosend",
-
- "SendDelay",
- "ChunkSize"
-};
-int settingId[] =
-{
- IDC_RECV,
- IDC_SENT,
- IDC_UNSENT,
- IDC_TOSEND,
-
- -IDC_SENDDELAY,
- -IDC_CHUNKSIZE
-};
-//
-// OptionsDlgProc()
-// this handles the options page
-// verwaltet die Optionsseite
-//
-INT_PTR CALLBACK OptionsDlgProc( HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam )
-{
- switch( uMsg )
- {
- case WM_INITDIALOG:
- {
- TranslateDialogDefault(hwndDlg);
-
- for(int indx = 0; indx < SIZEOF(settingId); indx++)
- if(settingId[indx] > 0)
- SendDlgItemMessage(hwndDlg, settingId[indx], CPM_SETCOLOUR, 0, DBGetContactSettingDword(NULL, SERVICE_NAME, settingName[indx], settingDefault[indx]));
- else
- SetDlgItemInt(hwndDlg, -settingId[indx], DBGetContactSettingDword(NULL, SERVICE_NAME, settingName[indx], settingDefault[indx]), FALSE);
-
- CheckDlgButton(hwndDlg, IDC_ALPHANUM, DBGetContactSettingDword(NULL, SERVICE_NAME, "base64", 1)?BST_CHECKED:BST_UNCHECKED);
-
- return TRUE;
-
- }
- case WM_COMMAND:
- {
- if(//MAKEWPARAM(IDC_AUTO, BN_CLICKED) != wParam ||
- MAKEWPARAM(IDC_ALPHANUM, BN_CLICKED) != wParam)
- {
- for(int indx = 0; indx < SIZEOF(settingId); indx++)
- {
- if(LOWORD(wParam) == abs(settingId[indx]))
- {
- if(settingId[indx] > 0)
- {
- if(HIWORD(wParam) != CPN_COLOURCHANGED) return FALSE;
- }
- else
- {
- if(HIWORD(wParam) != EN_CHANGE) return FALSE;
- if((HWND)lParam != GetFocus()) return FALSE;
- }
- }
- }
- }
- SendMessage(GetParent(hwndDlg), PSM_CHANGED, 0,0);
- break;
- }
- case WM_DESTROY:
- return FALSE;
-
- case WM_NOTIFY:
- {
- if((((NMHDR*)lParam)->idFrom == 0) && (((LPNMHDR)lParam)->code == PSN_APPLY))
- {
- int value;
- BOOL succ;
-
- for(int indx = 0; indx < SIZEOF(settingId); indx++)
- {
- if(settingId[indx] > 0)
- value = SendDlgItemMessage(hwndDlg, settingId[indx], CPM_GETCOLOUR, 0, 0);
- else
- {
- value = GetDlgItemInt(hwndDlg, -settingId[indx], &succ, FALSE);
- if(!succ) value = settingDefault[indx];
- }
- DBWriteContactSettingDword(NULL,SERVICE_NAME,settingName[indx], value);
- }
- DBWriteContactSettingDword(NULL,SERVICE_NAME, "base64", (IsDlgButtonChecked(hwndDlg, IDC_ALPHANUM) == BST_CHECKED)?1:0);
-
- return TRUE;
- }
- break;
- }
-
- }
-
- return FALSE;
-}