// $Revision: 1.8 $ // Copyright (c) 1994-1995 Taligent, Inc. All rights reserved. #ifndef TaligentSamples_COLORSOURCEVIEW #define TaligentSamples_COLORSOURCEVIEW #ifndef Taligent_ACTIVATIBLEVIEW #include #endif #ifndef Taligent_MOUSEINPUT #include #endif #ifndef Taligent_RGBCOLOR #include #endif class TColorSourceView : public TContentView, public MMouseEventHandler { public: MCollectibleDeclarationsMacro(TColorSourceView); TColorSourceView(const TGPoint& extent, const TGPoint& location, const TColor&); virtual ~TColorSourceView(); virtual void HandleAfterConnectionToViewRoot(); virtual void HandleBeforeDisconnectionFromViewRoot(); virtual void DrawContents(TGrafPort&) const; virtual bool MouseButtonDown(TMouseDownEvent&, short); protected: TColorSourceView(); TColorSourceView(const TColorSourceView&); virtual void HandleAllocatedAreaChanged(const TGArea&); private: TRGBColor fColor; }; #endif // TaligentSamples_COLORSOURCEVIEW