home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / wpentk.zip / WBPENTK2.DSK / WPLOCATR.IDL < prev    next >
Text File  |  1994-09-28  |  7KB  |  282 lines

  1.  
  2. //# This file was generated by the SOM Compiler.
  3. //# FileName: wplocatr.id2.
  4. //# Generated using:
  5. //#     SOM Precompiler somopc: 2.7
  6. //#     SOM Emitter emitidl: 2.22
  7.  
  8. //  SCC: @(#) 47 4/28/94 09:57:08 1.13 @(#)
  9. //  Module Header
  10. //
  11. //  Module Name: WPLOCATR
  12. //
  13. //  OS/2 Presentation Manager Workplace class definitions
  14. //
  15. //  Copyright (c) International Business Machines Corporation 1992
  16. //
  17.  
  18. #ifndef wplocatr_idl
  19. #define wplocatr_idl
  20.  
  21. #include "penbtndv.idl"
  22. #include <somcls.idl>
  23.  
  24. interface M_PenLocator;
  25.  
  26. interface PenLocator : PenButtonDevice
  27. //# Comment for parent PenButtonDevice:
  28.  
  29. //---Symbol parentComment is undefined---
  30.  
  31. //
  32. // CLASS: PenLocator
  33. //
  34. // CLASS HIERARCHY:
  35. //    SOMObject
  36. //      └── WPObject
  37. //            └── WPAbstract
  38. //                  └── PenLocator
  39. //
  40. // DESCRIPTION:
  41. //    This is the Locator object class.
  42. //
  43. //    An instance of this class can be created as a Workplace object.
  44. //
  45. //    An instance of this class is created initially by the system.
  46. //    It has the title, "Locator" and resides in the "System Setup" folder.
  47. //
  48.  
  49. {
  50.   ULONG penAddLocatorTimingPage(in HWND hwndNotebook);
  51.  
  52.   //
  53.   // METHOD: penAddLocatorTimingPage                        ( ) PRIVATE
  54.   //                                                        (X) PUBLIC
  55.   // PURPOSE:
  56.   //   Add the timing configuration page to the locator settings
  57.   //   notebook
  58.   //
  59.  
  60.   BOOL penSetCalProgram(in PSZ pszName);
  61.  
  62.   //
  63.   // METHOD: penSetCalProgram                             (X) PRIVATE
  64.   //                                                        ( ) PUBLIC
  65.   // PURPOSE:
  66.   //   Set the Calibration Program Name
  67.   //
  68.  
  69.   PSZ penQueryCalProgram();
  70.  
  71.   //
  72.   // METHOD: penQueryCalProgram                             (X) PRIVATE
  73.   //                                                        ( ) PUBLIC
  74.   // PURPOSE:
  75.   //   Return the Calibration Program Name
  76.  
  77.   BOOL penSetCalParms(in PSZ pszCalParms);
  78.  
  79.   //
  80.   // METHOD: penSetCalParms                               (X) PRIVATE
  81.   //                                                        ( ) PUBLIC
  82.   // PURPOSE:
  83.   //   Set the Calibration Parameters flag
  84.   //
  85.  
  86.   PSZ penQueryCalParms();
  87.  
  88.   //
  89.   // METHOD: penQueryCalParms                               (X) PRIVATE
  90.   //                                                        ( ) PUBLIC
  91.   // PURPOSE:
  92.   //   Return the Calibration Parameters flag
  93.  
  94.  
  95. #ifdef __PRIVATE__
  96.  
  97.   PSZ penDummyPrivate();
  98.  
  99.   //
  100.   // METHOD: penDummyPrivate                                ( ) PRIVATE
  101.   //                                                        (X) PUBLIC
  102.  
  103.  
  104. #endif
  105.  
  106.  
  107. #ifdef __SOMIDL__
  108.   implementation {
  109.  
  110.     releaseorder: penAddLocatorTimingPage,penQueryCalProgram,penSetCalProgram,
  111.                   penDummyPrivate,penSetCalParms,penQueryCalParms;
  112.  
  113.     //# Class Modifiers
  114.     local;
  115.     functionprefix = lct_;
  116.     majorversion = 1;
  117.     minorversion = 1;
  118.     filestem = wplocatr;
  119.     metaclass = M_PenLocator;
  120.     callstyle = oidl;
  121.  
  122. #ifdef __PRIVATE__
  123.     passthru C_ih_before = ""
  124. "#include \"penbtndv.ih\""
  125. ""
  126. "#define LOCATOR_VERSION_MAJOR           1"
  127. "#define LOCATOR_VERSION_MINOR           1"
  128. ""
  129. "#define SVDEFAULT_DBL_TAP_RATE         700"
  130. ""
  131. "/* help res ids */"
  132. ""
  133. "#define PENLOCATOR_DEFAULTHELP 40068"
  134. "#define TIMINGDLG_HELPRES      40069"
  135. "#define CALIBRATE_HELPRES      20798"
  136. "";
  137. #endif /* __PRIVATE__ */
  138.  
  139.     //
  140.     //#include "penbtndv.ph"
  141.     //
  142.     //#define LOCATOR_VERSION_MAJOR           1
  143.     //#define LOCATOR_VERSION_MINOR           1
  144.     //
  145.     //#define SVDEFAULT_DBL_TAP_RATE         700
  146.     //
  147.     ///* help res ids */
  148.     //
  149.     //#define PENLOCATOR_DEFAULTHELP 40068
  150.     //#define TIMINGDLG_HELPRES      40069
  151.     //#define CALIBRATE_HELPRES      20798
  152.     //
  153.  
  154.  
  155.     //# Internal Instance Variables
  156.     UCHAR CalibrateProg[128];
  157.     UCHAR CalParms[128];
  158.     ULONG ulPauseTime;
  159.     ULONG ulOldPauseTime;
  160.     ULONG ulDefaultPauseTime;
  161.     ULONG ulPauseEnable;
  162.     ULONG ulOldPauseEnable;
  163.     ULONG ulDefaultPauseEnable;
  164.     USHORT usPauseId;
  165.     USHORT usPauseEnableId;
  166.  
  167.     //# Method Modifiers
  168.     wpOpen: override;
  169.     wpAddSettingsPages: override;
  170.     wpAddObjectWindowPage: override;
  171.     wpFilterPopupMenu: override;
  172.     wpSetup: override;
  173.     wpInitData: override;
  174.     wpUnInitData: override;
  175.     wpRestoreState: override;
  176.     wpSaveState: override;
  177.     wpModifyPopupMenu: override;
  178.     wpMenuItemSelected: override;
  179.     wpMenuItemHelpSelected: override;
  180.  
  181.     //# Data Modifiers
  182.     ulPauseTime: internal;
  183.     ulOldPauseTime: internal;
  184.     ulDefaultPauseTime: internal;
  185.     ulPauseEnable: internal;
  186.     ulOldPauseEnable: internal;
  187.     ulDefaultPauseEnable: internal;
  188.     usPauseId: internal;
  189.     usPauseEnableId: internal;
  190.  
  191. #ifdef __PRIVATE__
  192.  
  193.     //# Data Modifiers
  194.     penDummyPrivate: namelookup;
  195.  
  196. #endif
  197.  
  198.   };
  199. #endif /* __SOMIDL__ */
  200. };
  201.  
  202. interface M_PenLocator
  203. //# Comment for parent PenButtonDevice:
  204.  
  205. //---Symbol parentComment is undefined---
  206. {
  207.   ULONG penclsQueryDefaultPause();
  208.  
  209.   //
  210.   // METHOD: penclsQueryDefaultPause                        ( ) PRIVATE
  211.   //                                                        (X) PUBLIC
  212.   // PURPOSE:
  213.   //   Return the default system setting for Pause
  214.   //
  215.  
  216.   ULONG penclsQueryPauseEnableDefault();
  217.  
  218.   //
  219.   // METHOD: penclsQueryPauseEnableDefault                  ( ) PRIVATE
  220.   //                                                        (X) PUBLIC
  221.   // PURPOSE:
  222.   //   Return the default system setting for Pause Enable
  223.   //
  224.  
  225.  
  226. #ifdef __PRIVATE__
  227.  
  228.   USHORT penclsQueryPauseId();
  229.  
  230.   //
  231.   // METHOD: penclsQueryPauseId                             (x) PRIVATE
  232.   //                                                        ( ) PUBLIC
  233.   // PURPOSE:
  234.   //   Return the system setting id for Pause
  235.   //
  236.  
  237.   USHORT penclsQueryPauseEnableId();
  238.  
  239.   //
  240.   // METHOD: penclsQueryPauseEnableId                       (x) PRIVATE
  241.   //                                                        ( ) PUBLIC
  242.   // PURPOSE:
  243.   //   Return the system setting id for Pause Enable
  244.   //
  245.  
  246.  
  247. #endif
  248.  
  249.  
  250. #ifdef __SOMIDL__
  251.   implementation {
  252.  
  253.     releaseorder: penclsQueryPauseId,penclsQueryPauseEnableId,penclsQueryDefaultPause,
  254.                   penclsQueryPauseEnableDefault;
  255.  
  256.     //# Class Modifiers
  257.     local;
  258.     functionprefix = lctM_;
  259.     majorversion = 1;
  260.     minorversion = 1;
  261.     filestem = wplocatr;
  262.     callstyle = oidl;
  263.  
  264.     //# Method Modifiers
  265.     wpclsQueryTitle: override;
  266.     wpclsQueryDefaultHelp: override;
  267.     wpclsQueryDefaultView: override;
  268.     wpclsQueryStyle: override;
  269.     wpclsQueryIconData: override;
  270.  
  271. #ifdef __PRIVATE__
  272.  
  273.     //# Data Modifiers
  274.  
  275. #endif
  276.  
  277.   };
  278. #endif /* __SOMIDL__ */
  279. };
  280.  
  281. #endif  /* wplocatr_idl */
  282.