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

consume CharEvents s and w in viewers #218

Merged
merged 3 commits into from
Jan 17, 2024
Merged

consume CharEvents s and w in viewers #218

merged 3 commits into from
Jan 17, 2024

Conversation

paskino
Copy link
Contributor

@paskino paskino commented Jan 12, 2024

closes #179

Adds parsing of CLI parameters to idvc executable.

Currently adds the way to set the global logging level.

@paskino paskino requested a review from DanicaSTFC January 12, 2024 12:27
Copy link
Contributor

@DanicaSTFC DanicaSTFC left a comment

Choose a reason for hiding this comment

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

I tested this on windows.

The "w" key seems to do nothing.

The "s" key now only shows/hides the slice in the 3D viewer (no extra behaviour).

This looks good to me and can be merged. I added a minor comment on the CHANGE file.

CHANGES.md Show resolved Hide resolved
Copy link
Contributor

@DanicaSTFC DanicaSTFC left a comment

Choose a reason for hiding this comment

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

When I run the app the terminal shows:

  • "Unhandled event w" when "w" is pressed in the 3D viewer.
    Can we change this so this is not printed? I noticed this sentence is printed for most keys pressed in the 3D viewer.

When I pressed "q" on the 3D viewer the app stopped responding. Is this something similar to the w behaviour we could avoid?

@paskino
Copy link
Contributor Author

paskino commented Jan 16, 2024

The prints "unhandled event w" comes from the viewer, so it should be updated there.

q would stop the interactor processing loop. However, in the case where the viewer is in a Qt application, this should not have any effect, as the processing loop is handled by Qt.

I'll investigate.

@paskino paskino requested a review from DanicaSTFC January 16, 2024 08:11
@paskino paskino merged commit 1eae747 into master Jan 17, 2024
3 checks passed
@paskino paskino deleted the charevent_discard branch January 17, 2024 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Registration box becomes opaque after pressing 's'
2 participants