Mercurial > octave
view libgui/src/gui-preferences-dc.cc @ 33408:7bad34ee4021 stable
save and restore splitter state of documentation widget
* documentation.cc (documentation): restore splitter state from settings;
(save_settings): save splitter state
* gui-preferences-dc.cc/.h: define new settings key for splitter state
author | Torsten Lilge <ttl-octave@mailbox.org> |
---|---|
date | Sun, 14 Apr 2024 21:31:02 +0200 |
parents | 2e484f9f1f18 |
children | abce1aa7f66f |
line wrap: on
line source
//////////////////////////////////////////////////////////////////////// // // Copyright (C) 2017-2024 The Octave Project Developers // // See the file COPYRIGHT.md in the top-level directory of this // distribution or <https://octave.org/copyright/>. // // This file is part of Octave. // // Octave is free software: you can redistribute it and/or modify it // under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // Octave is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with Octave; see the file COPYING. If not, see // <https://www.gnu.org/licenses/>. // //////////////////////////////////////////////////////////////////////// #if defined (HAVE_CONFIG_H) # include "config.h" #endif #include "gui-preferences-dc.h" // documentation properties gui_pref dc_bookmark_filter_active ("documentation_widget/filter_active", QVariant (false)); gui_pref dc_bookmark_filter_shown ("documentation_widget/filter_shown", QVariant (true)); gui_pref dc_bookmark_filter_mru ("documentation_widget/bookmark_filter_mru", QVariant ()); // Zoom level gui_pref dc_browser_zoom_level ("documentation_widget/browser_zoom_level", QVariant (0)); // Splitter state gui_pref dc_splitter_sate ("documentation_widget/splitter_state", QVariant (0));