/src/org/ishafoundation/archives/transcript/components/studio/markup/MarkupEvent.as

http://transcriptstudio4isha.googlecode.com/ · ActionScript · 24 lines · 18 code · 4 blank · 2 comment · 0 complexity · fe36abebe8e45070625e19d4d6a296dd MD5 · raw file

  1. package org.ishafoundation.archives.transcript.components.studio.markup
  2. {
  3. import flash.events.Event;
  4. import name.carter.mark.flex.project.mdoc.MSuperNode;
  5. public class MarkupEvent extends Event
  6. {
  7. public static const DATA_CHANGE:String = "MARKUP_DATA_CHANGE"; // creation/deletion of these superSegment and superContent
  8. public static const SELECTION_CHANGE:String = "MARKUP_SELECTION_CHANGE"; // attributes of superSegment and superContent and creation/deletion of these elements
  9. public var affectedMarkup:MSuperNode;
  10. // primarily to allow us to say that a selection change is strong or not - i.e. double-clicking on markup (strong), or single clicking (weak)
  11. // for data change: strong means - hierarchy change, weak means properties change
  12. public var isStrongChange:Boolean;
  13. public function MarkupEvent(type:String, isStrongChange:Boolean, affectedMarkup:MSuperNode = null, bubbles:Boolean=true, cancelable:Boolean=false)
  14. {
  15. super(type, bubbles, cancelable);
  16. this.affectedMarkup = affectedMarkup;
  17. this.isStrongChange = isStrongChange;
  18. }
  19. }
  20. }