home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / samples / ioc / magnify / magnify.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-22  |  3.6 KB  |  94 lines

  1. /******************************************************************************
  2. * .FILE:         magnify.hpp                                                  *
  3. *                                                                             *
  4. * .DESCRIPTION:  Magnify Sample Program:  Class Header                        *
  5. *                                                                             *
  6. * .CLASSES:      MagnifyWindow                                                *
  7. *                MagnifyHandler                                               *
  8. *                                                                             *
  9. * .COPYRIGHT:                                                                 *
  10. *    Licensed Material - Program-Property of IBM                              *
  11. *    (C) Copyright IBM Corp. 1992, 1996 - All Rights Reserved                 *
  12. *                                                                             *
  13. * .DISCLAIMER:                                                                *
  14. *   The following [enclosed] code is sample code created by IBM               *
  15. *   Corporation.  This sample code is not part of any standard IBM product    *
  16. *   and is provided to you solely for the purpose of assisting you in the     *
  17. *   development of your applications.  The code is provided 'AS IS',          *
  18. *   without warranty of any kind.  IBM shall not be liable for any damages    *
  19. *   arising out of your use of the sample code, even if they have been        *
  20. *   advised of the possibility of such damages.                               *
  21. *                                                                             *
  22. * .NOTE: WE RECOMMEND USING A FIXED SPACE FONT TO LOOK AT THE SOURCE          *
  23. *                                                                             *
  24. ******************************************************************************/
  25. #ifndef _MAGNIFY_
  26. #define _MAGNIFY_
  27.  
  28. #include <iapp.hpp>
  29. #include <iframe.hpp>
  30. #include <icmdhdr.hpp>
  31. #include <igbitmap.hpp>
  32. #include <igrafctx.hpp>
  33. #include <ibmpctl.hpp>
  34. #include <itimer.hpp>
  35. #include <isetcv.hpp>
  36. #include <icustbut.hpp>
  37. #include <ispinnum.hpp>
  38. #include <ititle.hpp>
  39.  
  40. #include "magnify.h"
  41.  
  42. class MagnifyHandler : public ICommandHandler
  43. {
  44. /*----------------------------------------------------------------------------|
  45. | command - An overloaded function that handles command events                |
  46. -----------------------------------------------------------------------------*/
  47. protected:
  48.   Boolean command (ICommandEvent& event);
  49. };
  50.  
  51. class MagnifyWindow : public IFrameWindow
  52. {
  53. public:
  54. /*------------------------------- Constructor --------------------------------|
  55. | Constructs the object with:                                                 |
  56. | 1) No parameters                                                            |
  57. -----------------------------------------------------------------------------*/
  58.   MagnifyWindow      ();
  59.  
  60. /*----------------------------------------------------------------------------|
  61. | timerFunction - A function that is called after the timer expiring          |
  62. -----------------------------------------------------------------------------*/
  63.   void timerFunction ();
  64.  
  65.  
  66. private:
  67.   IBitmapControl
  68.     bitmapControl;
  69.   ISetCanvas
  70.     canvas;
  71.   IStaticText
  72.     xText;
  73.   INumericSpinButton
  74.     xSpin;
  75.   IStaticText
  76.     yText;
  77.   INumericSpinButton
  78.     ySpin;
  79.   MagnifyHandler
  80.     handler;
  81.   IGBitmap
  82.    *bitmap;
  83.   ITitle
  84.     title;
  85. public:
  86.   ICustomButton
  87.     button;
  88.   ITimer
  89.     timer;
  90.  
  91. };
  92.  
  93. #endif /* _MAGNIFY_ */
  94.