KDbool APSInstantMoveAction::initWithProperties ( APSDictionary* pProperties ) { if ( !APSInstantGraphicAction::initWithProperties ( pProperties ) ) { return KD_FALSE; } APSString* pStr = (APSString*) pProperties->getObjectForKey ( this->getEndPositionKey ( ) ); if ( pStr ) { this->setEndPosition ( pStr->getPointValue ( ) ); } return KD_TRUE; }
bool APSScaleAction::initWithProperties(APSDictionary *properties) { bool ok = APSIntervalGraphicAction::initWithProperties(properties); // set endScale APSString *str = (APSString *)properties->getObjectForKey(this->getEndScaleKey()); if (str) { this->m_endScale = str->getPointValue(); } /* v1.0.1 APSNumber *number = (APSNumber *)properties->getObjectForKey(kAPSScaleAction_endScaleXKey); if (number) { this->m_endScale.x = number->getFloat(); } number = (APSNumber *)properties->getObjectForKey(kAPSScaleAction_endScaleYKey); if (number) { this->m_endScale.y = number->getFloat(); } */ return ok; }