Bug 216744 - Associate filename patterns with configs (ASCII datasource)
Summary: Associate filename patterns with configs (ASCII datasource)
Status: CONFIRMED
Alias: None
Product: kst
Classification: Applications
Component: general (show other bugs)
Version: 2.0.0
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: kst
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-30 00:13 UTC by Nicolas Brisset
Modified: 2010-08-14 12:14 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Brisset 2009-11-30 00:13:29 UTC
Version:           2.0.0_devel (using unspecified)
Compiler:          gcc 4.4.1 
OS:                Linux

This is probably a post-2.0.0 feature, at least it is not blocking but rather nice-to-have. 
The idea would be to have more than one default config for the ASCII datasource.  We would use filename patterns as key to look up the rest of the config parameters. The checkbox at the bottom of the ASCII config dialog to "Apply these settings as default" would set the current config as absolute default it the filename pattern is empty, otherwise as default for the current filename pattern only. And the filename pattern lineedit ("Always accept files matching") would turn into an editable combobox: selecting a pattern from the list would set all other parameters in one shot. And this would of course be used when reading a new file: the default settings for the first matching file pattern would be used.
That is probably less work and more robust than automatic detection of the format (which would be nice, of course) and could possibly make the lack of automatic detection acceptable.
Comment 1 Peter Kümmel 2010-08-14 12:14:24 UTC
Change version from 2.0.0_devel to 2.0.0 to simplify version numbering.