Give the TagViewer a reference to the EditController
authorAndy Allan <andy@gravitystorm.co.uk>
Fri, 1 Jul 2011 14:30:15 +0000 (15:30 +0100)
committerAndy Allan <andy@gravitystorm.co.uk>
Fri, 1 Jul 2011 14:30:15 +0000 (15:30 +0100)
net/systemeD/potlatch2/EditController.as
net/systemeD/potlatch2/TagViewer.mxml

index 6afad6e065998ee386e8f868f29b8005dd0e9cb2..9f2243b8ddfcc62eff54cf791eef44a447075bbf 100644 (file)
@@ -45,6 +45,7 @@ package net.systemeD.potlatch2 {
             this._map = map;
             setState(new NoSelection());
             this.tagViewer = tagViewer;
+            this.tagViewer.controller = this;
                        this.toolbox = toolbox;
                        this.toolbox.init(this);
             this.maximiseFunction = Globals.vars.flashvars["maximise_function"];
index 3aa7448054806782909699e83bd0488973d29fdb..2e6d8f1d54a41a1bee1983835ddc0470563e48bd 100644 (file)
   <mx:Script><![CDATA[
       import net.systemeD.halcyon.connection.*;
       import net.systemeD.halcyon.MapPaint;
+      import net.systemeD.potlatch2.EditController;
       import net.systemeD.potlatch2.mapfeatures.*;
       import net.systemeD.potlatch2.utils.*;
 
       [Bindable] private var editorStack:Container;
 
       public var mapFeatures:MapFeatures;
+      public var controller:EditController;
       private var selectedEntity:Entity;
       private var connection:Connection;
       private var currentCategorySelector:CategorySelector;