Yep, i think updating the RFC page would be great. Can we discuss this later? ☺
From: [email protected] [mailto:[email protected]] On Behalf Of Jody Garnett Sent: Friday, 17 February 2012 9:33 AM To: User-friendly Desktop Internet GIS Cc: Jody Garnett; Paul Pfeiffer Subject: Re: [udig-devel] Removing ContextModel from the Project Model Naz perhaps we should go over and update the tasks on the RFC page? We can refine them as you do the work etc… Legend item list is not in sync with anything; you make your legend view work. When it does we cut over to it (that is change the internals of the layers list method to traverse your legend item data structure; and produce a list of layers in the correct z-order; and kick the renderer if anything in the z-order has changed). -- Jody Garnett On Friday, 17 February 2012 at 8:00 AM, Nazareno Chan wrote: Just some more clarifications regarding populating the LegendItem list: Should the LegendItem list be always (even without Legend View opened) in sync with the Layers list? Or is this just for LegendView usage? If it will always be in sync, where should we intercept sync-ing the two lists? I tried poking into AddLayer(s)Command and it seems to be a good starting point, but are there other areas in the system where it adds layers but not thru these commands? Thanks! From: [email protected]<mailto:[email protected]> [mailto:[email protected]] On Behalf Of Jody Garnett Sent: Tuesday, 14 February 2012 9:52 PM To: User-friendly Desktop Internet GIS Cc: Jody Garnett; Paul Pfeiffer Subject: Re: [udig-devel] Removing ContextModel from the Project Model Legend Item is *not* already being populated; that is what your Legend view is going to do. When you have that working we will "switch over" to using it. The layer view will remain a useful (as it shows all layers; and shows draw order; and allows direct manipulation of draw order). I can imagine people having both open for a few tasks... -- Jody Garnett On Tuesday, 14 February 2012 at 3:24 PM, Nazareno Chan wrote: For now, which direction are we taking? And is the LegendItem list already being populated? Thanks! From: [email protected]<mailto:[email protected]> [mailto:[email protected]] On Behalf Of Jody Garnett Sent: Wednesday, 8 February 2012 11:31 PM To: User-friendly Desktop Internet GIS Subject: Re: [udig-devel] Removing ContextModel from the Project Model The alternative is to keep the two lists in sync; which would be a bit sad / difficult. I am also concerned about loading previously saved uDig project files. 1. Most code has already migrated to the IMap.getLayerList() method 2. It should be easy enough to do a traverse of the LegendItem tree and produce an answer for getLayerList() however ... 3. Jesse is correct that there may be some event listeners that are watching for context model to change its list of layers 4. I think we need to keep ContextModel around for one more release; and switch the rendering code over to listen to getLegendItems() changing. This also gives us a chance to load previously created projects; and notice if the ContextModel is non empty (and use it to define the initial list of legend items) -- Jody Garnett On Wednesday, 8 February 2012 at 6:17 PM, Jesse Eichar wrote: Good luck. I think events is going to be the trickiest part. On Wed, Feb 8, 2012 at 8:53 AM, Paul Pfeiffer <[email protected]<mailto:[email protected]>> wrote: As part of adding a legend view we have identified the possibility of removing the deprecated ContextModel from the Project Model. This would result in quite a few changes across the Project Model but at this stage all I have done (locally at this stage) is add a list of LegendItems to the Map. This legend (list of items) will replace the ContextModel which stores a list of layers for the map. Give us a yell if you can think of any issues that might arise from removing ContextModel. _______________________________________________ User-friendly Desktop Internet GIS (uDig) http://udig.refractions.net http://lists.refractions.net/mailman/listinfo/udig-devel _______________________________________________ User-friendly Desktop Internet GIS (uDig) http://udig.refractions.net http://lists.refractions.net/mailman/listinfo/udig-devel ________________________________ The contents of this email are confidential and may be subject to legal or professional privilege and copyright. No representation is made that this email is free of viruses or other defects. If you have received this communication in error, you may not copy or distribute any part of it or otherwise disclose its contents to anyone. Please advise the sender of your incorrect receipt of this correspondence. _______________________________________________ User-friendly Desktop Internet GIS (uDig) http://udig.refractions.net http://lists.refractions.net/mailman/listinfo/udig-devel ________________________________ The contents of this email are confidential and may be subject to legal or professional privilege and copyright. No representation is made that this email is free of viruses or other defects. If you have received this communication in error, you may not copy or distribute any part of it or otherwise disclose its contents to anyone. Please advise the sender of your incorrect receipt of this correspondence. _______________________________________________ User-friendly Desktop Internet GIS (uDig) http://udig.refractions.net http://lists.refractions.net/mailman/listinfo/udig-devel ________________________________ The contents of this email are confidential and may be subject to legal or professional privilege and copyright. No representation is made that this email is free of viruses or other defects. If you have received this communication in error, you may not copy or distribute any part of it or otherwise disclose its contents to anyone. Please advise the sender of your incorrect receipt of this correspondence.
_______________________________________________ User-friendly Desktop Internet GIS (uDig) http://udig.refractions.net http://lists.refractions.net/mailman/listinfo/udig-devel
