#include <sgdrag.h>
Inheritance diagram for SGListDragInfo:
Public Member Functions | |
SGListDragInfo () | |
Default constructor. DO NOT CALL THIS CONSTRUCTOR. | |
SGListDragInfo (SuperGallery *ParentGal, SGDisplayNode *DraggedNode, SGMouseInfo *TheMouseInfo, BOOL IsAdjust=FALSE) | |
Constructor. | |
void | OnClick (INT32 Flags, POINT Point) |
This is called if a drag was attempted but never started because it was a click all along. It passes the original Click information back to the SGDisplayNode which started the drag by calling its DragWasReallyAClick method. | |
virtual UINT32 | GetCursorID (void) |
To provide the resource ID of the cursor to use during this drag. For scrollbar drags, the cursor should remain the normal arrow shape. | |
virtual BOOL | GetStatusLineText (String_256 *TheText) |
Provide status line text for this drag - While dragging scrollbars no help is required/given, so this always returns FALSE. | |
SuperGallery * | GetParentGallery (void) |
SGDisplayNode * | GetDraggedNode (void) |
SGMouseInfo * | GetMouseInfo (void) |
Private Attributes | |
SuperGallery * | ParentGallery |
SGDisplayNode * | DragNode |
SGMouseInfo | MouseInfo |
Definition at line 328 of file sgdrag.h.
|
Default constructor. DO NOT CALL THIS CONSTRUCTOR.
Definition at line 1194 of file sgdrag.cpp. 01195 { 01196 ERROR3("Default SGListDragInfo constructor called"); 01197 }
|
|
Constructor.
TheMouseInfo -The MouseInfo which was passed into your HandleEvent method for the click which started this drag. (Passed back into the SGDisplayNode::DragWasReallyAClick handler if the drag becomes a click) IsAdjust - TRUE if it is an "adjust" drag [NOTE - Adjust drags are legal when dragging scrollbars, and are not turned into clicks like normal drags] Definition at line 1224 of file sgdrag.cpp. 01226 : DragInformation(IsAdjust) 01227 { 01228 ParentGallery = ParentGal; 01229 DragNode = DraggedNode; 01230 MouseInfo = *TheMouseInfo; // COPY the MouseInfo structure 01231 01232 // Set up a few things about this drag - it does not do solid drag 01233 DoesSolidDrag = FALSE; 01234 SolidDragOffset.x = SolidDragOffset.y = 0; // Set up defaults just in case 01235 SolidDragSize.Set(1,1); 01236 }
|
|
To provide the resource ID of the cursor to use during this drag. For scrollbar drags, the cursor should remain the normal arrow shape.
Reimplemented from DragInformation. Definition at line 1254 of file sgdrag.cpp. 01255 { 01256 return(_R(IDC_DRAGGING_COLOUR)); // No-can-drop cursor shape 01257 }
|
|
Definition at line 343 of file sgdrag.h. 00343 { return(DragNode); }
|
|
Definition at line 344 of file sgdrag.h. 00344 { return(&MouseInfo); }
|
|
Definition at line 342 of file sgdrag.h. 00342 { return(ParentGallery); }
|
|
Provide status line text for this drag - While dragging scrollbars no help is required/given, so this always returns FALSE.
Reimplemented from DragInformation. Definition at line 1274 of file sgdrag.cpp. 01275 { 01276 ERROR3IF(TheText == NULL, "Illegal NULL param"); 01277 TheText->MakeMsg(_R(IDS_SGDRAG_LISTITEM)); 01278 01279 return(TRUE); 01280 }
|
|
This is called if a drag was attempted but never started because it was a click all along. It passes the original Click information back to the SGDisplayNode which started the drag by calling its DragWasReallyAClick method.
Definition at line 1302 of file sgdrag.cpp. 01303 { 01304 if (DragNode != NULL) 01305 { 01306 SGMiscInfo MiscInfo; 01307 ParentGallery->FillInMiscInfo(&MiscInfo); 01308 01309 DragNode->DragWasReallyAClick(&MouseInfo, &MiscInfo); 01310 } 01311 }
|
|
|
|
|
|
|