pathndge.cpp File Reference

(r1785/r1282)

#include "camtypes.h"
#include "pathndge.h"
#include "nodepath.h"
#include "opnudge.h"
#include "pathedit.h"
#include "ophist.h"

Go to the source code of this file.

Defines

#define IMPLEMENT_OPPATHNUDGE_CLASS(DIR, X_NUDGE_FACTOR, Y_NUDGE_FACTOR, UNDO_IDS)
#define new   CAM_DEBUG_NEW

Functions

 DECLARE_SOURCE ("$Revision: 1282 $")
 CC_IMPLEMENT_DYNCREATE (OpPathNudge, TransOperation) CC_IMPLEMENT_DYNCREATE(OpPathNudgeUp1
 The macro IMPLEMENT_OPPATHNUDGE_CLASS(DIR,X_NUDGE_FACTOR,Y_NUDGE_FACTOR,UNDO_IDS) implements the OpNudgeX Do() function. E.g. OpNudgeUp1.
 CC_IMPLEMENT_DYNCREATE (OpPathNudgeUp5, OpPathNudge) void OpPathNudgeUp5
 CC_IMPLEMENT_DYNCREATE (OpPathNudgeUp10, OpPathNudge) void OpPathNudgeUp10
 IMPLEMENT_OPPATHNUDGE_CLASS (UpFifth, 0, 0.2, _R(IDS_UNDO_NUDGE_UP)) IMPLEMENT_OPPATHNUDGE_CLASS(UpPixel1
 _R (IDS_UNDO_NUDGE_UP)) IMPLEMENT_OPPATHNUDGE_CLASS(UpPixel10
 CC_IMPLEMENT_DYNCREATE (OpPathNudgeDown5, OpPathNudge) void OpPathNudgeDown5
 CC_IMPLEMENT_DYNCREATE (OpPathNudgeDown10, OpPathNudge) void OpPathNudgeDown10
 IMPLEMENT_OPPATHNUDGE_CLASS (DownFifth, 0,-0.2, _R(IDS_UNDO_NUDGE_DOWN)) IMPLEMENT_OPPATHNUDGE_CLASS(DownPixel1
 _R (IDS_UNDO_NUDGE_DOWN)) IMPLEMENT_OPPATHNUDGE_CLASS(DownPixel10
 CC_IMPLEMENT_DYNCREATE (OpPathNudgeLeft5, OpPathNudge) void OpPathNudgeLeft5
 CC_IMPLEMENT_DYNCREATE (OpPathNudgeLeft10, OpPathNudge) void OpPathNudgeLeft10
 CC_IMPLEMENT_DYNCREATE (OpPathNudgeLeftFifth, OpPathNudge) void OpPathNudgeLeftFifth
 IMPLEMENT_OPPATHNUDGE_CLASS (LeftPixel1,-1, 0, _R(IDS_UNDO_NUDGE_LEFT)) IMPLEMENT_OPPATHNUDGE_CLASS(LeftPixel10
 _R (IDS_UNDO_NUDGE_LEFT)) CC_IMPLEMENT_DYNCREATE(OpPathNudgeRight1
 CC_IMPLEMENT_DYNCREATE (OpPathNudgeRight5, OpPathNudge) void OpPathNudgeRight5
 CC_IMPLEMENT_DYNCREATE (OpPathNudgeRight10, OpPathNudge) void OpPathNudgeRight10
 IMPLEMENT_OPPATHNUDGE_CLASS (RightFifth, 0.2, 0, _R(IDS_UNDO_NUDGE_RIGHT)) IMPLEMENT_OPPATHNUDGE_CLASS(RightPixel1
 _R (IDS_UNDO_NUDGE_RIGHT)) IMPLEMENT_OPPATHNUDGE_CLASS(RightPixel10


Define Documentation

#define IMPLEMENT_OPPATHNUDGE_CLASS DIR,
X_NUDGE_FACTOR,
Y_NUDGE_FACTOR,
UNDO_IDS   ) 
 

Value:

CC_IMPLEMENT_DYNCREATE(OpPathNudge ## DIR,OpPathNudge) \
    void OpPathNudge ## DIR::Do(OpDescriptor* pOpDesc) \
    { \
        X_NudgeFactor = X_NUDGE_FACTOR; \
        Y_NudgeFactor = Y_NUDGE_FACTOR; \
        NudgeUndoIDS = UNDO_IDS; \
        OpPathNudge::Do(pOpDesc); \
    } \

#define new   CAM_DEBUG_NEW
 


Function Documentation

_R IDS_UNDO_NUDGE_RIGHT   ) 
 

_R IDS_UNDO_NUDGE_LEFT   ) 
 

_R IDS_UNDO_NUDGE_DOWN   ) 
 

_R IDS_UNDO_NUDGE_UP   ) 
 

CC_IMPLEMENT_DYNCREATE OpPathNudgeRight10  ,
OpPathNudge 
 

Definition at line 187 of file pathndge.cpp.

CC_IMPLEMENT_DYNCREATE OpPathNudgeRight5  ,
OpPathNudge 
 

Definition at line 186 of file pathndge.cpp.

CC_IMPLEMENT_DYNCREATE OpPathNudgeLeftFifth  ,
OpPathNudge 
 

Definition at line 180 of file pathndge.cpp.

CC_IMPLEMENT_DYNCREATE OpPathNudgeLeft10  ,
OpPathNudge 
 

Definition at line 179 of file pathndge.cpp.

CC_IMPLEMENT_DYNCREATE OpPathNudgeLeft5  ,
OpPathNudge 
 

Definition at line 178 of file pathndge.cpp.

CC_IMPLEMENT_DYNCREATE OpPathNudgeDown10  ,
OpPathNudge 
 

Definition at line 172 of file pathndge.cpp.

CC_IMPLEMENT_DYNCREATE OpPathNudgeDown5  ,
OpPathNudge 
 

Definition at line 171 of file pathndge.cpp.

CC_IMPLEMENT_DYNCREATE OpPathNudgeUp10  ,
OpPathNudge 
 

Definition at line 164 of file pathndge.cpp.

CC_IMPLEMENT_DYNCREATE OpPathNudgeUp5  ,
OpPathNudge 
 

Definition at line 163 of file pathndge.cpp.

CC_IMPLEMENT_DYNCREATE OpPathNudge  ,
TransOperation 
 

The macro IMPLEMENT_OPPATHNUDGE_CLASS(DIR,X_NUDGE_FACTOR,Y_NUDGE_FACTOR,UNDO_IDS) implements the OpNudgeX Do() function. E.g. OpNudgeUp1.

Author:
Peter_Arnold (Xara Group Ltd) <camelotdev@xara.com> (via MarkN)
Date:
14/10/94
Parameters:
DIR = String postfix specifying the nudge direction and magnitude, e.g. Up1 [INPUTS] X_NUDGE_FACTOR = signed INT32 giving the x nudge magnitude and direction Y_NUDGE_FACTOR = y version of above UNDO_IDS = IDS of undo string to append to the undo/redo men items
- [OUTPUTS]
Returns:
Firstly, CC_IMPLEMENT_DYNCREATE(OpNudgeUp1,OpNudge) is done

Then itsets the OpNudge protected member vars as follows- X_NudgeFactor = 0; // I.e. don't nudge in the X dir Y_NudgeFactor = 1; // I.e. Nudge up by 1 nudge step NudgeUndoIDS = _R(IDS_UNDO_NUDGE_UP); // This string appended to the undo/redo menu items

It then calls OpNudge::Do() which uses the nudge factors to determine nudging magnitude and direction

Returns:
Errors: -
See also:
IMPLEMENT_OPNUDGE_CLASS

DECLARE_SOURCE "$Revision: 1282 $"   ) 
 

IMPLEMENT_OPPATHNUDGE_CLASS RightFifth  ,
0.  2,
,
_R(IDS_UNDO_NUDGE_RIGHT) 
 

IMPLEMENT_OPPATHNUDGE_CLASS LeftPixel1  ,
1,
,
_R(IDS_UNDO_NUDGE_LEFT) 
 

IMPLEMENT_OPPATHNUDGE_CLASS DownFifth  ,
,
-0.  2,
_R(IDS_UNDO_NUDGE_DOWN) 
 

IMPLEMENT_OPPATHNUDGE_CLASS UpFifth  ,
,
0.  2,
_R(IDS_UNDO_NUDGE_UP) 
 


Generated on Sat Nov 10 03:49:18 2007 for Camelot by  doxygen 1.4.4