ids are Numbers. Not ints, and certainly not uints. Numbers.
authorRichard Fairhurst <richard@systemed.net>
Mon, 14 Jun 2010 12:36:04 +0000 (12:36 +0000)
committerRichard Fairhurst <richard@systemed.net>
Mon, 14 Jun 2010 12:36:04 +0000 (12:36 +0000)
TODO.txt
net/systemeD/halcyon/MapPaint.as
net/systemeD/halcyon/connection/AMFConnection.as
net/systemeD/halcyon/connection/AMFCounter.as
net/systemeD/halcyon/connection/EntityRenumberedEvent.as
net/systemeD/halcyon/vectorlayers/VectorLayer.as
net/systemeD/potlatch2/TagViewer.mxml

index c9ca1795f2b5f0e65ea70a3dde5b28d33c8e1814..780c89e2130bfa8d96784728ed1d044902ec8d31 100644 (file)
--- a/TODO.txt
+++ b/TODO.txt
@@ -31,7 +31,6 @@ Potlatch 2: main outstanding issues
 
 ** Doesn't always update selected tab when you select a new entity
 ** Doesn't update selected tab when you change the relations on an entity
-* Double-clicking a relation to edit it sometimes comes up with the POIs (how to reproduce?)
 * Dynamic reloading of stylesheet/map_features, so that you don't need to reload the full page when editing them
 * If a select name is too long then, the select menu seems to give a horizontal scrollbar instead of the name of the item e.g. cuisine#Coffee Shop
 * If you have both inputSets names and buildingAddress, and name= key is filled in then the basic tab will get both, surely only name should be shown and building name should be ignored e.g. cafes. [Actually this was an issue of addr: being missing from one of them, however this may still be a problem for other overlapping inputSets]
index 68f0713c8c10e448b1c5ce9f55a1cf3249b77c9f..75a8f1bf90767833bee71b573688023a82e3365f 100644 (file)
@@ -109,13 +109,13 @@ package net.systemeD.halcyon {
                        delete nodeuis[node.id];
                }
                
-               public function renumberWayUI(way:Way,oldID:int):void {
+               public function renumberWayUI(way:Way,oldID:Number):void {
                        if (!wayuis[oldID]) { return; }
                        wayuis[way.id]=wayuis[oldID];
                        delete wayuis[oldID];
                }
 
-               public function renumberNodeUI(node:Node,oldID:int):void {
+               public function renumberNodeUI(node:Node,oldID:Number):void {
                        if (!nodeuis[oldID]) { return; }
                        nodeuis[node.id]=nodeuis[oldID];
                        delete nodeuis[oldID];
index 03d5a6c399f528d8188499b803d5fcc60ef44068..c1d25b51a4611f2f167e586c4f45ce7dea128058 100755 (executable)
@@ -111,7 +111,7 @@ package net.systemeD.halcyon.connection {
 
         private function error(r:Object):void {}
 
-               private function loadWay(id:uint):void {
+               private function loadWay(id:Number):void {
                        readConnection.call("getway",new Responder(gotWay, error),id);
                }
 
@@ -163,7 +163,7 @@ package net.systemeD.halcyon.connection {
                }
 
 
-               private function loadRelation(id:uint):void {
+               private function loadRelation(id:Number):void {
                        readConnection.call("getrelation",new Responder(gotRelation, error),id);
                }
 
index 5106e9539eaa52235586da144117c2d98310e460..cd9555a1547b6822aa538946ecca8eb31477b85c 100644 (file)
@@ -20,10 +20,10 @@ package net.systemeD.halcyon.connection {
                        eventList.push(e);
                }
                
-               public function addRelationRequest(id:uint):void {
+               public function addRelationRequest(id:Number):void {
                        addRequest(id+"rel");
                }
-               public function addWayRequest(id:uint):void {
+               public function addWayRequest(id:Number):void {
                        addRequest(id+"way");
                }
                private function addRequest(n:String):Boolean {
index 5477f31f2915d827c7da860f6a503794f3a7fa4a..50203a66e4056353df87122a116bb908617fdbed 100644 (file)
@@ -5,7 +5,7 @@ package net.systemeD.halcyon.connection {
     public class EntityRenumberedEvent extends EntityEvent {
         private var _oldID:Number;
 
-        public function EntityRenumberedEvent(type:String, item:Entity, oldID:int) {
+        public function EntityRenumberedEvent(type:String, item:Entity, oldID:Number) {
             super(type, item);
             this._oldID = oldID;
         }
index 48f9a6898840941c8f592b1681871b188c2f6ac5..87c4713dd0d779fd91002d1729c193c1ead90cbc 100644 (file)
@@ -71,7 +71,7 @@ package net.systemeD.halcyon.vectorlayers {
                                }
                                // delete this way
                                while (oldWay.length) { 
-                                       var id:int=oldWay.getNode(0).id;
+                                       var id:Number=oldWay.getNode(0).id;
                                        oldWay.removeNodeByIndex(0,MainUndoStack.getGlobalStack().addAction,false);
                                        delete nodes[id];
                                }
index a8b2e42af26d95a59e58cb48847d17c2e2f142a4..6cb125059baf2d568721e086e7362faf66377fd4 100644 (file)
           // add members in new order
           for each(var memberObject:Object in membersGrid.dataProvider) {
             var e:Entity;
-            var id:int = memberObject.id;
+            var id:Number = memberObject.id;
             if(memberObject.type == 'node') {
               e = conn.getNode(id);
             } else if (memberObject.type == 'way') {
           trace("complete: relation "+rel.id+" now has "+rel.length+" members");
       }
       
-      private function editRelation(id:uint):void {
-          trace("edit relation "+id);
+      private function editRelation(id:Number):void {
           var panel:RelationEditorPanel = RelationEditorPanel(
               PopUpManager.createPopUp(Application(Application.application), RelationEditorPanel, true));
           panel.setRelation(Connection.getConnectionInstance().getRelation(id));