Summary: | Can't use datasource metadata in labels | ||
---|---|---|---|
Product: | [Applications] kst | Reporter: | Nicolas Brisset <nicolas.brisset> |
Component: | general | Assignee: | kst |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 1.x | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Solaris | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Nicolas Brisset
2006-08-25 10:21:22 UTC
After thinking about this, I realized that we need a new notation. Exporting metadata to strings directly seems like the wrong thing. We need a notation that will allow the user to access the metadata of a given file. It should probably be a two-parameter [] notation. Any ideas on how best to specify this? I could imagine something like [file1.dat[Provider]] for instance, but the major problem here is that file1.dat may not be a unique identifier, and using the absolute path would be *very* painful (possibly as a last resort when the filename is not enough, i.e. unique ?). Note that [file1.dat,Provider] sounds prone to problems as some files or metadata may have names with commas in them... In the case we choose to export metadata to strings anyway, I think it would be more or less like when you duplicate all curves with the change data file tool: the new curves and vectors you get from the second datafile are all suffixed with "'", which makes them fairly easy to identify. I think I like the "new notation" approach better, provided that I don't have to type in the full path each time. It would be nice/necessary (though maybe not easy) to ensure that labels using metadata track changes to the provider file and update automatically, like when you change a datafile at loading time (-F switch), with the "Change data file..." tool, or reload. Maybe a possibility for that would be to have a mapping defined somewhere (in a small 2-column listview dialog) between datasource instances (datasource1, datasource2, etc) and the corresponding data files (/tmp/dir1/file.dat, /tmp/dir2/file.dat, etc). One would then use [datasource1[Provider]] and check the datafile<->instance number assignment when in doubt. Any update on this ? I have many user requests regarding this ability of using metadata... I think this can now be considered as fixed. The only problems left are related with updates when changing datasources, and are being discussed as part of bug #141597 anyway. |