Changeset 129
- Timestamp:
- Aug 13, 2000, 8:37:56 PM (25 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/001/frontend.res/warpin.rc ¶
r108 r129 74 74 END 75 75 76 MENU ID_WIM_DATABASE_ WHITESPACE LOADONCALL MOVEABLE DISCARDABLE76 MENU ID_WIM_DATABASE_LEFT_WHTSPACE LOADONCALL MOVEABLE DISCARDABLE 77 77 BEGIN 78 78 MENUITEM "~View", ID_WIM_DATABASE_VIEW, MIS_SUBMENU … … 80 80 MENUITEM "~Applications/Packages tree", ID_WIMI_DATABASE_TREEVIEW 81 81 MENUITEM "Package details only", ID_WIMI_DATABASE_DETAILSVIEW 82 END 83 END 84 85 MENU ID_WIM_DATABASE_RIGHT_WHTSPACE LOADONCALL MOVEABLE DISCARDABLE 86 BEGIN 87 MENUITEM "~View", ID_WIM_DATABASE_VIEW, MIS_SUBMENU 88 BEGIN 89 MENUITEM "~Files list", ID_WIMI_VIEW_FILES, MIS_TEXT 90 MENUITEM "~Configuration", ID_WIMI_VIEW_CONFIG, MIS_TEXT 82 91 END 83 92 END -
TabularUnified trunk/001/help/005database.html ¶
r108 r129 7 7 <BODY> 8 8 When WarpIN is started without an archive (WPI file) as a parameter, 9 the global databaseis opened.9 the <A HREF="_gls_database.html">global database</A> is opened. 10 10 11 <P> 11 <P>The database view is split into two halves: 12 12 13 <BR> 13 <OL><LI>The <B>left half</B> of the split view displays all 14 <A HREF="_gls_package.html">packages</A> which 15 have ever been installed using WarpIN. 16 17 <P>In the "View" pulldown menu, you can select 18 whether the left half should display the packages in a tree (grouped by the 19 applications the packages belong to) or in Details view, showing you all the 20 information at once. 21 22 <P>You can also change the view by clicking on an empty space in the list with 23 mouse button 2 and selecting the view from that context menu. 24 25 <P>By clicking on a package or application with mouse button 2, you will get 26 a different context menu which allows you to verify or de-install the package 27 or entire application. 28 29 <P><LI>The <B>right half</B> of the split view displays additional information 30 for the package which is currently selected in the left half. 31 32 <P>From the "View" pulldown menu (or from the context menu in the right 33 half) you can select whether the right half should display the files 34 which belong to the package or the <A HREF="_gls_config.html">system configuration</A> 35 which has been stored with the package. 36 37 </OL> 14 38 </BODY> 15 39 </HTML> -
TabularUnified trunk/001/help/_gls_database.html ¶
r108 r129 10 10 11 11 <P>The global database stores packages, not <A HREF="_gls_archive.html">archives.</A> 12 With each package, WarpIN stores system configuration data (CONFIG.SYS changes, 13 Workplace Shell classes and objects, and more), all files that have been unpacked, 12 With each package, WarpIN stores 13 <A HREF="_gls_config.html">system configuration</A> data, 14 all files that have been unpacked, 14 15 and package dependency information, if applicable. 15 16 <BR> -
TabularUnified trunk/001/help/_gls_package.html ¶
r108 r129 7 7 <BODY> 8 8 A package is the entity which WarpIN uses to manage installations. 9 Packages are stored in the <A HREF="_gls_database.html">global database</A> 10 and are contained in 11 <A HREF="_gls_archive.html">archives</A> (WPI files). 9 Packages are contained in 10 <A HREF="_gls_archive.html">archives</A> (WPI files) 11 and are stored in the <A HREF="_gls_database.html">global database</A> 12 after successful installation. 12 13 13 <P>Note that packages are not files. Instead, each package must be contained 14 <P>Note that packages are not files. Instead, a package is just a logical 15 grouping of files. Each package must therefore be contained 14 16 in an archive. In turn, each archive must contain at least one package. 15 17 16 <P>Packages are also used by WarpIN to manage system configuration 17 data such as CONFIG.SYS changes, INI entries, Workplace Shell (WPS) classes 18 and WPS objects. 18 <P>Packages are also used by WarpIN to manage 19 <A HREF="_gls_config.html">system configuration</A> data. 19 20 20 21 <P>Also, WarpIN is capable of managing package dependencies. This way WarpIN can -
TabularUnified trunk/include/frontend/dlgids.h ¶
r110 r129 248 248 #define ID_WIMI_DATABASE_REMOVEPCK 1224 249 249 250 #define ID_WIM_DATABASE_WHITESPACE 1240 251 #define ID_WIM_DATABASE_VIEW 1241 252 #define ID_WIMI_DATABASE_TREEVIEW 1242 253 #define ID_WIMI_DATABASE_DETAILSVIEW 1243 250 #define ID_WIM_DATABASE_LEFT_WHTSPACE 1240 251 #define ID_WIM_DATABASE_RIGHT_WHTSPACE 1241 252 #define ID_WIM_DATABASE_VIEW 1242 253 #define ID_WIMI_DATABASE_TREEVIEW 1243 254 #define ID_WIMI_DATABASE_DETAILSVIEW 1244 254 255 255 256 // string IDs -
TabularUnified trunk/include/helpers/prfh.h ¶
r107 r129 3 3 4 4 /* 5 *@@sourcefile winh.h:5 *@@sourcefile prfh.h: 6 6 * header file for prfh.c. See remarks there. 7 7 * … … 39 39 /* common error codes used by the prfh* functions */ 40 40 41 #define PRFERR_DATASIZE 1 // couldn't query data size for key 42 #define PRFERR_MEMORY 2 // couldn't allocate memory 43 #define PRFERR_READ 3 // couldn't read data from source (PrfQueryProfileData error) 44 #define PRFERR_WRITE 4 // couldn't write data to target (PrfWriteProfileData error) 45 #define PRFERR_KEYSLIST 5 // couldn't query keys list 41 #define PRFERR_DATASIZE 10001 // couldn't query data size for key 42 #define PRFERR_READ 10003 // couldn't read data from source (PrfQueryProfileData error) 43 #define PRFERR_WRITE 10004 // couldn't write data to target (PrfWriteProfileData error) 44 #define PRFERR_APPSLIST 10005 // couldn't query apps list 45 #define PRFERR_KEYSLIST 10006 // couldn't query keys list 46 #define PRFERR_ABORTED 10007 // aborted by user 47 #define PRFERR_QUERY 10007 // PrfQueryProfile failed 48 #define PRFERR_INVALID_FILE_NAME 10008 // profile names don't contain .INI 46 49 47 50 PSZ prfhQueryKeysForApp(HINI hIni, … … 111 114 PSZ pszErrorKey); 112 115 116 ULONG prfhINIError(ULONG ulOptions, 117 FILE* fLog, 118 PFNWP fncbError, 119 PSZ pszErrorString); 120 121 ULONG prfhINIError2(ULONG ulOptions, 122 PSZ pszINI, 123 FILE* fLog, 124 PFNWP fncbError, 125 PSZ pszErrorString); 126 113 127 BOOL prfhCopyProfile(HAB hab, 114 128 FILE* fLog, -
TabularUnified trunk/include/helpers/wphandle.h ¶
r121 r129 50 50 51 51 /* 52 * forward declarations 53 * 54 */ 52 * Two structures needed for finding 53 * a filename based on a object handle 54 * (OS2SYS.INI). These are only needed 55 * to parse the BLOCK data manually. 56 */ 57 58 #pragma pack(1) 59 60 typedef struct _NodeDev 61 { 62 BYTE chName[4]; // = 'NODE' 63 USHORT usLevel; // always == 1 64 USHORT usHandle; // object handle of this NODE 65 USHORT usParentHandle; // object handle of parent NODE 66 BYTE ch[20]; 67 USHORT usNameSize; // size of non-qualified filename 68 BYTE szName[1]; // variable length: non-qualified filename 69 // (zero-terminated) 70 } NODE, *PNODE; 71 72 typedef struct _DrivDev 73 { 74 BYTE chName[4]; // = 'DRIV' 75 USHORT usUnknown1[4]; 76 // or BYTE ch1[8], if you prefer 77 ULONG ulSerialNr; 78 USHORT usUnknown2[2]; 79 // or BYTE ch2[4], if you prefer 80 BYTE szName[1]; 81 } DRIV, *PDRIV; 82 83 /* 84 * prototypes 85 * 86 */ 87 88 BOOL wphQueryActiveHandles(HINI hIniSystem, 89 PSZ pszHandlesAppName, 90 USHORT usMax); 91 92 BOOL wphReadAllBlocks(HINI hiniSystem, 93 PSZ pszActiveHandles, 94 PBYTE* ppBlock, 95 PULONG pulSize); 55 96 56 97 HOBJECT wphQueryHandleFromPath(HINI hIniUser, 57 98 HINI hIniSystem, 58 99 PSZ pszName); 100 101 PNODE wphFindPartName(PBYTE pHandlesBuffer, 102 ULONG ulBufSize, 103 USHORT usHandle, 104 PSZ pszFname, 105 USHORT usMax); 59 106 60 107 BOOL wphQueryPathFromHandle(HINI hIniSystem, … … 235 282 // WPDisk?!? 236 283 #define IDKEY_DRIVENUM 1 237 238 /*239 * Two structures needed for finding240 * a filename based on a object handle241 * (OS2SYS.INI). These are only needed242 * to parse the BLOCK data manually.243 */244 245 #pragma pack(1)246 247 typedef struct _NodeDev248 {249 BYTE chName[4]; // = 'NODE'250 USHORT usLevel; // always == 1251 USHORT usHandle; // object handle of this NODE252 USHORT usParentHandle; // object handle of parent NODE253 BYTE ch[20];254 USHORT usNameSize; // size of non-qualified filename255 BYTE szName[1]; // variable length: non-qualified filename256 // (zero-terminated)257 } NODE, *PNODE;258 259 typedef struct _DrivDev260 {261 BYTE chName[4]; // = 'DRIV'262 USHORT usUnknown1[4];263 // or BYTE ch1[8], if you prefer264 ULONG ulSerialNr;265 USHORT usUnknown2[2];266 // or BYTE ch2[4], if you prefer267 BYTE szName[1];268 } DRIV, *PDRIV;269 284 270 285 /* -
TabularUnified trunk/setup.in ¶
r121 r129 204 204 # /gi+: fast integer execution 205 205 # /Gl+: remove unreferenced functions (when comp.+link in 1 step) 206 # /Gx+: remove C++ exception handling information 206 207 # /gm+: multithread libraries 207 208 # /kc+: produce preprocessor warnings -
TabularUnified trunk/src/frontend/gui_db.cpp ¶
r121 r129 111 111 G_hwndDBSplitMain = NULLHANDLE; // split window for linking 112 112 113 // context menus 114 HWND G_hmenuPckWhitespace = NULLHANDLE, 115 G_hmenuPckApplication = NULLHANDLE, 116 G_hmenuPckPackage = NULLHANDLE, 117 G_hmenuFilesWhitespace = NULLHANDLE; 118 113 119 // currently selected database record (fnwpDBPackagesDlg) 114 120 PDATABASERECORD G_preccDBSelected = NULL; // (99-10-25) [umoeller] 115 121 116 122 // source record core for context menus 117 PDATABASERECORD G_preccDBSource = NULL; 123 PDATABASERECORD G_preccLeftSource = NULL; 124 PFILERECORDCORE G_preccRightSource = NULL; 118 125 119 126 // list of all record cores for applications (tree view only) … … 259 266 260 267 /* 261 *@@ CheckMenuItems: 262 * checks the items in the "view" pulldown 263 * according to the current view settings. 264 * 265 *@@added V0.9.2 (2000-02-19) [umoeller] 268 *@@ CheckLeftViewMenuItems: 269 * checks the view items for the left view 270 * (tree or details) in the given menu. 271 * 272 * This can either be the "View" pulldown or 273 * a context menu. 274 * 275 *@@added V0.9.5 (2000-08-10) [umoeller] 266 276 */ 267 277 268 VOID Check MenuItems()278 VOID CheckLeftViewMenuItems(HWND hmenu) 269 279 { 270 WinCheckMenuItem( G_hmenuMain,280 WinCheckMenuItem(hmenu, 271 281 ID_WIMI_DATABASE_TREEVIEW, 272 282 G_GuiSettings.ulLeftView == ID_WIMI_DATABASE_TREEVIEW); 273 WinCheckMenuItem( G_hmenuMain,283 WinCheckMenuItem(hmenu, 274 284 ID_WIMI_DATABASE_DETAILSVIEW, 275 285 G_GuiSettings.ulLeftView != ID_WIMI_DATABASE_TREEVIEW); 276 277 WinCheckMenuItem(G_hmenuMain, 286 } 287 288 /* 289 *@@ CheckRightViewMenuItems: 290 * checks the view items for the right view 291 * (files or config) in the given menu. 292 * 293 * This can either be the "View" pulldown or 294 * a context menu. 295 * 296 *@@added V0.9.5 (2000-08-10) [umoeller] 297 */ 298 299 VOID CheckRightViewMenuItems(HWND hmenu) 300 { 301 WinCheckMenuItem(hmenu, 278 302 ID_WIMI_VIEW_FILES, 279 303 G_GuiSettings.ulRightView == ID_WIMI_VIEW_FILES); 280 WinCheckMenuItem( G_hmenuMain,304 WinCheckMenuItem(hmenu, 281 305 ID_WIMI_VIEW_CONFIG, 282 306 G_GuiSettings.ulRightView != ID_WIMI_VIEW_FILES); … … 1020 1044 *@@changed V0.9.2 (2000-03-10) [umoeller]: added keyboard focus support 1021 1045 *@@changed V0.9.4 (2000-06-30) [umoeller]: right split view was empty initially 1046 *@@changed V0.9.5 (2000-08-10) [umoeller]: F1 displays help now 1022 1047 */ 1023 1048 … … 1283 1308 case CN_CONTEXTMENU: 1284 1309 { 1285 USHORT usMenuID = 0;1286 1287 G_precc DBSource = (PDATABASERECORD)mp2;1288 if (G_precc DBSource)1310 HWND hPopupMenu = NULLHANDLE; 1311 1312 G_preccLeftSource = (PDATABASERECORD)mp2; 1313 if (G_preccLeftSource) 1289 1314 { 1290 1315 // on context record: 1291 if (G_precc DBSource->pPckInfo)1316 if (G_preccLeftSource->pPckInfo) 1292 1317 // on package: 1293 usMenuID = ID_WIM_DATABASE_PACKAGE;1318 hPopupMenu = G_hmenuPckPackage; 1294 1319 else 1295 1320 // on application: 1296 usMenuID = ID_WIM_DATABASE_APP;1321 hPopupMenu = G_hmenuPckApplication; 1297 1322 } 1298 1323 else 1324 { 1299 1325 // cnr whitespace: 1300 usMenuID = ID_WIM_DATABASE_WHITESPACE; 1301 1302 HWND hPopupMenu = WinLoadMenu(hwndDlg, 1303 NULL, // our EXE 1304 usMenuID); 1305 1306 WinCheckMenuItem(hPopupMenu, 1307 G_GuiSettings.ulLeftView, 1308 TRUE); 1326 hPopupMenu = G_hmenuPckWhitespace; 1327 CheckLeftViewMenuItems(hPopupMenu); 1328 } 1309 1329 1310 1330 cnrhShowContextMenu(WinWindowFromID(hwndDlg, usID), 1311 (PRECORDCORE)G_precc DBSource,1331 (PRECORDCORE)G_preccLeftSource, 1312 1332 hPopupMenu, 1313 1333 hwndDlg); 1314 1334 break; } 1335 1336 case CN_HELP: 1337 gshrDisplayHelp(IDHI_DATABASE); 1338 break; 1315 1339 1316 1340 } // end switch (usNotifyCode) … … 1329 1353 case WM_MENUEND: 1330 1354 cnrhSetSourceEmphasis(WinWindowFromID(hwndDlg, ID_WIDI_CNR), 1331 G_precc DBSource,1355 G_preccLeftSource, 1332 1356 FALSE); 1333 1357 break; … … 1379 1403 // and application by building a comparison 1380 1404 // string 1381 PSZ pszAuthorAndApp = (PSZ)malloc(strlen(G_precc DBSource->pszAuthor)1382 + strlen(G_precc DBSource->pszApplication)1405 PSZ pszAuthorAndApp = (PSZ)malloc(strlen(G_preccLeftSource->pszAuthor) 1406 + strlen(G_preccLeftSource->pszApplication) 1383 1407 + 3); 1384 1408 sprintf(pszAuthorAndApp, 1385 1409 "%s\\%s\\", 1386 G_precc DBSource->pszAuthor,1387 G_precc DBSource->pszApplication);1410 G_preccLeftSource->pszAuthor, 1411 G_preccLeftSource->pszApplication); 1388 1412 ULONG cbAuthorAndApp = strlen(pszAuthorAndApp); 1389 1413 list<FEDBPackage*>::iterator PckStart = G_pDatabase->DBPackagesList.begin(), … … 1405 1429 case ID_WIMI_DATABASE_VERIFYPCK: 1406 1430 // just store the package info of the current recc 1407 PckInfoList.push_back(G_precc DBSource->pPckInfo);1431 PckInfoList.push_back(G_preccLeftSource->pPckInfo); 1408 1432 } // end switch (ulCmd) 1409 1433 … … 1444 1468 122, 1445 1469 MB_ICONQUESTION | MB_YESNO | MB_MOVEABLE, 1446 &(G_precc DBSource->recc.pszIcon), 1)1470 &(G_preccLeftSource->recc.pszIcon), 1) 1447 1471 == MBID_YES) 1448 G_pDatabase->RemovePackage(G_precc DBSource->pPckInfo);1472 G_pDatabase->RemovePackage(G_preccLeftSource->pPckInfo); 1449 1473 // this will call guiDatabaseCallback 1450 1474 break; … … 1464 1488 ulCmd); 1465 1489 gshrSaveSettings(); 1466 Check MenuItems();1490 CheckLeftViewMenuItems(G_hmenuMain); 1467 1491 } 1468 1492 break; … … 1571 1595 *@@changed V0.9.2 (2000-02-19) [umoeller]: added right view support 1572 1596 *@@changed V0.9.2 (2000-03-10) [umoeller]: added keyboard focus support 1597 *@@changed V0.9.5 (2000-08-10) [umoeller]: added context menu for right view 1598 *@@changed V0.9.5 (2000-08-10) [umoeller]: F1 displays help now 1573 1599 */ 1574 1600 … … 1639 1665 WinPostMsg(WinQueryWindow(hwndDlg, QW_OWNER), 1640 1666 msg, mp1, mp2); 1667 break; 1668 1669 /* 1670 * WM_CONTROL: 1671 * 1672 */ 1673 1674 case WM_CONTROL: 1675 { 1676 USHORT usID = SHORT1FROMMP(mp1); 1677 USHORT usNotifyCode = SHORT2FROMMP(mp1); 1678 switch (usID) 1679 { 1680 case ID_WIDI_CNR: 1681 switch (usNotifyCode) 1682 { 1683 /* 1684 * CN_CONTEXTMENU: 1685 * context menu requested for item; 1686 * mp2 has record core or NULL for 1687 * whitespace 1688 */ 1689 1690 case CN_CONTEXTMENU: 1691 { 1692 HWND hPopupMenu = NULLHANDLE; 1693 G_preccRightSource = (PFILERECORDCORE)mp2; 1694 if (G_preccRightSource) 1695 { 1696 /* // on context record: 1697 if (G_preccDBSource->pPckInfo) 1698 // on package: 1699 hPopupMenu = G_hmenuPckPackage; 1700 else 1701 // on application: 1702 hPopupMenu = G_hmenuPckApplication; 1703 */ 1704 } 1705 else 1706 { 1707 // cnr whitespace: 1708 hPopupMenu = G_hmenuFilesWhitespace; 1709 CheckRightViewMenuItems(hPopupMenu); 1710 } 1711 1712 if (hPopupMenu) 1713 cnrhShowContextMenu(WinWindowFromID(hwndDlg, usID), 1714 (PRECORDCORE)G_preccRightSource, 1715 hPopupMenu, 1716 hwndDlg); 1717 break; } 1718 1719 case CN_HELP: 1720 gshrDisplayHelp(IDHI_DATABASE); 1721 break; 1722 1723 } // end switch (usNotifyCode) 1724 1725 break; // case ID_WIDI_CNR 1726 } 1727 break; } 1728 1729 /* 1730 * WM_MENUEND: 1731 * if the context menu is dismissed, we'll need 1732 * to remove the cnr source emphasis which was 1733 * set above when showing the context menu. 1734 */ 1735 1736 case WM_MENUEND: 1737 cnrhSetSourceEmphasis(WinWindowFromID(hwndDlg, ID_WIDI_CNR), 1738 G_preccRightSource, 1739 FALSE); 1641 1740 break; 1642 1741 … … 1656 1755 UpdateListCnr(G_preccDBSelected); 1657 1756 gshrSaveSettings(); 1658 Check MenuItems();1757 CheckRightViewMenuItems(G_hmenuMain); 1659 1758 } 1660 1759 } … … 2006 2105 G_hptrMain); 2007 2106 2008 // load m enu2107 // load main menu 2009 2108 G_hmenuMain = WinLoadMenu(G_hwndMain, NULLHANDLE, ID_WIM_MAINMENU); 2010 2109 // remove "Selections" menu (99-11-01) [umoeller] … … 2014 2113 0); 2015 2114 WinSendMsg(G_hwndMain, WM_UPDATEFRAME, (MPARAM)FCF_MENU, 0); 2016 CheckMenuItems(); 2115 CheckLeftViewMenuItems(G_hmenuMain); 2116 CheckRightViewMenuItems(G_hmenuMain); 2117 2118 // load context menus 2119 G_hmenuPckWhitespace = WinLoadMenu(HWND_OBJECT, 2120 NULL, // our EXE 2121 ID_WIM_DATABASE_LEFT_WHTSPACE); 2122 G_hmenuPckApplication = WinLoadMenu(HWND_OBJECT, 2123 NULL, // our EXE 2124 ID_WIM_DATABASE_APP); 2125 G_hmenuPckPackage = WinLoadMenu(HWND_OBJECT, 2126 NULL, // our EXE 2127 ID_WIM_DATABASE_PACKAGE); 2128 G_hmenuFilesWhitespace = WinLoadMenu(HWND_OBJECT, 2129 NULL, // our EXE 2130 ID_WIM_DATABASE_RIGHT_WHTSPACE); 2017 2131 2018 2132 // now position the frame and the client: … … 2098 2212 } 2099 2213 else 2100 G_precc DBSource->hwndStatus = hwndDlg;2214 G_preccLeftSource->hwndStatus = hwndDlg; 2101 2215 2102 2216 return (TRUE); … … 2194 2308 } 2195 2309 else 2196 G_precc DBSource->hwndStatus = hwndDlg;2310 G_preccLeftSource->hwndStatus = hwndDlg; 2197 2311 2198 2312 brc = TRUE; -
TabularUnified trunk/src/frontend/wpirtl_base.def ¶
r121 r129 1 1 ; 2 2 ; wpirtl.def: 3 ; wpirtl_base.def: 3 4 ; module definition file for XWPRTL.DLL, the WarpIN 4 5 ; runtime DLL. 6 ; 7 ; wpirtl_base.def is the source. wpirtl.def is copied 8 ; automatically from wpirtl_base.def plus more def's 9 ; by the makefiles. See remarks below. So edit 10 ; wpirtl_base.def only, or your changes get lost. 5 11 ; 6 12 ; XWPRTL.DLL contains the following: -
TabularUnified trunk/src/wicpm/wicpm.cpp ¶
r121 r129 1 1 2 /* 2 3 * WicPM - WarpIN Archive Creator for PM
Note:
See TracChangeset
for help on using the changeset viewer.