Carl, You wrote: "if you add a new layer and want to save it (right-mouse-menu on layer -> "save selected datasets"), it would be nice if there would be opened a save-dialog (only for new "unsaved" layers) to store the layer. i know, you should save it first with the "save dataset as"-menu, but it would be more user-friendly, like the save-dialog in the windows notepad (automatically "save as"-dialog)."
I like it! Have you ever used our FeatureTracker on SourceForge? If you submit your ideas there, as well as on the mailing list, we won't loose them. You wrote: "is it possible to save the layer with a simple function from a plugin? ( layer.saveall() or something like that?) if you are editing the schema and attributes of a layer, the plugin should save the changes, not save by clicking mouse-menu..." I'm not sure about this. You must remember that a Layer is really just a thin wrapper around a source of Feature objects. Ususally this is an ESRI Shapefile or some other type of file. So when you save changes to the schema or contents of a Layer you are really trying to modify the underlying file. An exception to this is they styling of the layer. The information to style a layer is stored in the project file. Maybe one of the other programmers can confirm this for me. I haven't dealt a lot with the styling of layers. I think Paul has done a lot of work in this area, even making some custom Layer Styles. Having said all of that, it is possible to listen for changes to a layer, and you could set up some sort of automatic save in a plug-in. You'd have to [1] be aware of performance issues. You don't want to save a layer everytime the user moves a node on a LineString and [2] remember that you'd need to handle the different file formats you want to support. Remember: Layers inderectly wrap a file that can be used to produce Feature objects! The Sunburned Surveyor On Wed, Mar 26, 2008 at 5:21 AM, Carl Grönniger (entera) <[EMAIL PROTECTED]> wrote: > > i've totally forgotten my question :-) > > is it possible to save the layer with a simple function from a plugin? ( > layer.saveall() or something like that?) > if you are editing the schema and attributes of a layer, the plugin should > save the changes, not save by clicking mouse-menu... > > carl > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Jump-pilot-devel mailing list > Jump-pilot-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel > > ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel