home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: SysTools / SysTools.zip / taman002.zip / TASKMANA.ZIP / src / kModuleContainer.h < prev    next >
C/C++ Source or Header  |  2000-04-29  |  2KB  |  56 lines

  1. /* $Id: kModuleContainer.h,v 1.1 2000/04/29 19:06:35 stknut Exp $
  2.  *
  3.  * kModuleContainer - generic module container.
  4.  *
  5.  * Copyright (c) 2000 knut st. osmundsen (knut.stange.osmundsen@pmsc.no)
  6.  *
  7.  */
  8. #ifndef _kModuleContainer_h_
  9. #define _kModuleContainer_h_
  10.  
  11.  
  12.  
  13.  
  14. /**
  15.  * Generic module container.
  16.  * @author      knut st. osmundsen (knut.stange.osmundsen@pmsc.no)
  17.  */
  18. class kModuleContainer : public kDetailCnr
  19. {
  20. private:
  21.     /** @cat private data */
  22.     USHORT              hMTE;           /* 0xFFFF: all, < 0xFFFF: dependant/imported modules. */
  23.     kMenuBase *         pMenuModule;    /* Pointer to record menu. */
  24.     kMenuBase *         pMenuCnrAll;    /* Pointer to container menu. */
  25.     kModuleRecord *     pCurRecord;     /* Pointer to the current record actual for menu action. */
  26.     USHORT              usSortId;       /* MenuId of the currently selected sorting menu choice. */
  27.  
  28.     /** @cat private methods */
  29.     BOOL    kInsertAllModules();
  30.     BOOL    kInsertImpModules();
  31.  
  32.     /** @cat private events */
  33.     VOID    menuEnd(USHORT usMenuId, HWND hwndMnu); //WM_MENUEND
  34.     VOID    command(USHORT usCmd, USHORT usSource, BOOL fPointer); //WM_COMMAND
  35.  
  36.     SHORT   sortCallBack(kCnrMiniRecord *pRecord1, kCnrMiniRecord *pRecord2);
  37.  
  38. public:
  39.     /**
  40.      * hMTE = 0xFFFF: View all modules
  41.      * hMTE < 0xFFFF: View dependants of this module
  42.      */
  43.     kModuleContainer(HWND hwndDlg, ULONG ulCnrId, USHORT hMTE = 0xFFFF) throw (kError);
  44.     ~kModuleContainer();
  45.  
  46.     /** @cat events which sorrily have to be invoked from the outside... */
  47.     VOID  cnrContextMenu(USHORT usId, PRECORDCORE pRecord);
  48.     VOID  cnrEnter(USHORT usId, HWND hwndCnr, PRECORDCORE pRecord, ULONG fKey);
  49.  
  50.     VOID  update();
  51. };
  52.  
  53.  
  54. #endif
  55.  
  56.