|
|
1.1 ! root 1: #import "drawundo.h" ! 2: ! 3: @interface BringToFrontGraphicsChange(PrivateMethods) ! 4: ! 5: - redoDetails; ! 6: ! 7: @end ! 8: ! 9: @implementation BringToFrontGraphicsChange ! 10: ! 11: - (const char *)changeName ! 12: { ! 13: return NXLocalStringFromTable("Operations", "Bring to Front", NULL, "The operation of bringing a graphical entity or group of graphical entities to the front of all other graphical entities."); ! 14: } ! 15: ! 16: - redoDetails ! 17: { ! 18: int count, i; ! 19: id detail, graphic; ! 20: List *allGraphics; ! 21: ! 22: allGraphics = [graphicView graphics]; ! 23: count = [changeDetails count]; ! 24: for (i = count; i >= 0; --i) { ! 25: detail = [changeDetails objectAt:i]; ! 26: graphic = [detail graphic]; ! 27: [allGraphics removeObject:graphic]; ! 28: [allGraphics insertObject:graphic at:0]; ! 29: } ! 30: ! 31: return self; ! 32: } ! 33: ! 34: @end
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.