Merge with branch newlocallab...

This commit is contained in:
Pandagrapher
2019-01-05 18:07:51 +01:00
504 changed files with 20229 additions and 18181 deletions

View File

@@ -167,6 +167,7 @@ Gtk::TreeIter ProfilePanel::getLastSavedRow()
Gtk::TreeIter ProfilePanel::addCustomRow()
{
if(customPSE) {
profiles->deleteRow(customPSE);
delete customPSE;
customPSE = nullptr;
}
@@ -179,6 +180,7 @@ Gtk::TreeIter ProfilePanel::addCustomRow()
Gtk::TreeIter ProfilePanel::addLastSavedRow()
{
if(lastSavedPSE) {
profiles->deleteRow(lastSavedPSE);
delete lastSavedPSE;
lastSavedPSE = nullptr;
}
@@ -307,8 +309,6 @@ void ProfilePanel::save_clicked (GdkEventButton* event)
do {
if (dialog.run() == Gtk::RESPONSE_OK) {
dialog.hide();
std::string fname = dialog.get_filename();
Glib::ustring ext = getExtension (fname);
@@ -743,9 +743,13 @@ void ProfilePanel::selection_changed ()
dontupdate = false;
}
void ProfilePanel::procParamsChanged (rtengine::procparams::ProcParams* p, rtengine::ProcEvent ev, Glib::ustring descr, ParamsEdited* paramsEdited)
void ProfilePanel::procParamsChanged(
const rtengine::procparams::ProcParams* p,
const rtengine::ProcEvent& ev,
const Glib::ustring& descr,
const ParamsEdited* paramsEdited
)
{
// to prevent recursion, filter out the events caused by the profilepanel
if (ev == EvProfileChanged || ev == EvPhotoLoaded) {
return;
@@ -772,6 +776,10 @@ void ProfilePanel::procParamsChanged (rtengine::procparams::ProcParams* p, rteng
custom->pedited->locallab.spots.resize(p->locallab.nbspot, new LocallabParamsEdited::LocallabSpotEdited(true));
}
void ProfilePanel::clearParamChanges()
{
}
/** @brief Initialize the Profile panel with a default profile, overridden by the last saved profile if provided
*
* The file tree has already been created on object's construction. We add here the Custom, LastSaved and/or Internal item.