Skip to content

Commit

Permalink
Adding advanced form callback from basic form change
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentinGuillaume committed May 27, 2024
1 parent ab66d15 commit f89d111
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
Binary file modified lib/tool/tools/mdprep/include/tools/mdprep/ui/form_data.hpp
Binary file not shown.
Binary file modified lib/tool/tools/mdprep/src/ui/advanced_form.cpp
Binary file not shown.
12 changes: 12 additions & 0 deletions lib/tool/tools/mdprep/src/ui/form_data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f89d111

Please sign in to comment.