fillndge.cpp File Reference

(r1785/r1282)

#include "camtypes.h"
#include "fillndge.h"
#include "opnudge.h"

Go to the source code of this file.

Defines

#define IMPLEMENT_OPFILLNUDGE_CLASS(DIR, X_NUDGE_FACTOR, Y_NUDGE_FACTOR, UNDO_IDS)
 The macro IMPLEMENT_OPFILLNUDGE_CLASS(DIR,X_NUDGE_FACTOR,Y_NUDGE_FACTOR,UNDO_IDS) implements the OpNudgeX Do() function. E.g. OpNudgeUp1.
#define new   CAM_DEBUG_NEW

Functions

 DECLARE_SOURCE ("$Revision: 1282 $")
 IMPLEMENT_OPFILLNUDGE_CLASS (Up1, 0, 1, _R(IDS_UNDO_NUDGE_UP)) CC_IMPLEMENT_DYNCREATE(OpFillNudgeUp5
 IMPLEMENT_OPFILLNUDGE_CLASS (Up10, 0, 10, _R(IDS_UNDO_NUDGE_UP)) IMPLEMENT_OPFILLNUDGE_CLASS(UpFifth
 _R (IDS_UNDO_NUDGE_UP)) IMPLEMENT_OPFILLNUDGE_CLASS(UpPixel1
 _R (IDS_UNDO_NUDGE_DOWN)) IMPLEMENT_OPFILLNUDGE_CLASS(Down5
 _R (IDS_UNDO_NUDGE_LEFT)) IMPLEMENT_OPFILLNUDGE_CLASS(Left5
 IMPLEMENT_OPFILLNUDGE_CLASS (LeftPixel1,-1, 0, _R(IDS_UNDO_NUDGE_LEFT)) IMPLEMENT_OPFILLNUDGE_CLASS(LeftPixel10
 _R (IDS_UNDO_NUDGE_RIGHT)) IMPLEMENT_OPFILLNUDGE_CLASS(Right5

Variables

static CCRuntimeClassLastNudgeType = NULL
static DocCoord LastNudgeStart = DocCoord(0,0)
static DocCoord LastNudgeEnd = DocCoord(0,0)
static DocCoord LastNudgeEnd2 = DocCoord(0,0)


Define Documentation

#define IMPLEMENT_OPFILLNUDGE_CLASS DIR,
X_NUDGE_FACTOR,
Y_NUDGE_FACTOR,
UNDO_IDS   ) 
 

Value:

CC_IMPLEMENT_DYNCREATE(OpFillNudge ## DIR,OpFillNudge) \
    void OpFillNudge ## DIR::Do(OpDescriptor* pOpDesc) \
    { \
         X_NudgeFactor = X_NUDGE_FACTOR; \
         Y_NudgeFactor = Y_NUDGE_FACTOR; \
        NudgeUndoIDS  = UNDO_IDS; \
        OpFillNudge::Do(pOpDesc); \
    } \
The macro IMPLEMENT_OPFILLNUDGE_CLASS(DIR,X_NUDGE_FACTOR,Y_NUDGE_FACTOR,UNDO_IDS) implements the OpNudgeX Do() function. E.g. OpNudgeUp1.

Author:
Will_Cowling (Xara Group Ltd) <camelotdev@xara.com> (via MarkN)
Date:
8/3/95
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

Definition at line 176 of file fillndge.cpp.

#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   ) 
 

DECLARE_SOURCE "$Revision: 1282 $"   ) 
 

IMPLEMENT_OPFILLNUDGE_CLASS LeftPixel1  ,
1,
,
_R(IDS_UNDO_NUDGE_LEFT) 
 

IMPLEMENT_OPFILLNUDGE_CLASS Up10  ,
,
10  ,
_R(IDS_UNDO_NUDGE_UP) 
 

IMPLEMENT_OPFILLNUDGE_CLASS Up1  ,
,
,
_R(IDS_UNDO_NUDGE_UP) 
 


Variable Documentation

DocCoord LastNudgeEnd = DocCoord(0,0) [static]
 

Definition at line 127 of file fillndge.cpp.

DocCoord LastNudgeEnd2 = DocCoord(0,0) [static]
 

Definition at line 128 of file fillndge.cpp.

DocCoord LastNudgeStart = DocCoord(0,0) [static]
 

Definition at line 126 of file fillndge.cpp.

CCRuntimeClass* LastNudgeType = NULL [static]
 

Definition at line 125 of file fillndge.cpp.


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