From f89d111da4b033bf12c4fcf167afd95378704532 Mon Sep 17 00:00:00 2001 From: Valentin Date: Tue, 28 May 2024 00:08:12 +0200 Subject: [PATCH] Adding advanced form callback from basic form change --- .../include/tools/mdprep/ui/form_data.hpp | Bin 6084 -> 6400 bytes .../tools/mdprep/src/ui/advanced_form.cpp | Bin 25058 -> 26154 bytes lib/tool/tools/mdprep/src/ui/form_data.cpp | 12 ++++++++++++ 3 files changed, 12 insertions(+) diff --git a/lib/tool/tools/mdprep/include/tools/mdprep/ui/form_data.hpp b/lib/tool/tools/mdprep/include/tools/mdprep/ui/form_data.hpp index 417bfb7e18cfbaaee0bbcbb9d75d8db6a45c2c04..3b09a6936f2f574ca33ed614ad1fe9b45766e10e 100644 GIT binary patch delta 285 zcmZvWI|{-;6h&_%A;Rn-mDmlq1kq9mx&TopVjw?~iItG7AkAz<(5O)&8_}1puIx3M>Es diff --git a/lib/tool/tools/mdprep/src/ui/advanced_form.cpp b/lib/tool/tools/mdprep/src/ui/advanced_form.cpp index 6fecc267ad85a93567ca1dc6c3411edf940cba8c..b3a4856bc51b2c8f22fee33cf619fdab1ef78646 100644 GIT binary patch delta 542 zcmaEKm~qt^#tmxRlg|a|Ozw;0nw$`1q|VF0#lQ)M1q|^FDGZ4WB|xkPWR)@$fq9t> z`3!lJAF3$2D==s=C@|y#WpaS3G8qbhbS6V8P+b6!P6nzA2J%339#DTVg9cDFs;Q+w znas(7GRpi444MoGyR{}K#;H$!5Xd1~2DCE=XhSMcH(bT!gHghh`@%FP2k5a)-WO>` zf~#dGPtawdqRZt$=3%)0W1K!tm+Md75otrTiv#V%U8xkxw&LudPzJ`@WZdqXALG3_ IiMt^T0QpaDP5=M^ delta 14 WcmZ2=hVjv1#tmxRoAdbhgaH6E9R@)F diff --git a/lib/tool/tools/mdprep/src/ui/form_data.cpp b/lib/tool/tools/mdprep/src/ui/form_data.cpp index 683ed843a..a6a778e5a 100644 --- a/lib/tool/tools/mdprep/src/ui/form_data.cpp +++ b/lib/tool/tools/mdprep/src/ui/form_data.cpp @@ -15,4 +15,16 @@ namespace VTX::Tool::Mdprep::ui } } + const double multiplierPicoSeconds( const E_MD_DURATION_UNIT & p_ ) noexcept + { + switch ( p_ ) + { + case E_MD_DURATION_UNIT::femtoSeconds: return 1e3; + case E_MD_DURATION_UNIT::picoSeconds: return 1e0; + case E_MD_DURATION_UNIT::nanoSeconds: return 1e3; + case E_MD_DURATION_UNIT::microSeconds: return 1e6; + default: return 1.0; + } + } + } // namespace VTX::Tool::Mdprep::ui