[LyX/master] Change LFUN arg from "zoom" to "zoomlevel"
Scott Kostyshak
skostysh at lyx.org
Mon Jan 3 20:28:21 UTC 2022
commit 13a7269b9dc9b00f2edf65de38483b99d8fb1dfe
Author: Scott Kostyshak <skostysh at lyx.org>
Date: Mon Jan 3 15:53:56 2022 -0500
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).
---
lib/ui/stdcontext.inc | 2 +-
src/frontends/qt/GuiView.cpp | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/ui/stdcontext.inc b/lib/ui/stdcontext.inc
index 5051c44..ed9a9da 100644
--- a/lib/ui/stdcontext.inc
+++ b/lib/ui/stdcontext.inc
@@ -729,7 +729,7 @@ Menuset
Menu "context-statusbar"
ZoomOptions
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"
End
diff --git a/src/frontends/qt/GuiView.cpp b/src/frontends/qt/GuiView.cpp
index 1680ce6..6cd97f5 100644
--- a/src/frontends/qt/GuiView.cpp
+++ b/src/frontends/qt/GuiView.cpp
@@ -2374,7 +2374,7 @@ bool GuiView::getStatus(FuncRequest const & cmd, FuncStatus & flag)
break;
case LFUN_UI_TOGGLE:
- if (cmd.argument() == "zoom") {
+ if (cmd.argument() == "zoomlevel") {
flag.setOnOff(zoom_value_ ? zoom_value_->isVisible() : false);
} else if (cmd.argument() == "zoomslider") {
flag.setOnOff(zoom_slider_ ? zoom_slider_->isVisible() : false);
@@ -4884,7 +4884,7 @@ bool GuiView::lfunUiToggle(string const & ui_component)
statusBar()->setVisible(!statusBar()->isVisible());
} else if (ui_component == "menubar") {
menuBar()->setVisible(!menuBar()->isVisible());
- } else if (ui_component == "zoom") {
+ } else if (ui_component == "zoomlevel") {
zoom_value_->setVisible(!zoom_value_->isVisible());
} else if (ui_component == "zoomslider") {
zoom_slider_->setVisible(!zoom_slider_->isVisible());
More information about the lyx-cvs
mailing list