diff options
Diffstat (limited to 'protocols/Tlen/src/tlen_userinfo.cpp')
-rw-r--r-- | protocols/Tlen/src/tlen_userinfo.cpp | 82 |
1 files changed, 41 insertions, 41 deletions
diff --git a/protocols/Tlen/src/tlen_userinfo.cpp b/protocols/Tlen/src/tlen_userinfo.cpp index fbe38e7a51..04ca98b5aa 100644 --- a/protocols/Tlen/src/tlen_userinfo.cpp +++ b/protocols/Tlen/src/tlen_userinfo.cpp @@ -32,46 +32,46 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "tlen_avatar.h"
TLEN_FIELD_MAP tlenFieldGender[] = {
- { 1, _T("Male") },
- { 2, _T("Female") },
+ { 1, L"Male" },
+ { 2, L"Female" },
{ 0, NULL }
};
TLEN_FIELD_MAP tlenFieldLookfor[] = {
- { 1, _T("Somebody to talk") },
- { 2, _T("Friendship") },
- { 3, _T("Flirt/romance") },
- { 4, _T("Love") },
- { 5, _T("Nothing") },
+ { 1, L"Somebody to talk" },
+ { 2, L"Friendship" },
+ { 3, L"Flirt/romance" },
+ { 4, L"Love" },
+ { 5, L"Nothing" },
{ 0, NULL }
};
TLEN_FIELD_MAP tlenFieldStatus[] = {
- { 1, _T("All") },
- { 2, _T("Available") },
- { 3, _T("Free for chat") },
+ { 1, L"All" },
+ { 2, L"Available" },
+ { 3, L"Free for chat" },
{ 0, NULL }
};
TLEN_FIELD_MAP tlenFieldOccupation[] = {
- { 1, _T("Student") },
- { 2, _T("College student") },
- { 3, _T("Farmer") },
- { 4, _T("Manager") },
- { 5, _T("Specialist") },
- { 6, _T("Clerk") },
- { 7, _T("Unemployed") },
- { 8, _T("Pensioner") },
- { 9, _T("Housekeeper") },
- { 10, _T("Teacher") },
- { 11, _T("Doctor") },
- { 12, _T("Other") },
+ { 1, L"Student" },
+ { 2, L"College student" },
+ { 3, L"Farmer" },
+ { 4, L"Manager" },
+ { 5, L"Specialist" },
+ { 6, L"Clerk" },
+ { 7, L"Unemployed" },
+ { 8, L"Pensioner" },
+ { 9, L"Housekeeper" },
+ { 10, L"Teacher" },
+ { 11, L"Doctor" },
+ { 12, L"Other" },
{ 0, NULL }
};
TLEN_FIELD_MAP tlenFieldPlan[] = {
- { 1, _T("I'd like to go downtown") },
- { 2, _T("I'd like to go to the cinema") },
- { 3, _T("I'd like to take a walk") },
- { 4, _T("I'd like to go to the disco") },
- { 5, _T("I'd like to go on a blind date") },
- { 6, _T("Waiting for suggestion") },
+ { 1, L"I'd like to go downtown" },
+ { 2, L"I'd like to go to the cinema" },
+ { 3, L"I'd like to take a walk" },
+ { 4, L"I'd like to go to the disco" },
+ { 5, L"I'd like to go on a blind date" },
+ { 6, L"Waiting for suggestion" },
{ 0, NULL }
};
@@ -81,7 +81,7 @@ static void InitComboBox(HWND hwndCombo, TLEN_FIELD_MAP *fieldMap) {
int i, n;
- n = SendMessage(hwndCombo, CB_ADDSTRING, 0, (LPARAM)_T(""));
+ n = SendMessage(hwndCombo, CB_ADDSTRING, 0, (LPARAM)L"");
SendMessage(hwndCombo, CB_SETITEMDATA, n, 0);
SendMessage(hwndCombo, CB_SETCURSEL, n, 0);
for (i=0;;i++) {
@@ -180,38 +180,38 @@ static INT_PTR CALLBACK TlenUserInfoDlgProc(HWND hwndDlg, UINT msg, WPARAM wPara int i;
TLEN_LIST_ITEM *item;
- SetDlgItemText(hwndDlg, IDC_INFO_JID, _T(""));
- SetDlgItemText(hwndDlg, IDC_SUBSCRIPTION, _T(""));
+ SetDlgItemText(hwndDlg, IDC_INFO_JID, L"");
+ SetDlgItemText(hwndDlg, IDC_SUBSCRIPTION, L"");
SetFocus(GetDlgItem(hwndDlg, IDC_STATIC));
if (!db_get_ts(data->hContact, data->proto->m_szModuleName, "FirstName", &dbv)) {
SetDlgItemText(hwndDlg, IDC_FIRSTNAME, dbv.ptszVal);
db_free(&dbv);
- } else SetDlgItemText(hwndDlg, IDC_FIRSTNAME, _T(""));
+ } else SetDlgItemText(hwndDlg, IDC_FIRSTNAME, L"");
if (!db_get_ts(data->hContact, data->proto->m_szModuleName, "LastName", &dbv)) {
SetDlgItemText(hwndDlg, IDC_LASTNAME, dbv.ptszVal);
db_free(&dbv);
- } else SetDlgItemText(hwndDlg, IDC_LASTNAME, _T(""));
+ } else SetDlgItemText(hwndDlg, IDC_LASTNAME, L"");
if (!db_get_ts(data->hContact, data->proto->m_szModuleName, "Nick", &dbv)) {
SetDlgItemText(hwndDlg, IDC_NICKNAME, dbv.ptszVal);
db_free(&dbv);
- } else SetDlgItemText(hwndDlg, IDC_NICKNAME, _T(""));
+ } else SetDlgItemText(hwndDlg, IDC_NICKNAME, L"");
if (!db_get_ts(data->hContact, data->proto->m_szModuleName, "e-mail", &dbv)) {
SetDlgItemText(hwndDlg, IDC_EMAIL, dbv.ptszVal);
db_free(&dbv);
- } else SetDlgItemText(hwndDlg, IDC_EMAIL, _T(""));
+ } else SetDlgItemText(hwndDlg, IDC_EMAIL, L"");
if (!db_get(data->hContact, data->proto->m_szModuleName, "Age", &dbv)) {
SetDlgItemInt(hwndDlg, IDC_AGE, dbv.wVal, FALSE);
db_free(&dbv);
- } else SetDlgItemText(hwndDlg, IDC_AGE, _T(""));
+ } else SetDlgItemText(hwndDlg, IDC_AGE, L"");
if (!db_get_ts(data->hContact, data->proto->m_szModuleName, "City", &dbv)) {
SetDlgItemText(hwndDlg, IDC_CITY, dbv.ptszVal);
db_free(&dbv);
- } else SetDlgItemText(hwndDlg, IDC_CITY, _T(""));
+ } else SetDlgItemText(hwndDlg, IDC_CITY, L"");
if (!db_get_ts(data->hContact, data->proto->m_szModuleName, "School", &dbv)) {
SetDlgItemText(hwndDlg, IDC_SCHOOL, dbv.ptszVal);
db_free(&dbv);
- } else SetDlgItemText(hwndDlg, IDC_SCHOOL, _T(""));
+ } else SetDlgItemText(hwndDlg, IDC_SCHOOL, L"");
switch (db_get_b(data->hContact, data->proto->m_szModuleName, "Gender", '?')) {
case 'M':
SendDlgItemMessage(hwndDlg, IDC_GENDER, CB_SETCURSEL, 1, 0);
@@ -223,7 +223,7 @@ static INT_PTR CALLBACK TlenUserInfoDlgProc(HWND hwndDlg, UINT msg, WPARAM wPara break;
default:
SendDlgItemMessage(hwndDlg, IDC_GENDER, CB_SETCURSEL, 0, 0);
- SetDlgItemText(hwndDlg, IDC_GENDER_TEXT, _T(""));
+ SetDlgItemText(hwndDlg, IDC_GENDER_TEXT, L"");
break;
}
i = db_get_w(data->hContact, data->proto->m_szModuleName, "Occupation", 0);
@@ -231,7 +231,7 @@ static INT_PTR CALLBACK TlenUserInfoDlgProc(HWND hwndDlg, UINT msg, WPARAM wPara SetDlgItemText(hwndDlg, IDC_OCCUPATION_TEXT, TranslateTS(tlenFieldOccupation[i-1].name));
SendDlgItemMessage(hwndDlg, IDC_OCCUPATION, CB_SETCURSEL, i, 0);
} else {
- SetDlgItemText(hwndDlg, IDC_OCCUPATION_TEXT, _T(""));
+ SetDlgItemText(hwndDlg, IDC_OCCUPATION_TEXT, L"");
SendDlgItemMessage(hwndDlg, IDC_OCCUPATION, CB_SETCURSEL, 0, 0);
}
i = db_get_w(data->hContact, data->proto->m_szModuleName, "LookingFor", 0);
@@ -239,7 +239,7 @@ static INT_PTR CALLBACK TlenUserInfoDlgProc(HWND hwndDlg, UINT msg, WPARAM wPara SetDlgItemText(hwndDlg, IDC_LOOKFOR_TEXT, TranslateTS(tlenFieldLookfor[i-1].name));
SendDlgItemMessage(hwndDlg, IDC_LOOKFOR, CB_SETCURSEL, i, 0);
} else {
- SetDlgItemText(hwndDlg, IDC_LOOKFOR_TEXT, _T(""));
+ SetDlgItemText(hwndDlg, IDC_LOOKFOR_TEXT, L"");
SendDlgItemMessage(hwndDlg, IDC_LOOKFOR, CB_SETCURSEL, 0, 0);
}
i = db_get_w(data->hContact, data->proto->m_szModuleName, "VoiceChat", 0);
|