[Kst] [Bug 243684] Handling of formatted timestamps as a valid field in input files

Nicolas Brisset nicolas.brisset at eurocopter.com
Mon Dec 5 21:06:28 UTC 2011


https://bugs.kde.org/show_bug.cgi?id=243684





--- Comment #4 from Nicolas Brisset <nicolas brisset eurocopter com>  2011-12-05 21:06:27 ---
The Code-In student has announced he did not have enough experience to do
that:-( 
But let's continue anyway, now that we got it started!

I have thought about it a bit more and it's starting to come together. I need
just a bit of (free) time to put my ideas into a UI, which will hopefully be so
clear that you (Barth, Peter, Code-In student?) can hack away at the
implementation. Basically, I'd suggest something along the lines of (T0 being
the time/date of the first sample in the file, if the file counts only relative
time and the user wants to display it absolute):
o no specific time treatment
o specific time treatment
   o read as numerical value: KstVectorSelect, interpret as: QComboBox(how to
interpret)
   o read as ASCII-formatted string: KstVectorSelect, format: QLineEdit(time
format) - T0: QLineEdit(T0)
      x Merge with date info KstVectorSelect, format: QLineEdit(date format)
   o fixed time step: QLineEdit(delta t) - T0: QLineEdit(T0)

I think with that we can cover nicely more or less all the cases, including NI
with the last option and minimal copy/pasting from the 100 line preview.
Points to clarify:
1) what else do we need to ask the user?
2) how do we handle the T0 formats? I'm thinking of asking the user to provide
strings like YYYYMMDD, which can be used directly with QDateTime
3) how do we transform from QDateTime to the formats mentioned by Barth above?
4) is there a better way to input the formats than QLineEdits? (Like QComboBox
with predefined formats + option to provide your own)

I hope we can sort that out shortly, having this sort of support in kst would
be awesome and answer many a request we've already had :-)

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Kst mailing list