Changeset 1469
- Timestamp:
- Nov 5, 2023, 1:29:49 AM (17 months ago)
- Location:
- branches/branch-1-0
- Files:
-
- 1 added
- 32 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified branches/branch-1-0/001/dll/xfldr001.dlg ¶
r1466 r1469 861 861 DLGTEMPLATE ID_XFD_STARTUPSTATUS LOADONCALL MOVEABLE DISCARDABLE 862 862 BEGIN 863 DIALOG "System Startup", ID_XFD_STARTUPSTATUS, 10, 6, 200, 32, , 864 FCF_SYSMENU | FCF_TITLEBAR 863 DIALOG "System Startup", ID_XFD_STARTUPSTATUS, 10, 6, 200, 32, 0, FCF_TITLEBAR 865 864 BEGIN 866 865 LTEXT "Initializing, please wait...", ID_SDDI_STATUS, 5, … … 1354 1353 END 1355 1354 1356 DLGTEMPLATE ID_XSD_STARTUPFOLDER LOADONCALL MOVEABLE DISCARDABLE1357 BEGIN1358 DIALOG "", ID_XSD_STARTUPFOLDER, 0, 0, 224, 180, NOT FS_DLGBORDER |1359 WS_VISIBLE1360 BEGIN1361 GROUPBOX "XWorkplace Startup folder", -1, 5, 24, 196, 1021362 LTEXT "~Initial delay:", ID_SDDI_STARTUP_INITDELAY_TXT1,1363 10, 102, 54, 14, DT_VCENTER | DT_MNEMONIC1364 SLIDER ID_SDDI_STARTUP_INITDELAY_SLID, 64, 102, 96, 14,1365 SLS_SNAPTOINCREMENT | SLS_BUTTONSTOP1366 CTLDATA 12, 0, 20, 0, 1, 01367 LTEXT "ms", ID_SDDI_STARTUP_INITDELAY_TXT2, 164, 102, 30,1368 14, DT_VCENTER | NOT WS_GROUP1369 LTEXT "~Per-object delay:", ID_SDDI_STARTUP_OBJDELAY_TXT1,1370 10, 86, 54, 14, DT_VCENTER | DT_MNEMONIC1371 SLIDER ID_SDDI_STARTUP_OBJDELAY_SLID, 64, 86, 96, 14,1372 SLS_SNAPTOINCREMENT | SLS_BUTTONSTOP1373 CTLDATA 12, 0, 20, 0, 1, 01374 LTEXT "ms", ID_SDDI_STARTUP_OBJDELAY_TXT2, 164, 86, 30, 14,1375 DT_VCENTER | NOT WS_GROUP1376 AUTOCHECKBOX "~Show status window", ID_SDDI_SHOWSTARTUPPROGRESS,1377 10, 72, 184, 10, WS_GROUP1378 GROUPBOX "Start folder content", -1, 10, 29, 186, 381379 AUTORADIOBUTTON "~Reboots only", ID_SDDI_STARTUP_REBOOTSONLY, 15, 47,1380 80, 12, BS_NOCURSORSELECT | WS_TABSTOP1381 AUTORADIOBUTTON "~Every Desktop restart",1382 ID_SDDI_STARTUP_EVERYWPSRESTART, 15, 33, 80, 12,1383 BS_NOCURSORSELECT | WS_TABSTOP1384 PUSHBUTTON "~Undo", DID_UNDO, 5, 6, 60, 12, WS_GROUP1385 PUSHBUTTON "~Default", DID_DEFAULT, 73, 6, 60, 12, WS_GROUP1386 PUSHBUTTON "~Help", DID_HELP, 141, 6, 60, 12, BS_HELP |1387 WS_GROUP1388 END1389 END1390 1391 1355 DLGTEMPLATE ID_XSD_XWPSOUND LOADONCALL MOVEABLE DISCARDABLE 1392 1356 BEGIN -
TabularUnified branches/branch-1-0/001/dll/xfldr001.rc ¶
r1467 r1469 1176 1176 ID_XSDI_DTP_LOGOFILETXT "OS/2 1.3 BMP ~file for boot logo:" 1177 1177 ID_XSDI_DTP_TESTLOGO "T~est logo" 1178 1179 ID_XSDI_DTP_OPTIONS "Options" 1178 1180 ID_XSDI_DTP_WRITEXWPSTARTLOG "Write WP~START.LOG file" 1179 1181 ID_XSDI_DTP_BOOTUPSTATUS "Show W~PS class initialization" 1180 ID_XSDI_DTP_CREATESTARTUPFLDR "Create ~&xwp; Startup folder"1181 1182 ID_XSDI_DTP_NUMLOCKON "Enable ~NumLock at startup" 1183 ID_XSDI_DTP_XSTARTUP_GROUP "XStartup folder" 1184 ID_XSDI_DTP_INITDELAY_TXT1 "~Delay" 1185 ID_XSDI_DTP_INITDELAY_TXT2 "seconds" 1186 ID_XSDI_DTP_CREATESTARTUPFLDR "Create ~XStartup folder" 1182 1187 1183 1188 /* strings formerly in ID_XFD_STARTUPPANIC */ … … 1258 1263 ID_SDDI_RESTARTWPS_GROUP "Options" 1259 1264 ID_SDDI_WPS_CLOSEWINDOWS "Close all ~sessions" 1260 ID_SDDI_WPS_STARTUPFOLDER "~Process all &xwp;Startup folders"1265 ID_SDDI_WPS_STARTUPFOLDER "~Process all XStartup folders" 1261 1266 ID_SDDI_ARCHIVEONCE "~Archive Desktop once after restart" 1262 1267 … … 1270 1275 ID_SDDI_COMPLETE "Shutdown has completed." 1271 1276 ID_SDDI_SWITCHOFF "You may now switch off your computer or press Ctrl+Alt+Del to reboot." 1277 1278 /* strings formerly in ID_XSD_STARTUPFOLDER */ 1279 ID_SDDI_STARTUP_GROUP_TXT "XStartup folder" 1280 ID_SDDI_STARTUP_START_TXT "Start folder content" 1281 ID_SDDI_STARTUP_REBOOTSONLY "~Reboots only" 1282 ID_SDDI_STARTUP_EVERYWPSRESTART "~Every Desktop restart" 1283 ID_SDDI_STARTUP_OBJDELAY_TXT1 "~Per-object delay" 1284 ID_SDDI_STARTUP_OBJDELAY_TXT2 "ms" 1285 ID_SDDI_STARTUP_SHOWSTATUS "~Show status window" 1272 1286 1273 1287 /* new "Icon" page replacement */ … … 1594 1608 1595 1609 /* startup and shutdown folder */ 1596 ID_XFSI_XWPSTARTUPFDR " &xwp; Startup Folder"1597 ID_XFSI_XWPSHUTDOWNFDR " &xwp; Shutdown Folder"1610 ID_XFSI_XWPSTARTUPFDR "XStartup" 1611 ID_XFSI_XWPSHUTDOWNFDR "XShutdown" 1598 1612 1599 1613 /* hotkey definition dialog */ -
TabularUnified branches/branch-1-0/007/dll/xfldr007.dlg ¶
r1466 r1469 1353 1353 END 1354 1354 1355 DLGTEMPLATE ID_XSD_STARTUPFOLDER LOADONCALL MOVEABLE DISCARDABLE1356 BEGIN1357 DIALOG "", ID_XSD_STARTUPFOLDER, 0, 0, 224, 180, NOT FS_DLGBORDER |1358 WS_VISIBLE1359 BEGIN1360 GROUPBOX "â à⮢ ï ¯ ¯ª XWorkplace", -1, 5, 24, 196, 1021361 LTEXT "~ ç «ì ï § €¥àŠª :", ID_SDDI_STARTUP_INITDELAY_TXT1,1362 10, 102, 54, 14, DT_VCENTER | DT_MNEMONIC1363 SLIDER ID_SDDI_STARTUP_INITDELAY_SLID, 64, 102, 96, 14,1364 SLS_SNAPTOINCREMENT | SLS_BUTTONSTOP1365 CTLDATA 12, 0, 20, 0, 1, 01366 LTEXT "¬á", ID_SDDI_STARTUP_INITDELAY_TXT2, 164, 102, 30,1367 14, DT_VCENTER | NOT WS_GROUP1368 LTEXT "~ €¥àŠª ®¡ê¥ªâ:", ID_SDDI_STARTUP_OBJDELAY_TXT1,1369 10, 86, 54, 14, DT_VCENTER | DT_MNEMONIC1370 SLIDER ID_SDDI_STARTUP_OBJDELAY_SLID, 64, 86, 96, 14,1371 SLS_SNAPTOINCREMENT | SLS_BUTTONSTOP1372 CTLDATA 12, 0, 20, 0, 1, 01373 LTEXT "¬á", ID_SDDI_STARTUP_OBJDELAY_TXT2, 164, 86, 30, 14,1374 DT_VCENTER | NOT WS_GROUP1375 AUTOCHECKBOX "~®ª § âì ®ª® á®áâ®ïšï", ID_SDDI_SHOWSTARTUPPROGRESS,1376 10, 72, 184, 10, WS_GROUP1377 GROUPBOX "®€¥àŠš¬®¥ áâ à⮢®© ¯ ¯ªš", -1, 10, 29, 186, 381378 AUTORADIOBUTTON "~®«ìª® ¯¥à¥§ £à㧪š", ID_SDDI_STARTUP_REBOOTSONLY, 15, 47,1379 80, 12, BS_NOCURSORSELECT | WS_TABSTOP1380 AUTORADIOBUTTON "~¥à¥§ ¯ã᪠ª Š€®£® ¥áªâ®¯",1381 ID_SDDI_STARTUP_EVERYWPSRESTART, 15, 33, 80, 12,1382 BS_NOCURSORSELECT | WS_TABSTOP1383 PUSHBUTTON "~⬥šâì", DID_UNDO, 5, 6, 60, 12, WS_GROUP1384 PUSHBUTTON "~® 㬮«ç šî", DID_DEFAULT, 73, 6, 60, 12, WS_GROUP1385 PUSHBUTTON "~¯à ¢ª ", DID_HELP, 141, 6, 60, 12, BS_HELP |1386 WS_GROUP1387 END1388 END1389 1390 1355 DLGTEMPLATE ID_XSD_XWPSOUND LOADONCALL MOVEABLE DISCARDABLE 1391 1356 BEGIN -
TabularUnified branches/branch-1-0/007/dll/xfldr007.rc ¶
r1467 r1469 1 1 2 2 /* 3 * xfldr00 0.rc:4 * this is the main resource file for a genericNLS DLL.3 * xfldr007.rc: 4 * this is the main resource file for the Russian NLS DLL. 5 5 * 6 6 * Translate all the strings in this file. … … 1176 1176 ID_XSDI_DTP_LOGOFILETXT " ©« OS/2 1.3 BMP €«ï «®£® § £à㧪š:" 1177 1177 ID_XSDI_DTP_TESTLOGO "¥á⮢®¥ «®£®" 1178 1179 ID_XSDI_DTP_OPTIONS "¯æšš" 1178 1180 ID_XSDI_DTP_WRITEXWPSTARTLOG " ¯šá âì ä ©« WP~START.LOG" 1179 1181 ID_XSDI_DTP_BOOTUPSTATUS "®ª § âì ššæš «š§ æšî ª« áᮢ W~PS" 1180 ID_XSDI_DTP_CREATESTARTUPFLDR "®§€ âì áâ à⮢ãî ¯ ¯ªã ~&xwp;"1181 1182 ID_XSDI_DTP_NUMLOCKON " §à¥èšâì ~NumLock ¯àš áâ àâ¥" 1183 ID_XSDI_DTP_XSTARTUP_GROUP "â à⮢ ï ¯ ¯ª XWP" 1184 ID_XSDI_DTP_INITDELAY_TXT1 "~Delay" 1185 ID_XSDI_DTP_INITDELAY_TXT2 "ᥪã€" 1186 ID_XSDI_DTP_CREATESTARTUPFLDR "®§€ âì áâ à⮢ãî ¯ ¯ªã ~XWP" 1182 1187 1183 1188 /* strings formerly in ID_XFD_STARTUPPANIC */ … … 1271 1276 ID_SDDI_SWITCHOFF "¥¯¥àì ë ¬®Š¥â¥ ®âª«îçšâì ¯šâ š¥ ª®¬¯ìîâ¥à š«š Š âì Ctrl+Alt+Del €«ï ¯¥à¥§ £à㧪š." 1272 1277 1278 /* strings formerly in ID_XSD_STARTUPFOLDER */ 1279 ID_SDDI_STARTUP_GROUP_TXT "â à⮢ ï ¯ ¯ª XWP" 1280 ID_SDDI_STARTUP_START_TXT "®€¥àŠš¬®¥ áâ à⮢®© ¯ ¯ªš" 1281 ID_SDDI_STARTUP_REBOOTSONLY "~®«ìª® ¯¥à¥§ £à㧪š" 1282 ID_SDDI_STARTUP_EVERYWPSRESTART "~¥à¥§ ¯ã᪠ª Š€®£® ¥áªâ®¯" 1283 ID_SDDI_STARTUP_OBJDELAY_TXT1 "~ €¥àŠª ®¡ê¥ªâ" 1284 ID_SDDI_STARTUP_OBJDELAY_TXT2 "¬á" 1285 ID_SDDI_STARTUP_SHOWSTATUS "~®ª § âì ®ª® á®áâ®ïšï" 1286 1273 1287 /* new "Icon" page replacement */ 1274 1288 ID_XSDI_ICON_TITLE_TEXT " £®«®¢®ª" … … 1594 1608 1595 1609 /* startup and shutdown folder */ 1596 ID_XFSI_XWPSTARTUPFDR " ¯ª ¢â®§ £à㧪š &xwp;" 1597 ID_XFSI_XWPSHUTDOWNFDR " ¯ª ¢ëª«î祚ï &xwp;" 1598 1610 ID_XFSI_XWPSTARTUPFDR " ¯ª ¢â®§ £à㧪š XWP" 1611 ID_XFSI_XWPSHUTDOWNFDR " ¯ª ¢ëª«î祚ï XWP" 1599 1612 /* hotkey definition dialog */ 1600 1613 ID_XSDI_HOTKEY_ADDTITLE "®¡ ¢šâì ®¯à¥€¥«¥š¥ £®àï祩 ª« ¢šèš" -
TabularUnified branches/branch-1-0/031/dll/XFLDR031.rc ¶
r1467 r1469 19 19 * Presently the following entities are defined: 20 20 * 21 * -- &xwp; "XWorkplace" string 21 * -- &xwp; "XWorkplace" string, or "eWorkplace" 22 * if eWorkplace is running 22 23 * 23 * -- &os2; "OS/2" 24 * -- &os2; "OS/2" or "eComStation" 24 25 * 25 * -- &winos2; "Win-OS/2" 26 * -- &winos2; "Win-OS/2" or "Win16" 26 27 * 27 * -- &warpcenter; "WarpCenter" 28 * -- &warpcenter; "WarpCenter" or "eComCenter" 28 29 * 29 * -- &xcenter; "XCenter" 30 * -- &xcenter; "XCenter" or "eCenter" 30 31 * 31 * -- &xsd; "XShutdown" 32 * -- &xsd; "XShutdown" or "eShutdown" 32 33 * 33 * -- &version; current XWorkplace version (e.g. " 1.0.12")34 * -- &version; current XWorkplace version (e.g. "0.9.16") 34 35 * 35 * -- &date; build date (e.g. Jan 12 20 19)36 * -- &date; build date (e.g. Jan 12 2002) 36 37 * 37 38 * -- &nl; newline character (\n, ASCII 10) … … 1131 1132 ID_SDDI_CREATESHUTDOWNFLDR "Maak een &xsd; map" 1132 1133 1134 /* strings formerly in ID_XSD_DTP_STARTUP */ 1133 1135 ID_XSDI_DTP_LOGOGROUP "Workplace Shell opstart logo" 1134 1136 ID_XSDI_DTP_BOOTLOGO "~Activeer opstart logo" … … 1138 1140 ID_XSDI_DTP_LOGOFILETXT "OS/2 1.3 BMP bestand voor opstart logo:" 1139 1141 ID_XSDI_DTP_TESTLOGO "Test logo" 1142 1143 ID_XSDI_DTP_OPTIONS "Opties" 1140 1144 ID_XSDI_DTP_WRITEXWPSTARTLOG "Maak een WPSTART.LOG bestand" 1141 1145 ID_XSDI_DTP_BOOTUPSTATUS "Toon WPS klasse initialisatie" 1142 ID_XSDI_DTP_CREATESTARTUPFLDR "Maak &xwp; Opstart map"1143 1146 ID_XSDI_DTP_NUMLOCKON "Activeer NumLock bij opstarten" 1144 1147 ID_XSDI_DTP_XSTARTUP_GROUP "XWP Opstart map" 1148 ID_XSDI_DTP_INITDELAY_TXT1 "Vertraging" 1149 ID_XSDI_DTP_INITDELAY_TXT2 "seconden" 1150 ID_XSDI_DTP_CREATESTARTUPFLDR "Maak XWP Opstart map" 1151 1152 /* strings formerly in ID_XFD_STARTUPPANIC */ 1145 1153 ID_XFDI_PANIC_TITLE "&xwp; Paniek" 1146 1154 ID_XFDI_PANIC_SKIPBOOTLOGO "~Sla opstartlogo eenmaal over" … … 1215 1223 ID_SDDI_RESTARTWPS_GROUP "Restart options" 1216 1224 ID_SDDI_WPS_CLOSEWINDOWS "~Sluit alle sessies" 1217 ID_SDDI_WPS_STARTUPFOLDER "~Voer alle &xwp;Opstartup mappen uit"1225 ID_SDDI_WPS_STARTUPFOLDER "~Voer alle XWP Opstartup mappen uit" 1218 1226 ID_SDDI_ARCHIVEONCE "~Archiveer Werkplek eenmalig na herstarten" 1219 1227 … … 1227 1235 ID_SDDI_COMPLETE "Afsluiten is gereed." 1228 1236 ID_SDDI_SWITCHOFF "U kunt nu uw computer uitschakelen of op Ctrl+Alt+Del drukken voor herstarten." 1237 1238 /* strings formerly in ID_XSD_STARTUPFOLDER */ 1239 ID_SDDI_STARTUP_GROUP_TXT "XWP Opstart map" 1240 ID_SDDI_STARTUP_START_TXT "Opstart map inhoud" 1241 ID_SDDI_STARTUP_REBOOTSONLY "Alleen bij herstarten" 1242 ID_SDDI_STARTUP_EVERYWPSRESTART "Bij iedere Werkplek herstart" 1243 ID_SDDI_STARTUP_OBJDELAY_TXT1 "Vertraging per object" 1244 ID_SDDI_STARTUP_OBJDELAY_TXT2 "ms" 1245 ID_SDDI_STARTUP_SHOWSTATUS "Toon statusvenster" 1229 1246 1230 1247 /* "Icon" page replacement */ … … 1535 1552 1536 1553 /* startup and shutdown folder */ 1537 ID_XFSI_XWPSTARTUPFDR " &xwp;Opstart map"1538 ID_XFSI_XWPSHUTDOWNFDR " &xwp;Afsluit map"1554 ID_XFSI_XWPSTARTUPFDR "XWP Opstart map" 1555 ID_XFSI_XWPSHUTDOWNFDR "XWP Afsluit map" 1539 1556 1540 1557 /* hotkey definition dialog */ -
TabularUnified branches/branch-1-0/031/dll/xfldr031.dlg ¶
r1466 r1469 1353 1353 END 1354 1354 1355 DLGTEMPLATE ID_XSD_STARTUPFOLDER LOADONCALL MOVEABLE DISCARDABLE1356 BEGIN1357 DIALOG "", ID_XSD_STARTUPFOLDER, 0, 0, 224, 180, NOT FS_DLGBORDER |1358 WS_VISIBLE1359 BEGIN1360 GROUPBOX "XWorkplace Opstart map", -1, 5, 24, 196, 1021361 LTEXT "Begin vertraging:", ID_SDDI_STARTUP_INITDELAY_TXT1,1362 10, 102, 54, 14, DT_VCENTER | DT_MNEMONIC1363 SLIDER ID_SDDI_STARTUP_INITDELAY_SLID, 64, 102, 96, 14,1364 SLS_SNAPTOINCREMENT | SLS_BUTTONSTOP1365 CTLDATA 12, 0, 20, 0, 1, 01366 LTEXT "ms", ID_SDDI_STARTUP_INITDELAY_TXT2, 164, 102, 30,1367 14, DT_VCENTER | NOT WS_GROUP1368 LTEXT "Vertraging per object:", ID_SDDI_STARTUP_OBJDELAY_TXT1,1369 10, 86, 54, 14, DT_VCENTER | DT_MNEMONIC1370 SLIDER ID_SDDI_STARTUP_OBJDELAY_SLID, 64, 86, 96, 14,1371 SLS_SNAPTOINCREMENT | SLS_BUTTONSTOP1372 CTLDATA 12, 0, 20, 0, 1, 01373 LTEXT "ms", ID_SDDI_STARTUP_OBJDELAY_TXT2, 164, 86, 30, 14,1374 DT_VCENTER | NOT WS_GROUP1375 AUTOCHECKBOX "Toon statusvenster", ID_SDDI_SHOWSTARTUPPROGRESS,1376 10, 72, 184, 10, WS_GROUP1377 GROUPBOX "Opstart map inhoud", -1, 10, 29, 186, 381378 AUTORADIOBUTTON "Alleen bij herstarten", ID_SDDI_STARTUP_REBOOTSONLY, 15, 47,1379 80, 12, BS_NOCURSORSELECT | WS_TABSTOP1380 AUTORADIOBUTTON "Bij iedere Werkplek herstart",1381 ID_SDDI_STARTUP_EVERYWPSRESTART, 15, 33, 80, 12,1382 BS_NOCURSORSELECT | WS_TABSTOP1383 PUSHBUTTON "~Beginwaarde", DID_UNDO, 5, 6, 60, 12, WS_GROUP1384 PUSHBUTTON "~Standaard", DID_DEFAULT, 73, 6, 60, 12, WS_GROUP1385 PUSHBUTTON "~Help", DID_HELP, 141, 6, 60, 12, BS_HELP |1386 WS_GROUP1387 END1388 END1389 1390 1355 DLGTEMPLATE ID_XSD_XWPSOUND LOADONCALL MOVEABLE DISCARDABLE 1391 1356 BEGIN -
TabularUnified branches/branch-1-0/034/dll/xfldr034.dlg ¶
r1466 r1469 1354 1354 END 1355 1355 1356 DLGTEMPLATE ID_XSD_STARTUPFOLDER LOADONCALL MOVEABLE DISCARDABLE1357 BEGIN1358 DIALOG "", ID_XSD_STARTUPFOLDER, 0, 0, 224, 180, NOT FS_DLGBORDER |1359 WS_VISIBLE1360 BEGIN1361 GROUPBOX "Carpeta de Inicio de XWorkplace", -1, 5, 24, 196, 1021362 LTEXT "~Retardo inicial:", ID_SDDI_STARTUP_INITDELAY_TXT1,1363 10, 102, 54, 14, DT_VCENTER | DT_MNEMONIC1364 SLIDER ID_SDDI_STARTUP_INITDELAY_SLID, 64, 102, 96, 14,1365 SLS_SNAPTOINCREMENT | SLS_BUTTONSTOP1366 CTLDATA 12, 0, 20, 0, 1, 01367 LTEXT "ms", ID_SDDI_STARTUP_INITDELAY_TXT2, 164, 102, 30,1368 14, DT_VCENTER | NOT WS_GROUP1369 LTEXT "Retardo por ~objeto:", ID_SDDI_STARTUP_OBJDELAY_TXT1,1370 10, 86, 54, 14, DT_VCENTER | DT_MNEMONIC1371 SLIDER ID_SDDI_STARTUP_OBJDELAY_SLID, 64, 86, 96, 14,1372 SLS_SNAPTOINCREMENT | SLS_BUTTONSTOP1373 CTLDATA 12, 0, 20, 0, 1, 01374 LTEXT "ms", ID_SDDI_STARTUP_OBJDELAY_TXT2, 164, 86, 30, 14,1375 DT_VCENTER | NOT WS_GROUP1376 AUTOCHECKBOX "~Mostrar ventana de estado", ID_SDDI_SHOWSTARTUPPROGRESS,1377 10, 72, 184, 10, WS_GROUP1378 GROUPBOX "Iniciar contenido de la carpeta", -1, 10, 29, 186, 381379 AUTORADIOBUTTON "Al iniciar el ~sistema", ID_SDDI_STARTUP_REBOOTSONLY, 15, 47,1380 80, 12, BS_NOCURSORSELECT | WS_TABSTOP1381 AUTORADIOBUTTON "Al reiniciar el ~Escritorio",1382 ID_SDDI_STARTUP_EVERYWPSRESTART, 15, 33, 80, 12,1383 BS_NOCURSORSELECT | WS_TABSTOP1384 PUSHBUTTON "~Deshacer", DID_UNDO, 5, 6, 60, 12, WS_GROUP1385 PUSHBUTTON "~Por omisi¢n", DID_DEFAULT, 73, 6, 60, 12, WS_GROUP1386 PUSHBUTTON "A~yuda", DID_HELP, 141, 6, 60, 12, BS_HELP |1387 WS_GROUP1388 END1389 END1390 1391 1356 DLGTEMPLATE ID_XSD_XWPSOUND LOADONCALL MOVEABLE DISCARDABLE 1392 1357 BEGIN -
TabularUnified branches/branch-1-0/034/dll/xfldr034.rc ¶
r1467 r1469 1178 1178 ID_XSDI_DTP_LOGOFILETXT "~Imagen (formato BMP 1.3 de OS/2):" 1179 1179 ID_XSDI_DTP_TESTLOGO "~Probar" 1180 1181 ID_XSDI_DTP_OPTIONS "Opciones" 1180 1182 ID_XSDI_DTP_WRITEXWPSTARTLOG "Escribir ~registro WPSTART.LOG" 1181 1183 ID_XSDI_DTP_BOOTUPSTATUS "Mostrar inicializaci¢n de clases del ~WPS" 1182 ID_XSDI_DTP_CREATESTARTUPFLDR "Crear carpeta de inicio de ~&xwp;"1183 1184 ID_XSDI_DTP_NUMLOCKON "Activar ~Bloq. Num. al inicio" 1185 ID_XSDI_DTP_XSTARTUP_GROUP "Carpeta de Inicio de XWP" 1186 ID_XSDI_DTP_INITDELAY_TXT1 "Retardo" 1187 ID_XSDI_DTP_INITDELAY_TXT2 "segundos" 1188 ID_XSDI_DTP_CREATESTARTUPFLDR "Crear carpeta de inicio de ~XWP" 1184 1189 1185 1190 /* strings formerly in ID_XFD_STARTUPPANIC */ … … 1260 1265 ID_SDDI_RESTARTWPS_GROUP "Opciones" 1261 1266 ID_SDDI_WPS_CLOSEWINDOWS "~Cerrar todas las sesiones" 1262 ID_SDDI_WPS_STARTUPFOLDER "~Procesar todas las carpetas de Inicio de &xwp;"1267 ID_SDDI_WPS_STARTUPFOLDER "~Procesar todas las carpetas de Inicio de XWP" 1263 1268 ID_SDDI_ARCHIVEONCE "~Archivar el Escritorio una vez tras reiniciar" 1264 1269 … … 1272 1277 ID_SDDI_COMPLETE "Concluir ha finalizado." 1273 1278 ID_SDDI_SWITCHOFF "Ahora puede apagar el equipo o pulsar Ctrl+Alt+Supr para reiniciar." 1279 1280 /* strings formerly in ID_XSD_STARTUPFOLDER */ 1281 ID_SDDI_STARTUP_GROUP_TXT "Carpeta de Inicio de XWP" 1282 ID_SDDI_STARTUP_START_TXT "Iniciar contenido de la carpeta" 1283 ID_SDDI_STARTUP_REBOOTSONLY "Al iniciar el ~sistema" 1284 ID_SDDI_STARTUP_EVERYWPSRESTART "Al reiniciar el ~Escritorio" 1285 ID_SDDI_STARTUP_OBJDELAY_TXT1 "Retardo por ~objeto" 1286 ID_SDDI_STARTUP_OBJDELAY_TXT2 "ms" 1287 ID_SDDI_STARTUP_SHOWSTATUS "~Mostrar ventana de estado" 1274 1288 1275 1289 /* new "Icon" page replacement */ … … 1596 1610 1597 1611 /* startup and shutdown folder */ 1598 ID_XFSI_XWPSTARTUPFDR " &xwp; -Inicio"1599 ID_XFSI_XWPSHUTDOWNFDR " &xwp; -Concluir"1612 ID_XFSI_XWPSTARTUPFDR "XWP Inicio" 1613 ID_XFSI_XWPSHUTDOWNFDR "XWP Concluir" 1600 1614 1601 1615 /* hotkey definition dialog */ -
TabularUnified branches/branch-1-0/039/dll/xfldr039.dlg ¶
r1466 r1469 1372 1372 END 1373 1373 1374 DLGTEMPLATE ID_XSD_STARTUPFOLDER LOADONCALL MOVEABLE DISCARDABLE1375 BEGIN1376 DIALOG "", ID_XSD_STARTUPFOLDER, 0, 0, 224, 180, NOT FS_DLGBORDER |1377 WS_VISIBLE1378 BEGIN1379 GROUPBOX "Cartella Avvio XWorkplace", -1, 5, 24, 196, 1021380 LTEXT "Ritar~do iniziale:", ID_SDDI_STARTUP_INITDELAY_TXT1,1381 10, 102, 54, 14, DT_VCENTER | DT_MNEMONIC1382 SLIDER ID_SDDI_STARTUP_INITDELAY_SLID, 64, 102, 96, 14,1383 SLS_SNAPTOINCREMENT | SLS_BUTTONSTOP1384 CTLDATA 12, 0, 20, 0, 1, 01385 LTEXT "ms", ID_SDDI_STARTUP_INITDELAY_TXT2, 164, 102, 30,1386 14, DT_VCENTER | NOT WS_GROUP1387 LTEXT "Ritardo per ~oggetto:", ID_SDDI_STARTUP_OBJDELAY_TXT1,1388 10, 86, 54, 14, DT_VCENTER | DT_MNEMONIC1389 SLIDER ID_SDDI_STARTUP_OBJDELAY_SLID, 64, 86, 96, 14,1390 SLS_SNAPTOINCREMENT | SLS_BUTTONSTOP1391 CTLDATA 12, 0, 20, 0, 1, 01392 LTEXT "ms", ID_SDDI_STARTUP_OBJDELAY_TXT2, 164, 86, 30, 14,1393 DT_VCENTER | NOT WS_GROUP1394 AUTOCHECKBOX "~Mostra finestra di stato", ID_SDDI_SHOWSTARTUPPROGRESS,1395 10, 72, 184, 10, WS_GROUP1396 GROUPBOX "Avviare contenuto cartella", -1, 10, 29, 186, 381397 AUTORADIOBUTTON "~solo al riavvio del sistema", ID_SDDI_STARTUP_REBOOTSONLY, 15, 47,1398 80, 12, BS_NOCURSORSELECT | WS_TABSTOP1399 AUTORADIOBUTTON "ad ogni avvio della ~Scrivania",1400 ID_SDDI_STARTUP_EVERYWPSRESTART, 15, 33, 80, 12,1401 BS_NOCURSORSELECT | WS_TABSTOP1402 PUSHBUTTON "~Regredire", DID_UNDO, 5, 6, 60, 12, WS_GROUP1403 PUSHBUTTON "~Valore assunto", DID_DEFAULT, 73, 6, 60, 12, WS_GROUP1404 PUSHBUTTON "A~iuto", DID_HELP, 141, 6, 60, 12, BS_HELP |1405 WS_GROUP1406 END1407 END1408 1409 1374 DLGTEMPLATE ID_XSD_XWPSOUND LOADONCALL MOVEABLE DISCARDABLE 1410 1375 BEGIN -
TabularUnified branches/branch-1-0/039/dll/xfldr039.rc ¶
r1467 r1469 1189 1189 ID_XSDI_DTP_LOGOFILETXT "~File logo di avvio (BMP OS/2 1.3):" 1190 1190 ID_XSDI_DTP_TESTLOGO "~Prova" 1191 ID_XSDI_DTP_WRITEXWPSTARTLOG "~Crea file WPSTART.LOG" 1191 1192 ID_XSDI_DTP_OPTIONS "Opzioni" 1193 ID_XSDI_DTP_WRITEXWPSTARTLOG "~Crea file WPSTART.LOG" 1192 1194 ID_XSDI_DTP_BOOTUPSTATUS "~Mostra inizializzazione classi WPS" 1193 ID_XSDI_DTP_CREATESTARTUPFLDR "Crea cartella avvio ~&xwp;"1194 1195 ID_XSDI_DTP_NUMLOCKON "Attiva Bloc~Num all'avvio" 1196 ID_XSDI_DTP_XSTARTUP_GROUP "Cartella Avvio XWP" 1197 ID_XSDI_DTP_INITDELAY_TXT1 "Ritardo" 1198 ID_XSDI_DTP_INITDELAY_TXT2 "secondi" 1199 ID_XSDI_DTP_CREATESTARTUPFLDR "Crea cartella avvio ~XWP" 1195 1200 1196 1201 /* strings formerly in ID_XFD_STARTUPPANIC */ … … 1271 1276 ID_SDDI_RESTARTWPS_GROUP "Opzioni" 1272 1277 ID_SDDI_WPS_CLOSEWINDOWS "Chiudi ~tutte le sessioni" 1273 ID_SDDI_WPS_STARTUPFOLDER "~Elabora il contenuto delle cartelle Avvio &xwp;"1278 ID_SDDI_WPS_STARTUPFOLDER "~Elabora il contenuto delle cartelle Avvio XWP" 1274 1279 ID_SDDI_ARCHIVEONCE "A~rchivia la Scrivania subito dopo il riavvio" 1275 1280 … … 1284 1289 ID_SDDI_COMPLETE "Chiusura completata." 1285 1290 ID_SDDI_SWITCHOFF "E' ora possibile spegnere il computer o riavviarlo premendo ctrl+alt+canc." 1291 1292 /* strings formerly in ID_XSD_STARTUPFOLDER */ 1293 ID_SDDI_STARTUP_GROUP_TXT "Cartella Avvio XWP" 1294 ID_SDDI_STARTUP_START_TXT "Avviare contenuto cartella" 1295 ID_SDDI_STARTUP_REBOOTSONLY "~solo al riavvio del sistema" 1296 ID_SDDI_STARTUP_EVERYWPSRESTART "ad ogni avvio della ~Scrivania" 1297 ID_SDDI_STARTUP_OBJDELAY_TXT1 "Ritardo per ~oggetto" 1298 ID_SDDI_STARTUP_OBJDELAY_TXT2 "ms" 1299 ID_SDDI_STARTUP_SHOWSTATUS "~Mostra finestra di stato" 1286 1300 1287 1301 /* new "Icon" page replacement */ … … 1614 1628 1615 1629 /* startup and shutdown folder */ 1616 ID_XFSI_XWPSTARTUPFDR "Cartella avvio &xwp;"1617 ID_XFSI_XWPSHUTDOWNFDR "Cartella chiusura &xwp;"1630 ID_XFSI_XWPSTARTUPFDR "Cartella avvio XWP" 1631 ID_XFSI_XWPSHUTDOWNFDR "Cartella chiusura XWP" 1618 1632 1619 1633 /* hotkey definition dialog */ -
TabularUnified branches/branch-1-0/049/dll/xfldr049.dlg ¶
r1466 r1469 1423 1423 END 1424 1424 1425 DLGTEMPLATE ID_XSD_STARTUPFOLDER LOADONCALL MOVEABLE DISCARDABLE1426 BEGIN1427 DIALOG "", ID_XSD_STARTUPFOLDER, 0, 0, 224, 180, NOT FS_DLGBORDER |1428 WS_VISIBLE1429 BEGIN1430 GROUPBOX "XWorkplace-Systemstartordner", -1, 5, 24, 196, 1021431 LTEXT "Anfngl~iche Verzgerung:",1432 ID_SDDI_STARTUP_INITDELAY_TXT1, 10, 102, 64, 14,1433 DT_VCENTER | DT_MNEMONIC1434 SLIDER ID_SDDI_STARTUP_INITDELAY_SLID, 75, 102, 85, 14,1435 SLS_SNAPTOINCREMENT | SLS_BUTTONSTOP1436 CTLDATA 12, 0, 20, 0, 1, 01437 LTEXT "ms", ID_SDDI_STARTUP_INITDELAY_TXT2, 164, 102, 30,1438 14, DT_VCENTER | NOT WS_GROUP1439 LTEXT "Verzgerung ~pro Objekt:",1440 ID_SDDI_STARTUP_OBJDELAY_TXT1, 10, 86, 65, 14,1441 DT_VCENTER | DT_MNEMONIC1442 SLIDER ID_SDDI_STARTUP_OBJDELAY_SLID, 76, 86, 84, 14,1443 SLS_SNAPTOINCREMENT | SLS_BUTTONSTOP1444 CTLDATA 12, 0, 20, 0, 1, 01445 LTEXT "ms", ID_SDDI_STARTUP_OBJDELAY_TXT2, 164, 86, 30, 14,1446 DT_VCENTER | NOT WS_GROUP1447 AUTOCHECKBOX "Status~fenster anzeigen",1448 ID_SDDI_SHOWSTARTUPPROGRESS, 10, 72, 184, 10,1449 WS_GROUP1450 GROUPBOX "Ordnerinhalt starten", -1, 10, 29, 186, 381451 AUTORADIOBUTTON "Nu~r bei Systemneustart",1452 ID_SDDI_STARTUP_REBOOTSONLY, 15, 47, 111, 12,1453 BS_NOCURSORSELECT | WS_TABSTOP1454 AUTORADIOBUTTON "B~ei jedem WPS-Neustart",1455 ID_SDDI_STARTUP_EVERYWPSRESTART, 15, 33, 119, 12,1456 BS_NOCURSORSELECT | WS_TABSTOP1457 PUSHBUTTON "~Widerrufen", DID_UNDO, 5, 6, 60, 12, WS_GROUP1458 PUSHBUTTON "~Standard", DID_DEFAULT, 73, 6, 60, 12, WS_GROUP1459 PUSHBUTTON "~Hilfe", DID_HELP, 141, 6, 60, 12, BS_HELP |1460 WS_GROUP1461 END1462 END1463 1464 1425 DLGTEMPLATE ID_XSD_XWPSOUND LOADONCALL MOVEABLE DISCARDABLE 1465 1426 BEGIN -
TabularUnified branches/branch-1-0/049/dll/xfldr049.rc ¶
r1467 r1469 24 24 * -- &os2; "OS/2" or "eComStation" 25 25 * 26 * -- &warpcenter; "WarpCenter" or "eComCenter" 26 * -- &winos2; "Win-OS/2" or "Win16" 27 * 28 * -- &warpcenter; "WarpCenter" or "eComCenter" 27 29 * 28 30 * -- &xcenter; "XCenter" or "eCenter" … … 1173 1175 ID_XSDI_DTP_LOGOFILETXT "OS/2-1.3-BMP-~Datei fr Startlogo:" 1174 1176 ID_XSDI_DTP_TESTLOGO "Logo t~esten" 1177 1178 ID_XSDI_DTP_OPTIONS "Optionen" 1175 1179 ID_XSDI_DTP_WRITEXWPSTARTLOG "Datei WP~START.LOG schreiben" 1176 1180 ID_XSDI_DTP_BOOTUPSTATUS "Initialisierung der W~PS-Klassen anzeigen" 1177 ID_XSDI_DTP_CREATESTARTUPFLDR "~&xwp;-Systemstartordner erstellen"1178 1181 ID_XSDI_DTP_NUMLOCKON "~NumLock beim Systemstart aktivieren" 1182 ID_XSDI_DTP_XSTARTUP_GROUP "XWP-Systemstartordner" 1183 ID_XSDI_DTP_INITDELAY_TXT1 "Verzgerung" 1184 ID_XSDI_DTP_INITDELAY_TXT2 "Sekunden" 1185 ID_XSDI_DTP_CREATESTARTUPFLDR "~XWP-Systemstartordner erstellen" 1179 1186 1180 1187 /* strings formerly in ID_XFD_STARTUPPANIC */ … … 1255 1262 ID_SDDI_RESTARTWPS_GROUP "Optionen" 1256 1263 ID_SDDI_WPS_CLOSEWINDOWS "~Alle Sitzungen schlieáen" 1257 ID_SDDI_WPS_STARTUPFOLDER "Alle &xwp;-S~ystemstartordner abarbeiten"1264 ID_SDDI_WPS_STARTUPFOLDER "Alle XWP-S~ystemstartordner abarbeiten" 1258 1265 ID_SDDI_ARCHIVEONCE "A~rbeitsoberflche einmal archivieren" 1259 1266 … … 1267 1274 ID_SDDI_COMPLETE "Der Systemabschluá ist beendet." 1268 1275 ID_SDDI_SWITCHOFF "Sie knnen Ihren Rechner nun abschalten oder Strg+Alt+Entf drcken, um ihn neu zu starten." 1276 1277 /* strings formerly in ID_XSD_STARTUPFOLDER */ 1278 ID_SDDI_STARTUP_GROUP_TXT "XWP-Systemstartordner" 1279 ID_SDDI_STARTUP_START_TXT "Ordnerinhalt starten" 1280 ID_SDDI_STARTUP_REBOOTSONLY "Nu~r bei Systemneustart" 1281 ID_SDDI_STARTUP_EVERYWPSRESTART "B~ei jedem WPS-Neustart" 1282 ID_SDDI_STARTUP_OBJDELAY_TXT1 "Verzgerung ~pro Objekt" 1283 ID_SDDI_STARTUP_OBJDELAY_TXT2 "ms" 1284 ID_SDDI_STARTUP_SHOWSTATUS "Status~fenster anzeigen" 1269 1285 1270 1286 /* new "Icon" page replacement */ … … 1591 1607 1592 1608 /* startup and shutdown folder */ 1593 ID_XFSI_XWPSTARTUPFDR " &xwp;-Systemstartordner"1594 ID_XFSI_XWPSHUTDOWNFDR " &xwp;-Systemabschluáordner"1609 ID_XFSI_XWPSTARTUPFDR "XWP-Systemstartordner" 1610 ID_XFSI_XWPSHUTDOWNFDR "XWP-Systemabschluáordner" 1595 1611 1596 1612 /* hotkey definition dialog */ -
TabularUnified branches/branch-1-0/081/dll/xfldr081.dlg ¶
r1466 r1469 1356 1356 END 1357 1357 1358 DLGTEMPLATE ID_XSD_STARTUPFOLDER LOADONCALL MOVEABLE DISCARDABLE1359 BEGIN1360 DIALOG "", ID_XSD_STARTUPFOLDER, 0, 0, 224, 180, NOT FS_DLGBORDER |1361 WS_VISIBLE1362 BEGIN1363 GROUPBOX "XWorkplace n®tH_[", -1, 5, 24, 196, 1021364 LTEXT "ÅÌx(~I):", ID_SDDI_STARTUP_INITDELAY_TXT1,1365 10, 102, 54, 14, DT_VCENTER | DT_MNEMONIC1366 SLIDER ID_SDDI_STARTUP_INITDELAY_SLID, 64, 102, 96, 14,1367 SLS_SNAPTOINCREMENT | SLS_BUTTONSTOP1368 CTLDATA 12, 0, 20, 0, 1, 01369 LTEXT "ms", ID_SDDI_STARTUP_INITDELAY_TXT2, 164, 102, 30,1370 14, DT_VCENTER | NOT WS_GROUP1371 LTEXT "IuWFNgx(~P):", ID_SDDI_STARTUP_OBJDELAY_TXT1,1372 10, 86, 54, 14, DT_VCENTER | DT_MNEMONIC1373 SLIDER ID_SDDI_STARTUP_OBJDELAY_SLID, 64, 86, 96, 14,1374 SLS_SNAPTOINCREMENT | SLS_BUTTONSTOP1375 CTLDATA 12, 0, 20, 0, 1, 01376 LTEXT "ms", ID_SDDI_STARTUP_OBJDELAY_TXT2, 164, 86, 30, 14,1377 DT_VCENTER | NOT WS_GROUP1378 AUTOCHECKBOX "óµEBhEð\Š(~S)", ID_SDDI_SHOWSTARTUPPROGRESS,1379 10, 72, 184, 10, WS_GROUP1380 GROUPBOX "tH_[àeÌJn", -1, 10, 29, 186, 381381 AUTORADIOBUTTON "ÄN®ÌÝ(~R)", ID_SDDI_STARTUP_REBOOTSONLY, 15, 47,1382 80, 12, BS_NOCURSORSELECT | WS_TABSTOP1383 AUTORADIOBUTTON "fXNgbvÌÄn®(~E)",1384 ID_SDDI_STARTUP_EVERYWPSRESTART, 15, 33, 80, 12,1385 BS_NOCURSORSELECT | WS_TABSTOP1386 PUSHBUTTON "â茵(~U)", DID_UNDO, 5, 6, 60, 12, WS_GROUP1387 PUSHBUTTON "Ȫl(~D)", DID_DEFAULT, 73, 6, 60, 12, WS_GROUP1388 PUSHBUTTON "wv(~H)", DID_HELP, 141, 6, 60, 12, BS_HELP |1389 WS_GROUP1390 END1391 END1392 1393 1358 DLGTEMPLATE ID_XSD_XWPSOUND LOADONCALL MOVEABLE DISCARDABLE 1394 1359 BEGIN -
TabularUnified branches/branch-1-0/081/dll/xfldr081.rc ¶
r1467 r1469 1196 1196 ID_XSDI_DTP_LOGOFILETXT "N®SpÌ OS/2 1.3 BMP t@C(~F):" 1197 1197 ID_XSDI_DTP_TESTLOGO "SÌeXg(~E)" 1198 1199 ID_XSDI_DTP_OPTIONS "IvV" 1198 1200 ID_XSDI_DTP_WRITEXWPSTARTLOG "START.LOG t@CÌ«Ý(~S)" 1199 1201 ID_XSDI_DTP_BOOTUPSTATUS "WPS NXÌú»ð\Š(~P)" 1200 ID_XSDI_DTP_CREATESTARTUPFLDR "&xwp; n®tH_[Ìì¬(~X)"1201 1202 ID_XSDI_DTP_NUMLOCKON "n®É NumLock ðIÉ·é(~N)" 1203 ID_XSDI_DTP_XSTARTUP_GROUP "XWP n®tH_[" 1204 ID_XSDI_DTP_INITDELAY_TXT1 "~Delay" 1205 ID_XSDI_DTP_INITDELAY_TXT2 "b" 1206 ID_XSDI_DTP_CREATESTARTUPFLDR "XWP n®tH_[Ìì¬(~X)" 1202 1207 1203 1208 /* strings formerly in ID_XFD_STARTUPPANIC */ … … 1278 1283 ID_SDDI_RESTARTWPS_GROUP "IvV" 1279 1284 ID_SDDI_WPS_CLOSEWINDOWS "·×ÄÌZbVðN[Y(~C)" 1280 ID_SDDI_WPS_STARTUPFOLDER "·×ÄÌ &xwp;n®tH_[ð(~P)"1285 ID_SDDI_WPS_STARTUPFOLDER "·×ÄÌ XWP n®tH_[ð(~P)" 1281 1286 ID_SDDI_ARCHIVEONCE "Än®ãÉfXNgbvð 1 ñA[JCu(~A)" 1282 1287 … … 1291 1296 ID_SDDI_SWITCHOFF "Rs 1292 1297 [^[Ìd¹ðØé±ÆªÅ«Ü·BÜœÍ Ctrl+Alt+Del ð·ÆÄN®Å«Ü·B" 1298 1299 /* strings formerly in ID_XSD_STARTUPFOLDER */ 1300 ID_SDDI_STARTUP_GROUP_TXT "XWP n®tH_[" 1301 ID_SDDI_STARTUP_START_TXT "tH_[àeÌJn" 1302 ID_SDDI_STARTUP_REBOOTSONLY "ÄN®ÌÝ(~R)" 1303 ID_SDDI_STARTUP_EVERYWPSRESTART "fXNgbvÌÄn®(~E)" 1304 ID_SDDI_STARTUP_OBJDELAY_TXT1 "IuWFNgx(~P)" 1305 ID_SDDI_STARTUP_OBJDELAY_TXT2 "ms" 1306 ID_SDDI_STARTUP_SHOWSTATUS "óµEBhEð\Š(~S)" 1293 1307 1294 1308 /* new "Icon" page replacement */ … … 1635 1649 1636 1650 /* startup and shutdown folder */ 1637 ID_XFSI_XWPSTARTUPFDR " &xwp;n®tH_["1638 ID_XFSI_XWPSHUTDOWNFDR " &xwp;I¹tH_["1651 ID_XFSI_XWPSTARTUPFDR "XWP n®tH_[" 1652 ID_XFSI_XWPSHUTDOWNFDR "XWP I¹tH_[" 1639 1653 1640 1654 /* hotkey definition dialog */ -
TabularUnified branches/branch-1-0/idl/xfshut.idl ¶
r1106 r1469 21 21 */ 22 22 23 #include < xfldr.idl> // this is SOM for XFolder23 #include <wpfolder.idl> // this is SOM for WPFolder 24 24 25 25 /* … … 31 31 ÀÄÄ WPObject = XFldObject 32 32 ÀÄÄ WPFileSystem 33 ÀÄÄ WPFolder = XFolder 34 ÀÄÄ XFldShutdown 35 36 Note that the class is derived from XFolder directly, not 37 WPFolder, because we need some of the new XFolder methods. 33 ÀÄÄ WPFolder 34 ÀÄÄ XFldShutdown 38 35 */ 39 36 40 37 interface M_XFldShutdown; // forward reference to metaclass 41 38 42 interface XFldShutdown : XFolder39 interface XFldShutdown : WPFolder 43 40 { 44 41 … … 94 91 //# 95 92 96 interface M_XFldShutdown : M_ XFolder93 interface M_XFldShutdown : M_WPFolder 97 94 { 98 95 -
TabularUnified branches/branch-1-0/idl/xfstart.idl ¶
r1106 r1469 21 21 */ 22 22 23 #include < xfldr.idl> // this is SOM for XFolder23 #include <wpfolder.idl> // this is SOM for WPFolder 24 24 25 25 /* … … 31 31 ÀÄÄ WPObject = XFldObject 32 32 ÀÄÄ WPFileSystem 33 ÀÄÄ WPFolder = XFolder 34 ÀÄÄ XFldStartup 35 36 Note that the class is derived from XFolder directly, not 37 WPFolder, because we need some of the new XFolder methods. 33 ÀÄÄ WPFolder 34 ÀÄÄ XFldStartup 38 35 */ 39 36 40 37 interface M_XFldStartup; // forward reference to metaclass 41 38 42 interface XFldStartup : XFolder39 interface XFldStartup : WPFolder 43 40 { 44 41 … … 52 49 ULONG xwpQueryXStartupType(); 53 50 ULONG xwpQueryXStartupObjectDelay(); 51 ULONG xwpQueryXStartupShowStatus(); 54 52 55 53 #ifdef __SOMIDL__ … … 60 58 xwpSetXStartup, 61 59 xwpQueryXStartupType, 62 xwpQueryXStartupObjectDelay; 60 xwpQueryXStartupObjectDelay, 61 xwpQueryXStartupShowStatus; 63 62 64 63 /* … … 90 89 ULONG ulType; 91 90 ULONG ulObjectDelay; 91 BOOL fShowStatus; 92 92 93 93 /* … … 109 109 wpMenuItemHelpSelected: override; 110 110 111 //# wpQueryDefaultHelp: override; replaced with class method V0.9.20 (2002-07-12) [umoeller]112 113 111 wpAddSettingsPages: override; 114 112 … … 127 125 //# 128 126 129 interface M_XFldStartup : M_ XFolder127 interface M_XFldStartup : M_WPFolder 130 128 { 131 129 … … 136 134 137 135 XFldStartup xwpclsQueryXStartupFolder(in XFldStartup pFolder); 136 BOOL xwpclsRunXStartupFolders(); 138 137 139 138 #ifdef __SOMIDL__ … … 141 140 142 141 releaseorder: 143 xwpclsQueryXStartupFolder; 142 xwpclsQueryXStartupFolder, 143 xwpclsRunXStartupFolders; 144 144 145 145 /* -
TabularUnified branches/branch-1-0/include/dlgids.h ¶
r1467 r1469 1074 1074 ********************************************************************/ 1075 1075 1076 // "Menu items" page (V0.9.0) 1077 // #define ID_XSD_DTP_MENUITEMS 2100 // removed V0.9.16 (2002-01-09) [umoeller] 1078 // all removed V0.9.19 (2002-04-17) [umoeller] 1079 // #define ID_XSDI_DTP_MENUITEMSGROUP 2100 // added V0.9.16 (2002-01-09) [umoeller] 1080 // #define ID_XSDI_DTP_SORT 2101 1081 // #define ID_XSDI_DTP_ARRANGE 2102 1082 // #define ID_XSDI_DTP_SYSTEMSETUP 2103 1083 // #define ID_XSDI_DTP_LOCKUP 2104 1084 // #ifndef __NOXSHUTDOWN__ 1085 // #define ID_XSDI_DTP_SHUTDOWN 2105 1086 // #define ID_XSDI_DTP_SHUTDOWNMENU 2106 1087 // #endif 1088 // #define ID_XSDI_DTP_LOGOFFNETWORKNOW 2107 // V0.9.7 (2000-12-13) [umoeller] 1089 1090 // XFldDesktop "Startup" page (V0.9.0) 1091 // #define ID_XSD_DTP_STARTUP 2110 // removed V0.9.16 (2001-10-08) [umoeller] 1076 // XFldDesktop "Startup" page 1077 #define ID_XSDI_DTP_OPTIONS 2100 1078 #define ID_XSDI_DTP_WRITEXWPSTARTLOG 2101 1079 #ifndef __NOBOOTUPSTATUS__ 1080 #define ID_XSDI_DTP_BOOTUPSTATUS 2102 1081 #endif 1082 #define ID_XSDI_DTP_NUMLOCKON 2103 1083 #ifndef __NOXWPSTARTUP__ 1084 #define ID_XSDI_DTP_XSTARTUP_GROUP 2104 1085 #define ID_XSDI_DTP_INITDELAY_TXT1 2105 1086 #define ID_XSDI_DTP_INITDELAY_SPIN 2106 1087 #define ID_XSDI_DTP_INITDELAY_TXT2 2107 1088 #define ID_XSDI_DTP_CREATESTARTUPFLDR 2108 1089 #endif 1090 1092 1091 #ifndef __NOBOOTLOGO__ 1093 #define ID_XSDI_DTP_LOGOGROUP 210 8 // added V0.9.16 (2001-10-08) [umoeller]1094 #define ID_XSDI_DTP_LOGOSTYLEGROUP 21 09 // added V0.9.16 (2001-10-08) [umoeller]1092 #define ID_XSDI_DTP_LOGOGROUP 2109 1093 #define ID_XSDI_DTP_LOGOSTYLEGROUP 2110 1095 1094 #define ID_XSDI_DTP_BOOTLOGO 2111 1096 1095 #define ID_XSDI_DTP_LOGO_TRANSPARENT 2112 … … 1099 1098 #define ID_XSDI_DTP_LOGOBITMAP 2115 1100 1099 #define ID_XSDI_DTP_TESTLOGO 2116 1101 #endif 1102 #ifndef __NOXWPSTARTUP__ 1103 #define ID_XSDI_DTP_CREATESTARTUPFLDR 2117 1104 #endif 1105 #ifndef __NOBOOTLOGO__ 1106 #define ID_XSDI_DTP_LOGOFILETXT 2118 1107 #define ID_XSDI_DTP_LOGOFILE 2119 1108 // #define ID_XSDI_DTP_LOGO_BROWSE 2120 // removed V0.9.16 (2001-10-15) [umoeller] 1109 #endif 1110 #ifndef __NOBOOTUPSTATUS__ 1111 #define ID_XSDI_DTP_BOOTUPSTATUS 2121 1112 #endif 1113 #define ID_XSDI_DTP_NUMLOCKON 2122 // added V0.9.1 (2000-02-09) [umoeller] 1114 #define ID_XSDI_DTP_WRITEXWPSTARTLOG 2123 // added V0.9.14 (2001-08-21) [umoeller] 1100 #define ID_XSDI_DTP_LOGOFILETXT 2117 1101 #define ID_XSDI_DTP_LOGOFILE 2118 1102 #endif 1115 1103 1116 1104 // XFldDesktop "Archives" replacement page (V0.9.0) … … 1188 1176 #define ID_SDDI_CREATESHUTDOWNFLDR 2223 1189 1177 1190 #define ID_SDDI_S HOWSTARTUPPROGRESS22301191 #define ID_SDDI_STARTUP_ INITDELAY_TXT122311192 #define ID_SDDI_STARTUP_ INITDELAY_SLID22321193 #define ID_SDDI_STARTUP_ INITDELAY_TXT222331178 #define ID_SDDI_STARTUP_GROUP_TXT 2230 1179 #define ID_SDDI_STARTUP_START_TXT 2231 1180 #define ID_SDDI_STARTUP_REBOOTSONLY 2232 1181 #define ID_SDDI_STARTUP_EVERYWPSRESTART 2233 1194 1182 #define ID_SDDI_STARTUP_OBJDELAY_TXT1 2234 1195 1183 #define ID_SDDI_STARTUP_OBJDELAY_SLID 2235 1196 1184 #define ID_SDDI_STARTUP_OBJDELAY_TXT2 2236 1197 #define ID_SDDI_STARTUP_REBOOTSONLY 2237 1198 #define ID_SDDI_STARTUP_EVERYWPSRESTART 2238 1185 #define ID_SDDI_STARTUP_SHOWSTATUS 2237 1199 1186 1200 1187 /* ****************************************************************** -
TabularUnified branches/branch-1-0/include/filesys/desktop.h ¶
r282 r1469 75 75 USHORT usNotifyCode, 76 76 ULONG ulExtra); 77 78 VOID XWPENTRY dtpBootLogoInitPage(PNOTEBOOKPAGE pnbp, 79 ULONG flFlags); 80 81 MRESULT XWPENTRY dtpBootLogoItemChanged(PNOTEBOOKPAGE pnbp, 82 ULONG ulItemID, 83 USHORT usNotifyCode, 84 ULONG ulExtra); 77 85 #else 78 86 #error "shared\notebook.h needs to be included before including desktop.h". -
TabularUnified branches/branch-1-0/include/filesys/folder.h ¶
r723 r1469 814 814 /* ****************************************************************** 815 815 * 816 * Start folder contents 816 * Start folder contents (fdrStart.c) 817 817 * 818 818 ********************************************************************/ 819 819 820 820 ULONG fdrStartFolderContents(WPFolder *pFolder, 821 ULONG ulTiming); 821 ULONG ulTiming, 822 HWND hwndStatus); 823 824 MRESULT EXPENTRY fnwpStartContentsDlg(HWND hwnd, 825 ULONG msg, 826 MPARAM mp1, 827 MPARAM mp2); 822 828 823 829 #endif -
TabularUnified branches/branch-1-0/include/shared/common.h ¶
r1397 r1469 597 597 #define SP_DTP_SHUTDOWN 82 // new with V0.9.0 598 598 #define SP_DTP_ARCHIVES 83 // new with V0.9.0 599 #define SP_DTP_BOOTLOGO 84 599 600 600 601 // 10) pages for XWPTrashCan -
TabularUnified branches/branch-1-0/make/objects.in ¶
r1339 r1469 93 93 $(OUTPUTDIR)\fdrsort.obj \ 94 94 $(OUTPUTDIR)\fdrsplit.obj \ 95 $(OUTPUTDIR)\fdrstart.obj \ 95 96 $(OUTPUTDIR)\fdrsubclass.obj \ 96 97 $(OUTPUTDIR)\fdrmenus.obj \ 97 98 $(OUTPUTDIR)\fdrviews.obj \ 98 #$(OUTPUTDIR)\fhandles.obj \99 99 $(OUTPUTDIR)\filedlg.obj \ 100 100 $(OUTPUTDIR)\fileops.obj \ -
TabularUnified branches/branch-1-0/src/classes/xfdesk.c ¶
r1188 r1469 139 139 HWND hwndNotebook) 140 140 { 141 INSERTNOTEBOOKPAGE inbp; 142 HMODULE savehmod = cmnQueryNLSModuleHandle(FALSE); 143 // PNLSSTRINGS pNLSStrings = cmnQueryNLSStrings(); 141 INSERTNOTEBOOKPAGE inbp; 142 HMODULE savehmod = cmnQueryNLSModuleHandle(FALSE); 144 143 145 144 // XFldDesktopData *somThis = XFldDesktopGetData(somSelf); 146 145 XFldDesktopMethodDebug("XFldDesktop","xfdesk_xwpInsertXFldDesktopStartupPage"); 146 147 #ifndef __NOBOOTLOGO__ 148 memset(&inbp, 0, sizeof(INSERTNOTEBOOKPAGE)); 149 inbp.somSelf = somSelf; 150 inbp.hwndNotebook = hwndNotebook; 151 inbp.hmod = savehmod; 152 inbp.usPageStyleFlags = BKA_MINOR; 153 inbp.fEnumerate = TRUE; 154 inbp.pcszName = cmnGetString(ID_XSSI_STARTUPPAGE); 155 inbp.ulDlgID = ID_XFD_EMPTYDLG; 156 inbp.ulDefaultHelpPanel = ID_XSH_SETTINGS_DTP_STARTUP; 157 inbp.ulPageID = SP_DTP_BOOTLOGO; 158 inbp.pfncbInitPage = dtpBootLogoInitPage; 159 inbp.pfncbItemChanged = dtpBootLogoItemChanged; 160 ntbInsertPage(&inbp); 161 #endif 147 162 148 163 memset(&inbp, 0, sizeof(INSERTNOTEBOOKPAGE)); … … 151 166 inbp.hmod = savehmod; 152 167 inbp.usPageStyleFlags = BKA_MAJOR; 153 inbp.pcszName = cmnGetString(ID_XSSI_STARTUPPAGE); // pszStartupPage 154 inbp.ulDlgID = ID_XFD_EMPTYDLG; // ID_XSD_DTP_STARTUP; V0.9.16 (2001-10-08) [umoeller] 168 #ifndef __NOBOOTLOGO__ 169 inbp.fEnumerate = TRUE; 170 #endif 171 inbp.pcszName = cmnGetString(ID_XSSI_STARTUPPAGE); 172 inbp.ulDlgID = ID_XFD_EMPTYDLG; 155 173 inbp.ulDefaultHelpPanel = ID_XSH_SETTINGS_DTP_STARTUP; 156 174 inbp.ulPageID = SP_DTP_STARTUP; -
TabularUnified branches/branch-1-0/src/classes/xfldr.c ¶
r1443 r1469 679 679 /* 680 680 *@@ xwpStartFolderContents: 681 * starts the contents of the folder with a 682 * specified delay for each object. 683 * 684 * This displays a progress status window if 685 * the respective global setting is enabled. 686 * 687 * If (ulTiming == 0), this operates in "wait" 688 * mode, i.e. the next object is only started 689 * after the previous one has been closed. 690 * 691 * Otherwise ulTiming must specify a delay in 692 * milliseconds, being the time to wait after 693 * each object has been started. 694 * 695 * This replaces the terrible "process ordered 696 * content" methods with three threads bombing 697 * each other with messages that nobody was 698 * able to follow. That code was still from 699 * the XFolder days and about due for retirement. 700 * 701 * As opposed to the old implementation, this 702 * method DOES NOT RETURN until all objects have 703 * been processed or the user cancelled the 704 * operation. This does process the caller's 705 * message queue though... and therefore 706 * requires the caller to have one. 707 * 708 *@@added V0.9.12 (2001-04-29) [umoeller] 681 * 682 * This method is no longer used as of v1.0.16. 683 * Both of its former users, XStartup & XShutdown, 684 * now call fdrStartFolderContents() directly. 685 * 686 * It starts the contents of the folder with a specified 687 * delay for each object, and DOES NOT RETURN until all 688 * objects have been processed or the user cancels the 689 * operation. The caller is expected to have a msg queue 690 * which fdrStartFolderContents() will process. 691 * 709 692 */ 710 693 … … 715 698 XFolderMethodDebug("XFolder","xf_xwpStartFolderContents"); 716 699 717 return fdrStartFolderContents(somSelf, ulTiming );700 return fdrStartFolderContents(somSelf, ulTiming, 0); 718 701 } 719 702 -
TabularUnified branches/branch-1-0/src/classes/xfshut.c ¶
r1332 r1469 116 116 M_XFldShutdownMethodDebug("M_XFldShutdown","xfshutM_wpclsInitData"); 117 117 118 M_XFldShutdown_parent_M_ XFolder_wpclsInitData(somSelf);118 M_XFldShutdown_parent_M_WPFolder_wpclsInitData(somSelf); 119 119 120 120 krnClassInitialized(G_pcszXFldShutdown); … … 154 154 M_XFldShutdownMethodDebug("M_XFldShutdown","xfshutM_wpclsQueryStyle"); 155 155 156 return (M_XFldShutdown_parent_M_XFolder_wpclsQueryStyle(somSelf) 157 | CLSSTYLE_NEVERTEMPLATE 158 | CLSSTYLE_NEVERCOPY 159 // | CLSSTYLE_NEVERDELETE 160 ); 156 return (M_XFldShutdown_parent_M_WPFolder_wpclsQueryStyle(somSelf) 157 | CLSSTYLE_NEVERTEMPLATE | CLSSTYLE_NEVERCOPY); 161 158 } 162 159 -
TabularUnified branches/branch-1-0/src/classes/xfstart.c ¶
r1365 r1469 2 2 /* 3 3 *@@sourcefile xfstart.c: 4 * This file contains SOM code for the following XWorkplace classes: 5 * 6 * -- XFldStartup (startup folder, XFolder subclass) 7 * 8 * Installation of XFldStartup is optional. However, it is 9 * derived from XFolder directly (and not from WPFolder), so 10 * installation of XFolder is required if XFldStartup is installed. 4 * This file contains SOM code for the following XWorkplace class: 5 * 6 * -- XFldStartup (startup folder) 7 * 8 * Installation of XFldStartup is optional. 11 9 * 12 10 *@@somclass XFldStartup xfstup_ … … 53 51 */ 54 52 55 #define INCL_DOSEXCEPTIONS 56 #define INCL_DOSPROCESS 57 #define INCL_DOSSEMAPHORES 58 #define INCL_WINWINDOWMGR 59 #define INCL_WINMENUS 60 #define INCL_WINDIALOGS 61 #define INCL_WINBUTTONS 62 #define INCL_WINSHELLDATA 53 #define INCL_DOS 54 #define INCL_WIN 63 55 #include <os2.h> 64 56 … … 76 68 77 69 // headers in /helpers 70 #include "helpers\dosh.h" 78 71 #include "helpers\linklist.h" // linked list helper routines 79 72 #include "helpers\winh.h" // PM helper routines … … 86 79 #include "shared\common.h" // the majestic XWorkplace include file 87 80 #include "shared\helppanels.h" // all XWorkplace help panel IDs 81 #include "shared\init.h" // XWorkplace initialization 88 82 #include "shared\notebook.h" // generic XWorkplace notebook handling 89 83 #include "shared\kernel.h" // XWorkplace Kernel … … 109 103 /* ****************************************************************** 110 104 * 111 * here come theXFldStartup methods105 * XFldStartup methods 112 106 * 113 107 ********************************************************************/ … … 118 112 * settings notebook. 119 113 * 120 *@@added V0.9.0 [umoeller]121 114 */ 122 115 … … 134 127 inbp.hmod = cmnQueryNLSModuleHandle(FALSE); 135 128 inbp.usPageStyleFlags = BKA_MAJOR; 136 inbp.pcszName = cmnGetString(ID_XSSI_STARTUPPAGE); // pszStartupPage137 inbp.ulDlgID = ID_X SD_STARTUPFOLDER;129 inbp.pcszName = cmnGetString(ID_XSSI_STARTUPPAGE); 130 inbp.ulDlgID = ID_XFD_EMPTYDLG; // ID_XSD_STARTUPFOLDER; 138 131 inbp.ulDefaultHelpPanel = ID_XSH_SETTINGS_XFLDSTARTUP; 139 132 inbp.ulPageID = SP_STARTUPFOLDER; … … 195 188 196 189 /* 190 *@@ xwpQueryXStartupShowStatus: 191 * queries whether to show the status/progress dialog 192 * 193 */ 194 195 SOM_Scope ULONG SOMLINK xfstup_xwpQueryXStartupShowStatus(XFldStartup *somSelf) 196 { 197 XFldStartupData *somThis = XFldStartupGetData(somSelf); 198 XFldStartupMethodDebug("XFldStartup","xfstup_xwpQueryXStartupShowStatus"); 199 200 return(_fShowStatus); 201 } 202 203 /* 197 204 *@@ wpInitData: 198 205 * initialises the object with safe defaults. … … 206 213 XFldStartupMethodDebug("XFldStartup","xfstup_wpInitData"); 207 214 208 XFldStartup_parent_ XFolder_wpInitData(somSelf);215 XFldStartup_parent_WPFolder_wpInitData(somSelf); 209 216 210 217 // set all the instance variables to safe defaults 211 218 _ulType = XSTARTUP_REBOOTSONLY; 212 219 _ulObjectDelay = XSTARTUP_DEFAULTOBJECTDELAY; 220 _fShowStatus = TRUE; 213 221 } 214 222 … … 227 235 XFldStartupMethodDebug("XFldStartup","xfstup_wpObjectReady"); 228 236 229 XFldStartup_parent_ XFolder_wpObjectReady(somSelf, ulCode,237 XFldStartup_parent_WPFolder_wpObjectReady(somSelf, ulCode, 230 238 refObject); 231 239 … … 249 257 // remove from the linked list 250 258 _xwpSetXStartup(somSelf, FALSE); 251 return (XFldStartup_parent_ XFolder_wpFree(somSelf));259 return (XFldStartup_parent_WPFolder_wpFree(somSelf)); 252 260 } 253 261 … … 270 278 _wpSaveLong(somSelf, (PSZ)G_pcszXFldStartup, 2, _ulObjectDelay); 271 279 272 return (XFldStartup_parent_XFolder_wpSaveState(somSelf)); 280 if (_fShowStatus != TRUE) 281 _wpSaveLong(somSelf, (PSZ)G_pcszXFldStartup, 3, _fShowStatus); 282 283 return (XFldStartup_parent_WPFolder_wpSaveState(somSelf)); 273 284 } 274 285 … … 293 304 _ulObjectDelay = ul; 294 305 295 return (XFldStartup_parent_XFolder_wpRestoreState(somSelf, 306 if (_wpRestoreLong(somSelf, (PSZ)G_pcszXFldStartup, 3, &ul)) 307 _fShowStatus = ul; 308 309 return (XFldStartup_parent_WPFolder_wpRestoreState(somSelf, 296 310 ulReserved)); 297 311 } 298 299 /*300 312 301 313 /* … … 320 332 XFldStartupMethodDebug("XFldStartup","xfstup_wpFilterPopupMenu"); 321 333 322 return (XFldStartup_parent_ XFolder_wpFilterPopupMenu(somSelf,334 return (XFldStartup_parent_WPFolder_wpFilterPopupMenu(somSelf, 323 335 ulFlags, 324 336 hwndCnr, 325 fMultiSelect) 326 // & ~CTXT_NEW 327 ); 337 fMultiSelect)); 328 338 } 329 339 … … 351 361 XFldStartupMethodDebug("XFldStartup","xfstup_wpModifyPopupMenu"); 352 362 353 rc = XFldStartup_parent_ XFolder_wpModifyPopupMenu(somSelf,363 rc = XFldStartup_parent_WPFolder_wpModifyPopupMenu(somSelf, 354 364 hwndMenu, 355 365 hwndCnr, … … 389 399 ULONG ulMenuId) 390 400 { 391 /* XFldStartupData *somThis = XFldStartupGetData(somSelf); */401 XFldStartupData *somThis = XFldStartupGetData(somSelf); 392 402 XFldStartupMethodDebug("XFldStartup","xfstup_wpMenuItemSelected"); 393 403 … … 403 413 == MBID_YES) 404 414 { 405 // re-enabled this: V0.9.12 (2001-05-22) [umoeller]406 407 415 // start the folder contents synchronously; 408 416 // this func now displays the progress dialog … … 410 418 // fully processed (this calls another thrRunSync 411 419 // internally, so the SIQ is not blocked) 412 _xwpStartFolderContents(somSelf, // XFolder method 413 _xwpQueryXStartupObjectDelay(somSelf)); 414 // XFldStartup method 415 // this goes into fdrStartFolderContents 420 fdrStartFolderContents(somSelf, _ulObjectDelay, _fShowStatus); 416 421 } 417 422 return TRUE; 418 423 } 419 424 else 420 return (XFldStartup_parent_ XFolder_wpMenuItemSelected(somSelf,425 return (XFldStartup_parent_WPFolder_wpMenuItemSelected(somSelf, 421 426 hwndFrame, 422 427 ulMenuId)); … … 435 440 XFldStartupMethodDebug("XFldStartup","xfstup_wpMenuItemHelpSelected"); 436 441 437 return (XFldStartup_parent_ XFolder_wpMenuItemHelpSelected(somSelf,442 return (XFldStartup_parent_WPFolder_wpMenuItemHelpSelected(somSelf, 438 443 MenuId)); 439 444 } … … 458 463 XFldStartupMethodDebug("XFldStartup","xfstup_wpAddSettingsPages"); 459 464 460 XFldStartup_parent_ XFolder_wpAddSettingsPages(somSelf, hwndNotebook);465 XFldStartup_parent_WPFolder_wpAddSettingsPages(somSelf, hwndNotebook); 461 466 462 467 // add the "XWorkplace Startup" page on top … … 466 471 /* 467 472 *@@ wpclsQueryXStartupFolder: 468 * queries the linked list of XStartup folders469 * for the next item in the chain .470 * 471 *@@ added V0.9.9 (2001-03-19) [pr]473 * queries the post-startup linked list of XStartup folders 474 * for the next item in the chain, regardless of runnability 475 * 476 *@@changed V1.0.16 (2023-03-15) [rw] - changed semantics 472 477 */ 473 478 … … 482 487 pDesktop = cmnQueryActiveDesktop(); 483 488 484 while ((pFolder = objEnumList(&G_llS avedStartupFolders, pFolder,485 INIKEY_XS AVEDSTARTUPFOLDERS, 0)) != 0)489 while ((pFolder = objEnumList(&G_llStartupFolders, pFolder, 490 INIKEY_XSTARTUPFOLDERS, 0)) != 0) 486 491 { 487 492 // if pFolder isn't an XFldStartup, remove if from the main list (& INI) … … 489 494 objAddToList(pFolder, &G_llStartupFolders, 490 495 FALSE, INIKEY_XSTARTUPFOLDERS, 0); 491 else492 if (wpshResidesBelow(pFolder, pDesktop))493 break;494 496 } 495 497 … … 498 500 499 501 /* 502 *@@ wpclsRunXStartupFolders: 503 * Run each XStartup folder if appropriate. 504 * For the first folder, use the initial delay time 505 * minus the 1-second global delay; for subsequent folders, 506 * use the just-completed folder's object delay time. 507 * 508 * This method creates its own status window rather than 509 * relying on fdrStartFolderContents() so it can control 510 * when and how long to display the window. Note that the 511 * status window is completely stand-alone and doesn't 512 * reference any external data 513 * 514 *@@added V1.0.16 (2023-03-07) [rw] 515 */ 516 517 static BOOL xfstupPause(HWND hwnd, ULONG ms); 518 519 SOM_Scope BOOL SOMLINK xfstupM_xwpclsRunXStartupFolders(M_XFldStartup *somSelf) 520 { 521 ULONG rc; 522 ULONG ms; 523 BOOL fStarted = FALSE; 524 HWND hStatus; 525 XFldStartup *pFolder = 0; 526 WPObject *pDesktop; 527 528 M_XFldStartupMethodDebug("M_XFldStartup","xfstupM_xwpclsRunXStartupFolders"); 529 530 pDesktop = cmnQueryActiveDesktop(); 531 532 // round the initial delay up to the next second, then subtract 533 // the one second the init thread has already waited 534 ms = cmnQuerySetting(sulStartupInitialDelay); 535 ms = ms <= 1000 ? 0 : ((ms - 1) / 1000) * 1000; 536 537 hStatus = cmnLoadDlg(NULLHANDLE, fnwpStartContentsDlg, 538 ID_XFD_STARTUPSTATUS, NULL); 539 winhRestoreWindowPos(hStatus, HINI_USER, 540 INIAPP_XWORKPLACE, INIKEY_WNDPOSSTARTUP, 541 SWP_MOVE); 542 543 // G_llSavedStartupFolders is a snapshot of the list at class-init 544 while ((pFolder = objEnumList(&G_llSavedStartupFolders, pFolder, 545 INIKEY_XSAVEDSTARTUPFOLDERS, 0)) != 0) 546 { 547 XFldStartupData *somThis; 548 549 // if pFolder isn't an XFldStartup, remove if from the main list (& INI) 550 if (!_somIsA(pFolder, _XFldStartup)) { 551 objAddToList(pFolder, &G_llStartupFolders, 552 FALSE, INIKEY_XSTARTUPFOLDERS, 0); 553 continue; 554 } 555 556 // if not in the Desktop hierarchy or a template, skip it 557 if (!wpshResidesBelow(pFolder, pDesktop) || 558 (_wpQueryStyle(pFolder) & OBJSTYLE_TEMPLATE)) 559 continue; 560 561 // get a ptr to the object's data 562 somThis = XFldStartupGetData(pFolder); 563 564 // skip folders which should only be started on bootup 565 // except if we have specified that we want to start 566 // them again when restarting the WPS 567 if (_ulType == XSTARTUP_REBOOTSONLY && 568 !krnNeed2ProcessStartupFolder()) 569 continue; 570 571 // wait without blocking the SIQ 572 if (ms && !xfstupPause(hStatus, ms)) 573 break; 574 575 // show or hide window per setting 576 WinSetWindowPos(hStatus, 0, 0, 0, 0, 0, 577 _fShowStatus ? (SWP_SHOW | SWP_ACTIVATE) : (SWP_HIDE | SWP_DEACTIVATE)); 578 579 initLog(" processing folder \"%s\"", _wpQueryTitle(pFolder)); 580 581 // start the folder contents synchronously; this func does 582 // not return until the folder is fully processed (this calls 583 // another thrRunSync internally, so the SIQ is not blocked) 584 fdrStartFolderContents(pFolder, _ulObjectDelay, hStatus); 585 586 // set the delay for the next folder 587 ms = _ulObjectDelay; 588 fStarted = TRUE; 589 } 590 591 if (fStarted) 592 xfstupPause(hStatus, ms > 1500 ? 1500 : ms); 593 594 winhSaveWindowPos(hStatus, HINI_USER, 595 INIAPP_XWORKPLACE, INIKEY_WNDPOSSTARTUP); 596 WinDestroyWindow(hStatus); 597 598 return TRUE; 599 } 600 601 /* 602 *@@ xfstupPause: 603 * 604 * this helper function allows xwpclsRunXStartupFolders() 605 * to suspend its operations without blocking the queue, 606 * Every 100ms it checks whether the user has pressed the 607 * dialog's Cancel button and aborts if true. 608 */ 609 610 static BOOL xfstupPause(HWND hwnd, ULONG ms) 611 { 612 BOOL fRtn = TRUE; 613 ULONG ulWait; 614 ULONG ulTimer; 615 HMQ hmq = WinQueryWindowULong(hwnd, QWL_HMQ); 616 QMSG qmsg; 617 618 ulWait = doshQuerySysUptime() + ms; 619 ulTimer = WinStartTimer(0, 0, 0, 100); 620 621 while (WinGetMsg(0, &qmsg, 0, 0, 0)) { 622 if (!qmsg.hwnd && qmsg.msg == WM_TIMER && qmsg.mp1 == (MPARAM)ulTimer) { 623 624 // if QWL_USER is TRUE, the user has pressed the Cancel button 625 if (WinQueryWindowULong(hwnd, QWL_USER)) 626 fRtn = FALSE; 627 else 628 if (doshQuerySysUptime() < ulWait) 629 continue; 630 631 WinStopTimer(0, 0, ulTimer); 632 return fRtn; 633 } 634 WinDispatchMsg(0, &qmsg); 635 } 636 637 WinPostMsg(qmsg.hwnd, qmsg.msg, qmsg.mp1, qmsg.mp2); 638 return FALSE; 639 } 640 641 /* 500 642 *@@ wpclsInitData: 501 * this WPObject class method gets called when a class 502 * is loaded by the WPS (probably from within a 503 * somFindClass call) and allows the class to initialize 504 * itself. 505 * 506 *@@changed V0.9.0 [umoeller]: added class object to KERNELGLOBALS 507 *@@changed V0.9.9 (2001-03-19) [pr]: multiple startup folder mods. 643 * 508 644 */ 509 645 … … 513 649 M_XFldStartupMethodDebug("M_XFldStartup","xfstupM_wpclsInitData"); 514 650 515 M_XFldStartup_parent_M_ XFolder_wpclsInitData(somSelf);651 M_XFldStartup_parent_M_WPFolder_wpclsInitData(somSelf); 516 652 517 653 if (krnClassInitialized(G_pcszXFldStartup)) 518 654 { 519 BOOL brc = FALSE;520 655 ULONG ulSize; 521 656 PSZ pszHandles; … … 523 658 // first call: 524 659 525 // initialize linked list s660 // initialize linked list used after startup 526 661 lstInit(&G_llStartupFolders.ll, FALSE); // no auto-free 527 662 G_llStartupFolders.fLoaded = FALSE; 663 664 // initialize linked list used for startup 528 665 lstInit(&G_llSavedStartupFolders.ll, FALSE); // no auto-free 529 666 G_llSavedStartupFolders.fLoaded = FALSE; 530 667 531 // copy INI setting 532 brc = PrfQueryProfileSize(HINI_USERPROFILE, 668 // take a snapshot of the INI entry at startup for use by 669 // wpclsRunXStartupFolders; we can't init the linked list 670 // here because the objects it lists can't be instantiated 671 // until class init has completed 672 if (PrfQueryProfileSize(HINI_USERPROFILE, 533 673 (PSZ)INIAPP_XWORKPLACE, 534 674 (PSZ)INIKEY_XSTARTUPFOLDERS, 535 &ulSize); 536 if ( brc 537 && ((pszHandles = malloc(ulSize)) != NULL) 538 ) 675 &ulSize) 676 && (pszHandles = malloc(ulSize)) != NULL) 539 677 { 540 brc =PrfQueryProfileString(HINI_USERPROFILE,678 if (PrfQueryProfileString(HINI_USERPROFILE, 541 679 (PSZ)INIAPP_XWORKPLACE, 542 680 (PSZ)INIKEY_XSTARTUPFOLDERS, 543 "", pszHandles, ulSize); 544 if (brc) 681 "", pszHandles, ulSize)) 545 682 PrfWriteProfileString(HINI_USERPROFILE, 546 683 (PSZ)INIAPP_XWORKPLACE, … … 559 696 * of a Details view and also used as the default title 560 697 * for new objects of a class. 561 *562 *@@changed V0.9.6 (2000-11-20) [umoeller]: changed to "XWorkplace"563 *@@changed V1.0.0 (2002-08-31) [umoeller]: finally localized564 698 */ 565 699 … … 569 703 M_XFldStartupMethodDebug("M_XFldStartup","xfstupM_wpclsQueryTitle"); 570 704 571 // return ("XWorkplace Startup");572 705 return cmnGetString(ID_XFSI_XWPSTARTUPFDR); 573 706 } … … 575 708 /* 576 709 *@@ wpclsQueryStyle: 577 * we return a flag so that no templates are created 578 * for the Startup folder. 579 * 580 *@@changed V0.9.9 (2001-03-19) [pr]: allow copy 710 * formerly, this added a flag to prevent the creation of Startup 711 * folder templates. Now it returns WPFolder's flags unmodified. 712 * 581 713 *@@changed V1.0.4 (2005-11-06) [pr]: allow Create Another 582 714 */ … … 587 719 M_XFldStartupMethodDebug("M_XFldStartup","xfstupM_wpclsQueryStyle"); 588 720 589 return (M_XFldStartup_parent_M_XFolder_wpclsQueryStyle(somSelf) 590 // | CLSSTYLE_NEVERTEMPLATE 591 // | CLSSTYLE_NEVERCOPY 592 // | CLSSTYLE_NEVERDELETE 593 ); 721 return M_XFldStartup_parent_M_WPFolder_wpclsQueryStyle(somSelf); 722 // | CLSSTYLE_NEVERTEMPLATE; 594 723 595 724 } -
TabularUnified branches/branch-1-0/src/filesys/desktop.c ¶
r1397 r1469 5 5 * Desktop-related code resides in filesys\archives.c 6 6 * and filesys\shutdown.c. 7 *8 * This file is ALL new with V0.9.0.9 7 * 10 8 * Function prefix for this file: … … 42 40 */ 43 41 44 #define INCL_DOSPROCESS45 #define INCL_DOSSEMAPHORES46 #define INCL_DOSEXCEPTIONS47 42 #define INCL_DOSERRORS 48 #define INCL_DOSMISC 49 50 #define INCL_WINWINDOWMGR 51 #define INCL_WINFRAMEMGR 52 #define INCL_WINPOINTERS 53 #define INCL_WINMENUS 54 #define INCL_WINDIALOGS 55 #define INCL_WINSTATICS 56 #define INCL_WINBUTTONS 57 #define INCL_WINENTRYFIELDS 58 #define INCL_WINLISTBOXES 59 #define INCL_WINSTDCNR 60 #define INCL_WINSTDSPIN 61 #define INCL_WINSHELLDATA // Prf* functions 62 #define INCL_WINSTDFILE 63 #define INCL_WINSYS 64 43 #define INCL_DOS 44 #define INCL_WIN 65 45 #define INCL_GPIBITMAPS 66 46 #include <os2.h> … … 703 683 704 684 static const CONTROLDEF 685 OptionsGroup = LOADDEF_GROUP(ID_XSDI_DTP_OPTIONS, DEFAULT_TABLE_WIDTH), 686 687 WriteXWPStartLogCB = LOADDEF_AUTOCHECKBOX(ID_XSDI_DTP_WRITEXWPSTARTLOG), 688 689 #ifndef __NOBOOTUPSTATUS__ 690 BootupStatusCB = LOADDEF_AUTOCHECKBOX(ID_XSDI_DTP_BOOTUPSTATUS), 691 #endif 692 693 #ifndef __NOXWPSTARTUP__ 694 StartGroup = LOADDEF_GROUP(ID_XSDI_DTP_XSTARTUP_GROUP, DEFAULT_TABLE_WIDTH), 695 696 CreateStartupFolderButton = CONTROLDEF_PUSHBUTTON( 697 LOAD_STRING, 698 ID_XSDI_DTP_CREATESTARTUPFLDR, 699 -1, 700 STD_BUTTON_HEIGHT), 701 702 InitDelayTxt1 = LOADDEF_TEXT(ID_XSDI_DTP_INITDELAY_TXT1), 703 InitDelaySpin = CONTROLDEF_SPINBUTTON(ID_XSDI_DTP_INITDELAY_SPIN, SZL_AUTOSIZE, SZL_AUTOSIZE), 704 InitDelayTxt2 = LOADDEF_TEXT(ID_XSDI_DTP_INITDELAY_TXT2), 705 706 #endif 707 708 NumLockOnCB = LOADDEF_AUTOCHECKBOX(ID_XSDI_DTP_NUMLOCKON); 709 710 711 static const DLGHITEM dlgDesktopStartup[] = 712 { 713 START_TABLE, // root table, required 714 START_ROW(0), 715 START_GROUP_TABLE(&OptionsGroup), 716 START_ROW(0), 717 CONTROL_DEF(&WriteXWPStartLogCB), 718 #ifndef __NOBOOTUPSTATUS__ 719 START_ROW(0), 720 CONTROL_DEF(&BootupStatusCB), 721 #endif 722 START_ROW(0), 723 CONTROL_DEF(&NumLockOnCB), 724 END_TABLE, 725 #ifndef __NOXWPSTARTUP__ 726 START_ROW(0), 727 CONTROL_DEF(&G_Spacing), 728 START_ROW(0), 729 START_GROUP_TABLE(&StartGroup), 730 START_ROW(ROW_VALIGN_CENTER), 731 CONTROL_DEF(&InitDelayTxt1), 732 CONTROL_DEF(&InitDelaySpin), 733 CONTROL_DEF(&InitDelayTxt2), 734 START_ROW(0), 735 CONTROL_DEF(&CreateStartupFolderButton), 736 END_TABLE, 737 #endif 738 START_ROW(0), // notebook buttons (will be moved) 739 CONTROL_DEF(&G_UndoButton), // common.c 740 CONTROL_DEF(&G_DefaultButton), // common.c 741 CONTROL_DEF(&G_HelpButton), // common.c 742 END_TABLE 743 }; 744 745 static const XWPSETTING G_DtpStartupBackup[] = 746 { 747 sfWriteXWPStartupLog, 748 sfNumLockStartup, 749 #ifndef __NOBOOTUPSTATUS__ 750 sfShowBootupStatus, 751 #endif 752 #ifndef __NOXWPSTARTUP__ 753 sulStartupInitialDelay, 754 #endif 755 }; 756 757 /* 758 * dtpStartupInitPage: 759 * notebook callback function (notebook.c) for the 760 * "Startup" page in the Desktop's settings notebook. 761 * Sets the controls on the page according to the 762 * Global Settings. 763 */ 764 765 VOID dtpStartupInitPage(PNOTEBOOKPAGE pnbp, // notebook info struct 766 ULONG flFlags) // CBI_* flags (notebook.h) 767 { 768 if (flFlags & CBI_INIT) 769 { 770 // first call: backup Global Settings for "Undo" button; 771 // this memory will be freed automatically by the 772 // common notebook window function (notebook.c) when 773 // the notebook page is destroyed 774 pnbp->pUser = cmnBackupSettings(G_DtpStartupBackup, 775 ARRAYITEMCOUNT(G_DtpStartupBackup)); 776 777 // insert the controls using the dialog formatter 778 // V0.9.16 (2001-09-29) [umoeller] 779 ntbFormatPage(pnbp->hwndDlgPage, 780 dlgDesktopStartup, 781 ARRAYITEMCOUNT(dlgDesktopStartup)); 782 783 #ifndef __NOXWPSTARTUP__ 784 WinSendDlgItemMsg(pnbp->hwndDlgPage, ID_XSDI_DTP_INITDELAY_SPIN, 785 SPBM_SETLIMITS, (MPARAM)10, (MPARAM)1); 786 #endif 787 } 788 789 if (flFlags & CBI_SET) 790 { 791 // startup log file 792 winhSetDlgItemChecked(pnbp->hwndDlgPage, ID_XSDI_DTP_WRITEXWPSTARTLOG, 793 cmnQuerySetting(sfWriteXWPStartupLog)); 794 795 // numlock on 796 winhSetDlgItemChecked(pnbp->hwndDlgPage, ID_XSDI_DTP_NUMLOCKON, 797 cmnQuerySetting(sfNumLockStartup)); 798 799 #ifndef __NOBOOTUPSTATUS__ 800 // bootup status 801 winhSetDlgItemChecked(pnbp->hwndDlgPage, ID_XSDI_DTP_BOOTUPSTATUS, 802 cmnQuerySetting(sfShowBootupStatus)); 803 #endif 804 805 #ifndef __NOXWPSTARTUP__ 806 // initial delay 807 WinSendDlgItemMsg(pnbp->hwndDlgPage, ID_XSDI_DTP_INITDELAY_SPIN, 808 SPBM_SETCURRENTVALUE, 809 (MPARAM)(cmnQuerySetting(sulStartupInitialDelay) / 1000), 0); 810 #endif 811 } 812 813 if (flFlags & CBI_ENABLE) 814 { 815 #ifndef __NOXWPSTARTUP__ 816 BOOL fExists = !!(BOOL)WinQueryObject((PSZ)XFOLDER_STARTUPID); 817 WinEnableControl(pnbp->hwndDlgPage, ID_XSDI_DTP_CREATESTARTUPFLDR, !fExists); 818 WinEnableControl(pnbp->hwndDlgPage, ID_XSDI_DTP_INITDELAY_TXT1, fExists); 819 WinEnableControl(pnbp->hwndDlgPage, ID_XSDI_DTP_INITDELAY_SPIN, fExists); 820 WinEnableControl(pnbp->hwndDlgPage, ID_XSDI_DTP_INITDELAY_TXT2, fExists); 821 #endif 822 } 823 } 824 825 826 /* 827 * dtpStartupItemChanged: 828 * notebook callback function (notebook.c) for the 829 * "Startup" page in the Desktop's settings notebook. 830 * Reacts to changes of any of the dialog controls. 831 * 832 */ 833 834 MRESULT dtpStartupItemChanged(PNOTEBOOKPAGE pnbp, 835 ULONG ulItemID, 836 USHORT usNotifyCode, 837 ULONG ulExtra) // for checkboxes: contains new state 838 { 839 switch (ulItemID) 840 { 841 case ID_XSDI_DTP_WRITEXWPSTARTLOG: 842 cmnSetSetting(sfWriteXWPStartupLog, ulExtra); 843 break; 844 845 #ifndef __NOBOOTUPSTATUS__ 846 case ID_XSDI_DTP_BOOTUPSTATUS: 847 cmnSetSetting(sfShowBootupStatus, ulExtra); 848 break; 849 #endif 850 851 case ID_XSDI_DTP_NUMLOCKON: 852 cmnSetSetting(sfNumLockStartup, ulExtra); 853 winhSetNumLock(ulExtra); 854 break; 855 856 case DID_UNDO: 857 // "Undo" button: get pointer to backed-up Global Settings 858 cmnRestoreSettings(pnbp->pUser, 859 ARRAYITEMCOUNT(G_DtpStartupBackup)); 860 861 // update the display by calling the INIT callback 862 pnbp->inbp.pfncbInitPage(pnbp, CBI_SET | CBI_ENABLE); 863 break; 864 865 case DID_DEFAULT: 866 // set the default settings for this settings page 867 // (this is in common.c because it's also used at 868 // Desktop startup) 869 cmnSetDefaultSettings(pnbp->inbp.ulPageID); 870 cmnSetDefaultSettings(SP_STARTUPFOLDER); 871 872 // update the display by calling the INIT callback 873 pnbp->inbp.pfncbInitPage(pnbp, CBI_SET | CBI_ENABLE); 874 break; 875 876 #ifndef __NOXWPSTARTUP__ 877 case ID_XSDI_DTP_CREATESTARTUPFLDR: 878 { 879 CHAR szSetup[200]; 880 881 sprintf(szSetup, "DEFAULTVIEW=ICON;ICONVIEW=NONFLOWED,MINI;OBJECTID=%s;", 882 XFOLDER_STARTUPID); 883 if (!WinCreateObject((PSZ)G_pcszXFldStartup, 884 cmnGetString(ID_XFSI_XWPSTARTUPFDR), szSetup, 885 (PSZ)WPOBJID_DESKTOP, CO_UPDATEIFEXISTS)) 886 cmnMessageBoxExt(pnbp->hwndFrame, 104, NULL, 0, 105, MB_OK); 887 else 888 // update the display by calling the INIT callback 889 pnbp->inbp.pfncbInitPage(pnbp, CBI_SET | CBI_ENABLE); 890 } 891 break; 892 893 894 case ID_XSDI_DTP_INITDELAY_SPIN: 895 { 896 LONG lValue = 0; 897 898 if (WinSendDlgItemMsg(pnbp->hwndDlgPage, ID_XSDI_DTP_INITDELAY_SPIN, 899 SPBM_QUERYVALUE, (MPARAM)&lValue, 900 MPFROM2SHORT(0, SPBQ_UPDATEIFVALID))) 901 cmnSetSetting(sulStartupInitialDelay, lValue * 1000); 902 } 903 break; 904 #endif 905 } 906 907 return 0; 908 } 909 910 /*****************************************************************************/ 911 705 912 #ifndef __NOBOOTLOGO__ 913 914 /*****************************************************************************/ 915 916 static const CONTROLDEF 706 917 BootLogoGroup = LOADDEF_GROUP(ID_XSDI_DTP_LOGOGROUP, SZL_AUTOSIZE), 707 918 BootLogoCB = LOADDEF_AUTOCHECKBOX(ID_XSDI_DTP_BOOTLOGO), … … 739 950 ID_XSDI_DTP_TESTLOGO, 740 951 -1, 741 STD_BUTTON_HEIGHT), 742 #endif 743 WriteXWPStartLogCB = LOADDEF_AUTOCHECKBOX(ID_XSDI_DTP_WRITEXWPSTARTLOG), 744 #ifndef __NOBOOTUPSTATUS__ 745 BootupStatusCB = LOADDEF_AUTOCHECKBOX(ID_XSDI_DTP_BOOTUPSTATUS), 746 #endif 747 #ifndef __NOXWPSTARTUP__ 748 CreateStartupFolderButton = CONTROLDEF_PUSHBUTTON( 749 LOAD_STRING, // "Create ~XWorkplace Startup folder", 750 ID_XSDI_DTP_CREATESTARTUPFLDR, 751 -1, 752 STD_BUTTON_HEIGHT), 753 #endif 754 NumLockOnCB = LOADDEF_AUTOCHECKBOX(ID_XSDI_DTP_NUMLOCKON); 755 756 static const DLGHITEM dlgDesktopStartup[] = 952 STD_BUTTON_HEIGHT); 953 954 955 956 static const DLGHITEM dlgDesktopBootLogo[] = 757 957 { 758 958 START_TABLE, // root table, required 759 #ifndef __NOBOOTLOGO__760 959 START_ROW(0), // boot logo group 761 960 START_GROUP_TABLE(&BootLogoGroup), … … 785 984 END_TABLE, 786 985 END_TABLE, // end of boot logo group 787 #endif 788 START_ROW(0), 789 CONTROL_DEF(&WriteXWPStartLogCB), 790 #ifndef __NOBOOTUPSTATUS__ 791 START_ROW(0), 792 CONTROL_DEF(&BootupStatusCB), 793 #endif 794 START_ROW(0), 795 CONTROL_DEF(&NumLockOnCB), 796 #ifndef __NOXWPSTARTUP__ 797 START_ROW(0), 798 CONTROL_DEF(&CreateStartupFolderButton), 799 #endif 986 800 987 START_ROW(0), // notebook buttons (will be moved) 801 988 CONTROL_DEF(&G_UndoButton), // common.c … … 805 992 }; 806 993 807 static const XWPSETTING G_DtpStartupBackup[] = 808 { 809 sfWriteXWPStartupLog, 810 #ifndef __NOBOOTUPSTATUS__ 811 sfShowBootupStatus, 812 #endif 813 #ifndef __NOBOOTLOGO__ 994 static const XWPSETTING G_DtpBootLogoBackup[] = 995 { 814 996 sfBootLogo, 815 997 sulBootLogoStyle, 816 #endif817 sfNumLockStartup818 998 }; 819 999 1000 820 1001 /* 821 * dtpStartupInitPage:1002 *@@ dtpBootLogoInitPage: 822 1003 * notebook callback function (notebook.c) for the 823 * "Startup" page in the Desktop's settings 824 * notebook. 825 * Sets the controls on the page according to the 826 * Global Settings. 827 * 828 *@@added V0.9.0 [umoeller] 829 *@@changed V0.9.1 (2000-02-09) [umoeller]: added NumLock support to this page 830 *@@changed V0.9.13 (2001-06-14) [umoeller]: fixed Undo for boot logo file 831 *@@changed V0.9.14 (2001-08-21) [umoeller]: added "write startuplog" setting 832 *@@changecd V0.9.16 (2001-09-29) [umoeller]: now using dialog formatter 1004 * "Boot Logo" page (2nd page of the "Startup" tab) 1005 * in the Desktop's settings notebook. 833 1006 */ 834 1007 835 VOID dtp StartupInitPage(PNOTEBOOKPAGE pnbp, // notebook info struct836 ULONG flFlags) // CBI_* flags (notebook.h)1008 VOID dtpBootLogoInitPage(PNOTEBOOKPAGE pnbp, 1009 ULONG flFlags) 837 1010 { 838 1011 if (flFlags & CBI_INIT) … … 842 1015 // common notebook window function (notebook.c) when 843 1016 // the notebook page is destroyed 844 pnbp->pUser = cmnBackupSettings(G_Dtp StartupBackup,845 ARRAYITEMCOUNT(G_Dtp StartupBackup));1017 pnbp->pUser = cmnBackupSettings(G_DtpBootLogoBackup, 1018 ARRAYITEMCOUNT(G_DtpBootLogoBackup)); 846 1019 847 1020 // insert the controls using the dialog formatter 848 // V0.9.16 (2001-09-29) [umoeller]849 1021 ntbFormatPage(pnbp->hwndDlgPage, 850 dlgDesktopStartup, 851 ARRAYITEMCOUNT(dlgDesktopStartup)); 852 853 #ifndef __NOBOOTLOGO__ 1022 dlgDesktopBootLogo, 1023 ARRAYITEMCOUNT(dlgDesktopBootLogo)); 1024 854 1025 // backup old boot logo file 855 1026 pnbp->pUser2 = cmnQueryBootLogoFile(); // malloc'ed 856 // fixed V0.9.13 (2001-06-14) [umoeller]857 1027 858 1028 // prepare the control to properly display … … 866 1036 ID_XSDI_DTP_LOGOFILE), 867 1037 CCHMAXPATH); 868 #endif869 1038 } 870 1039 871 1040 if (flFlags & CBI_SET) 872 1041 { 873 #ifndef __NOBOOTLOGO__874 1042 USHORT usRadioID; 875 1043 HDC hdcMem; … … 927 1095 928 1096 WinSetPointer(HWND_DESKTOP, hptrOld); 929 #endif930 // startup log file931 winhSetDlgItemChecked(pnbp->hwndDlgPage, ID_XSDI_DTP_WRITEXWPSTARTLOG,932 cmnQuerySetting(sfWriteXWPStartupLog));933 934 #ifndef __NOBOOTUPSTATUS__935 // bootup status936 winhSetDlgItemChecked(pnbp->hwndDlgPage, ID_XSDI_DTP_BOOTUPSTATUS,937 cmnQuerySetting(sfShowBootupStatus));938 #endif939 940 // numlock on941 winhSetDlgItemChecked(pnbp->hwndDlgPage, ID_XSDI_DTP_NUMLOCKON,942 cmnQuerySetting(sfNumLockStartup));943 1097 } 944 1098 945 1099 if (flFlags & CBI_ENABLE) 946 1100 { 947 #ifndef __NOBOOTLOGO__948 1101 PSZ pszBootLogoFile = cmnQueryBootLogoFile(); 949 1102 BOOL fBootLogoFileExists = (access(pszBootLogoFile, 0) == 0); … … 953 1106 cmnQuerySetting(sfBootLogo)); 954 1107 WinEnableControl(pnbp->hwndDlgPage, ID_XSDI_DTP_TESTLOGO, fBootLogoFileExists); 955 #endif956 957 #ifndef __NOXWPSTARTUP__958 if (WinQueryObject((PSZ)XFOLDER_STARTUPID))959 WinEnableControl(pnbp->hwndDlgPage, ID_XSDI_DTP_CREATESTARTUPFLDR, FALSE);960 #endif961 1108 } 962 1109 } 963 964 #ifndef __NOBOOTLOGO__965 1110 966 1111 /* … … 991 1136 } 992 1137 993 #endif994 995 1138 /* 996 * dtpStartupItemChanged:1139 *@@ dtpBootLogoItemChanged: 997 1140 * notebook callback function (notebook.c) for the 998 * "Startup" page in the Desktop's settings 999 * notebook. 1000 * Reacts to changes of any of the dialog controls. 1001 * 1002 *@@added V0.9.0 [umoeller] 1003 *@@changed V0.9.1 (2000-02-09) [umoeller]: added NumLock support to this page 1004 *@@changed V0.9.3 (2000-04-11) [umoeller]: fixed major resource leak; the bootlogo bitmap was never freed 1005 *@@changed V0.9.9 (2001-04-07) [pr]: fixed Undo 1006 *@@changed V0.9.13 (2001-06-14) [umoeller]: fixed Undo for boot logo file 1007 *@@changed V0.9.14 (2001-08-21) [umoeller]: added "write startuplog" setting 1141 * "Boot Logo" page (2nd page of the "Startup" tab) 1142 * in the Desktop's settings notebook. 1008 1143 */ 1009 1144 1010 MRESULT dtp StartupItemChanged(PNOTEBOOKPAGE pnbp,1011 ULONG ulItemID,1012 USHORT usNotifyCode,1013 ULONG ulExtra) // for checkboxes: contains new state1145 MRESULT dtpBootLogoItemChanged(PNOTEBOOKPAGE pnbp, 1146 ULONG ulItemID, 1147 USHORT usNotifyCode, 1148 ULONG ulExtra) // for checkboxes: contains new state 1014 1149 { 1015 1150 BOOL fProcessed = TRUE; 1016 1017 1151 ULONG ulChange = 1; 1018 1152 1019 { 1020 switch (ulItemID) 1021 { 1022 #ifndef __NOBOOTLOGO__ 1023 case ID_XSDI_DTP_BOOTLOGO: 1024 cmnSetSetting(sfBootLogo, ulExtra); 1025 ulChange = 2; // re-enable items 1026 break; 1027 1028 case ID_XSDI_DTP_LOGO_TRANSPARENT: 1029 cmnSetSetting(sulBootLogoStyle, 0); 1030 break; 1031 1032 case ID_XSDI_DTP_LOGO_BLOWUP: 1033 cmnSetSetting(sulBootLogoStyle, 1); 1034 break; 1035 #endif 1036 1037 case ID_XSDI_DTP_WRITEXWPSTARTLOG: 1038 cmnSetSetting(sfWriteXWPStartupLog, ulExtra); 1039 break; 1040 1041 #ifndef __NOBOOTUPSTATUS__ 1042 case ID_XSDI_DTP_BOOTUPSTATUS: 1043 cmnSetSetting(sfShowBootupStatus, ulExtra); 1044 break; 1045 #endif 1046 1047 case ID_XSDI_DTP_NUMLOCKON: 1048 cmnSetSetting(sfNumLockStartup, ulExtra); 1049 winhSetNumLock(ulExtra); 1050 break; 1051 1052 case DID_UNDO: 1053 // "Undo" button: get pointer to backed-up Global Settings 1054 cmnRestoreSettings(pnbp->pUser, 1055 ARRAYITEMCOUNT(G_DtpStartupBackup)); 1056 1057 #ifndef __NOBOOTLOGO__ 1058 SetBootLogoFile(pnbp, 1059 (PCSZ)pnbp->pUser2, 1060 TRUE); // write 1061 #endif 1062 1063 // update the display by calling the INIT callback 1064 pnbp->inbp.pfncbInitPage(pnbp, CBI_SET | CBI_ENABLE); 1065 break; 1066 1067 case DID_DEFAULT: 1068 // set the default settings for this settings page 1069 // (this is in common.c because it's also used at 1070 // Desktop startup) 1071 cmnSetDefaultSettings(pnbp->inbp.ulPageID); 1072 // update the display by calling the INIT callback 1073 pnbp->inbp.pfncbInitPage(pnbp, CBI_SET | CBI_ENABLE); 1074 break; 1075 1076 default: 1077 ulChange = 0; 1078 fProcessed = FALSE; 1079 } 1153 switch (ulItemID) 1154 { 1155 case ID_XSDI_DTP_BOOTLOGO: 1156 cmnSetSetting(sfBootLogo, ulExtra); 1157 ulChange = 2; // re-enable items 1158 break; 1159 1160 case ID_XSDI_DTP_LOGO_TRANSPARENT: 1161 cmnSetSetting(sulBootLogoStyle, 0); 1162 break; 1163 1164 case ID_XSDI_DTP_LOGO_BLOWUP: 1165 cmnSetSetting(sulBootLogoStyle, 1); 1166 break; 1167 1168 case DID_UNDO: 1169 // "Undo" button: get pointer to backed-up Global Settings 1170 cmnRestoreSettings(pnbp->pUser, 1171 ARRAYITEMCOUNT(G_DtpBootLogoBackup)); 1172 SetBootLogoFile(pnbp, 1173 (PCSZ)pnbp->pUser2, 1174 TRUE); // write 1175 1176 // update the display by calling the INIT callback 1177 pnbp->inbp.pfncbInitPage(pnbp, CBI_SET | CBI_ENABLE); 1178 break; 1179 1180 case DID_DEFAULT: 1181 // set the default settings for this settings page 1182 // (this is in common.c because it's also used at 1183 // Desktop startup) 1184 cmnSetDefaultSettings(pnbp->inbp.ulPageID); 1185 // update the display by calling the INIT callback 1186 pnbp->inbp.pfncbInitPage(pnbp, CBI_SET | CBI_ENABLE); 1187 break; 1188 1189 default: 1190 ulChange = 0; 1191 fProcessed = FALSE; 1080 1192 } 1081 1193 … … 1091 1203 switch (ulItemID) 1092 1204 { 1093 #ifndef __NOBOOTLOGO__1094 1205 /* 1095 1206 * ID_XSDI_DTP_LOGOFILE: … … 1142 1253 strcat(szFile, "*.bmp"); 1143 1254 1144 /* if ( WinFileDlg(HWND_DESKTOP, // parent1145 pnbp->hwndFrame, // owner1146 &fd)1147 && (fd.lReturn == DID_OK)1148 ) */1149 1255 if (cmnFileDlg(pnbp->hwndFrame, 1150 1256 szFile, … … 1250 1356 } 1251 1357 break; 1252 #endif 1253 1254 #ifndef __NOXWPSTARTUP__ 1255 /* 1256 *@@ ID_XSDI_DTP_CREATESTARTUPFLDR: 1257 * "Create startup folder" 1258 */ 1259 1260 case ID_XSDI_DTP_CREATESTARTUPFLDR: 1261 { 1262 CHAR szSetup[200]; 1263 HOBJECT hObj; 1264 sprintf(szSetup, 1265 "DEFAULTVIEW=ICON;ICONVIEW=NONFLOWED,MINI;" 1266 "OBJECTID=%s;", 1267 XFOLDER_STARTUPID); 1268 if (hObj = WinCreateObject((PSZ)G_pcszXFldStartup, 1269 cmnGetString(ID_XFSI_XWPSTARTUPFDR), // "XWorkplace Startup", 1270 // finally localized V1.0.0 (2002-08-31) [umoeller] 1271 szSetup, 1272 (PSZ)WPOBJID_DESKTOP, // "<WP_DESKTOP>", 1273 CO_UPDATEIFEXISTS)) 1274 WinEnableControl(pnbp->hwndDlgPage, ID_XSDI_DTP_CREATESTARTUPFLDR, FALSE); 1275 else 1276 cmnMessageBoxExt(pnbp->hwndFrame, 1277 104, 1278 NULL, 0, 1279 105, 1280 MB_OK); 1281 } 1282 break; 1283 #endif 1284 1285 default: 1286 ; 1358 1287 1359 } 1288 1360 } // end if (!fProcessed) 1289 1361 1290 return ((MPARAM)0);1362 return 0; 1291 1363 } 1292 1364 1293 1365 /*****************************************************************************/ 1366 #endif 1367 /*****************************************************************************/ 1368 -
TabularUnified branches/branch-1-0/src/filesys/fdrnotebooks.c ¶
r1400 r1469 82 82 // SOM headers which don't crash with prec. header files 83 83 #include "xfldr.ih" 84 #include "xfstart.ih"85 84 86 85 // XWorkplace implementation headers … … 861 860 } 862 861 863 #ifndef __NOXWPSTARTUP__864 865 /* ******************************************************************866 *867 * XFldStartup notebook callbacks (notebook.c)868 *869 ********************************************************************/870 871 static const XWPSETTING G_StartupFolderBackup[] =872 {873 sulStartupInitialDelay,874 sfShowStartupProgress875 };876 877 /*878 * fdrStartupFolderInitPage:879 * notebook callback function (notebook.c) for the880 * "Startup" page in the startup folder's settings notebook.881 * (This used to be page 2 in the Desktop's settings notebook882 * before V0.9.0.)883 * Sets the controls on the page according to the884 * Global Settings.885 *886 *@@changed V0.9.0 [umoeller]: moved this here from xfdesk.c887 *@@changed V0.9.0 [umoeller]: adjusted function prototype888 *@@changed V0.9.4 (2000-08-02) [umoeller]: now using sliders; added initial delay889 *@@changed V0.9.9 (2001-03-19) [pr]: multiple startup folder mods.890 */891 892 VOID fdrStartupFolderInitPage(PNOTEBOOKPAGE pnbp, // notebook info struct893 ULONG flFlags) // CBI_* flags (notebook.h)894 {895 XFldStartupData *somThis = NULL;896 897 somThis = XFldStartupGetData(pnbp->inbp.somSelf);898 899 if (flFlags & CBI_INIT)900 {901 // first call: backup Global Settings and instance902 // variables for "Undo" button;903 // this memory will be freed automatically by the904 // common notebook window function (notebook.c) when905 // the notebook page is destroyed906 pnbp->pUser = cmnBackupSettings(G_StartupFolderBackup,907 ARRAYITEMCOUNT(G_StartupFolderBackup));908 if (pnbp->pUser2 = malloc(sizeof(XFldStartupData)))909 memcpy(pnbp->pUser2, somThis, sizeof(XFldStartupData));910 911 // set up sliders912 winhSetSliderTicks(WinWindowFromID(pnbp->hwndDlgPage, ID_SDDI_STARTUP_INITDELAY_SLID),913 (MPARAM)0, 3,914 MPFROM2SHORT(9, 10), 6);915 winhSetSliderTicks(WinWindowFromID(pnbp->hwndDlgPage, ID_SDDI_STARTUP_OBJDELAY_SLID),916 (MPARAM)0, 3,917 MPFROM2SHORT(9, 10), 6);918 }919 920 if (flFlags & CBI_SET)921 {922 // the range of valid startup delays is923 // 500 ms to 10,000 ms in steps of 500 ms;924 // that gives us 20 - 1 = 19 positions925 926 // initial delay927 winhSetSliderArmPosition(WinWindowFromID(pnbp->hwndDlgPage, ID_SDDI_STARTUP_INITDELAY_SLID),928 SMA_INCREMENTVALUE,929 (cmnQuerySetting(sulStartupInitialDelay) / 500) - 1);930 // per-object delay931 winhSetSliderArmPosition(WinWindowFromID(pnbp->hwndDlgPage, ID_SDDI_STARTUP_OBJDELAY_SLID),932 SMA_INCREMENTVALUE,933 (_ulObjectDelay / 500) - 1);934 935 winhSetDlgItemChecked(pnbp->hwndDlgPage, ID_SDDI_SHOWSTARTUPPROGRESS,936 cmnQuerySetting(sfShowStartupProgress));937 if (_ulType == XSTARTUP_REBOOTSONLY)938 winhSetDlgItemChecked(pnbp->hwndDlgPage, ID_SDDI_STARTUP_REBOOTSONLY, TRUE);939 940 if (_ulType == XSTARTUP_EVERYWPSRESTART)941 winhSetDlgItemChecked(pnbp->hwndDlgPage, ID_SDDI_STARTUP_EVERYWPSRESTART, TRUE);942 }943 944 if (flFlags & CBI_ENABLE)945 {946 }947 }948 949 /*950 * fdrStartupFolderItemChanged:951 * notebook callback function (notebook.c) for the952 * "Startup" page in the startup folder's settings notebook.953 * (This used to be page 2 in the Desktop's settings notebook954 * before V0.9.0.)955 * Reacts to changes of any of the dialog controls.956 *957 *@@changed V0.9.0 [umoeller]: moved this here from xfdesk.c958 *@@changed V0.9.0 [umoeller]: adjusted function prototype959 *@@changed V0.9.4 (2000-08-02) [umoeller]: now using sliders; added initial delay960 *@@changed V0.9.9 (2001-03-19) [pr]: multiple startup folder mods.; add Undo & Default processing961 */962 963 MRESULT fdrStartupFolderItemChanged(PNOTEBOOKPAGE pnbp,964 ULONG ulItemID, USHORT usNotifyCode,965 ULONG ulExtra) // for checkboxes: contains new state966 {967 ULONG ulChange = 1;968 BOOL fUpdate = TRUE;969 XFldStartupData *somThis = XFldStartupGetData(pnbp->inbp.somSelf);970 971 switch (ulItemID)972 {973 case ID_SDDI_SHOWSTARTUPPROGRESS:974 cmnSetSetting(sfShowStartupProgress, ulExtra);975 fUpdate = FALSE;976 break;977 978 case ID_SDDI_STARTUP_INITDELAY_SLID:979 {980 LONG lSliderIndex = winhQuerySliderArmPosition(981 pnbp->hwndControl,982 SMA_INCREMENTVALUE);983 LONG lMS = (lSliderIndex + 1) * 500;984 CHAR szMS[30];985 sprintf(szMS, "%d ms", lMS);986 WinSetDlgItemText(pnbp->hwndDlgPage,987 ID_SDDI_STARTUP_INITDELAY_TXT2,988 szMS);989 990 cmnSetSetting(sulStartupInitialDelay, lMS);991 fUpdate = FALSE;992 }993 break;994 995 case ID_SDDI_STARTUP_OBJDELAY_SLID:996 {997 LONG lSliderIndex = winhQuerySliderArmPosition(998 pnbp->hwndControl,999 SMA_INCREMENTVALUE);1000 LONG lMS = (lSliderIndex + 1) * 500;1001 CHAR szMS[30];1002 sprintf(szMS, "%d ms", lMS);1003 WinSetDlgItemText(pnbp->hwndDlgPage,1004 ID_SDDI_STARTUP_OBJDELAY_TXT2,1005 szMS);1006 1007 _ulObjectDelay = lMS;1008 ulChange = 0;1009 }1010 break;1011 1012 case ID_SDDI_STARTUP_REBOOTSONLY:1013 _ulType = XSTARTUP_REBOOTSONLY;1014 ulChange = 0;1015 break;1016 1017 case ID_SDDI_STARTUP_EVERYWPSRESTART:1018 _ulType = XSTARTUP_EVERYWPSRESTART;1019 ulChange = 0;1020 break;1021 1022 case DID_UNDO:1023 if (pnbp->pUser)1024 {1025 XFldStartupData *Backup = pnbp->pUser2;1026 // "Undo" button: restore backed up instance & global data1027 _ulType = Backup->ulType;1028 _ulObjectDelay = Backup->ulObjectDelay;1029 cmnRestoreSettings(pnbp->pUser,1030 ARRAYITEMCOUNT(G_StartupFolderBackup));1031 // update the display by calling the INIT callback1032 pnbp->inbp.pfncbInitPage(pnbp, CBI_SET | CBI_ENABLE);1033 }1034 break;1035 1036 case DID_DEFAULT:1037 // "Default" button:1038 _ulType = XSTARTUP_REBOOTSONLY;1039 _ulObjectDelay = XSTARTUP_DEFAULTOBJECTDELAY;1040 cmnSetDefaultSettings(SP_STARTUPFOLDER);1041 // update the display by calling the INIT callback1042 pnbp->inbp.pfncbInitPage(pnbp, CBI_SET | CBI_ENABLE);1043 break;1044 1045 default:1046 ulChange = 0;1047 }1048 1049 if (fUpdate)1050 _wpSaveDeferred(pnbp->inbp.somSelf);1051 1052 return ((MPARAM)0);1053 }1054 1055 #endif -
TabularUnified branches/branch-1-0/src/filesys/folder.c ¶
r1406 r1469 3509 3509 } 3510 3510 3511 /* ******************************************************************3512 *3513 * Start folder contents3514 *3515 ********************************************************************/3516 3517 /*3518 *@@ PROCESSFOLDER:3519 * structure on the stack of fdrStartFolderContents3520 * while the "start folder contents" thread is3521 * running synchronously.3522 *3523 *@@added V0.9.12 (2001-04-29) [umoeller]3524 */3525 3526 typedef struct _PROCESSFOLDER3527 {3528 // input parameters:3529 WPFolder *pFolder;3530 ULONG ulTiming;3531 HWND hwndStatus; // status window or NULLHANDLE3532 3533 BOOL fCancelled;3534 3535 // private data:3536 WPObject *pObject;3537 ULONG henum;3538 ULONG cTotalObjects;3539 ULONG ulObjectThis;3540 ULONG ulFirstTime; // sysinfo first time3541 } PROCESSFOLDER, *PPROCESSFOLDER;3542 3543 /*3544 *@@ fnwpStartupDlg:3545 * dlg proc for the Startup status window, which3546 * runs on the main PM thread (krn_fnwpThread1Object).3547 */3548 3549 MRESULT EXPENTRY fnwpStartupDlg(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2)3550 {3551 MRESULT mrc;3552 3553 switch (msg)3554 {3555 case WM_INITDLG:3556 // WinSetWindowULong(hwnd, QWL_USER, (ULONG)mp2);3557 // we don't need this here, it's done by krn_fnwpThread1Object3558 ctlProgressBarFromStatic(WinWindowFromID(hwnd, ID_SDDI_PROGRESSBAR),3559 PBA_ALIGNCENTER | PBA_BUTTONSTYLE);3560 mrc = WinDefDlgProc(hwnd, msg, mp1, mp2);3561 break;3562 3563 case WM_COMMAND:3564 switch (SHORT1FROMMP(mp1))3565 {3566 case DID_CANCEL:3567 {3568 PPROCESSFOLDER ppf;3569 if (ppf = (PPROCESSFOLDER)WinQueryWindowPtr(hwnd, QWL_USER))3570 ppf->fCancelled = TRUE;3571 }3572 break;3573 }3574 break;3575 3576 case WM_SYSCOMMAND:3577 switch (SHORT1FROMMP(mp1))3578 {3579 case SC_CLOSE:3580 case SC_HIDE:3581 cmnSetSetting(sfShowStartupProgress, 0);3582 mrc = WinDefDlgProc(hwnd, msg, mp1, mp2);3583 break;3584 3585 default:3586 mrc = WinDefDlgProc(hwnd, msg, mp1, mp2);3587 }3588 break;3589 3590 default:3591 mrc = WinDefDlgProc(hwnd, msg, mp1, mp2);3592 }3593 3594 return mrc;3595 }3596 3597 /*3598 *@@ fntProcessStartupFolder:3599 * synchronous thread started from fdrStartFolderContents3600 * for each startup folder that is to be processed.3601 *3602 *@@added V0.9.12 (2001-04-29) [umoeller]3603 *@@changed V1.0.4 (2005-08-27) [pr]: fixed Shutdown Folder Cancel not working @@fixes 4023604 */3605 3606 void _Optlink fntProcessStartupFolder(PTHREADINFO ptiMyself)3607 {3608 PPROCESSFOLDER ppf = (PPROCESSFOLDER)ptiMyself->ulData;3609 WPFolder *pFolder = ppf->pFolder;3610 3611 while (!ppf->fCancelled)3612 {3613 BOOL fOKGetNext = FALSE;3614 HWND hwndCurrentView = NULLHANDLE; // for wait mode3615 3616 if (ppf->ulObjectThis == 0)3617 {3618 // first iteration: initialize structure3619 ppf->cTotalObjects = 0;3620 fdrCheckIfPopulated(pFolder,3621 FALSE); // full populate3622 // now count objects3623 for ( ppf->pObject = _wpQueryContent(pFolder, NULL, QC_FIRST);3624 (ppf->pObject);3625 ppf->pObject = _wpQueryContent(pFolder, ppf->pObject, QC_NEXT)3626 )3627 {3628 ppf->cTotalObjects++;3629 }3630 3631 // get first object3632 ppf->henum = _xwpBeginEnumContent(pFolder);3633 }3634 3635 if (ppf->henum)3636 {3637 // in any case, get first or next object3638 ppf->pObject = _xwpEnumNext(pFolder, ppf->henum);3639 3640 ppf->ulObjectThis++;3641 3642 // now process that object3643 if (ppf->pObject)3644 {3645 // this is not the last object: start it3646 3647 // resolve shadows... this never worked for3648 // shadows V0.9.12 (2001-04-29) [umoeller]3649 ppf->pObject = objResolveIfShadow(ppf->pObject);3650 3651 if (wpshCheckObject(ppf->pObject))3652 {3653 // open the object:3654 3655 // 1) update the status window3656 if (cmnQuerySetting(sfShowStartupProgress))3657 {3658 CHAR szStarting2[500], szTemp[500];3659 // update status text ("Starting xxx")3660 strcpy(szTemp, _wpQueryTitle(ppf->pObject));3661 strhBeautifyTitle(szTemp);3662 sprintf(szStarting2,3663 cmnGetString(ID_SDSI_STARTING), // ->pszStarting,3664 szTemp);3665 WinSetDlgItemText(ppf->hwndStatus, ID_SDDI_STATUS, szStarting2);3666 }3667 3668 // V0.9.19 (2002-04-11) [pr]: Must open on thread 1!!!3669 // have the object opened on thread-13670 hwndCurrentView = (HWND)krnSendThread1ObjectMsg(T1M_OPENOBJECTFROMPTR,3671 (MPARAM)ppf->pObject,3672 (MPARAM)OPEN_DEFAULT);3673 /*3674 hwndCurrentView = _wpViewObject(ppf->pObject,3675 NULLHANDLE,3676 OPEN_DEFAULT,3677 0);3678 */3679 // update status bar3680 if (cmnQuerySetting(sfShowStartupProgress))3681 WinSendDlgItemMsg(ppf->hwndStatus, ID_SDDI_PROGRESSBAR,3682 WM_UPDATEPROGRESSBAR,3683 MPFROMLONG(ppf->ulObjectThis),3684 MPFROMLONG(ppf->cTotalObjects));3685 }3686 3687 ppf->ulFirstTime = doshQuerySysUptime();3688 }3689 else3690 // no more objects:3691 // break out of the while loop3692 break;3693 }3694 else3695 // error:3696 break;3697 3698 // now wait until we should process the3699 // next object3700 while ( (!fOKGetNext)3701 && (!ppf->fCancelled)3702 )3703 {3704 if (ppf->ulTiming == 0)3705 {3706 // "wait for close" mode:3707 // check if the view we opened is still alive3708 3709 // now, for all XFolder versions up to now3710 // we used wpWaitForClose... I am very unsure3711 // what this method does, so I have now replaced3712 // this with my own loop here.3713 // V0.9.12 (2001-04-28) [umoeller]3714 BOOL fStillOpen = FALSE;3715 WPObject *pobjLock = NULL;3716 3717 TRY_LOUD(excpt1)3718 {3719 if (pobjLock = cmnLockObject(ppf->pObject))3720 {3721 PUSEITEM pUseItem = NULL;3722 3723 PMPF_STARTUP((" WOM_WAITFORPROCESSNEXT: checking open views"));3724 PMPF_STARTUP((" obj %s",3725 _wpQueryTitle(ppf->pObject)));3726 3727 for (pUseItem = _wpFindUseItem(ppf->pObject, USAGE_OPENVIEW, NULL);3728 pUseItem;3729 pUseItem = _wpFindUseItem(ppf->pObject, USAGE_OPENVIEW, pUseItem))3730 {3731 PVIEWITEM pvi = (PVIEWITEM)(pUseItem + 1);3732 3733 PMPF_STARTUP((" got view 0x%lX", pvi->handle));3734 3735 if (pvi->handle == hwndCurrentView)3736 {3737 fStillOpen = TRUE;3738 break;3739 }3740 }3741 }3742 }3743 CATCH(excpt1) {} END_CATCH();3744 3745 if (pobjLock)3746 _wpReleaseObjectMutexSem(pobjLock);3747 3748 fOKGetNext = !fStillOpen;3749 } // end if (ppf->ulTiming == 0)3750 else3751 {3752 // timing mode3753 ULONG ulNowTime = doshQuerySysUptime();3754 if (ulNowTime > (ppf->ulFirstTime + ppf->ulTiming))3755 fOKGetNext = TRUE;3756 }3757 3758 // fOKGetNext is TRUE if the next object should be3759 // processed now3760 if (fOKGetNext)3761 {3762 // removed lock here V0.9.12 (2001-04-28) [umoeller]3763 PCKERNELGLOBALS pKernelGlobals = krnQueryGlobals();3764 if (pKernelGlobals)3765 {3766 // ready to go for next object:3767 // make sure the damn PM hard error windows are not visible,3768 // because this locks any other PM activity3769 if ( (WinIsWindowVisible(pKernelGlobals->hwndHardError))3770 || (WinIsWindowVisible(pKernelGlobals->hwndSysError))3771 )3772 {3773 DosBeep(250, 100);3774 // wait a little more and try again3775 fOKGetNext = FALSE;3776 }3777 }3778 }3779 3780 if (!fOKGetNext)3781 // not ready yet:3782 // sleep awhile (we could simply sleep for the3783 // wait time, but then "cancel" would not be3784 // very responsive)3785 DosSleep(100);3786 }3787 } // end while !ppf->fCancelled3788 3789 // done or cancelled:3790 _xwpEndEnumContent(pFolder, ppf->henum);3791 3792 // tell thrRunSync that we're done3793 WinPostMsg(ptiMyself->hwndNotify,3794 WM_USER,3795 (MPARAM) ppf->fCancelled, // V1.0.4 (2005-08-27) [pr]3796 0);3797 }3798 3799 /*3800 *@@ fdrStartFolderContents:3801 * implementation for XFolder::xwpStartFolderContents.3802 *3803 *@@added V0.9.12 (2001-04-29) [umoeller]3804 *@@changed V0.9.13 (2001-06-27) [umoeller]: now setting status title to folder's3805 */3806 3807 ULONG fdrStartFolderContents(WPFolder *pFolder,3808 ULONG ulTiming)3809 {3810 ULONG ulrc = 0;3811 3812 PROCESSFOLDER pf;3813 3814 memset(&pf, 0, sizeof(pf));3815 3816 pf.ulTiming = ulTiming;3817 3818 pf.hwndStatus = cmnLoadDlg(NULLHANDLE,3819 fnwpStartupDlg,3820 ID_XFD_STARTUPSTATUS,3821 NULL);3822 // store struct in window words so the dialog can cancel3823 WinSetWindowPtr(pf.hwndStatus, QWL_USER, &pf);3824 3825 // set title V0.9.13 (2001-06-27) [umoeller]3826 WinSetWindowText(pf.hwndStatus, _wpQueryTitle(pFolder));3827 3828 if (cmnQuerySetting(sfShowStartupProgress))3829 {3830 // get last window position from INI3831 winhRestoreWindowPos(pf.hwndStatus,3832 HINI_USER,3833 INIAPP_XWORKPLACE, INIKEY_WNDPOSSTARTUP,3834 // move only, no resize3835 SWP_MOVE | SWP_SHOW | SWP_ACTIVATE);3836 }3837 3838 pf.pFolder = pFolder;3839 3840 ulrc = thrRunSync(WinQueryAnchorBlock(pf.hwndStatus),3841 fntProcessStartupFolder,3842 "ProcessStartupFolder",3843 (ULONG)&pf);3844 3845 winhSaveWindowPos(pf.hwndStatus, HINI_USER, INIAPP_XWORKPLACE, INIKEY_WNDPOSSTARTUP);3846 WinDestroyWindow(pf.hwndStatus);3847 3848 return (ulrc);3849 }3850 3851 -
TabularUnified branches/branch-1-0/src/shared/common.c ¶
r1464 r1469 3298 3298 SP_STARTUPFOLDER, 1000, 3299 3299 "ulStartupInitialDelay", 3300 sulStartupObjectDelay, FIELDOFFSET(OLDGLOBALSETTINGS, ulStartupObjectDelay), 4,3301 SP_STARTUPFOLDER, 1000,3302 "ulStartupObjectDelay",3303 3300 sfNumLockStartup, FIELDOFFSET(OLDGLOBALSETTINGS, fNumLockStartup), 1, 3304 3301 SP_DTP_STARTUP, 0, -
TabularUnified branches/branch-1-0/src/shared/init.c ¶
r1450 r1469 104 104 105 105 // SOM headers which don't crash with prec. header files 106 #include "xfstart.ih" 106 #include "xfldr.h" 107 #include "xfstart.h" 107 108 #include "xcenter.h" 108 109 … … 2310 2311 * processing. 2311 2312 * 2312 * This is a transient thread created from the File 2313 * thread after the desktop window has been opened 2314 * (FIM_DESKTOPPOPULATED). This thread now does 2315 * all the startup processing (V0.9.12), replacing 2316 * the ugly messaging in the file and worker threads 2317 * and with the thread-1 object window we had 2318 * previously. The file thread now just starts 2319 * this thread and need not worry about anything 2320 * else... it doesn't even wait for this to finish. 2313 * This is a transient thread that does all startup 2314 * processing. It is created from the File thread after 2315 * the desktop window has been opened (FIM_DESKTOPPOPULATED). 2316 * and runs asynchronously. 2321 2317 * 2322 2318 * In detail, this does: 2319 * 2320 * -- XCenter AutoOpen 2323 2321 * 2324 2322 * -- startup folder processing; … … 2334 2332 * 2335 2333 * No thread data. 2336 *2337 *@@added V0.9.12 (2001-04-29) [umoeller]2338 *@@changed V0.9.13 (2001-06-14) [umoeller]: removed archive marker file destruction, no longer needed2339 *@@changed V0.9.14 (2001-07-28) [umoeller]: added exception handling2340 *@@changed V0.9.16 (2002-01-13) [umoeller]: moved this here from xthreads.c2341 *@@changed V0.9.19 (2002-04-02) [umoeller]: added startup logging2342 *@@changed V1.0.9 (2008-06-18) [pr]: ignore template folders @@fixes 10962343 2334 */ 2344 2335 … … 2349 2340 initLog("Entering " __FUNCTION__"..."); 2350 2341 2351 // sleep a little while more2352 // V0.9.4 (2000-08-02) [umoeller]2353 DosSleep( cmnQuerySetting(sulStartupInitialDelay));2342 // non-configurable 1 second delay - the startup folders' 2343 // initial delay setting takes this into account 2344 DosSleep(1000); 2354 2345 2355 2346 TRY_LOUD(excpt1) 2356 2347 { 2357 2348 ULONG ulSize; 2358 2359 // moved all this to XFldDesktop::wpOpen, there can2360 // be a race which causes this to be called before2361 // the desktop is open2362 // V0.9.19 (2002-04-02) [umoeller]2363 2364 /*2365 HWND hwndDesktop;2366 2367 if (!(hwndDesktop = cmnQueryActiveDesktopHWND()))2368 cmnLog(__FILE__, __LINE__, __FUNCTION__,2369 "cmnQueryActiveDesktopHWND returned NULLHANDLE.");2370 2371 // notify daemon of WPS desktop window handle2372 // V0.9.9 (2001-03-27) [umoeller]: moved this up,2373 // we don't have to wait here2374 // V0.9.9 (2001-04-08) [umoeller]: wrong, we do2375 // need to wait.. apparently, on some systems,2376 // this doesn't work otherwise2377 krnPostDaemonMsg(XDM_DESKTOPREADY,2378 (MPARAM)hwndDesktop,2379 (MPARAM)0);2380 initLog(" posted desktop HWND 0x%lX to daemon", hwndDesktop);2381 */2382 2349 2383 2350 /* … … 2419 2386 // check if startup folder is to be skipped 2420 2387 if (!(pKernelGlobals->ulPanicFlags & SUF_SKIPXFLDSTARTUP)) 2421 // V0.9.3 (2000-04-25) [umoeller]2422 2388 { 2423 // OK, process startup folder2424 WPFolder *pFolder;2425 2426 2389 initLog(" processing startup folders..."); 2427 2390 … … 2437 2400 } 2438 2401 2439 // find startup folder(s) 2440 for (pFolder = _xwpclsQueryXStartupFolder(_XFldStartup, NULL); 2441 pFolder; 2442 pFolder = _xwpclsQueryXStartupFolder(_XFldStartup, pFolder)) 2443 { 2444 // pFolder now has the startup folder to be processed 2445 2446 PMPF_STARTUP(("found startup folder %s", 2447 _wpQueryTitle(pFolder))); 2448 2449 // skip folders which should only be started on bootup 2450 // except if we have specified that we want to start 2451 // them again when restarting the WPS 2452 if ( ( (_xwpQueryXStartupType(pFolder) != XSTARTUP_REBOOTSONLY) 2453 || (krnNeed2ProcessStartupFolder()) 2454 ) 2455 && !(_wpQueryStyle(pFolder) & OBJSTYLE_TEMPLATE) // V1.0.9 (2008-06-18) 2456 ) 2457 { 2458 ULONG ulTiming = 0; 2459 2460 initLog(" processing folder \"%s\"", 2461 _wpQueryTitle(pFolder)); 2462 2463 if (_somIsA(pFolder, _XFldStartup)) 2464 ulTiming = _xwpQueryXStartupObjectDelay(pFolder); 2465 else 2466 ulTiming = cmnQuerySetting(sulStartupObjectDelay); 2467 2468 // start the folder contents synchronously; 2469 // this func now displays the progress dialog 2470 // and does not return until the folder was 2471 // fully processed (this calls another thrRunSync 2472 // internally, so the SIQ is not blocked) 2473 _xwpStartFolderContents(pFolder, 2474 ulTiming); 2475 } 2476 else 2477 initLog(" skipping folder \"%s\"", 2478 _wpQueryTitle(pFolder)); 2479 } 2480 2402 // run each XStartup folder 2403 _xwpclsRunXStartupFolders(_XFldStartup); 2404 2405 // done with startup folders: 2406 krnSetProcessStartupFolder(FALSE); 2481 2407 PMPF_STARTUP(("done with startup folders")); 2482 2483 2408 initLog(" done with startup folders"); 2484 2485 // done with startup folders: 2486 krnSetProcessStartupFolder(FALSE); //V0.9.9 (2001-03-19) [pr] 2487 } // if (!(pKernelGlobals->ulPanicFlags & SUF_SKIPXFLDSTARTUP)) 2409 } 2488 2410 #endif 2489 2411 -
TabularUnified branches/branch-1-0/src/startshut/archives.c ¶
r1353 r1469 232 232 START_ROW(0), // row 1 in the root table, required 233 233 // create group on top 234 START_GROUP_TABLE (&ArcCriteriaGroup),234 START_GROUP_TABLE_EXT(&ArcCriteriaGroup, TABLE_INHERIT_SIZE), 235 235 START_ROW(ROW_VALIGN_CENTER), 236 236 CONTROL_DEF(&EnableArchiveCB), … … 255 255 END_TABLE, 256 256 START_ROW(0), // row 2 in the root table 257 START_GROUP_TABLE (&Arc2Group),257 START_GROUP_TABLE_EXT(&Arc2Group, TABLE_INHERIT_SIZE), 258 258 START_ROW(ROW_VALIGN_CENTER), 259 259 CONTROL_DEF(&ArcNoTxt1), … … 262 262 END_TABLE, 263 263 START_ROW(0), // row 3 in the root table 264 START_GROUP_TABLE (&ArcRestOptions),264 START_GROUP_TABLE_EXT(&ArcRestOptions, TABLE_INHERIT_SIZE), 265 265 START_ROW(ROW_VALIGN_CENTER), 266 266 CONTROL_DEF(&ArcRestShowAlways), -
TabularUnified branches/branch-1-0/src/startshut/shutdown.c ¶
r1431 r1469 127 127 #include "hook\xwphook.h" 128 128 129 // #include "filesys\fdrmenus.h" // shared folder menu logic 129 #include "filesys\folder.h" 130 130 #include "filesys\object.h" // XFldObject implementation 131 131 #include "filesys\xthreads.h" // extra XWorkplace threads … … 2948 2948 } 2949 2949 2950 // now run items in Shutdown folder 2951 // but only if we're shutting down, not on restart wps 2952 // V0.9.19 (2002-06-18) [umoeller] 2953 if ( (pShutdownData->sdParams.ulCloseMode == SHUT_SHUTDOWN) 2954 // not restart Desktop (1), not logoff (2) 2955 && (pShutdownFolder = _wpclsQueryFolder(_WPFolder, 2956 (PSZ)XFOLDER_SHUTDOWNID, 2957 TRUE)) 2958 ) 2950 // now run items in Shutdown folder but only if we're shutting down, 2951 // not restart Desktop (1), not logoff (2) 2952 if (pShutdownData->sdParams.ulCloseMode == SHUT_SHUTDOWN && 2953 (pShutdownFolder = _wpclsQueryFolder(_WPFolder, 2954 (PSZ)XFOLDER_SHUTDOWNID, 2955 TRUE))) 2959 2956 { 2960 2957 doshWriteLogEntry(pShutdownData->ShutdownLogFile, " Processing shutdown folder..."); 2961 2958 2962 // using new implementation V0.9.12 (2001-04-29) [umoeller] 2963 if (_xwpStartFolderContents(pShutdownFolder, // V1.0.4 (2005-08-27) [pr] 2964 0)) // wait mode 2959 // run contents serially 2960 if (fdrStartFolderContents(pShutdownFolder, 0, 0)) 2965 2961 { 2966 2962 WinPostMsg(pShutdownData->SDConsts.hwndMain, WM_COMMAND, … … 2970 2966 } 2971 2967 2972 doshWriteLogEntry(pShutdownData->ShutdownLogFile, " Startedprocessing shutdown folder.");2968 doshWriteLogEntry(pShutdownData->ShutdownLogFile, " Done processing shutdown folder."); 2973 2969 } 2974 2970
Note:
See TracChangeset
for help on using the changeset viewer.