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

  1.  
  2. # This file was generated by the SOM Compiler.
  3. # FileName: penobj.sc.
  4. # Generated using:
  5. #     SOM Precompiler spc: 1.22
  6. #     SOM Emitter emitcsc: 1.10
  7.  
  8. /*
  9.  *  SCC: @(#) 42 12/4/92 16:37:08 1.1 @(#)
  10.  *  Module Header
  11.  * 
  12.  *  Module Name: PENOBJ
  13.  * 
  14.  *  OS/2 Presentation Manager Workplace class definitions
  15.  * 
  16.  *  Copyright (c) International Business Machines Corporation 1992
  17.  * 
  18.  */
  19.  
  20. #include "wpobject.sc"
  21.  
  22. class: PenObject, 
  23.     external stem = Penobj, local, external prefix = pob_, 
  24.     classprefix = pobM_, major version = 1, minor version = 2, 
  25.     file stem = penobj;
  26.  
  27.     -- 
  28.     --  CLASS: PenObject
  29.     -- 
  30.     --  CLASS HIERARCHY:
  31.     --     SOMObject
  32.     --       ¡¡¡ WPObject
  33.     --             ¡¡¡ PenObject
  34.     -- 
  35.     --  DESCRIPTION:
  36.     --     This is the replacement class for the WPObject class.  It provides
  37.     --     the instance data and methods needed to support the OS/2 Pen
  38.     --     extensions.
  39.     -- 
  40.     --     An instance of this class cannot be created as a Workplace object.
  41.     -- 
  42.     --     This class first subclasses the WPObject class and then replaces
  43.     --     it's parent class.
  44.     -- 
  45.  
  46.  
  47. parent class: WPObject;
  48.  
  49.  
  50. release order:
  51.     penAddObjectEventPage, penAddObjectOverridesPage, penAddObjectOverrides2Page, 
  52.     penInvokeGestureHelp, penNotifyChangeofSystemMappings;
  53.  
  54. methods:
  55.  
  56.  
  57.     ULONG    penAddObjectOverrides2Page(HWND hwndNotebook);
  58.  
  59.     -- 
  60.     --  METHOD: penAddObjectOverrides2Page                       (X) PRIVATE
  61.     --                                                         ( ) PUBLIC
  62.     --  PURPOSE:
  63.     --    Add an Overrides page to allow the user to override Pen system
  64.     --    variables.
  65.     -- 
  66.  
  67.     ULONG    penInvokeGestureHelp(), name lookup;
  68.  
  69.     -- 
  70.     --  METHOD: penInvokeGestureHelp                           ( ) PRIVATE
  71.     --                                                         (X) PUBLIC
  72.     --  PURPOSE:
  73.     --    Opens settings notebook of particular object to the Gesture
  74.     --    page.
  75.     -- 
  76.  
  77.     ULONG    penAddObjectEventPage(HWND hwndNotebook,
  78.         PVOID pMappingInfo), name lookup;
  79.  
  80.     -- 
  81.     --  METHOD: penAddObjectEventPage                          ( ) PRIVATE
  82.     --                                                         (X) PUBLIC
  83.     --  PURPOSE:
  84.     --    Add the recognition event page to all workplace objects that
  85.     --    are of one of the predefined types.
  86.     -- 
  87.  
  88.     ULONG    penAddObjectOverridesPage(HWND hwndNotebook);
  89.  
  90.     -- 
  91.     --  METHOD: penAddObjectOverridesPage                       (X) PRIVATE
  92.     --                                                         ( ) PUBLIC
  93.     --  PURPOSE:
  94.     --    Add an Overrides page to allow the user to override Pen system
  95.     --    variables.
  96.     -- 
  97.  
  98.     override wpAddSettingsPages;
  99.  
  100.     -- 
  101.     --  METHOD: wpAddSettingsPages                             ( ) PRIVATE
  102.     --                                                         (X) PUBLIC
  103.     --  PURPOSE:
  104.     --    Add our own settings page to give the user access to the recognition
  105.     --    profile editor so that the recognition profile mappings for this
  106.     --    object may be changed.
  107.     -- 
  108.  
  109.     override wpInitData;
  110.  
  111.     -- 
  112.     --  REMARKS:
  113.     --    Initialize the recognition profile name instance data for
  114.     --    this object.
  115.     -- 
  116.  
  117.     override wpUnInitData;
  118.  
  119.     -- 
  120.     --  REMARKS:
  121.     --    Release any resources that get allocated during the wpInitData
  122.     --    processing.
  123.     -- 
  124.  
  125.     override wpCreateAnother;
  126.  
  127.     -- 
  128.     --  REMARKS:
  129.     --    Setup PenObject information on Create another....
  130.     -- 
  131.  
  132.     override wpRestoreState;
  133.  
  134.     -- 
  135.     --  REMARKS:
  136.     --    Retreive the recognition profile name for this object instance
  137.     --    and set the instance variable for this parameter.
  138.     -- 
  139.  
  140.     override wpSaveState;
  141.  
  142.     -- 
  143.     --  REMARKS:
  144.     --    Save the instance variable value.
  145.     -- 
  146.  
  147.     override wpFree;
  148.  
  149.     -- 
  150.     --  REMARKS:
  151.     --    Need to free any pen specific information associated with this
  152.     --    Program or ProgramFile Object.
  153.     -- 
  154.  
  155.     override wpAddObjectWindowPage;
  156.  
  157.     -- 
  158.     --  REMARKS:
  159.     --    Override this method so we can assure that it only adds the page once.
  160.     --    We use a state variable to track this. (fObjectWindowPageAdded)
  161.     -- 
  162.  
  163.     override wpAddObjectGeneralPage;
  164.  
  165.     -- 
  166.     --  REMARKS:
  167.     --    Override this method so we can assure that it only adds the page once.
  168.     --    We use a state variable to track this. (fObjectGeneralPageAdded)
  169.     -- 
  170.  
  171.     override wpclsQueryIcon, class;
  172.  
  173.     -- From WPObject
  174.  
  175.