summaryrefslogtreecommitdiff
path: root/plugins/FingerprintNG/src/options.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/FingerprintNG/src/options.cpp')
-rw-r--r--plugins/FingerprintNG/src/options.cpp80
1 files changed, 40 insertions, 40 deletions
diff --git a/plugins/FingerprintNG/src/options.cpp b/plugins/FingerprintNG/src/options.cpp
index 6bdef9a37f..cd49c08c2a 100644
--- a/plugins/FingerprintNG/src/options.cpp
+++ b/plugins/FingerprintNG/src/options.cpp
@@ -28,68 +28,68 @@ struct
}
static settings[] =
{
- {IDC_GROUP_MIRANDA, TRUE, "GroupMiranda"},
- {IDC_GROUP_MIRANDA_VERSION, FALSE, "GroupMirandaVersion"},
- {IDC_GROUP_MIRANDA_PACKS, TRUE, "GroupMirandaPacks"},
-
- {IDC_GROUP_MULTI, TRUE, "GroupMulti"},
- {IDC_GROUP_AIM, TRUE, "GroupAIM"},
- {IDC_GROUP_GG, TRUE, "GroupGG"},
- {IDC_GROUP_ICQ, TRUE, "GroupICQ"},
- {IDC_GROUP_IRC, TRUE, "GroupIRC"},
- {IDC_GROUP_JABBER, TRUE, "GroupJabber"},
- {IDC_GROUP_MRA, TRUE, "GroupMRA"},
- {IDC_GROUP_MSN, TRUE, "GroupMSN"},
- {IDC_GROUP_QQ, TRUE, "GroupQQ"},
- {IDC_GROUP_RSS, TRUE, "GroupRSS"},
- {IDC_GROUP_TLEN, TRUE, "GroupTlen"},
- {IDC_GROUP_WEATHER, TRUE, "GroupWeather"},
- {IDC_GROUP_YAHOO, TRUE, "GroupYahoo"},
- {IDC_GROUP_FACEBOOK, TRUE, "GroupFacebook"},
- {IDC_GROUP_VK, TRUE, "GroupVK"},
-
- {IDC_GROUP_OTHER_PROTOS, TRUE, "GroupOtherProtos"},
- {IDC_GROUP_OTHERS, TRUE, "GroupOthers"},
-
- {IDC_GROUP_OVERLAYS_RESOURCE, TRUE, "GroupOverlaysResource"},
- {IDC_GROUP_OVERLAYS_PLATFORM, TRUE, "GroupOverlaysPlatform"},
- {IDC_GROUP_OVERLAYS_UNICODE, TRUE, "GroupOverlaysUnicode"},
- {IDC_GROUP_OVERLAYS_PROTO, TRUE, "GroupOverlaysProtos"},
- {IDC_GROUP_OVERLAYS_SECURITY, TRUE, "GroupOverlaysSecurity"},
- {IDC_STATUSBAR, TRUE, "StatusBarIcon"}
+ { IDC_GROUP_MIRANDA, TRUE, "GroupMiranda" },
+ { IDC_GROUP_MIRANDA_VERSION, FALSE, "GroupMirandaVersion" },
+ { IDC_GROUP_MIRANDA_PACKS, TRUE, "GroupMirandaPacks" },
+
+ { IDC_GROUP_MULTI, TRUE, "GroupMulti" },
+ { IDC_GROUP_AIM, TRUE, "GroupAIM" },
+ { IDC_GROUP_GG, TRUE, "GroupGG" },
+ { IDC_GROUP_ICQ, TRUE, "GroupICQ" },
+ { IDC_GROUP_IRC, TRUE, "GroupIRC" },
+ { IDC_GROUP_JABBER, TRUE, "GroupJabber" },
+ { IDC_GROUP_MRA, TRUE, "GroupMRA" },
+ { IDC_GROUP_MSN, TRUE, "GroupMSN" },
+ { IDC_GROUP_QQ, TRUE, "GroupQQ" },
+ { IDC_GROUP_RSS, TRUE, "GroupRSS" },
+ { IDC_GROUP_TLEN, TRUE, "GroupTlen" },
+ { IDC_GROUP_WEATHER, TRUE, "GroupWeather" },
+ { IDC_GROUP_YAHOO, TRUE, "GroupYahoo" },
+ { IDC_GROUP_FACEBOOK, TRUE, "GroupFacebook" },
+ { IDC_GROUP_VK, TRUE, "GroupVK" },
+
+ { IDC_GROUP_OTHER_PROTOS, TRUE, "GroupOtherProtos" },
+ { IDC_GROUP_OTHERS, TRUE, "GroupOthers" },
+
+ { IDC_GROUP_OVERLAYS_RESOURCE, TRUE, "GroupOverlaysResource" },
+ { IDC_GROUP_OVERLAYS_PLATFORM, TRUE, "GroupOverlaysPlatform" },
+ { IDC_GROUP_OVERLAYS_UNICODE, TRUE, "GroupOverlaysUnicode" },
+ { IDC_GROUP_OVERLAYS_PROTO, TRUE, "GroupOverlaysProtos" },
+ { IDC_GROUP_OVERLAYS_SECURITY, TRUE, "GroupOverlaysSecurity" },
+ { IDC_STATUSBAR, TRUE, "StatusBarIcon" }
};
/*static void OptDlgChanged(HWND hwndDlg, BOOL show)
{
- if (show)
- ShowWindow(GetDlgItem(hwndDlg, IDC_OPTCHANGENOTE), SW_SHOW);
- SendMessage(GetParent(hwndDlg), PSM_CHANGED, 0, 0);
+if (show)
+ShowWindow(GetDlgItem(hwndDlg, IDC_OPTCHANGENOTE), SW_SHOW);
+SendMessage(GetParent(hwndDlg), PSM_CHANGED, 0, 0);
}*/
static void LoadDBCheckState(HWND hwndDlg, int idCtrl, LPCSTR szSetting, BYTE bDef)
{
- CheckDlgButton(hwndDlg, idCtrl, db_get_b(NULL, MODULENAME, szSetting, bDef) ? BST_CHECKED : BST_UNCHECKED);
+ CheckDlgButton(hwndDlg, idCtrl, db_get_b(NULL, MODULENAME, szSetting, bDef) ? BST_CHECKED : BST_UNCHECKED);
}
static void StoreDBCheckState(HWND hwndDlg, int idCtrl, LPCSTR szSetting)
{
- db_set_b(NULL, MODULENAME, szSetting, (BYTE)IsDlgButtonChecked(hwndDlg, idCtrl));
+ db_set_b(NULL, MODULENAME, szSetting, (BYTE)IsDlgButtonChecked(hwndDlg, idCtrl));
}
static INT_PTR CALLBACK DlgProcOptions(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam)
{
int i;
- switch(msg) {
+ switch (msg) {
case WM_INITDIALOG:
TranslateDialogDefault(hwndDlg);
- for (i=0; i < SIZEOF(settings); i++)
+ for (i = 0; i < SIZEOF(settings); i++)
LoadDBCheckState(hwndDlg, settings[i].idCtrl, settings[i].szSetName, settings[i].defValue);
break;
case WM_COMMAND:
- if ( HIWORD(wParam) == BN_CLICKED)
- for (i=0; i < SIZEOF(settings); i++)
+ if (HIWORD(wParam) == BN_CLICKED)
+ for (i = 0; i < SIZEOF(settings); i++)
if (settings[i].idCtrl == LOWORD(wParam)) {
SendMessage(GetParent(hwndDlg), PSM_CHANGED, 0, 0);
break;
@@ -99,7 +99,7 @@ static INT_PTR CALLBACK DlgProcOptions(HWND hwndDlg, UINT msg, WPARAM wParam, LP
case WM_NOTIFY:
NMHDR *hdr = (NMHDR *)lParam;
if (hdr && hdr->code == PSN_APPLY) {
- for (i=0; i < SIZEOF(settings); i++)
+ for (i = 0; i < SIZEOF(settings); i++)
StoreDBCheckState(hwndDlg, settings[i].idCtrl, settings[i].szSetName);
ClearFI();
@@ -113,7 +113,7 @@ static INT_PTR CALLBACK DlgProcOptions(HWND hwndDlg, UINT msg, WPARAM wParam, LP
return FALSE;
}
-int OnOptInitialise(WPARAM wParam, LPARAM lParam)
+int OnOptInitialise(WPARAM wParam, LPARAM)
{
OPTIONSDIALOGPAGE odp = { sizeof(odp) };
odp.hInstance = g_hInst;