Merge branch 'dev' into favorites-gui
This commit is contained in:
@@ -43,12 +43,12 @@ ICMPanel::ICMPanel() : FoldableToolPanel(this, TOOL_NAME, M("TP_ICM_LABEL")), iu
|
||||
EvICMprimariMethod = m->newEvent(GAMMA, "HISTORY_MSG_ICM_OUTPUT_PRIMARIES");
|
||||
EvICMprofileMethod = m->newEvent(GAMMA, "HISTORY_MSG_ICM_OUTPUT_TYPE");
|
||||
EvICMtempMethod = m->newEvent(GAMMA, "HISTORY_MSG_ICM_OUTPUT_TEMP");
|
||||
EvICMpredx = m->newEvent(GAMMA, "HISTORY_MSG_ICMPREDX");
|
||||
EvICMpredy = m->newEvent(GAMMA, "HISTORY_MSG_ICMPREDY");
|
||||
EvICMpgrex = m->newEvent(GAMMA, "HISTORY_MSG_ICMPGREX");
|
||||
EvICMpgrey = m->newEvent(GAMMA, "HISTORY_MSG_ICMPGREY");
|
||||
EvICMpblux = m->newEvent(GAMMA, "HISTORY_MSG_ICMPBLUX");
|
||||
EvICMpbluy = m->newEvent(GAMMA, "HISTORY_MSG_ICMPBLUY");
|
||||
//EvICMpredx = m->newEvent(GAMMA, "HISTORY_MSG_ICMPREDX");
|
||||
//EvICMpredy = m->newEvent(GAMMA, "HISTORY_MSG_ICMPREDY");
|
||||
//EvICMpgrex = m->newEvent(GAMMA, "HISTORY_MSG_ICMPGREX");
|
||||
//EvICMpgrey = m->newEvent(GAMMA, "HISTORY_MSG_ICMPGREY");
|
||||
//EvICMpblux = m->newEvent(GAMMA, "HISTORY_MSG_ICMPBLUX");
|
||||
//EvICMpbluy = m->newEvent(GAMMA, "HISTORY_MSG_ICMPBLUY");
|
||||
EvICMgamm = m->newEvent(LUMINANCECURVE, "HISTORY_MSG_ICM_WORKING_GAMMA");
|
||||
EvICMslop = m->newEvent(LUMINANCECURVE, "HISTORY_MSG_ICM_WORKING_SLOPE");
|
||||
EvICMtrcinMethod = m->newEvent(LUMINANCECURVE, "HISTORY_MSG_ICM_WORKING_TRC_METHOD");
|
||||
@@ -313,38 +313,30 @@ ICMPanel::ICMPanel() : FoldableToolPanel(this, TOOL_NAME, M("TP_ICM_LABEL")), iu
|
||||
redx->set_tooltip_text(M("TP_ICM_PRIMRED_TOOLTIP"));
|
||||
grex->set_tooltip_text(M("TP_ICM_PRIMGRE_TOOLTIP"));
|
||||
blux->set_tooltip_text(M("TP_ICM_PRIMBLU_TOOLTIP"));
|
||||
blr = Gtk::manage(new Gtk::Label(M(" ")));
|
||||
blg = Gtk::manage(new Gtk::Label(M(" ")));
|
||||
blb = Gtk::manage(new Gtk::Label(M(" ")));
|
||||
|
||||
redBox = Gtk::manage(new Gtk::Box());
|
||||
redBox->pack_start(*redx);//, Gtk::PACK_SHRINK);
|
||||
redBox->pack_start(*blr, Gtk::PACK_SHRINK);
|
||||
redBox->pack_start(*redy);//, Gtk::PACK_SHRINK);
|
||||
redFrame = Gtk::manage(new Gtk::Frame(M("TP_ICM_REDFRAME")));
|
||||
redFrame->set_label_align(0.025, 0.5);
|
||||
Gtk::Box *redVBox = Gtk::manage(new Gtk::Box(Gtk::ORIENTATION_VERTICAL));
|
||||
redVBox->pack_start(*redBox, Gtk::PACK_EXPAND_WIDGET);
|
||||
redFrame->set_tooltip_text(M("TP_ICM_WORKING_PRIMFRAME_TOOLTIP"));
|
||||
|
||||
greBox = Gtk::manage(new Gtk::Box());
|
||||
greBox->pack_start(*grex);//, Gtk::PACK_SHRINK, 2);
|
||||
greBox->pack_start(*blg, Gtk::PACK_SHRINK);
|
||||
greBox->pack_start(*grey);//, Gtk::PACK_SHRINK, 2);
|
||||
redVBox->pack_start(*greBox, Gtk::PACK_EXPAND_WIDGET);
|
||||
Gtk::Box *redVBox = Gtk::manage(new Gtk::Box(Gtk::ORIENTATION_VERTICAL));
|
||||
primCoordGrid = Gtk::manage(new Gtk::Grid());
|
||||
primCoordGrid->set_column_homogeneous(true);
|
||||
primCoordGrid->attach(*redx, 0, 0, 1, 1);
|
||||
primCoordGrid->attach_next_to(*redy, *redx, Gtk::PositionType::POS_RIGHT, 1, 1);
|
||||
primCoordGrid->attach_next_to(*grex, *redx, Gtk::PositionType::POS_BOTTOM, 1, 1);
|
||||
primCoordGrid->attach_next_to(*grey, *grex, Gtk::PositionType::POS_RIGHT, 1, 1);
|
||||
primCoordGrid->attach_next_to(*blux, *grex, Gtk::PositionType::POS_BOTTOM, 1, 1);
|
||||
primCoordGrid->attach_next_to(*bluy, *blux, Gtk::PositionType::POS_RIGHT, 1, 1);
|
||||
redVBox->pack_start(*primCoordGrid, Gtk::PACK_EXPAND_WIDGET);
|
||||
|
||||
Gtk::Separator* const separator1 = Gtk::manage(new Gtk::Separator(Gtk::ORIENTATION_VERTICAL));
|
||||
Gtk::Separator* const separator2 = Gtk::manage(new Gtk::Separator(Gtk::ORIENTATION_VERTICAL));
|
||||
|
||||
bluBox = Gtk::manage(new Gtk::Box());
|
||||
bluBox->pack_start(*blux);//, Gtk::PACK_SHRINK);
|
||||
bluBox->pack_start(*blb, Gtk::PACK_SHRINK);
|
||||
bluBox->pack_start(*bluy);//, Gtk::PACK_SHRINK);
|
||||
redVBox->pack_start(*bluBox, Gtk::PACK_EXPAND_WIDGET);
|
||||
preser = Gtk::manage(new Adjuster(M("TP_ICM_WORKING_PRESER"), 0., 100., 0.5, 0.));
|
||||
preser->setAdjusterListener(this);
|
||||
|
||||
preBox = Gtk::manage(new Gtk::Box());
|
||||
preBox->pack_start(*preser, Gtk::PACK_SHRINK);
|
||||
preBox->pack_start(*preser, Gtk::PACK_EXPAND_WIDGET);
|
||||
redVBox->pack_start(*separator1, Gtk::PACK_SHRINK);
|
||||
redVBox->pack_start(*preBox, Gtk::PACK_EXPAND_WIDGET);
|
||||
redVBox->pack_start(*separator2, Gtk::PACK_SHRINK);
|
||||
@@ -789,8 +781,8 @@ void ICMPanel::read(const ProcParams* pp, const ParamsEdited* pedited)
|
||||
ConnectionBlocker willconn_(willconn);
|
||||
ConnectionBlocker wprimconn_(wprimconn);
|
||||
|
||||
if (pp->icm.inputProfile.substr(0, 5) != "file:" && !ipDialog->get_filename().empty()) {
|
||||
ipDialog->set_filename(pp->icm.inputProfile);
|
||||
if (pp->icm.inputProfile.substr(0, 5) != "file:") {
|
||||
ipDialog->set_filename(" ");
|
||||
}
|
||||
|
||||
if (pp->icm.inputProfile == "(none)") {
|
||||
@@ -951,9 +943,7 @@ void ICMPanel::read(const ProcParams* pp, const ParamsEdited* pedited)
|
||||
&& ColorManagementParams::Primaries(wprim->get_active_row_number()) != ColorManagementParams::Primaries::CUSTOM_GRID
|
||||
) {
|
||||
will->set_sensitive(false);
|
||||
redBox->set_sensitive(false);
|
||||
greBox->set_sensitive(false);
|
||||
bluBox->set_sensitive(false);
|
||||
primCoordGrid->set_sensitive(false);
|
||||
labgridcie->set_sensitive(false);
|
||||
|
||||
} else {
|
||||
@@ -961,9 +951,7 @@ void ICMPanel::read(const ProcParams* pp, const ParamsEdited* pedited)
|
||||
if (ColorManagementParams::Primaries(wprim->get_active_row_number()) == ColorManagementParams::Primaries::CUSTOM) {
|
||||
will->set_sensitive(true);
|
||||
}
|
||||
redBox->set_sensitive(true);
|
||||
greBox->set_sensitive(true);
|
||||
bluBox->set_sensitive(true);
|
||||
primCoordGrid->set_sensitive(true);
|
||||
labgridcie->set_sensitive(true);
|
||||
}
|
||||
|
||||
@@ -1093,9 +1081,7 @@ void ICMPanel::read(const ProcParams* pp, const ParamsEdited* pedited)
|
||||
|
||||
case ColorManagementParams::Primaries::CUSTOM_GRID: {
|
||||
labgridcie->set_sensitive(true);
|
||||
redBox->set_sensitive(false);
|
||||
greBox->set_sensitive(false);
|
||||
bluBox->set_sensitive(false);
|
||||
primCoordGrid->set_sensitive(false);
|
||||
will->set_sensitive(false);
|
||||
break;
|
||||
}
|
||||
@@ -1304,13 +1290,9 @@ void ICMPanel::wtrcinChanged()
|
||||
ColorManagementParams::Primaries(wprim->get_active_row_number()) != ColorManagementParams::Primaries::CUSTOM
|
||||
&& ColorManagementParams::Primaries(wprim->get_active_row_number()) != ColorManagementParams::Primaries::CUSTOM_GRID
|
||||
) {
|
||||
redBox->set_sensitive(false);
|
||||
greBox->set_sensitive(false);
|
||||
bluBox->set_sensitive(false);
|
||||
primCoordGrid->set_sensitive(false);
|
||||
} else {
|
||||
redBox->set_sensitive(true);
|
||||
greBox->set_sensitive(true);
|
||||
bluBox->set_sensitive(true);
|
||||
primCoordGrid->set_sensitive(true);
|
||||
}
|
||||
}
|
||||
riaHBox->set_sensitive(true);
|
||||
@@ -1342,9 +1324,7 @@ void ICMPanel::wtrcinChanged()
|
||||
ColorManagementParams::Primaries(wprim->get_active_row_number()) != ColorManagementParams::Primaries::CUSTOM
|
||||
&& ColorManagementParams::Primaries(wprim->get_active_row_number()) != ColorManagementParams::Primaries::CUSTOM_GRID
|
||||
) {
|
||||
redBox->set_sensitive(false);
|
||||
greBox->set_sensitive(false);
|
||||
bluBox->set_sensitive(false);
|
||||
primCoordGrid->set_sensitive(false);
|
||||
}
|
||||
}
|
||||
riaHBox->set_sensitive(true);
|
||||
@@ -1369,13 +1349,9 @@ void ICMPanel::wtrcinChanged()
|
||||
ColorManagementParams::Primaries(wprim->get_active_row_number()) != ColorManagementParams::Primaries::CUSTOM
|
||||
&& ColorManagementParams::Primaries(wprim->get_active_row_number()) != ColorManagementParams::Primaries::CUSTOM_GRID
|
||||
) {
|
||||
redBox->set_sensitive(false);
|
||||
greBox->set_sensitive(false);
|
||||
bluBox->set_sensitive(false);
|
||||
primCoordGrid->set_sensitive(false);
|
||||
} else {
|
||||
redBox->set_sensitive(true);
|
||||
greBox->set_sensitive(true);
|
||||
bluBox->set_sensitive(true);
|
||||
primCoordGrid->set_sensitive(true);
|
||||
}
|
||||
}
|
||||
break;
|
||||
@@ -1400,13 +1376,9 @@ void ICMPanel::wtrcinChanged()
|
||||
ColorManagementParams::Primaries(wprim->get_active_row_number()) != ColorManagementParams::Primaries::CUSTOM
|
||||
&& ColorManagementParams::Primaries(wprim->get_active_row_number()) != ColorManagementParams::Primaries::CUSTOM_GRID
|
||||
) {
|
||||
redBox->set_sensitive(false);
|
||||
greBox->set_sensitive(false);
|
||||
bluBox->set_sensitive(false);
|
||||
primCoordGrid->set_sensitive(false);
|
||||
} else {
|
||||
redBox->set_sensitive(true);
|
||||
greBox->set_sensitive(true);
|
||||
bluBox->set_sensitive(true);
|
||||
primCoordGrid->set_sensitive(true);
|
||||
}
|
||||
}
|
||||
break;
|
||||
@@ -1431,13 +1403,9 @@ void ICMPanel::wtrcinChanged()
|
||||
ColorManagementParams::Primaries(wprim->get_active_row_number()) != ColorManagementParams::Primaries::CUSTOM
|
||||
&& ColorManagementParams::Primaries(wprim->get_active_row_number()) != ColorManagementParams::Primaries::CUSTOM_GRID
|
||||
) {
|
||||
redBox->set_sensitive(false);
|
||||
greBox->set_sensitive(false);
|
||||
bluBox->set_sensitive(false);
|
||||
primCoordGrid->set_sensitive(false);
|
||||
} else {
|
||||
redBox->set_sensitive(true);
|
||||
greBox->set_sensitive(true);
|
||||
bluBox->set_sensitive(true);
|
||||
primCoordGrid->set_sensitive(true);
|
||||
}
|
||||
}
|
||||
break;
|
||||
@@ -1462,13 +1430,9 @@ void ICMPanel::wtrcinChanged()
|
||||
ColorManagementParams::Primaries(wprim->get_active_row_number()) != ColorManagementParams::Primaries::CUSTOM
|
||||
&& ColorManagementParams::Primaries(wprim->get_active_row_number()) != ColorManagementParams::Primaries::CUSTOM_GRID
|
||||
) {
|
||||
redBox->set_sensitive(false);
|
||||
greBox->set_sensitive(false);
|
||||
bluBox->set_sensitive(false);
|
||||
primCoordGrid->set_sensitive(false);
|
||||
} else {
|
||||
redBox->set_sensitive(true);
|
||||
greBox->set_sensitive(true);
|
||||
bluBox->set_sensitive(true);
|
||||
primCoordGrid->set_sensitive(true);
|
||||
}
|
||||
}
|
||||
break;
|
||||
@@ -1763,18 +1727,14 @@ void ICMPanel::wprimChanged()
|
||||
redFrame->show();
|
||||
|
||||
if (ColorManagementParams::Primaries(wprim->get_active_row_number()) != ColorManagementParams::Primaries::CUSTOM) {
|
||||
redBox->set_sensitive(false);
|
||||
greBox->set_sensitive(false);
|
||||
bluBox->set_sensitive(false);
|
||||
primCoordGrid->set_sensitive(false);
|
||||
labgridcie->set_sensitive(false);
|
||||
will->set_sensitive(false);
|
||||
if (ColorManagementParams::Primaries(wprim->get_active_row_number()) == ColorManagementParams::Primaries::CUSTOM_GRID) {
|
||||
labgridcie->set_sensitive(true);
|
||||
}
|
||||
} else {
|
||||
redBox->set_sensitive(true);
|
||||
greBox->set_sensitive(true);
|
||||
bluBox->set_sensitive(true);
|
||||
primCoordGrid->set_sensitive(true);
|
||||
labgridcie->set_sensitive(false);
|
||||
will->set_sensitive(true);
|
||||
}
|
||||
@@ -1908,23 +1868,29 @@ void ICMPanel::ipChanged()
|
||||
{
|
||||
|
||||
Glib::ustring profname;
|
||||
Glib::ustring localized_profname;
|
||||
|
||||
if (inone->get_active()) {
|
||||
profname = "(none)";
|
||||
localized_profname = inone->get_label();
|
||||
} else if (iembedded->get_active()) {
|
||||
profname = "(embedded)";
|
||||
localized_profname = iembedded->get_label();
|
||||
} else if (icamera->get_active()) {
|
||||
profname = "(camera)";
|
||||
localized_profname = icamera->get_label();
|
||||
} else if (icameraICC->get_active()) {
|
||||
profname = "(cameraICC)";
|
||||
localized_profname = icameraICC->get_label();
|
||||
} else {
|
||||
profname = ipDialog->get_filename();
|
||||
localized_profname = profname;
|
||||
}
|
||||
|
||||
updateDCP(-1, profname);
|
||||
|
||||
if (listener && profname != oldip) {
|
||||
listener->panelChanged(EvIProfile, profname);
|
||||
listener->panelChanged(EvIProfile, localized_profname);
|
||||
}
|
||||
|
||||
oldip = profname;
|
||||
|
||||
Reference in New Issue
Block a user