Changeset 125
- Timestamp:
- Aug 14, 2021, 7:06:23 PM (4 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
id.h (modified) (4 diffs)
-
settings.cpp (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/id.h
r94 r125 72 72 #define WID_CAPTURETYPE 38 73 73 #define WID_LB_LANGUAGES 39 74 #define WID_LB_LANGUAGESHELP 4075 74 #define WID_PB_HELP 42 76 75 #define WID_LB_FILEFORMAT 43 … … 80 79 // These must be sequential with END last 81 80 #define WID_ST_COPYRIGHT 400 82 #define WID_ST_PROGRAM 401 83 #define WID_ST_HELPFILE 402 84 #define WID_ST_LANGNOTE 403 85 #define WID_ST_END 404 81 #define WID_ST_COPYRIGHT1 401 82 #define WID_ST_COPYRIGHT2 402 83 #define WID_ST_COPYRIGHT3 403 84 #define WID_ST_COPYRIGHT4 404 85 #define WID_ST_PROGRAM 405 86 #define WID_ST_LANGNOTE 406 87 #define WID_ST_END 407 86 88 87 89 #define IDM_SSWPOPUP 1 … … 143 145 #define ES 34 144 146 #define RU 7 145 #define J P81147 #define JA 81 146 148 #define PL 48 147 149 #define BR 55 150 #define FR 33 151 #define KO 82 152 #define NL 31 153 #define TW 88 154 #define CN 86 148 155 149 156 #define IDS_SETTINGS 3 … … 193 200 194 201 #define LANG_COPYRIGHT 300 195 #define LANG_PROGRAM 301 196 #define LANG_HELPFILE 302 197 #define LANG_RESTART 303 202 #define LANG_COPYRIGHT1 301 203 #define LANG_COPYRIGHT2 302 204 #define LANG_COPYRIGHT3 303 205 #define LANG_COPYRIGHT4 304 206 #define LANG_PROGRAM 305 207 #define LANG_RESTART 306 198 208 199 209 #define MAIN_HELP_TABLE 1 -
trunk/settings.cpp
r115 r125 620 620 } 621 621 break; 622 622 #ifndef _QUIET_ 623 623 case WID_PB_ABOUT: 624 624 AboutBox (hwnd); 625 625 break; 626 626 #endif 627 627 case DID_CANCEL: 628 628 { … … 1298 1298 WinSetCp(hmq, 1207); // UPF-8 Unicode 1299 1299 WinRemovePresParam(hwnd, PP_FONTNAMESIZE); 1300 #ifndef _QUIET_ //?? 1300 1301 pset->GetLanguages(WinWindowFromID (hwnd, WID_LB_LANGUAGES)); 1301 1302 #endif 1302 1303 #ifdef _DOLOGDEBUG_ 1303 1304 LogDebug( "Page4Procedure: WM_INITDLG: after GetLanguages()" ); 1304 1305 #endif 1305 HDIR hdir; 1306 ULONG c, fl; 1307 FILEFINDBUF3 findbuf; 1308 APIRET rc; 1309 PSZ psz; 1310 1311 // find all hlps and add the names to the language list 1312 fl = FILE_NORMAL; 1313 hdir = HDIR_CREATE; 1314 c = 1; 1315 rc = DosFindFirst ("*.hlp", &hdir, fl, &findbuf, 1316 sizeof (findbuf), &c, FIL_STANDARD); 1317 #ifdef _DOLOGDEBUG_ 1318 LogDebug( "Page4Procedure: WM_INITDLG: Entering help file loop ..." ); 1319 #endif 1320 while (!rc) 1321 { 1322 #ifdef _DOLOGDEBUG_ 1323 LogDebug( "Page4Procedure: WM_INITDLG: Doing '%s' ...", findbuf.achName ); 1324 #endif 1325 if ((psz = strchr (findbuf.achName, '.'))) 1326 *psz = '\0'; 1327 findbuf.achName[0] = toupper (findbuf.achName[0]); 1328 WinInsertLboxItem (WinWindowFromID (hwnd, WID_LB_LANGUAGESHELP), 1329 LIT_END, findbuf.achName); 1330 c = 1; 1331 rc = DosFindNext (hdir, &findbuf, sizeof (findbuf), &c); 1332 } 1333 DosFindClose (hdir); 1334 #ifdef _DOLOGDEBUG_ 1335 LogDebug( "Page4Procedure: WM_INITDLG: help file loop done." ); 1336 #endif 1337 1306 #ifndef _QUIET_ 1338 1307 WinSendMsg (hwnd, UM_SETTINGS2DIALOG, 0,0); 1339 1308 … … 1341 1310 WinEnableWindow (WinWindowFromID (hwnd, WID_ST_LANGNOTE), 1342 1311 FALSE); 1312 #endif 1343 1313 #ifdef _DOLOGDEBUG_ 1344 1314 LogDebug( "Page4Procedure: end WM_INITDLG" ); … … 1386 1356 if (uconv_object1207) 1387 1357 UniFreeUconvObject(uconv_object1207); 1388 1389 if (pset->GetLangID() == RU || pset->GetLangID() == CZ || pset->GetLangID() == PL) { 1358 CHAR *env, *p; 1359 env = getenv("OSDIR"); 1360 p = env; 1361 p++; 1362 if (!stricmp(p, ":\\sys")) { 1363 strcpy(ucFont, "9.Workplace Sans"); 1364 WinSetPresParam(hwnd, PP_FONTNAMESIZE, strlen(ucFont) + 1, ucFont); 1365 } 1366 /*if (pset->GetLangID() == RU || pset->GetLangID() == CZ || pset->GetLangID() == PL) {*/ 1367 else { 1390 1368 strcpy(ucFont, "9.Times New Roman MT 30"); 1391 1369 WinSetPresParam(hwnd, PP_FONTNAMESIZE, strlen(ucFont) + 1, ucFont); 1392 1370 } 1393 else if (g_installer) {1394 strcpy(ucFont, "9.WarpSans");1371 /*else if (g_installer) { 1372 strcpy(ucFont, 9.WarpSans"); 1395 1373 WinSetPresParam(hwnd, PP_FONTNAMESIZE, strlen(ucFont) + 1, ucFont); 1396 } 1374 } */ 1397 1375 return MRESULT (FALSE); 1398 1376 } … … 1402 1380 WinPostMsg( g_hwndSettingsDialog, msg, mp1, mp2 ); 1403 1381 return MRESULT( FALSE ); 1404 1382 #ifndef _QUIET_ 1405 1383 case UM_SETTINGS2DIALOG: 1406 1384 { … … 1437 1415 WinSendDlgItemMsg (hwnd, WID_LB_LANGUAGES, LM_SELECTITEM, 1438 1416 MPFROMSHORT (0), MPFROMSHORT (TRUE)); 1439 hwndLB = WinWindowFromID (hwnd, WID_LB_LANGUAGESHELP);1440 c = WinQueryLboxCount (hwndLB);1441 1442 for (i = 0; i < c; i++)1443 {1444 #ifdef _DOLOGDEBUG_1445 LogDebug( "Page4Procedure: UM_SETTINGS2DIALOG: i.2 = %d", i );1446 #endif1447 WinQueryLboxItemText (hwndLB, i, ach, sizeof (ach));1448 if (stricmp (pset->QueryString (SEI_LANGUAGEHELP), ach) == 0)1449 break;1450 }1451 #ifdef _DOLOGDEBUG_1452 LogDebug( "Page4Procedure: UM_SETTINGS2DIALOG: after loop 2" );1453 #endif1454 if (i < c)1455 WinSendDlgItemMsg (hwnd, WID_LB_LANGUAGESHELP, LM_SELECTITEM,1456 MPFROMSHORT (i), MPFROMSHORT (TRUE));1457 else1458 WinSendDlgItemMsg (hwnd, WID_LB_LANGUAGESHELP, LM_SELECTITEM,1459 MPFROMSHORT (0), MPFROMSHORT (TRUE));1460 1417 #ifdef _DOLOGDEBUG_ 1461 1418 LogDebug( "Page4Procedure: end UM_SETTINGS2DIALOG" ); … … 1463 1420 } 1464 1421 return MRESULT (FALSE); 1465 1422 #endif 1466 1423 case WM_DESTROY: 1467 1424 #ifndef _QUIET_ … … 1594 1551 1595 1552 // ** SelectLanguage ****************************************************** /*FOLD00*/ 1596 1553 #ifndef _QUIET_ 1597 1554 VOID Settings :: SelectLanguage (VOID) 1598 1555 { … … 1614 1571 Dialog (TRUE); 1615 1572 } 1573 #endif 1616 1574 1617 1575 // ** GetLanguages ******************************************************** /*FOLD00*/ 1618 1576 #ifndef _QUIET_ //?? 1619 1577 USHORT Settings :: GetLanguages (HWND hwnd) 1620 1578 { … … 1713 1671 return 1; 1714 1672 } 1715 1673 #endif 1716 1674 // ** GetFileExtension **************************************************** /*FOLD00*/ 1717 1675
Note:
See TracChangeset
for help on using the changeset viewer.
