[Redbutton-devel] SF.net SVN: redbutton: [238] redbutton-browser/trunk
Brought to you by:
skilvington
|
From: <ski...@us...> - 2007-03-06 12:19:34
|
Revision: 238
http://svn.sourceforge.net/redbutton/?rev=238&view=rev
Author: skilvington
Date: 2007-03-06 04:19:18 -0800 (Tue, 06 Mar 2007)
Log Message:
-----------
DynamicLineArtClass Activation and Deactivation
Modified Paths:
--------------
redbutton-browser/trunk/DynamicLineArtClass.c
redbutton-browser/trunk/TODO
Modified: redbutton-browser/trunk/DynamicLineArtClass.c
===================================================================
--- redbutton-browser/trunk/DynamicLineArtClass.c 2007-03-02 09:12:32 UTC (rev 237)
+++ redbutton-browser/trunk/DynamicLineArtClass.c 2007-03-06 12:19:18 UTC (rev 238)
@@ -31,8 +31,21 @@
{
verbose("DynamicLineArtClass: %s; Activation", ExternalReference_name(&t->rootClass.inst.ref));
-/* TODO */
-printf("TODO: DynamicLineArtClass_Activation not yet implemented\n");
+ /* has it been prepared yet */
+ if(!t->rootClass.inst.AvailabilityStatus)
+ DynamicLineArtClass_Preparation(t);
+
+ /* has it already been activated */
+ if(!RootClass_Activation(&t->rootClass))
+ return;
+
+ /* set its RunningStatus */
+ t->rootClass.inst.RunningStatus = true;
+ MHEGEngine_generateEvent(&t->rootClass.inst.ref, EventType_is_running, NULL);
+
+ /* now its RunningStatus is true, get it drawn at its position in the application's DisplayStack */
+ MHEGEngine_redrawArea(&t->inst.Position, &t->inst.BoxSize);
+
return;
}
@@ -41,8 +54,13 @@
{
verbose("DynamicLineArtClass: %s; Deactivation", ExternalReference_name(&t->rootClass.inst.ref));
-/* TODO */
-printf("TODO: DynamicLineArtClass_Deactivation not yet implemented\n");
+ /* is it already deactivated */
+ if(!RootClass_Deactivation(&t->rootClass))
+ return;
+
+ /* now its RunningStatus is false, redraw the area it covered */
+ MHEGEngine_redrawArea(&t->inst.Position, &t->inst.BoxSize);
+
return;
}
@@ -101,6 +119,8 @@
{
verbose("DynamicLineArtClass: %s; SetPosition", ExternalReference_name(&t->rootClass.inst.ref));
+ /* corrigendum says we don't need to clear to OriginalRefFillColour */
+
/* TODO */
printf("TODO: DynamicLineArtClass_SetPosition not yet implemented\n");
return;
@@ -123,6 +143,7 @@
/* TODO */
printf("TODO: DynamicLineArtClass_SetBoxSize not yet implemented\n");
+/* clear to OriginalRefFillColour */
return;
}
@@ -143,8 +164,7 @@
MHEGEngine_bringToFront(&t->rootClass);
-/* TODO */
-/* clear to OriginalRefFillColour */
+ /* corrigendum says we don't need to clear to OriginalRefFillColour */
/* if it is active, redraw it */
if(t->rootClass.inst.RunningStatus)
@@ -160,8 +180,7 @@
MHEGEngine_sendToBack(&t->rootClass);
-/* TODO */
-/* clear to OriginalRefFillColour */
+ /* corrigendum says we don't need to clear to OriginalRefFillColour */
/* if it is active, redraw it */
if(t->rootClass.inst.RunningStatus)
@@ -182,8 +201,7 @@
&& ((obj = MHEGEngine_findObjectReference(ref, caller_gid)) != NULL))
{
MHEGEngine_putBefore(&t->rootClass, obj);
-/* TODO */
-/* clear to OriginalRefFillColour */
+ /* corrigendum says we don't need to clear to OriginalRefFillColour */
/* if it is active, redraw it */
if(t->rootClass.inst.RunningStatus)
MHEGEngine_redrawArea(&t->inst.Position, &t->inst.BoxSize);
@@ -204,8 +222,7 @@
&& ((obj = MHEGEngine_findObjectReference(ref, caller_gid)) != NULL))
{
MHEGEngine_putBehind(&t->rootClass, obj);
-/* TODO */
-/* clear to OriginalRefFillColour */
+ /* corrigendum says we don't need to clear to OriginalRefFillColour */
/* if it is active, redraw it */
if(t->rootClass.inst.RunningStatus)
MHEGEngine_redrawArea(&t->inst.Position, &t->inst.BoxSize);
Modified: redbutton-browser/trunk/TODO
===================================================================
--- redbutton-browser/trunk/TODO 2007-03-02 09:12:32 UTC (rev 237)
+++ redbutton-browser/trunk/TODO 2007-03-06 12:19:18 UTC (rev 238)
@@ -1,3 +1,6 @@
+BorderedBoundingBox
+
+
aspect ratio
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|