#include <dragtrgt.h>
Inheritance diagram for OilDragTarget:
Public Member Functions | |
OilDragTarget (wxWindow *TheWindow, wxRect *ClientArea=NULL) | |
Constructs a OilDragTarget AND REGISTERS it with the current DragManagerOp This is used as a drag target for entities existing in the winoil (usually windows/controls). | |
virtual BOOL | IsAKernelObject (void) |
Virtual method to determine if a given DragTarget is of the Kernel or Winoil 'gender'. | |
Protected Member Functions | |
virtual BOOL | ProcessEvent (DragEventType Event, DragInformation *pDragInfo, wxPoint *pMousePos, KeyPress *pKeyPress) |
To process a drag-specific event. By default this method does nothing, just returning FALSE so that the event is left unclaimed, and is thus passed on to other interested drag targets. | |
virtual void | GetTargetAreaInfo (wxWindow **ReturnedHWnd, wxRect *ReturnedTargetRect) |
Winoil method for determining target-area information. | |
Protected Attributes | |
wxWindow * | TargetHWnd |
wxRect | TargetClientArea |
Friends | |
class | DragManagerOp |
To remove a drag target at any time, destruct it - it automatically deregisters and cleans up.
Definition at line 358 of file dragtrgt.h.
|
Constructs a OilDragTarget AND REGISTERS it with the current DragManagerOp This is used as a drag target for entities existing in the winoil (usually windows/controls).
If ClientArea is NULL, then the entire window client area will be considered the target area. Otherwise, only that specified region within the window client area is used as the target.
Definition at line 554 of file dragtrgt.cpp. 00555 { 00556 TargetHWnd = TheWindow; 00557 00558 if (ClientArea == NULL) 00559 { 00560 // Get whole window rectangle in client coords 00561 //TargetClientArea = CRect(0, 0, 32000, 32000); // !!!! **** ToDo 00562 TargetClientArea = TheWindow->GetClientSize(); 00563 } 00564 else 00565 TargetClientArea = *ClientArea; 00566 00567 // PORTNOTE("other", "Removed DragManagerOp usage") 00568 //#ifndef EXCLUDE_FROM_XARALX 00569 // Register this drag target automatically with the system 00570 DragManagerOp *DragMan = DragManagerOp::GetCurrentManager(); 00571 if (DragMan != NULL) 00572 DragMan->RegisterTarget(this, (TheWindow == NULL)); 00573 #ifdef _DEBUG 00574 else 00575 ERROR3("There is no active drag (when attempting to create a DragTarget)"); 00576 #endif 00577 //#endif 00578 }
|
|
Winoil method for determining target-area information.
Reimplemented from DragTarget. Definition at line 662 of file dragtrgt.cpp. 00663 { 00664 *ReturnedHWnd = TargetHWnd; 00665 *ReturnedTargetRect = TargetClientArea; 00666 }
|
|
Virtual method to determine if a given DragTarget is of the Kernel or Winoil 'gender'.
Documentation: Docs.doc Reimplemented from DragTarget. Definition at line 600 of file dragtrgt.cpp. 00601 { 00602 return(FALSE); 00603 }
|
|
To process a drag-specific event. By default this method does nothing, just returning FALSE so that the event is left unclaimed, and is thus passed on to other interested drag targets.
BE VERY CAREFUL to only override the winoil parts of this interface!
Reimplemented from DragTarget. Reimplemented in ViewDragTarget, EditButtonDragTarget, ColourLineDragTarget, and ViewDragTarget. Definition at line 637 of file dragtrgt.cpp. 00639 { 00640 return(FALSE); // We do not claim the event 00641 }
|
|
Reimplemented from DragTarget. Reimplemented in ViewDragTarget, EditButtonDragTarget, and ColourLineDragTarget. Definition at line 360 of file dragtrgt.h. |
|
Definition at line 386 of file dragtrgt.h. |
|
Definition at line 385 of file dragtrgt.h. |