Change LFUN arg from "zoom" to "zoomlevel"

This change is just to be more specific, to help when grepping and
reading.

The idea is from Daniel
(https://www.lyx.org/trac/ticket/12420?replyto=11#comment:11).

Amends cc787967 (and thus 49a17aaa).
This commit is contained in:
Scott Kostyshak 2022-01-03 15:53:56 -05:00
parent 940d3ceeb9
commit 13a7269b9d
2 changed files with 3 additions and 3 deletions

View File

@ -729,7 +729,7 @@ Menuset
Menu "context-statusbar" Menu "context-statusbar"
ZoomOptions ZoomOptions
Separator Separator
Item "Show Zoom Level|Z" "ui-toggle zoom" Item "Show Zoom Level|Z" "ui-toggle zoomlevel"
Item "Show Zoom Slider|S" "ui-toggle zoomslider" Item "Show Zoom Slider|S" "ui-toggle zoomslider"
End End

View File

@ -2374,7 +2374,7 @@ bool GuiView::getStatus(FuncRequest const & cmd, FuncStatus & flag)
break; break;
case LFUN_UI_TOGGLE: case LFUN_UI_TOGGLE:
if (cmd.argument() == "zoom") { if (cmd.argument() == "zoomlevel") {
flag.setOnOff(zoom_value_ ? zoom_value_->isVisible() : false); flag.setOnOff(zoom_value_ ? zoom_value_->isVisible() : false);
} else if (cmd.argument() == "zoomslider") { } else if (cmd.argument() == "zoomslider") {
flag.setOnOff(zoom_slider_ ? zoom_slider_->isVisible() : false); flag.setOnOff(zoom_slider_ ? zoom_slider_->isVisible() : false);
@ -4884,7 +4884,7 @@ bool GuiView::lfunUiToggle(string const & ui_component)
statusBar()->setVisible(!statusBar()->isVisible()); statusBar()->setVisible(!statusBar()->isVisible());
} else if (ui_component == "menubar") { } else if (ui_component == "menubar") {
menuBar()->setVisible(!menuBar()->isVisible()); menuBar()->setVisible(!menuBar()->isVisible());
} else if (ui_component == "zoom") { } else if (ui_component == "zoomlevel") {
zoom_value_->setVisible(!zoom_value_->isVisible()); zoom_value_->setVisible(!zoom_value_->isVisible());
} else if (ui_component == "zoomslider") { } else if (ui_component == "zoomslider") {
zoom_slider_->setVisible(!zoom_slider_->isVisible()); zoom_slider_->setVisible(!zoom_slider_->isVisible());