#include <dragtrgt.h>
Inheritance diagram for KernelDragTarget:
Public Member Functions | |
KernelDragTarget (DialogOp *TheDialog, CGadgetID TheGadget=NULL) | |
Constructs a KernelDragTarget, AND REGISTERS it with the current DragManagerOp This is used as a drag target for entities existing in the kernel (usually DialogOps). | |
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, OilCoord *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 (DialogOp **ReturnedDialog, CGadgetID *ReturnedGadget) |
Kernel method for determining target-area information. | |
Protected Attributes | |
DialogOp * | TargetDialog |
CGadgetID | TargetGadget |
Friends | |
class | DragManagerOp |
To remove a drag target at any time, destruct it - it automatically deregisters and cleans up.
Definition at line 300 of file dragtrgt.h.
|
Constructs a KernelDragTarget, AND REGISTERS it with the current DragManagerOp This is used as a drag target for entities existing in the kernel (usually DialogOps).
If TheGadget is NULL, then the entire dialogue client area will be considered the target area. Otherwise, only that gadget is used as the target.
Definition at line 396 of file dragtrgt.cpp. 00397 { 00398 TargetDialog = TheDialog; 00399 TargetGadget = TheGadget; 00400 00401 // PORTNOTE("other", "Removed DragManagerOp usage") 00402 //#ifndef EXCLUDE_FROM_XARALX 00403 // Register this drag target automatically with the system 00404 DragManagerOp *DragMan = DragManagerOp::GetCurrentManager(); 00405 if (DragMan != NULL) 00406 DragMan->RegisterTarget(this, (TheDialog == NULL)); 00407 #ifdef _DEBUG 00408 else 00409 ERROR3("There is no active drag (when attempting to create a DragTarget)"); 00410 #endif 00411 //#endif 00412 }
|
|
Kernel method for determining target-area information.
Reimplemented from DragTarget. Definition at line 495 of file dragtrgt.cpp. 00496 { 00497 *ReturnedDialog = TargetDialog; 00498 *ReturnedGadget = TargetGadget; 00499 }
|
|
Virtual method to determine if a given DragTarget is of the Kernel or Winoil 'gender'.
Documentation: Docs.doc Reimplemented from DragTarget. Definition at line 434 of file dragtrgt.cpp. 00435 { 00436 return(TRUE); 00437 }
|
|
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 kernel parts of this interface!
Reimplemented from DragTarget. Reimplemented in ColEditorDragTarget, SGNameDragTarget, SGBitmapDragTarget, SGColourDragTarget, SGScrollDragTarget, SGListDragTarget, SGClipartDragTarget, SGFillsDragTarget, SGNameDragTarget, SGFontsDragTarget, and SGLineDragTarget. Definition at line 470 of file dragtrgt.cpp. 00472 { 00473 return(FALSE); // We do not claim the event 00474 }
|
|
Reimplemented from DragTarget. Reimplemented in ColEditorDragTarget, SGBitmapDragTarget, SGColourDragTarget, SGScrollDragTarget, SGListDragTarget, SGClipartDragTarget, SGFillsDragTarget, SGFontsDragTarget, and SGLineDragTarget. Definition at line 302 of file dragtrgt.h. |
|
Definition at line 327 of file dragtrgt.h. |
|
Definition at line 328 of file dragtrgt.h. |