home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 8 / CDASC08.ISO / VRAC / VCOLORS.ZIP / COLORVW.H < prev    next >
Encoding:
C/C++ Source or Header  |  1993-06-30  |  2.6 KB  |  110 lines

  1. //
  2. //    colorvw.h
  3. //
  4. //    Copyright (c) 1993, by Liant Software Corp.
  5. //    ALL RIGHTS RESERVED.
  6. //
  7. //    Revision History:
  8. //    -----------------
  9. //    06/29/92    mxs    Created
  10.  
  11. #ifndef colorvw_h
  12. #define colorvw_h
  13. #include "appview.h"
  14.  
  15. CLASS VBrush;
  16. CLASS VPushButton;
  17. CLASS VScrollBar;
  18. CLASS VTextBox;
  19. CLASS VTimer;
  20. CLASS VView;
  21.  
  22. CLASS ColorView : public VAppView {
  23.  
  24. //---------------------------------------------------------------------------
  25. //                              PUBLIC SECTION
  26. //---------------------------------------------------------------------------
  27. public:
  28.     ColorView();
  29.     ~ColorView();
  30.     VClass                     *iam();
  31.     boolean                     free();
  32.  
  33.     boolean                    rgbValueChanged(int amount);    //
  34.     boolean                    cValueChanged(int amount);        //
  35.     boolean                    mValueChanged(int amount);        // scrollbar 
  36.     boolean                    yValueChanged(int amount);        // callbacks
  37.     boolean                    kValueChanged(int amount);        //
  38.  
  39.     boolean                     play(VPushButton *btn);            // pushbutton callback
  40.     boolean                    exit(VPushButton *btn);
  41.  
  42.     boolean                    timeout(VTimer *t);                // timer callback
  43.  
  44.     virtual boolean         givenFocus();                        // overridden
  45.     virtual boolean         paint();                                // member functions
  46.  
  47.  
  48. //---------------------------------------------------------------------------
  49. //                            PROTECTED SECTION
  50. //---------------------------------------------------------------------------
  51. protected:
  52.  
  53. //---------------------------------------------------------------------------
  54. //                              PRIVATE SECTION
  55. //---------------------------------------------------------------------------
  56. private:
  57.     VBrush                     *rBrush;
  58.     VBrush                     *gBrush;
  59.     VBrush                     *bBrush;
  60.  
  61.     VBrush                     *cBrush;
  62.     VBrush                     *mBrush;
  63.     VBrush                     *yBrush;
  64.     VBrush                     *kBrush;
  65.  
  66.     VScrollBar                 *rScrollBar;    
  67.     VScrollBar                 *gScrollBar;
  68.     VScrollBar                 *bScrollBar;
  69.  
  70.     VScrollBar                 *cScrollBar;
  71.     VScrollBar                 *mScrollBar;
  72.     VScrollBar                 *yScrollBar;
  73.     VScrollBar                 *kScrollBar;
  74.  
  75.     VView                     *rColorBox;
  76.     VView                     *gColorBox;
  77.     VView                     *bColorBox;
  78.  
  79.     VView                     *cColorBox;
  80.     VView                     *mColorBox;
  81.     VView                     *yColorBox;
  82.     VView                     *kColorBox;
  83.  
  84.     VTextBox                 *rEdit;
  85.     VTextBox                 *gEdit;
  86.     VTextBox                 *bEdit;
  87.  
  88.     VTextBox                 *cEdit;
  89.     VTextBox                 *mEdit;
  90.     VTextBox                 *yEdit;
  91.     VTextBox                 *kEdit;
  92.  
  93.     VBrush                     *brush;
  94.     VView                     *colorBox;
  95.  
  96.     VPushButton             *playButton;
  97.     VPushButton                *exitButton;
  98.  
  99.     VTimer                     *timer;
  100.  
  101.     //---------- Private member functions ------------
  102.  
  103.     int                        minimum(int x, int y, int z);
  104.     int                        maximum(int x, int y, int z);
  105.  
  106. };
  107.  
  108. extern VClass *ColorViewCls;
  109. #endif // colorvw_h
  110.