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

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