PageRenderTime 20ms CodeModel.GetById 10ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 1package org.ishafoundation.archives.transcript.components.studio.markup
 2{
 3	import flash.events.Event;
 4	
 5	import name.carter.mark.flex.project.mdoc.MSuperNode;
 6
 7	public class MarkupEvent extends Event
 8	{
 9		public static const DATA_CHANGE:String = "MARKUP_DATA_CHANGE"; // creation/deletion of these superSegment and superContent
10		public static const SELECTION_CHANGE:String = "MARKUP_SELECTION_CHANGE"; // attributes of superSegment and superContent and creation/deletion of these elements
11		
12		public var affectedMarkup:MSuperNode;
13		// 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)
14		// for data change: strong means - hierarchy change, weak means properties change
15		public var isStrongChange:Boolean;
16		
17		public function MarkupEvent(type:String, isStrongChange:Boolean, affectedMarkup:MSuperNode = null, bubbles:Boolean=true, cancelable:Boolean=false)
18		{
19			super(type, bubbles, cancelable);
20			this.affectedMarkup = affectedMarkup;
21			this.isStrongChange = isStrongChange;
22		}
23	}
24}