home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / wpentk.zip / WBPENTK2.DSK / PENBTNDV.SC < prev    next >
Text File  |  1994-10-07  |  4KB  |  177 lines

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