Bug 216744

Summary: Associate filename patterns with configs (ASCII datasource)
Product: [Applications] kst Reporter: Nicolas Brisset <nicolas.brisset>
Component: generalAssignee: kst
Status: CONFIRMED ---    
Severity: wishlist    
Priority: NOR    
Version: 2.0.0   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

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.