home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / pentlk11.zip / PENBTNDV.SC < prev    next >
Text File  |  1994-01-13  |  4KB  |  174 lines

  1.  
  2. # This file was generated by the SOM Compiler.
  3. # FileName: penbtndv.sc.
  4. # Generated using:
  5. #     SOM Precompiler spc: 1.22
  6. #     SOM Emitter emitcsc: 1.10
  7.  
  8. /*
  9.  *  SCC: @(#) 71 4/12/93 12:02:47 1.3 @(#)
  10.  *  Module Header
  11.  * 
  12.  *  Module Name: PENBTNDV
  13.  * 
  14.  *  OS/2 Presentation Manager Workplace class definitions
  15.  * 
  16.  *  Copyright (c) International Business Machines Corporation 1992
  17.  * 
  18.  */
  19.  
  20. #include "wpabs.sc"
  21.  
  22. class: PenButtonDevice, 
  23.     external stem = Penbtn, local, external prefix = btn_, 
  24.     classprefix = btnM_, major version = 1, minor version = 1, 
  25.     file stem = penbtndv;
  26.  
  27.     -- 
  28.     --  CLASS: PenButtonDevice
  29.     -- 
  30.     --  CLASS HIERARCHY:
  31.     --     SOMObject
  32.     --       └── WPObject
  33.     --             └── WPAbstract
  34.     --                   └── PenButtonDevice
  35.     -- 
  36.     --  DESCRIPTION:
  37.     --     This is the Pen Button Device support class
  38.     -- 
  39.  
  40.  
  41. parent class: WPAbstract;
  42.  
  43.  
  44. release order:
  45.     penAddButtonsMappingsPage, penQueryButtonData, penSetButtonData, 
  46.     penQueryDriverName, penQueryDeviceName, penQueryButtonDeviceName, 
  47.     penQueryBarrelCount, penSetDriverName, penSetDeviceName, 
  48.     penSetButtonDeviceName, penSetBarrelCount, penclsQueryButtonData;
  49.  
  50.  
  51. passthru: C.h, after;
  52.  
  53.    #define MAXBUTTONNAME        20
  54.  
  55.    typedef struct _PENEVENTDATA
  56.    {
  57.         PVOID   pReserved1;
  58.         HMODULE hModule;
  59.         ULONG   ulResourceId;
  60.         CHAR    pszName[MAXBUTTONNAME];
  61.    } PENEVENTDATA, *PPENEVENTDATA;
  62.  
  63. endpassthru;
  64. methods:
  65.  
  66.  
  67.     ULONG    penAddButtonsMappingsPage(HWND hwndNotebook);
  68.  
  69.     -- 
  70.     --  METHOD: penAddButtonsMappingsPage                       ( ) PRIVATE
  71.     --                                                          (X) PUBLIC
  72.     --  PURPOSE:
  73.     --    Add the Buttons Mapping configuration page to the buttons settings
  74.     --    notebook
  75.     -- 
  76.  
  77.     ULONG    penQueryButtonData(PPENEVENTDATA pPenEventData);
  78.  
  79.     -- 
  80.     --  METHOD: penQueryButtonData                              ( ) PRIVATE
  81.     --                                                          (X) PUBLIC
  82.     --  PURPOSE:
  83.     --    The penQueryButtonData method is called to allow the instance
  84.     --    to query its default button bitmaps to be used on the buttons page.
  85.     -- 
  86.  
  87.     BOOL    penSetButtonData(PPENEVENTDATA pPenEventData);
  88.  
  89.     -- 
  90.     --  METHOD: penSetButtonData                                ( ) PRIVATE
  91.     --                                                          (X) PUBLIC
  92.     --  PURPOSE:
  93.     --    The penSetButtonData method is called to allow the instance
  94.     --    to set its default button bitmaps to be used on the buttons page.
  95.     -- 
  96.  
  97.     ULONG    penclsQueryButtonData(PPENEVENTDATA pPenEventData), class;
  98.  
  99.     -- 
  100.     --  METHOD: penclsQueryButtonData                           ( ) PRIVATE
  101.     --                                                          (X) PUBLIC
  102.     --  PURPOSE:
  103.     --    The penclsQueryButtonData method is called to allow the class object
  104.     --    to specify the default button bitmaps to be used on the buttons page
  105.     --    for its instances.
  106.     -- 
  107.  
  108.     override wpAddSettingsPages;
  109.  
  110.     -- 
  111.     --  METHOD: wpAddSettingsPages                             ( ) PRIVATE
  112.     --                                                         (X) PUBLIC
  113.     --  PURPOSE:
  114.     --    Add our own settings page to let the user change the backlight
  115.     --    timeout.
  116.     -- 
  117.  
  118.     override wpSetup;
  119.  
  120.     -- 
  121.     --  REMARKS:
  122.     -- 
  123.  
  124.     override wpSaveState;
  125.  
  126.     -- 
  127.     --  REMARKS:
  128.     --     Save the instance variable values.
  129.     -- 
  130.     -- 
  131.  
  132.     override wpRestoreState;
  133.  
  134.     -- 
  135.     --  REMARKS:
  136.     --     Retreive the device driver name and the device name for this
  137.     --     object instance and set the instance variables for these parameters.
  138.     -- 
  139.     -- 
  140.  
  141.     override wpInitData;
  142.  
  143.     -- 
  144.     --  REMARKS:
  145.     --     Initialize the button link list and the button command link list
  146.     -- 
  147.     -- 
  148.  
  149.     override wpUnInitData;
  150.  
  151.     -- 
  152.     --  REMARKS:
  153.     --     Releases the button link list and the button command link list
  154.     --     memory
  155.     -- 
  156.     -- 
  157.  
  158.     override wpclsInitData, class;
  159.  
  160.     -- 
  161.     --  REMARKS:
  162.     --     Initialize the command list
  163.     -- 
  164.     -- 
  165.  
  166.     override wpclsNew, class;
  167.  
  168.     -- 
  169.     --  REMARKS:
  170.     --     Lock any instances that are created
  171.     -- 
  172.     -- 
  173.  
  174.