mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-24 07:16:53 -06:00
#3140 CSV import dialog. Add time format 'None' which is default
This commit is contained in:
parent
2eae092359
commit
28993dae49
@ -53,10 +53,11 @@ namespace caf {
|
||||
template<>
|
||||
void RicPasteAsciiDataToSummaryPlotFeatureUi::TimeFormatEnum::setUp()
|
||||
{
|
||||
addItem(RicPasteAsciiDataToSummaryPlotFeatureUi::TIME_NONE, "", "None");
|
||||
addItem(RicPasteAsciiDataToSummaryPlotFeatureUi::TIME_HHMM, "hh:mm", "Hour:Minute (hh:mm)");
|
||||
addItem(RicPasteAsciiDataToSummaryPlotFeatureUi::TIME_HHMMSS, "hh:mm:ss", "Hour:Minute:Second (hh:mm:ss)");
|
||||
addItem(RicPasteAsciiDataToSummaryPlotFeatureUi::TIME_HHMMSSZZZ, "hh:mm:ss.zzz", "Hour:Minute:Second.Millisecond (hh:mm:ss.zzz)");
|
||||
setDefault(RicPasteAsciiDataToSummaryPlotFeatureUi::TIME_HHMM);
|
||||
setDefault(RicPasteAsciiDataToSummaryPlotFeatureUi::TIME_NONE);
|
||||
}
|
||||
|
||||
template<>
|
||||
@ -243,7 +244,8 @@ const AsciiDataParseOptions RicPasteAsciiDataToSummaryPlotFeatureUi::parseOption
|
||||
parseOptions.useCustomDateTimeFormat = false;
|
||||
parseOptions.dateFormat = m_dateFormat().text();
|
||||
parseOptions.timeFormat = m_timeFormat().text();
|
||||
parseOptions.dateTimeFormat = parseOptions.dateFormat + " " + parseOptions.timeFormat;
|
||||
parseOptions.dateTimeFormat = parseOptions.dateFormat +
|
||||
(m_timeFormat() != TimeFormat::TIME_NONE ? " " + parseOptions.timeFormat : "");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -99,6 +99,7 @@ public:
|
||||
|
||||
enum TimeFormat
|
||||
{
|
||||
TIME_NONE,
|
||||
TIME_HHMM,
|
||||
TIME_HHMMSS,
|
||||
TIME_HHMMSSZZZ,
|
||||
|
Loading…
Reference in New Issue
Block a user