On Tuesday, July 29, 2003, at 06:43 PM, Adrian Lumsden wrote:
>
> Wouldn't it be better for the layer handler to toss up an exception so
> that applications can catch and handle the problem?
Yes, this is better.
>
> Then it would be up to the LayersPanel to toss up the message.
>
> I'd probably create an OMException class which extends Exception so
> that app code can catch (OMException ome) and handle them separately
> from other exceptions.
Another good idea.
> I'm happy to stick this into my work queue but it will probably be a
> couple of weeks before it will comes up to the top.
>
OK, but if I get around to it first in 4.6 release preparations, I'll
let you know.
Thanks,
Don
>
>
> The LayerHandler is usually responsible for deleting layers, so it
> could check the layer for that property. It should toss up an
> information window notifying the user that the layer can't be deleted
> if it receives a command to delete a marked layer.
>
> The LayersPanel delete button should disable itself if the selected
> layer is not supposed to be deleted.
>
> - Don
>
>
> On Tuesday, July 29, 2003, at 05:28 PM, Adrian Lumsden wrote:
>
> >
> > Hello,
> >
> > I too would like to have the ability to mark a layer as being
> > undeletable. I was going to do this by setting a flag in my layers
> > (which extend the OM layers) and not using the OM layer management
> > tools.
> >
> > I haven't had a look at the code but I don't suppose it would be too
> > difficult to implement the no-delete property. I think the major
> > amount of work would be in deciding what the GUI tools should do. Do
> > they disable the delete option when an undeletable layer is selected;
> > do they allow the delete button to be pressed and generate an error
> or
> > do they just silently ignore the request?
> >
> > I'm going to have to resolve the issue soon'ish so I'm prepared to do
> > some work on the code if there's a consensus on the way to go.
> >
> > regards,
> >
> > Adrian
> > _____________________________________________
> >
> > Adrian Lumsden
> > Product Specialist
> > Scientific Software and Systems Limited
> >
> > Tel: +64 4 917-6680 (direct)
> > +64 4 917-6670 (reception)
> > Fax: +64 4 917-6671
> > E-mail: Adrian.Lumsden@sss.co.nz
> >
> > Visit us on the Web at: http://www.sss.co.nz
> > _____________________________________________
> >
> > This e-mail passed SSS's content security scan.
> > It is covered by the confidentiality clauses at
> > http://www.sss.co.nz/content_and_confidentiality
> >
> >
> >
> >
> <image.tiff>
> >
> >
> >
> >
> > Hi,
> >
> > [...SNIP...]
> >
> > I have a problem in my application. A few layer must not be removed
> > by user. How to stop user from deleting layer? Doas layer has any
> > property 'removable' or something? If not I'd like to add such
> > feature to Layer class and hadle it in LayersPanel. Maybe I should
> > go another way?
> >
> > Regards,
> > Piotr Kaminski
> >
> >
>
>
>
-- [To unsubscribe to this list send an email to "majdart@bbn.com" with the following text in the BODY of the message "unsubscribe openmap-users"]Received on Wed Jul 30 10:15:35 2003
This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:36 EDT