Add improved copy/paste or save/load for Locallab spots

Preliminary work: "nbspot" and "id" spot parameters have been removed to
simplify Locallab spots management.
This commit is contained in:
Pandagrapher
2020-02-20 20:35:29 +01:00
parent f51f2f44ec
commit 209eccba8a
17 changed files with 499 additions and 564 deletions

View File

@@ -935,7 +935,6 @@ struct GradientParams {
struct LocallabParams {
struct LocallabSpot {
// Control spot settings
int id;
Glib::ustring name;
bool isvisible;
Glib::ustring shape; // ELI, RECT
@@ -1185,7 +1184,6 @@ struct LocallabParams {
bool operator !=(const LocallabSpot& other) const;
};
bool enabled;
static const double LABGRIDL_CORR_MAX;
static const double LABGRIDL_CORR_SCALE;
static const double LABGRIDL_DIRECT_SCALE;
@@ -1195,7 +1193,8 @@ struct LocallabParams {
static const std::vector<double> DEF_EXP_CURVE;
static const std::vector<double> DEF_RET_CURVE;
static const std::vector<double> DEF_LC_CURVE;
int nbspot;
bool enabled;
int selspot;
std::vector<LocallabSpot> spots;