-
Notifications
You must be signed in to change notification settings - Fork 44
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
Add common widget for pose #424
Conversation
Signed-off-by: youhy <[email protected]>
Signed-off-by: youhy <[email protected]>
Codecov Report
@@ Coverage Diff @@
## ign-gui3 #424 +/- ##
=========================================
Coverage 66.12% 66.12%
=========================================
Files 29 29
Lines 3218 3218
=========================================
Hits 2128 2128
Misses 1090 1090 Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, left some comments.
There's a couple of bugs I've encountered (not sure if they are correlated). When you first expand the pose submenu in the component inspector, you're able to update the pose fine and when the pose submenu stays open when you click on another object. If you keep selecting other objects, eventually the pose submenu closes and when you re-open it you're no longer able to update the pose. See gif below. Also, notice the sphere will eventually move when selected from the entity tree.
Ignore previous statement, it wasn't reproducible by others
Signed-off-by: youhy <[email protected]>
Signed-off-by: youhy <[email protected]>
Signed-off-by: youhy <[email protected]>
Signed-off-by: youhy <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good! Just left some reminders regarding what we discussed in our video call
Signed-off-by: youhy <[email protected]>
Signed-off-by: youhy <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some minor comments but looks good, thanks for iterating!
// Dummy component to use its functions. | ||
IgnHelpers { | ||
id: gzHelper | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to set up IgnHelpers.qml
in a way that we don't have to instantiate a dummy component and just be able to call the functions (e.g., IgnHelpers.getDecimals(...)
)?
This is out of scope for this PR but if it is possible, after we merge this, this could potentially be a next task for you.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well. This is doable but we need to make sure every qml using this common widget must also include IgnHelpers.qml
as well. Do we want to do this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed that this would be a nice change. This PR is just following the weird pattern that I started with IgnHelpers
a while back, so we don't need to block on it.
we need to make sure every qml using this common widget must also include IgnHelpers.qml as well.
I think there may be ways to work around this, either with a singleton or a javascript file.
include/ignition/gui/qml/GzPose.qml
Outdated
|
||
/** | ||
* Useful only when readOnly == false. User should read spinbox values from | ||
* its parameters. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you specify "its parameters"? Do you mean, from the property var *Item
variables?
When you say, "User should read spinbox...", is that when readOnly is true
? If this is the case, it would be good to explicitly state that eg., "When true, users should read spinbox..."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"its parameters" refers to the parameters of this signal.
I think you mean when readOnly is false
. Here, I also want to stress that when readOnly is "true", this signal is not used (so should not be used by users, too). Would you like to check if my latest commit is clear on these?
Signed-off-by: youhy <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh I was just leaving a review and saw that the PR was merged. @AzulRadio , do you mind opening a new PR addressing the comments that you agree with? Thanks!
New feature
Summary
Add the common widget for Pose
Test it
Can be tested with branch
azulradio/common_widget_pose
in repogz-sim
Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining
Signed-off-by
messages.