From: James W. W. <jww...@us...> - 2004-07-29 18:12:05
|
Update of /cvsroot/quesa/quesa/Development/Source/Core/System In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24979/quesa/Development/Source/Core/System Modified Files: E3Style.c Log Message: Added a duplicate method for highlight style objects. Index: E3Style.c =================================================================== RCS file: /cvsroot/quesa/quesa/Development/Source/Core/System/E3Style.c,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** E3Style.c 30 Jun 2004 22:42:30 -0000 1.13 --- E3Style.c 29 Jul 2004 18:11:56 -0000 1.14 *************** *** 497,500 **** --- 497,534 ---- //============================================================================= + // e3style_hilight_duplicate : Highlight style duplicate method. + //----------------------------------------------------------------------------- + static TQ3Status + e3style_hilight_duplicate(TQ3Object fromObject, const void *fromPrivateData, + TQ3Object toObject, void *toPrivateData) + { + #pragma unused(toObject) + TQ3AttributeSet* toInstanceData = (TQ3AttributeSet*) toPrivateData; + TQ3AttributeSet* fromInstanceData = (TQ3AttributeSet*) fromPrivateData; + + + + // Validate our parameters + Q3_REQUIRE_OR_RESULT(Q3_VALID_PTR(fromObject), kQ3Failure); + Q3_REQUIRE_OR_RESULT(Q3_VALID_PTR(toPrivateData), kQ3Failure); + Q3_REQUIRE_OR_RESULT(Q3_VALID_PTR(fromPrivateData), kQ3Failure); + + + + // Duplicate the attribute set + if (*fromInstanceData == NULL) + *toInstanceData = NULL; + else + *toInstanceData = Q3Object_Duplicate( *fromInstanceData ); + + + return(kQ3Success); + } + + + + + + //============================================================================= // e3style_hilight_metahandler : Hilight metahandler. //----------------------------------------------------------------------------- *************** *** 507,510 **** --- 541,548 ---- // Return our methods switch (methodType) { + case kQ3XMethodTypeObjectDuplicate: + theMethod = (TQ3XFunctionPointer) e3style_hilight_duplicate; + break; + case kQ3XMethodTypeObjectDelete: theMethod = (TQ3XFunctionPointer) e3style_hilight_delete; |