mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-22 07:42:02 +00:00
parent
6805bb713f
commit
2710ec0840
@ -949,6 +949,7 @@ void GuiView::saveLayout() const
|
|||||||
settings.setValue("geometry", saveGeometry());
|
settings.setValue("geometry", saveGeometry());
|
||||||
settings.setValue("layout", saveState(0));
|
settings.setValue("layout", saveState(0));
|
||||||
settings.setValue("icon_size", toqstr(d.iconSize(iconSize())));
|
settings.setValue("icon_size", toqstr(d.iconSize(iconSize())));
|
||||||
|
settings.setValue("zoom_slider_visible", zoom_slider_->isVisible());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -992,6 +993,9 @@ bool GuiView::restoreLayout()
|
|||||||
//code below is skipped when when ~/.config/LyX is (re)created
|
//code below is skipped when when ~/.config/LyX is (re)created
|
||||||
setIconSize(d.iconSize(settings.value(icon_key).toString()));
|
setIconSize(d.iconSize(settings.value(icon_key).toString()));
|
||||||
|
|
||||||
|
zoom_slider_->setVisible(settings.value("zoom_slider_visible", true).toBool());
|
||||||
|
zoom_value_->setVisible(settings.value("zoom_slider_visible", true).toBool());
|
||||||
|
|
||||||
if (guiApp->platformName() == "qt4x11" || guiApp->platformName() == "xcb") {
|
if (guiApp->platformName() == "qt4x11" || guiApp->platformName() == "xcb") {
|
||||||
QPoint pos = settings.value("pos", QPoint(50, 50)).toPoint();
|
QPoint pos = settings.value("pos", QPoint(50, 50)).toPoint();
|
||||||
QSize size = settings.value("size", QSize(690, 510)).toSize();
|
QSize size = settings.value("size", QSize(690, 510)).toSize();
|
||||||
@ -2341,7 +2345,11 @@ bool GuiView::getStatus(FuncRequest const & cmd, FuncStatus & flag)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case LFUN_UI_TOGGLE:
|
case LFUN_UI_TOGGLE:
|
||||||
flag.setOnOff(isFullScreen());
|
if (cmd.argument() == "zoomslider") {
|
||||||
|
enable = doc_buffer;
|
||||||
|
flag.setOnOff(zoom_slider_->isVisible());
|
||||||
|
} else
|
||||||
|
flag.setOnOff(isFullScreen());
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case LFUN_DIALOG_DISCONNECT_INSET:
|
case LFUN_DIALOG_DISCONNECT_INSET:
|
||||||
@ -4842,6 +4850,9 @@ 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 == "zoomslider") {
|
||||||
|
zoom_slider_->setVisible(!zoom_slider_->isVisible());
|
||||||
|
zoom_value_->setVisible(!zoom_value_->isVisible());
|
||||||
} else
|
} else
|
||||||
if (ui_component == "frame") {
|
if (ui_component == "frame") {
|
||||||
int const l = contentsMargins().left();
|
int const l = contentsMargins().left();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user