Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show warning window if data loss occurs when saving to tiff #7655

Merged
merged 3 commits into from Mar 25, 2024

Conversation

lassoan
Copy link
Contributor

@lassoan lassoan commented Mar 22, 2024

This pull request supersedes #7614 by @aramSofthenge

When a language was specified for updating translations and no translation file was found for that language
then a new translation file was generated for en-US language. This commit changes this to generate translation file
for the specified language.
@lassoan lassoan added this to the Slicer 5.7 milestone Mar 22, 2024
@lassoan lassoan force-pushed the dev/tiff-save-warning-window branch from 1f85b13 to 450a933 Compare March 22, 2024 02:49
@lassoan lassoan changed the title Show warning window if data loss occurst when saving to tiff Show warning window if data loss occurs when saving to tiff Mar 22, 2024
@lassoan lassoan force-pushed the dev/tiff-save-warning-window branch from 450a933 to 534883a Compare March 22, 2024 03:27
pieper
pieper previously approved these changes Mar 22, 2024
Copy link
Member

@pieper pieper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a couple small comments, otherwise LGTM.

if ((vtksys::SystemTools::StringEndsWith(lowerCaseFileName, ".tiff") ||
vtksys::SystemTools::StringEndsWith(lowerCaseFileName, ".tif")))
{
// Display warning if saving VTK file with non-LPS axes (VTK cannot store axis directions)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment should refer to tiff not VTK

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, I will fix it

Libs/MRML/Core/vtkMRMLVolumeArchetypeStorageNode.cxx Outdated Show resolved Hide resolved
Adds warning for TIFF file format saving. Prevents potential data loss.
Made translatable all messages that may be relevant to users.

see Slicer#7588

Co-authored-by: Andras Lasso <lasso@queensu.ca>
@lassoan lassoan force-pushed the dev/tiff-save-warning-window branch from ce8d0e3 to c33335c Compare March 22, 2024 16:02
@lassoan
Copy link
Contributor Author

lassoan commented Mar 22, 2024

@pieper please have a look and approve if it looks good. Thank you!

Copy link
Member

@pieper pieper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@pieper pieper merged commit 64ab65b into Slicer:main Mar 25, 2024
5 checks passed
@lassoan lassoan deleted the dev/tiff-save-warning-window branch March 25, 2024 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants