home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / PowerPlant / Slider / SliderTestView.h < prev   
Encoding:
Text File  |  1995-04-27  |  854 b   |  40 lines  |  [TEXT/CWIE]

  1. // 
  2. // ===========================================================================
  3. //     SliderTestView.h                        ©1995 Scott Squires 
  4. // ===========================================================================
  5. //
  6.  
  7. // Subclass of LView to demo Slider.cp
  8. // Real application would probably have a view that stored the Slider pointers
  9. // and then used them to 'GetSliderValue()' in a DrawSelf().   
  10. // Currently the display is only updated when the sliders are moved
  11.  
  12. #pragma once
  13.  
  14.  
  15. #include <LView.h>
  16. #include <LListener.h>
  17. #include "Slider.h"
  18.  
  19. class Slider;
  20.  
  21. class SliderView : public LView, public LListener {
  22. public:
  23.     enum {
  24.         class_ID = 'Slvw'
  25.     };
  26.  
  27.  
  28.     SliderView();
  29.     SliderView(LStream *theStream);
  30.     static SliderView *CreateSliderTestStream(LStream *inStream);
  31.  
  32.     virtual ~SliderView();
  33.     void ListenToMessage(MessageT inMessage, void *ioParam);
  34.  
  35.  
  36. };
  37.  
  38.  
  39.  
  40.