![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 2003 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: terrainDragDropHandler.h,v $ $Revision: 1.3 $ $State: Exp $ 00007 *******************************************************************************/ 00008 00011 00012 #ifndef TERRAINDRAGDROPHANDLER_H_ 00013 #define TERRAINDRAGDROPHANDLER_H_ 00014 00015 #include "tmEventHandler/dragDropHandler.h" 00016 00017 #include "terrainEventHandler/terrainEventHandlerDefines.h" 00018 class DT_DLL_terrainEventHandler DtTerrainDragDropHandler : public DtDragDropHandler 00019 { 00020 Q_OBJECT 00021 00022 public: 00023 00025 DtTerrainDragDropHandler(); 00026 00028 virtual ~DtTerrainDragDropHandler(); 00029 00030 public: 00032 static DtEventHandler* create(DtEventController* owner, void* usr); 00033 00034 protected: 00035 virtual bool canDrag(DtTMMapArea* map) const; 00036 00040 virtual bool isValidForDrag(DtTMMapArea* map, DtModelKey &key); 00041 }; 00042 00043 #endif //TERRAINDRAGDROPHANDLER_H_ 00044 00045