// $Revision: 1.4 $ // Copyright (c) 1994-1995 Taligent, Inc. All rights reserved. #ifndef TaligentSamples_CLICKORDRAGINTERACTOR #define TaligentSamples_CLICKORDRAGINTERACTOR #ifndef TaligentSamples_GRAPHICVIEW #include "GraphicView.h" #endif #ifndef Taligent_MOUSEINPUT #include #endif #ifndef Taligent_VIEWHANDLE #include #endif class TClickOrDragInteractor : public TInteractor, public MMouseEventHandler { public: VersionDeclarationsMacro(TClickOrDragInteractor); TClickOrDragInteractor(TGraphicView*, TInteractor* doubleClickInteractorToAdopt, TInteractor* dragInteractorToAdopt); virtual ~TClickOrDragInteractor(); virtual bool MouseButtonUp(TMouseUpEvent&, short); virtual bool MouseButtonDown(TMouseDownEvent&, short); virtual bool MouseMoved(TMouseMovedEvent&); virtual bool DispatchEvent(TEvent&); private: TViewHandle fViewHandle; TInteractor* fDoubleClickInteractor; TInteractor* fDragInteractor; TInteractor* fSubInteractor; }; #endif // TaligentSamples_CLICKORDRAGINTERACTOR