#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 CCRuntimeClass * | LastNudgeType = NULL |
static DocCoord | LastNudgeStart = DocCoord(0,0) |
static DocCoord | LastNudgeEnd = DocCoord(0,0) |
static DocCoord | LastNudgeEnd2 = DocCoord(0,0) |
|
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); \ } \
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
Definition at line 176 of file fillndge.cpp. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 127 of file fillndge.cpp. |
|
Definition at line 128 of file fillndge.cpp. |
|
Definition at line 126 of file fillndge.cpp. |
|
Definition at line 125 of file fillndge.cpp. |