#include <penedit.h>
Inheritance diagram for OpPenEditInternal:
Public Member Functions | |
OpPenEditInternal () | |
OpPenEditInternal constructor. | |
void | DoPenEditInternal (ControlPts *) |
virtual void | DragFinished (DocCoord Pos, ClickModifiers Mods, Spread *pSpread, BOOL Success, BOOL bSolidDrag) |
This is called when a drag operation finishes. | |
Static Public Member Functions | |
static BOOL | Init () |
OpPenEditInternal initialiser method. | |
static OpState | GetState (String_256 *, OpDescriptor *) |
For finding the OpPenEditInternal's state. | |
Private Attributes | |
ControlPts * | pUserHandles |
Definition at line 338 of file penedit.h.
|
OpPenEditInternal constructor.
Definition at line 908 of file penedit.cpp.
|
|
Definition at line 985 of file penedit.cpp. 00986 { 00987 00988 // Set the internal state 00989 pUserHandles = pHandles; 00990 00991 HandleFlags Flags; 00992 DocCoord ghst = CalcGhostEnd(pHandles->HndClick, pHandles->HndDrag); 00993 SetDragHandles(Flags, pHandles->HndClick, pHandles->HndDrag, ghst, pHandles->pHndSpread); 00994 00995 // call the base classes drag init function 00996 if (!DoPenDragBlobs()) 00997 { 00998 FailAndExecute(); 00999 End(); 01000 return; 01001 } 01002 }
|
|
This is called when a drag operation finishes.
Reimplemented from OpPenDragBlobs. Definition at line 1021 of file penedit.cpp. 01023 { 01024 // Rub out the old EORed version of the handles 01025 RenderHandles(); 01026 01027 // inform the base class to stop dragging 01028 OpPenDragBlobs::DragFinished( PointerPos, ClickMods, pSpread, Success, bSolidDrag); 01029 01030 // inform the pen tool that a drag has come to an end 01031 if (Success) 01032 { 01033 pUserHandles->HndClick = GetMidHandle(); 01034 pUserHandles->HndDrag = GetTrackHandle(); 01035 pUserHandles->pHndSpread = StartSpread; 01036 } 01037 else 01038 FailAndExecute(); 01039 01040 // terminate the op 01041 End(); 01042 }
|
|
For finding the OpPenEditInternal's state.
Definition at line 961 of file penedit.cpp. 00962 { 00963 OpState OpSt; 00964 return OpSt; 00965 }
|
|
OpPenEditInternal initialiser method.
Reimplemented from SimpleCCObject. Definition at line 931 of file penedit.cpp. 00932 { 00933 return (RegisterOpDescriptor(0, // tool ID 00934 _R(IDS_PENEDITINTERNALOP), // string resource ID 00935 CC_RUNTIME_CLASS(OpPenEditInternal), // runtime class for Op 00936 OPTOKEN_PENEDITINTERNAL, // Ptr to token string 00937 OpPenEditInternal::GetState, // GetState function 00938 0, // help ID = 0 00939 _R(IDBBL_PENEDITINTERNALOP), // bubble help ID = 0 00940 0 // resource ID = 0 00941 )); 00942 00943 }
|
|
|