// $Revision: 1.4 $ //------------------------------------------------------------------------------ // // Copyright (C) 1994, 1995 Taligent, Inc. All rights reserved. // // Project: TaligentSelectionTool // File: SelectionToolInteractor.h // Build/Version: 1.0.0 // // Description: TSelectonToolInteractor interprets events until it is able // to definitively determine if the gesture is a selection or // drag gesture at which time it starts a second, subordinate // interactor, to complete the gesture. // //------------------------------------------------------------------------------ #ifndef TaligentSamples_SELECTIONTOOLINTERACTOR #define TaligentSamples_SELECTIONTOOLINTERACTOR class TSelectionToolInteractor; #ifndef Taligent_CURSORTOOLS #include #endif #ifndef Taligent_MOUSEINPUT #include #endif #ifndef Taligent_DELETERFOR #include #endif //................................................................................ class TSelectionToolInteractor : public TToolInteractor, public MMouseEventHandler { public: TaligentTypeExtensionDeclarationsMacro_Abstract(TSelectionToolInteractor) public: TSelectionToolInteractor(MToolHandler* handler); virtual ~TSelectionToolInteractor(); virtual bool MouseDown(TMouseDownEvent& mouseDown); virtual bool MouseMoved(TMouseMovedEvent& mouseMoved); virtual bool MouseUp(TMouseUpEvent& mouseUp); virtual bool DispatchEvent(TEvent& event); private: TSelectionToolInteractor& operator=(const TSelectionToolInteractor& source); TDeleterFor fSubInteractor; }; #endif