[Kst] branches/work/kst/portto4/kst/src/datasources/ascii

Nicolas Brisset nicolas.brisset at free.fr
Wed May 1 21:37:17 UTC 2013


> SVN commit 1351676 by netterfield:
> 
> Configuration dialog mostly works, 
Hey, great!!!

> with these exceptions:
> -Preview first 100 lines ins not enabled yet.
Apparently done by Peter in the meantime.

> -I don't know what 'Always accept files matching' is supposed to do,
> and I don't know if it does it.
The idea was to return 100 in the test whether the format can be read based on the extension.
I.e. if you have .dat and you put here *.dat, the ASCII source will always be called for this file.
In the future, we could extend this to associate all properties (header, formatting, etc...) to a name, and a file extension.
There is a bug open on that: http://bugs.kde.org/show_bug.cgi?id=216744

> -File date, at least under linux, is suspect.  What we probably want
> is file creation date/time, but that doesn't seem to (necessarily)
> exist.
> What do we want to do here?
Hum, apparently there is no file creation date on Unix indeed!
I guess our best approach here would be to estimate it as QFileInfo::lastModified() - (QDateTime(last sample) - QDateTime(first sample)),
i.e. assume the lastModified is the date of the last sample and substrat the time difference between the last and first sample to get the time of the first sample.
Should give reasonably good results...

Nicolas


More information about the Kst mailing list