git-svn-id: svn://db.shs.com.ru/libs@612 a8b55f48-bf90-11e4-a774-851b48703e85

This commit is contained in:
2019-10-11 09:55:13 +00:00
parent 67cecc7a8d
commit 7aa7ead1d5
6 changed files with 326 additions and 19 deletions

View File

@@ -67,6 +67,8 @@ void SessionManager::save() {
sr.setValue(evals[i].first, evals[i].second->expression(), "s", false);
for (int i = 0; i < tabs.size(); ++i)
sr.setValue(tabs[i].first, tabs[i].second->currentIndex(), false);
for (int i = 0; i < groups.size(); ++i)
sr.setValue(groups[i].first, groups[i].second->isChecked(), false);
for (int i = 0; i < buttons.size(); ++i)
sr.setValue(buttons[i].first, buttons[i].second->isChecked(), false);
for (int i = 0; i < stacks.size(); ++i)
@@ -195,6 +197,8 @@ void SessionManager::load(bool onlyMainwindow) {
if (v >= 0 && v < t->count())
t->setCurrentIndex(v);
}
for (int i = 0; i < groups.size(); ++i)
groups[i].second->setChecked(sr.getValue(groups[i].first, groups[i].second->isChecked()));
for (int i = 0; i < buttons.size(); ++i)
buttons[i].second->setChecked(sr.getValue(buttons[i].first, buttons[i].second->isChecked()));
for (int i = 0; i < stacks.size(); ++i)