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

Fixed Right click press position #284

Merged
merged 5 commits into from
Sep 21, 2021

Conversation

ahcorde
Copy link
Contributor

@ahcorde ahcorde commented Sep 16, 2021

Signed-off-by: ahcorde ahcorde@gmail.com

🦟 Bug fix

Summary

The right click press position is not being published.

Checklist

  • Signed all commits for DCO
  • Added tests
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge

Signed-off-by: ahcorde <ahcorde@gmail.com>
@ahcorde ahcorde self-assigned this Sep 16, 2021
@github-actions github-actions bot added the 🏯 fortress Ignition Fortress label Sep 16, 2021
@chapulina chapulina added beta Targeting beta release of upcoming collection bug Something isn't working labels Sep 16, 2021
@@ -248,6 +248,8 @@ void IgnRenderer::BroadcastRightClick()

events::RightClickToScene rightClickToSceneEvent(pos);
App()->sendEvent(App()->findChild<MainWindow *>(), &rightClickToSceneEvent);
events::RightClickOnScene rightClickOnSceneEvent(this->dataPtr->mouseEvent);
App()->sendEvent(App()->findChild<MainWindow *>(), &rightClickOnSceneEvent);
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we do the same for the left click?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah thanks. But it's strange that these are not done in the same place. The right click is in Broadcast while the left click is in HandleMouseViewControl. Do you know why they're not handled the same way?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think we can sort this out later, let's get this PR in

src/plugins/minimal_scene/MinimalScene.cc Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Sep 20, 2021

Codecov Report

Merging #284 (f2a8560) into main (0221c3a) will increase coverage by 0.06%.
The diff coverage is 78.89%.

❗ Current head f2a8560 differs from pull request most recent head 75efa37. Consider uploading reports for the commit 75efa37 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##             main     #284      +/-   ##
==========================================
+ Coverage   65.20%   65.26%   +0.06%     
==========================================
  Files          32       32              
  Lines        4532     4621      +89     
==========================================
+ Hits         2955     3016      +61     
- Misses       1577     1605      +28     
Impacted Files Coverage Δ
include/ignition/gui/GuiEvents.hh 100.00% <ø> (ø)
include/ignition/gui/Helpers.hh 100.00% <ø> (ø)
src/plugins/minimal_scene/MinimalScene.cc 59.45% <73.86%> (+0.37%) ⬆️
src/GuiEvents.cc 100.00% <100.00%> (ø)
src/Helpers.cc 93.33% <100.00%> (+0.65%) ⬆️
src/MainWindow.cc 96.95% <100.00%> (+0.02%) ⬆️
src/plugins/scene3d/Scene3D.cc 48.63% <0.00%> (-0.27%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 72e1066...75efa37. Read the comment docs.

Copy link
Contributor

@chapulina chapulina left a comment

Choose a reason for hiding this comment

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

The context menu is working on ign-gazebo with this, let's get it in!

@@ -248,6 +248,8 @@ void IgnRenderer::BroadcastRightClick()

events::RightClickToScene rightClickToSceneEvent(pos);
App()->sendEvent(App()->findChild<MainWindow *>(), &rightClickToSceneEvent);
events::RightClickOnScene rightClickOnSceneEvent(this->dataPtr->mouseEvent);
App()->sendEvent(App()->findChild<MainWindow *>(), &rightClickOnSceneEvent);
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we can sort this out later, let's get this PR in

@chapulina chapulina merged commit 27f9f68 into main Sep 21, 2021
@chapulina chapulina deleted the ahcorde/minimal_scene/right_click_press branch September 21, 2021 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beta Targeting beta release of upcoming collection bug Something isn't working 🏯 fortress Ignition Fortress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants