mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
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). Amendscc787967
(and thus49a17aaa
).
This commit is contained in:
parent
940d3ceeb9
commit
13a7269b9d
@ -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
|
||||
|
||||
|
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user