home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: WPS_PM / WPS_PM.zip / xfld085s.zip / main / menus.h < prev    next >
Text File  |  1999-02-23  |  5KB  |  131 lines

  1.  
  2. /*
  3.  * menus.h:
  4.  *      header file for menus.c.
  5.  *
  6.  *      This file is new with V0.81. The function prototypes in
  7.  *      this file used to be in common.h and have now been exported
  8.  *      to make their context more lucid.
  9.  *
  10.  *      Some declarations for menus.c are still in common.h however.
  11.  */
  12.  
  13. /*
  14.  *      Copyright (C) 1997-99 Ulrich Möller.
  15.  *      This file is part of the XFolder source package.
  16.  *      XFolder is free software; you can redistribute it and/or modify
  17.  *      it under the terms of the GNU General Public License as published
  18.  *      by the Free Software Foundation, in version 2 as it comes in the
  19.  *      "COPYING" file of the XFolder main distribution.
  20.  *      This program is distributed in the hope that it will be useful,
  21.  *      but WITHOUT ANY WARRANTY; without even the implied warranty of
  22.  *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  23.  *      GNU General Public License for more details.
  24.  */
  25.  
  26. #ifndef MENUS_HEADER_INCLUDED
  27.     #define MENUS_HEADER_INCLUDED
  28.  
  29.     BOOL mnuAppendMi2List(WPObject *pObject, USHORT usObjType);
  30.  
  31.     VOID mnuAppendFldr2ContentList(WPFolder *pFolder, SHORT sMenuId);
  32.  
  33.     ULONG mnuInsertOneObjectMenuItem(HWND       hAddToMenu,
  34.                         USHORT     iPosition,
  35.                         PSZ        pszNewItemString,
  36.                         USHORT     afStyle,
  37.                         WPObject   *pObject,
  38.                         ULONG      usObjType);
  39.  
  40.     #ifdef SOM_XFolder_h
  41.         SHORT mnuPrepareContentSubmenu(XFolder *somSelf, HWND hwndMenu, PSZ pszTitle,
  42.                         USHORT iPosition, BOOL fOwnerDraw);
  43.  
  44.         SHORT EXPENTRY fncbSortContentMenuItems(PVOID pItem1, PVOID pItem2, PVOID hab);
  45.  
  46.         VOID mnuFillContentSubmenu(SHORT sMenuId,
  47.                                     HWND hwndMenu,
  48.                                     PFNWP *ppfnwpFolderContentOriginal);
  49.  
  50.         LONG mnuFillMenuWithObjects(WPObject      *somSelf,
  51.                                 WPFolder   *pFolder,
  52.                                 HWND       hAddToMenu,
  53.                                 HWND       hwndCnr);
  54.  
  55.         VOID mnuCheckDefaultSortItem(PGLOBALSETTINGS pGlobalSettings,
  56.                                     HWND hwndSortMenu,
  57.                                     ULONG ulDefaultSort);
  58.     #endif
  59.  
  60.     #ifdef SOM_XFolder_ih
  61.  
  62.         VOID mnuModifySortMenu(HWND hwndMenu,               // parent of "Sort" menu
  63.                         XFolderData *somThis,               // XFolderGetData
  64.                         PGLOBALSETTINGS pGlobalSettings,    // cmnQueryGlobalSettings
  65.                         PNLSSTRINGS pNLSStrings);           // cmnQueryNLSStrings
  66.     #endif
  67.  
  68.     #ifdef SOM_XFolder_h
  69.  
  70.         BOOL mnuInsertFldrViewItems(XFolder *somSelf,       // in: folder w/ context menu
  71.                                     HWND hwndViewSubmenu,   // in: submenu to add items to
  72.                                     BOOL fInsertNewMenu,    // in: insert "View" into hwndViewSubmenu
  73.                                     HWND hwndCnr,           // in: cnr hwnd passed to
  74.                                                             //     mnuModifyPopupMenu
  75.                                     PCNRINFO pCnrInfo);     // in: shortcut to CNRINFO struct
  76.  
  77.         BOOL mnuModifyPopupMenu(XFolder *somSelf, HWND hwndMenu, HWND hwndCnr, ULONG iPosition);
  78.     #endif
  79.  
  80.     WPObject* mnuQuerySelectedObject(WPFolder *somSelf,
  81.                                      HWND hwndCnr,
  82.                                      PULONG pulSelection);
  83.  
  84.     WPObject* mnuQueryNextSelectedObject(HWND hwndCnr, WPObject *pObject);
  85.  
  86.     #ifdef SOM_WPProgram_h
  87.         BOOL mnuProgramObjectSelected(WPObject *somSelf, WPProgram *pProgram);
  88.     #endif
  89.  
  90.     #ifdef SOM_XFolder_h
  91.         BOOL mnuIsSortMenuItemSelected(XFolder* somSelf,
  92.                             HWND hwndFrame,
  93.                             HWND hwndMenu,
  94.                             ULONG ulMenuId,
  95.                             PGLOBALSETTINGS pGlobalSettings,
  96.                             PBOOL pbDismiss);
  97.  
  98.         BOOL mnuMenuItemSelected(XFolder *somSelf, HWND hwndFrame, ULONG ulMenuId);
  99.     #endif
  100.  
  101.     BOOL mnuMenuItemHelpSelected(WPObject *somSelf, ULONG MenuId);
  102.  
  103.     #ifdef SOM_XFolder_h
  104.  
  105.         BOOL mnuFileSystemSelectingMenuItem(WPObject *somSelf,
  106.                                          USHORT usItem,
  107.                                          BOOL fPostCommand,
  108.                                          HWND hwndMenu,
  109.                                          HWND hwndCnr,
  110.                                          ULONG ulSelection,
  111.                                          BOOL *pfDismiss);
  112.  
  113.         BOOL mnuFolderSelectingMenuItem(WPFolder *somSelf,
  114.                                          USHORT usItem,
  115.                                          BOOL fPostCommand,
  116.                                          HWND hwndMenu,
  117.                                          HWND hwndCnr,
  118.                                          ULONG ulSelection,
  119.                                          BOOL *pfDismiss);
  120.     #endif
  121.  
  122.     VOID mnuPrepareOwnerDraw(MPARAM mp1, MPARAM mp2);
  123.  
  124.     MRESULT mnuMeasureItem(POWNERITEM poi,
  125.                             PGLOBALSETTINGS pGlobalSettings);
  126.  
  127.     BOOL mnuDrawItem(PGLOBALSETTINGS pGlobalSettings,
  128.                         MPARAM mp1, MPARAM mp2);
  129.  
  130. #endif
  131.