home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / samples / visbuild / rapsheet / msnmspnh.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-09  |  2.9 KB  |  58 lines

  1. #ifndef _MSNMSPNH_
  2. #define _MSNMSPNH_
  3. /******************************************************************************
  4. * .FILE:        msnmspnh.hpp                                                  *
  5. *                                                                             *
  6. * .DESCRIPTION: Header file for the class MasterServantNumSpinHandler         *
  7. *                                                                             *
  8. * .CLASSES:     MasterServantNumSpinHandler                                   *
  9. *                                                                             *
  10. * .COPYRIGHT:                                                                 *
  11. *    Licensed Material - Program-Property of IBM                              *
  12. *    (C) Copyright IBM Corp. 1992, 1996 - All Rights Reserved                 *
  13. *                                                                             *
  14. * .DISCLAIMER:                                                                *
  15. *   The following [enclosed] code is sample code created by IBM               *
  16. *   Corporation.  This sample code is not part of any standard IBM product    *
  17. *   and is provided to you solely for the purpose of assisting you in the     *
  18. *   development of your applications.  The code is provided 'AS IS',          *
  19. *   without warranty of any kind.  IBM shall not be liable for any damages    *
  20. *   arising out of your use of the sample code, even if they have been        *
  21. *   advised of the possibility of such damages.                               *
  22. *                                                                             *
  23. * .NOTE: WE RECOMMEND USING A FIXED SPACE FONT TO LOOK AT THE SOURCE          *
  24. *                                                                             *
  25. ******************************************************************************/
  26. #include <ispinhdr.hpp>              // ISpinHandler, parent class, which
  27.                                      // indirectly includes IControlEvent.
  28.  
  29. //forward class references
  30. class INumericSpinButton;
  31.  
  32. //**************************************************************************
  33. // Class:   MasterServantNumSpinHandler
  34. //
  35. // Purpose: Supports the master and servant spin buttons used to represent
  36. //          servant and inch fields.
  37. //
  38. //***************************************************************************
  39. class MasterServantNumSpinHandler : public ISpinHandler
  40. {
  41.  
  42. public:
  43.    MasterServantNumSpinHandler(INumericSpinButton * master,
  44.                      INumericSpinButton * servant);
  45.    virtual ~MasterServantNumSpinHandler();     //destructor
  46.  
  47. protected:
  48.    virtual Boolean arrowUp(IControlEvent& controlEvent);
  49.    virtual Boolean arrowDown(IControlEvent& controlEvent);
  50.  
  51. private:
  52.    INumericSpinButton * imaster;
  53.    INumericSpinButton * iservant;
  54.  
  55. };   //MasterServantNumSpinHandler
  56.  
  57. #endif
  58.