// $Revision: 1.4 $ //------------------------------------------------------------------------------ // // Copyright (C) 1994, 1995 Taligent, Inc. All rights reserved. // // Project: TaligentSelectionTool // File: DragSelector.h // Build/Version: 1.0.0 // // Description: Peform drag and drop interactions. This interactor can be // started on any mouse event, not just mouse down like // TMouseDragAndDropInteractor. // //------------------------------------------------------------------------------ #ifndef TaligentSamples_DRAGSELECTOR #define TaligentSamples_DRAGSELECTOR class TDragSelector; #ifndef Taligent_MOUSEINPUT #include #endif #ifndef Taligent_DRAGANDDROP #include #endif class TDragAndDropItem; class MGraphic; class TViewHandle; //................................................................................ class TDragSelector : public TDragAndDropInteractor, public MMouseEventHandler { public: TaligentTypeExtensionDeclarationsMacro_Abstract(TDragSelector) public: TDragSelector( TDragAndDropItem* adoptedScrap, MGraphic* adoptedGraphic, const TViewHandle& coordinateView, TMouseMovedEvent& mouseMoved); virtual ~TDragSelector(); protected: virtual bool MouseDown(TMouseDownEvent& mouseDown); virtual bool MouseUp(TMouseUpEvent& mouseUp); virtual bool MouseMoved(TMouseMovedEvent& mouseMoved); private: TDragSelector& operator=(const TDragSelector& source); }; #endif