home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / wpobj.zip / CLRSTAR.CSC < prev    next >
Text File  |  1993-10-13  |  2KB  |  67 lines

  1. /****************************************************************************\
  2.  * MODULE NAME: ClrPalet.CSC
  3.  *
  4.  * DESCRIPTION:
  5.  *   Object class definition file for StarColorPalette object class.
  6. \****************************************************************************/
  7. ## Include the class definition for the parent class
  8. ##
  9. include <clrpalet.sc>
  10.  
  11. ## Define the object class name and various attributes used by the SOM
  12. ## compiler in generating skeletons for the new methods and overrides that
  13. ## will be needed to implement this object class.
  14. ##
  15. class: StarColorPalette,
  16.        external stem   = clrs,
  17.        local,
  18.        external prefix = clrs_,
  19.        classprefix     = clrsM_,
  20.        major version   = 1,
  21.        minor version   = 2;
  22. --
  23. -- OBJECT CLASS: StarColorPalette
  24. --
  25. -- CLASS HIERARCHY:
  26. --
  27. --     SOMObject
  28. --       └── WPObject
  29. --             └── WPAbstract
  30. --                   └── WPPalette
  31. --                         └──  WPColorPalette
  32. --                                  └──  ColorPalette
  33. --                                          └──  StarColorPalette
  34. --
  35. -- DESCRIPTION:
  36. --   Illustrate a Workplace Shell palette subclass that only overrides
  37. --   one method
  38. --
  39.  
  40. ## Specify the parent class name
  41. ##
  42. parent: ColorPalette;
  43.  
  44. passthru: C.ih;
  45.  
  46. #define SOM_NoTest 1        /* Disables somTestCls on method resolution */
  47. #define _RETAIL             /* Disables xxxMethodDebug() functions */
  48.  
  49. /* Include the standard PM header files
  50.  */
  51. #define INCL_WIN
  52. #define INCL_GPI
  53. #define INCL_DOS
  54. #define INCL_WINWORKPLACE
  55. #define INCL_WPCLASS
  56. #define INCL_WPFOLDER
  57. #include <os2.h>
  58. #include <string.h>
  59.  
  60. endpassthru;   /* .ih */
  61.  
  62. methods:
  63.  
  64. ## Specify methods being overridden
  65. override QuerySampleShape;
  66.  
  67.