Bring back the remembering feature of the expanded/collapsed status of the tools. See issue 2648. Additionnally, correct a GUI bug of the B&W tool: the display wasn't initialized correctly when opening a new editor.

This commit is contained in:
Hombrenatureh.510
2015-03-15 12:28:27 +01:00
parent 682e6b9017
commit 4fbd3af156
24 changed files with 197 additions and 116 deletions

View File

@@ -416,14 +416,32 @@ void ToolPanelCoordinator::closeImage () {
}
}
void ToolPanelCoordinator::readOptions () {
void ToolPanelCoordinator::closeAllTools() {
for (size_t i=0; i<options.tpOpen.size(); i++)
if (i<expList.size())
expList.at(i)->set_expanded (false);
}
void ToolPanelCoordinator::openAllTools() {
for (size_t i=0; i<options.tpOpen.size(); i++)
if (i<expList.size())
expList.at(i)->set_expanded (true);
}
void ToolPanelCoordinator::updateToolState() {
crop->readOptions ();
for (size_t i=0; i<options.tpOpen.size(); i++)
if (i<expList.size())
expList.at(i)->set_expanded (options.tpOpen.at(i));
}
void ToolPanelCoordinator::readOptions () {
crop->readOptions ();
}
void ToolPanelCoordinator::writeOptions () {
crop->writeOptions ();