Simplify interface settings with hide/show tools

This commit is contained in:
Desmis
2020-07-06 12:26:09 +02:00
parent 67bfc351b2
commit 4d49d142aa
10 changed files with 153 additions and 2 deletions

View File

@@ -261,6 +261,12 @@ void Locallab::read(const rtengine::procparams::ProcParams* pp, const ParamsEdit
r->shape = 1;
}
if (pp->locallab.spots.at(i).prevMethod == "hide") {
r->prevMethod = 0;
} else {
r->prevMethod = 1;
}
if (pp->locallab.spots.at(i).spotMethod == "norm") {
r->spotMethod = 0;
} else {
@@ -409,6 +415,13 @@ void Locallab::write(rtengine::procparams::ProcParams* pp, ParamsEdited* pedited
r->shape = 1;
}
if (newSpot->prevMethod == "hide") {
r->prevMethod = 0;
} else {
r->prevMethod = 1;
}
if (newSpot->spotMethod == "norm") {
r->spotMethod = 0;
} else {
@@ -686,6 +699,12 @@ void Locallab::write(rtengine::procparams::ProcParams* pp, ParamsEdited* pedited
r->shape = 1;
}
if (newSpot->prevMethod == "hide") {
r->prevMethod = 0;
} else {
r->prevMethod = 1;
}
if (newSpot->spotMethod == "norm") {
r->spotMethod = 0;
} else {
@@ -845,6 +864,13 @@ void Locallab::write(rtengine::procparams::ProcParams* pp, ParamsEdited* pedited
pp->locallab.spots.at(pp->locallab.selspot).shape = "RECT";
}
if (r->prevMethod == 0) {
pp->locallab.spots.at(pp->locallab.selspot).prevMethod = "hide";
} else {
pp->locallab.spots.at(pp->locallab.selspot).prevMethod = "show";
}
if (r->spotMethod == 0) {
pp->locallab.spots.at(pp->locallab.selspot).spotMethod = "norm";
} else {