home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / cset21v1.zip / IBMCPP / SAMPLES / ICLUI / HELLO6 / ASPEEDW6.HPP < prev    next >
Text File  |  1993-08-26  |  3KB  |  67 lines

  1. #ifndef ASPEEDWINDOW_HPP
  2. #define ASPEEDWINDOW_HPP
  3. /******************************************************************************/
  4. /* HELLO WORLD SAMPLE PROGRAM - Version 6: ASpeedWindow Class  (ASPEEDW6.HPP) */
  5. /*                                                                            */
  6. /* COPYRIGHT: Copyright (C) International Business Machines Corp., 1992,1993. */
  7. /*                                                                            */
  8. /* DISCLAIMER OF WARRANTIES:                                                  */
  9. /*   The following [enclosed] code is sample code created by IBM              */
  10. /*   Corporation.  This sample code is not part of any standard IBM product   */
  11. /*   and is provided to you solely for the purpose of assisting you in the    */
  12. /*   development of your applications.  The code is provided "AS IS",         */
  13. /*   without warranty of any kind.  IBM shall not be liable for any damages   */
  14. /*   arising out of your use of the sample code, even if they have been       */
  15. /*   advised of the possibility of such damages.                              */
  16. /******************************************************************************/
  17.  
  18. //**************************************************************************
  19. // The entire file was created at version 6                                *
  20. //**************************************************************************
  21.  
  22. #include <iframe.hpp>                   //IFrameWindow Class (Parent)
  23. #include <icmdhdr.hpp>                  //ICommandHandler (Parent)
  24.  
  25. class IEntryField;
  26. class IMultiCellCanvas;
  27. class IRadioButton;
  28. class IPushButton;
  29. class IListBox;
  30. class ISlider;
  31. class AHelloWindow;
  32. class IMultiCellCanvas;
  33.  
  34. //**************************************************************************
  35. // Class:   ASpeedWindow                                                   *
  36. //                                                                         *
  37. // Purpose: A secondary window for the C++ Hello World sample application. *
  38. //          It is a subclass of IFrameWindow, ICommandHandler              *
  39. //                                                                         *
  40. //**************************************************************************
  41. class ASpeedWindow : public IFrameWindow, public ICommandHandler
  42. {
  43. public:
  44.   ASpeedWindow (
  45.     AHelloWindow * demoWindow,          //Target of Speed Changes
  46.     IWindow * ownerWnd);                //Onwer Window
  47.   ~ASpeedWindow();
  48.  
  49. protected:
  50.   virtual Boolean
  51.     command(ICommandEvent& cmdevt);     //Process the command events
  52.  
  53.   virtual Boolean apply();              //Apply Changes
  54.  
  55. private:
  56.   AHelloWindow     * target;            //Target Window for Color Changes
  57.   IMultiCellCanvas * clientWindow;      //Client Area
  58.   ISetCanvas       * buttons;           //Button Canvas
  59.   IPushButton      * applyButton;       //Static Apply Button
  60.   IPushButton      * cancelButton;      //Static Cancel Button
  61.   ISlider          * slider;            //Slider to set speed
  62.   IStaticText      * label1;            //Label for Slider
  63.   IStaticText      * label2;            //Label for Slider
  64.  
  65. }; // ASpeedWindow
  66. #endif
  67.