Skip to content

Commit

Permalink
Update status message by removing colon or adjust colon position (#624)
Browse files Browse the repository at this point in the history
Signed-off-by: Chen Lihui <lihui.chen@sony.com>
  • Loading branch information
Chen Lihui committed Nov 6, 2020
1 parent a49fc7c commit 5ec2e5a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,13 @@ void FPSViewController::handleMouseEvent(rviz_common::ViewportMouseEvent & event
void FPSViewController::setCursorStatus(rviz_common::ViewportMouseEvent & event)
{
if (event.shift()) {
setStatus("<b>Left-Click:</b> Move X/Y. <b>Right-Click:</b>: Move Z.");
setStatus("<b>Left-Click:</b> Move X/Y. <b>Right-Click:</b> Move Z.");
} else {
setStatus(
"<b>Left-Click:</b> Rotate. "
"<b>Middle-Click:</b> Move X/Y. "
"<b>Right-Click:</b>: Zoom. "
"<b>Shift</b>: More options.");
"<b>Right-Click:</b> Zoom. "
"<b>Shift:</b> More options.");
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,17 +165,17 @@ void OrbitViewController::setShiftOrbitStatus()
{
setStatus(
"<b>Left-Click:</b> Move X/Y. "
"<b>Right-Click:</b>: Move Z. "
"<b>Mouse Wheel:</b>: Zoom.");
"<b>Right-Click:</b> Move Z. "
"<b>Mouse Wheel:</b> Zoom.");
}

void OrbitViewController::setDefaultOrbitStatus()
{
setStatus(
"<b>Left-Click:</b> Rotate. "
"<b>Middle-Click:</b> Move X/Y. "
"<b>Right-Click/Mouse Wheel:</b>: Zoom. "
"<b>Shift</b>: More options.");
"<b>Right-Click/Mouse Wheel:</b> Zoom. "
"<b>Shift:</b> More options.");
}

bool OrbitViewController::setMouseMovementFromEvent(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ void FixedOrientationOrthoViewController::handleMouseEvent(rviz_common::Viewport
} else {
setStatus(
"<b>Left-Click:</b> Rotate. <b>Middle-Click:</b> Move X/Y. "
" <b>Right-Click:</b>: Zoom. <b>Shift</b>: More options.");
" <b>Right-Click:</b> Zoom. <b>Shift:</b> More options.");
}

int32_t diff_x = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ void XYOrbitViewController::lookAt(const Ogre::Vector3 & point)

void XYOrbitViewController::setShiftOrbitStatus()
{
setStatus("<b>Left-Click:</b> Move X/Y. <b>Right-Click:</b>: Zoom.");
setStatus("<b>Left-Click:</b> Move X/Y. <b>Right-Click:</b> Zoom.");
}

void XYOrbitViewController::moveFocalPoint(
Expand Down

0 comments on commit 5ec2e5a

Please sign in to comment.