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

  1.  
  2. # This file was generated by the SOM Compiler.
  3. # FileName: wplocatr.sc.
  4. # Generated using:
  5. #     SOM Precompiler spc: 1.22
  6. #     SOM Emitter emitcsc: 1.10
  7.  
  8. /*
  9.  *  SCC: @(#) 47 6/2/93 17:27:58 1.12 @(#)
  10.  *  Module Header
  11.  * 
  12.  *  Module Name: WPLOCATR
  13.  * 
  14.  *  OS/2 Presentation Manager Workplace class definitions
  15.  * 
  16.  *  Copyright (c) International Business Machines Corporation 1992
  17.  * 
  18.  */
  19.  
  20. #include "penbtndv.sc"
  21.  
  22. class: PenLocator, 
  23.     external stem = WPlct, local, external prefix = lct_, 
  24.     classprefix = lctM_, major version = 1, minor version = 1, 
  25.     file stem = wplocatr;
  26.  
  27.     -- 
  28.     --  CLASS: PenLocator
  29.     -- 
  30.     --  CLASS HIERARCHY:
  31.     --     SOMObject
  32.     --       └── WPObject
  33.     --             └── WPAbstract
  34.     --                   └── PenLocator
  35.     -- 
  36.     --  DESCRIPTION:
  37.     --     This is the Locator object class.
  38.     -- 
  39.     --     An instance of this class can be created as a Workplace object.
  40.     -- 
  41.     --     An instance of this class is created initially by the system.
  42.     --     It has the title, "Locator" and resides in the "System Setup" folder.
  43.     -- 
  44.  
  45.  
  46. parent class: PenButtonDevice;
  47.  
  48.  
  49. release order:
  50.     penAddLocatorTimingPage, penclsQueryPauseId, penclsQueryPauseEnableId, 
  51.     penclsQueryDefaultPause, penclsQueryPauseEnableDefault, penQueryCalProgram, 
  52.     penSetCalProgram, penDummyPrivate, penSetCalParms, 
  53.     penQueryCalParms;
  54.  
  55. methods:
  56.  
  57.  
  58.     ULONG    penAddLocatorTimingPage(HWND hwndNotebook);
  59.  
  60.     -- 
  61.     --  METHOD: penAddLocatorTimingPage                        ( ) PRIVATE
  62.     --                                                         (X) PUBLIC
  63.     --  PURPOSE:
  64.     --    Add the timing configuration page to the locator settings
  65.     --    notebook
  66.     -- 
  67.  
  68.     BOOL    penSetCalProgram(PSZ pszName);
  69.  
  70.     -- 
  71.     --  METHOD: penSetCalProgram                             (X) PRIVATE
  72.     --                                                         ( ) PUBLIC
  73.     --  PURPOSE:
  74.     --    Set the Calibration Program Name
  75.     -- 
  76.  
  77.     PSZ    penQueryCalProgram();
  78.  
  79.     -- 
  80.     --  METHOD: penQueryCalProgram                             (X) PRIVATE
  81.     --                                                         ( ) PUBLIC
  82.     --  PURPOSE:
  83.     --    Return the Calibration Program Name
  84.  
  85.     BOOL    penSetCalParms(PSZ pszCalParms);
  86.  
  87.     -- 
  88.     --  METHOD: penSetCalParms                               (X) PRIVATE
  89.     --                                                         ( ) PUBLIC
  90.     --  PURPOSE:
  91.     --    Set the Calibration Parameters flag
  92.     -- 
  93.  
  94.     PSZ    penQueryCalParms();
  95.  
  96.     -- 
  97.     --  METHOD: penQueryCalParms                               (X) PRIVATE
  98.     --                                                         ( ) PUBLIC
  99.     --  PURPOSE:
  100.     --    Return the Calibration Parameters flag
  101.  
  102.     override wpOpen;
  103.  
  104.     -- 
  105.     --  METHOD: wpOpen                                         ( ) PRIVATE
  106.     --                                                         (X) PUBLIC
  107.     --  PURPOSE:
  108.     --    Do not open the object if there is no device support
  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 locator
  118.     --    settings.
  119.     -- 
  120.  
  121.     override wpAddObjectWindowPage;
  122.  
  123.     -- 
  124.     --  REMARKS:
  125.     --    This object doesn't get a window page because it doesn't
  126.     --    have any open views other than settings
  127.     -- 
  128.  
  129.     override wpFilterPopupMenu;
  130.  
  131.     -- 
  132.     --  REMARKS:
  133.     --    Filter out any options from the context that don't apply.
  134.     -- 
  135.     -- 
  136.  
  137.     override wpSetup;
  138.  
  139.     -- 
  140.     --  REMARKS:
  141.     --    Search the setup string for the device type and calibration
  142.     --    program keywords.  Then initialize the instance data for these
  143.     --    parameters.
  144.     -- 
  145.  
  146.     override wpInitData;
  147.  
  148.     -- 
  149.     --  REMARKS:
  150.     --    Initialize the device type and calibration program name instance
  151.     --    data for this device object.
  152.     -- 
  153.  
  154.     override wpUnInitData;
  155.  
  156.     -- 
  157.     --  REMARKS:
  158.     --    Release any resources that get allocated during the wpInitData
  159.     --    processing.
  160.     -- 
  161.  
  162.     override wpRestoreState;
  163.  
  164.     -- 
  165.     --  REMARKS:
  166.     --    Retreive the device type and calibration program name for this
  167.     --    object instance and set the instance variables for these parameters.
  168.     -- 
  169.  
  170.     override wpSaveState;
  171.  
  172.     -- 
  173.     --  REMARKS:
  174.     --    Save the instance variable values.
  175.     -- 
  176.  
  177.     override wpModifyPopupMenu;
  178.  
  179.     -- 
  180.     --  REMARKS:
  181.     --    Add the Calibrate menu item.
  182.     -- 
  183.  
  184.     override wpMenuItemSelected;
  185.  
  186.     -- 
  187.     --  REMARKS:
  188.     --    Process the Calibrate menu item.
  189.     -- 
  190.  
  191.     override wpMenuItemHelpSelected;
  192.  
  193.     -- 
  194.     --  REMARKS:
  195.     --    Process the Calibrate menu item.
  196.     -- 
  197.  
  198.     ULONG    penclsQueryDefaultPause(), class;
  199.  
  200.     -- 
  201.     --  METHOD: penclsQueryDefaultPause                        ( ) PRIVATE
  202.     --                                                         (X) PUBLIC
  203.     --  PURPOSE:
  204.     --    Return the default system setting for Pause
  205.     -- 
  206.  
  207.     ULONG    penclsQueryPauseEnableDefault(), class;
  208.  
  209.     -- 
  210.     --  METHOD: penclsQueryPauseEnableDefault                  ( ) PRIVATE
  211.     --                                                         (X) PUBLIC
  212.     --  PURPOSE:
  213.     --    Return the default system setting for Pause Enable
  214.     -- 
  215.  
  216.     override wpclsQueryTitle, class;
  217.  
  218.     -- 
  219.     --  REMARKS:
  220.     --    Returns the Locator Title.
  221.     -- 
  222.  
  223.     override wpclsQueryDefaultHelp, class;
  224.  
  225.     -- 
  226.     --  REMARKS:
  227.     --    Process input from the extra menu option that we added.
  228.     -- 
  229.  
  230.     override wpclsQueryDefaultView, class;
  231.  
  232.     -- 
  233.     --  REMARKS:
  234.     --    Returns the default view for a new instance of this object.
  235.     -- 
  236.  
  237.     override wpclsQueryStyle, class;
  238.  
  239.     -- 
  240.     --  REMARKS:
  241.     --   give styles to prevent deletion, copying and templates
  242.     -- 
  243.     -- 
  244.  
  245.     override wpclsQueryIconData, class;
  246.  
  247.     -- 
  248.     --  REMARKS:
  249.     --    Return the class icon
  250.     -- 
  251.  
  252.