home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / samples / visbuild / calculat / cppwv13 / iclrdsp.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-16  |  2.7 KB  |  69 lines

  1. /******************************************************************************
  2. * .FILE:        iclrdsp.hpp                                                   *
  3. *                                                                             *
  4. * .DESCRIPTION: Header file for the class, IClearDisplay                      *
  5. *                                                                             *
  6. * .CLASSES:     IClearDisplay                                                 *
  7. *                                                                             *
  8. * .COPYRIGHT:                                                                 *
  9. *    Licensed Material - Program-Property of IBM                              *
  10. *    (C) Copyright IBM Corp. 1992, 1996 - All Rights Reserved                 *
  11. *                                                                             *
  12. * .DISCLAIMER:                                                                *
  13. *   The following [enclosed] code is sample code created by IBM               *
  14. *   Corporation.  This sample code is not part of any standard IBM product    *
  15. *   and is provided to you solely for the purpose of assisting you in the     *
  16. *   development of your applications.  The code is provided 'AS IS',          *
  17. *   without warranty of any kind.  IBM shall not be liable for any damages    *
  18. *   arising out of your use of the sample code, even if they have been        *
  19. *   advised of the possibility of such damages.                               *
  20. *                                                                             *
  21. * .NOTE: WE RECOMMEND USING A FIXED SPACE FONT TO LOOK AT THE SOURCE          *
  22. *                                                                             *
  23. ******************************************************************************/
  24.  
  25. #include <istring.hpp>
  26. #include <icmdhdr.hpp>   // ICommandHandler
  27.  
  28. #ifndef _IENTRYFD_
  29. #include <ientryfd.hpp>
  30. #endif
  31.  
  32. #ifndef _IPUSHBUT_
  33. #include <ipushbut.hpp>
  34. #endif
  35.  
  36. #include "ivbsamps.h"
  37.  
  38. //**************************************************************************
  39. // Class:   IClearDisplay
  40. //
  41. // Purpose: Clears the entry field using the
  42. //          ICommandHandler class
  43. //
  44. //***************************************************************************
  45.  
  46. class IVBSAMP_IMPORT IClearDisplay : public ICommandHandler
  47.  
  48. {
  49. public:
  50.  
  51.   IClearDisplay(IEntryField & theDisplay, IPushButton & theClearPushButton);
  52.   ~IClearDisplay();     //destructor
  53.  
  54. // Implementor Method Functions
  55.  
  56. protected:
  57.  
  58. Boolean command(ICommandEvent& cmdEvent);
  59.  
  60. private:
  61.  
  62. // private member data
  63.  
  64. IEntryField  &display;
  65. IPushButton &clearPushButton;
  66.  
  67. };   //IClearDisplay
  68.  
  69.