summaryrefslogtreecommitdiff
path: root/plugins/BuddyPounce/src
diff options
context:
space:
mode:
authorVadim Dashevskiy <watcherhd@gmail.com>2013-03-27 19:20:16 +0000
committerVadim Dashevskiy <watcherhd@gmail.com>2013-03-27 19:20:16 +0000
commit9bad6cb2e2eec6489554baaf3662865e1c9ad073 (patch)
tree088601f1652f3e434c01d7ff345da3629e511362 /plugins/BuddyPounce/src
parent7b1adba5336a293629cb58835b8dc35bd2d7b3d6 (diff)
BuddyPounce:
- options&dialog cosmetics - fully commented unused items (possible for future use) - options moved to "Message sessions" group patch from person git-svn-id: http://svn.miranda-ng.org/main/trunk@4219 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/BuddyPounce/src')
-rw-r--r--plugins/BuddyPounce/src/dialog.cpp38
-rw-r--r--plugins/BuddyPounce/src/main.cpp2
-rw-r--r--plugins/BuddyPounce/src/resource.h4
3 files changed, 22 insertions, 22 deletions
diff --git a/plugins/BuddyPounce/src/dialog.cpp b/plugins/BuddyPounce/src/dialog.cpp
index db6f956dac..1f1aae170c 100644
--- a/plugins/BuddyPounce/src/dialog.cpp
+++ b/plugins/BuddyPounce/src/dialog.cpp
@@ -33,7 +33,7 @@ void populateContacts(HANDLE BPhContact,HWND hwnd2CB)
void saveLastSetting(HANDLE hContact, HWND hwnd)
{
- TCHAR number[8], string[1024];
+ TCHAR number[8];//, string[1024];//for sending file name
switch (DBGetContactSettingByte(hContact, modname, "LastSetting", 2)) // nothing to do
{
case 0: // Send If My Status Is...
@@ -60,10 +60,10 @@ void saveLastSetting(HANDLE hContact, HWND hwnd)
DBWriteContactSettingByte(hContact, modname, "ConfirmTimeout", (BYTE)_ttoi(number));
break;
- case 7: // send a file
- GetDlgItemText(hwnd, IDC_SETTINGTEXT, string, 1024);
- DBWriteContactSettingTString(hContact, modname, "FileToSend", string);
- break;
+// case 7: // send a file
+// GetDlgItemText(hwnd, IDC_SETTINGTEXT, string, 1024);
+// DBWriteContactSettingTString(hContact, modname, "FileToSend", string);
+// break;
}
}
@@ -71,10 +71,10 @@ void hideAll(HWND hwnd)
{
ShowWindow(GetDlgItem(hwnd, IDC_SETTINGMSG), SW_HIDE);
ShowWindow(GetDlgItem(hwnd, IDC_SETTINGMSG2), SW_HIDE);
- ShowWindow(GetDlgItem(hwnd, IDC_BUTTON), SW_HIDE);
+// ShowWindow(GetDlgItem(hwnd, IDC_BUTTON), SW_HIDE);
ShowWindow(GetDlgItem(hwnd, IDC_SETTINGNUMBER), SW_HIDE);
ShowWindow(GetDlgItem(hwnd, IDC_SPIN), SW_HIDE);
- ShowWindow(GetDlgItem(hwnd, IDC_SETTINGTEXT), SW_HIDE);
+// ShowWindow(GetDlgItem(hwnd, IDC_SETTINGTEXT), SW_HIDE);
}
void getDefaultMessage(HWND hwnd, UINT control, HANDLE hContact)
@@ -406,12 +406,12 @@ INT_PTR CALLBACK BuddyPounceDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM l
ShowWindow(GetDlgItem(hwnd, IDC_SPIN), SW_SHOW);
break;
- case 7: // send a file
- ShowWindow(GetDlgItem(hwnd, IDC_SETTINGMSG), SW_SHOW);
- SetDlgItemText(hwnd, IDC_SETTINGMSG, TranslateT("Send a file"));
- ShowWindow(GetDlgItem(hwnd, IDC_BUTTON), SW_SHOW);
- ShowWindow(GetDlgItem(hwnd, IDC_SETTINGTEXT), SW_SHOW);
- break;
+// case 7: // send a file
+// ShowWindow(GetDlgItem(hwnd, IDC_SETTINGMSG), SW_SHOW);
+// SetDlgItemText(hwnd, IDC_SETTINGMSG, TranslateT("Send a file"));
+// ShowWindow(GetDlgItem(hwnd, IDC_BUTTON), SW_SHOW);
+// ShowWindow(GetDlgItem(hwnd, IDC_SETTINGTEXT), SW_SHOW);
+// break;
}
DBWriteContactSettingByte(wi->hContact, modname, "LastSetting", (BYTE)item);
}
@@ -542,12 +542,12 @@ INT_PTR CALLBACK BuddyPounceOptionsDlgProc(HWND hwnd, UINT msg, WPARAM wParam, L
ShowWindow(GetDlgItem(hwnd, IDC_SPIN), SW_SHOW);
break;
- case 7: // send a file
- ShowWindow(GetDlgItem(hwnd, IDC_SETTINGMSG), SW_SHOW);
- SetDlgItemText(hwnd, IDC_SETTINGMSG, TranslateT("Send a file"));
- ShowWindow(GetDlgItem(hwnd, IDC_BUTTON), SW_SHOW);
- ShowWindow(GetDlgItem(hwnd, IDC_SETTINGTEXT), SW_SHOW);
- break;
+// case 7: // send a file
+// ShowWindow(GetDlgItem(hwnd, IDC_SETTINGMSG), SW_SHOW);
+// SetDlgItemText(hwnd, IDC_SETTINGMSG, TranslateT("Send a file"));
+// ShowWindow(GetDlgItem(hwnd, IDC_BUTTON), SW_SHOW);
+// ShowWindow(GetDlgItem(hwnd, IDC_SETTINGTEXT), SW_SHOW);
+// break;
}
DBWriteContactSettingByte(wi->hContact, modname, "LastSetting", (BYTE)item);
}
diff --git a/plugins/BuddyPounce/src/main.cpp b/plugins/BuddyPounce/src/main.cpp
index 111dbbc5d4..9e60608d2d 100644
--- a/plugins/BuddyPounce/src/main.cpp
+++ b/plugins/BuddyPounce/src/main.cpp
@@ -106,7 +106,7 @@ int BuddyPounceOptInit(WPARAM wParam, LPARAM lParam)
odp.flags = ODPF_BOLDGROUPS | ODPF_TCHAR;
odp.hInstance = hInst;
odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPTIONS);
- odp.ptszGroup = LPGENT("Plugins");
+ odp.ptszGroup = LPGENT("Message Sessions");
odp.ptszTitle = LPGENT("Buddy Pounce");
odp.pfnDlgProc = BuddyPounceOptionsDlgProc;
Options_AddPage(wParam, &odp);
diff --git a/plugins/BuddyPounce/src/resource.h b/plugins/BuddyPounce/src/resource.h
index 6d9de9b857..fc32b059dc 100644
--- a/plugins/BuddyPounce/src/resource.h
+++ b/plugins/BuddyPounce/src/resource.h
@@ -49,8 +49,8 @@
#define IDC_SETTINGMSG 1061
#define IDC_SETTINGNUMBER 1066
#define IDC_SPIN 1067
-#define IDC_SETTINGTEXT 1068
-#define IDC_BUTTON 1069
+//#define IDC_SETTINGTEXT 1068
+//#define IDC_BUTTON 1069
#define IDC_SETTINGS 1075
#define IDC_CONTACTS 1076
#define IDC_ADVANCED 1078