home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ICLUI.ZIP / HELLO6 / ASPEEDW6.HPP < prev    next >
Text File  |  1993-03-09  |  3KB  |  69 lines

  1. #ifndef ASPEEDWINDOW_HPP
  2. #define ASPEEDWINDOW_HPP
  3. /******************************************************************************/
  4. /* HELLO WORLD SAMPLE PROGRAM - Version 6: ASpeedWindow Class  (ASPEEDW6.CPP) */
  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 INotebook::Page;
  27. class INotebook;
  28. class IMultiCellCanvas;
  29. class IRadioButton;
  30. class IPushButton;
  31. class IListBox;
  32. class ISlider;
  33. class AHelloWindow;
  34. class IMultiCellCanvas;
  35.  
  36. //**************************************************************************
  37. // Class:   ASpeedWindow                                                   *
  38. //                                                                         *
  39. // Purpose: A secondary window for the C++ Hello World sample application. *
  40. //          It is a subclass of IFrameWindow, ICommandHandler              *
  41. //                                                                         *
  42. //**************************************************************************
  43. class ASpeedWindow : public IFrameWindow, public ICommandHandler
  44. {
  45. public:
  46.   ASpeedWindow (
  47.     AHelloWindow * demoWindow,          //Target of Speed Changes
  48.     IWindow * ownerWnd);                //Onwer Window
  49.   ~ASpeedWindow();
  50.  
  51. protected:
  52.   virtual Boolean
  53.     command(ICommandEvent& cmdevt);     //Process the command events
  54.  
  55.   virtual Boolean apply();              //Apply Changes
  56.  
  57. private:
  58.   AHelloWindow     * target;            //Target Window for Color Changes
  59.   IMultiCellCanvas * clientWindow;      //Client Area
  60.   ISetCanvas       * buttons;           //Button Canvas
  61.   IPushButton      * applyButton;       //Static Apply Button
  62.   IPushButton      * cancelButton;      //Static Cancel Button
  63.   ISlider          * slider;            //Slider to set speed
  64.   IStaticText      * label1;            //Label for Slider
  65.   IStaticText      * label2;            //Label for Slider
  66.  
  67. }; // ASpeedWindow
  68. #endif
  69.