* Change Preferences for observer whitebalance * Change label white balance preferences * Added Preferences 2 parameters Whitebalance auto correlation * Add Preference Temperature correlation - sort and tooltip * Change to rtengine cmakelist * Apply patch from Lawrence37 * Small comment code * Change defaut order prefrences wba * Added force extra algoritm to Preferences * Harmonize itcwb sorted * Add fields to Preferences Itcwb * Change settings precision Itcwb in Preferences * Change tooltip Itcwb preferences * First stage Itwcwb settings in main with pp3 and selction in preferences * Second stage Itwcwb settings in main with pp3 and selction in preferences * Third stage Itwcwb settings in main with pp3 and selction in preferences * Add itcwb_fgreen student - green optimize * Add Itcwb green range * Itcwb history msg - first tooltips * Remove force-extra because always used * reused force-extra to use entire CIExy for sampling datas * Removed inwanted text in console * Set sensitive for Itcwbframe * Various change - comment .. * Small code review - chnage tooltips * Remove settings itcwb_delta in Rawimagesource.cc to simplify * Remove Itcwb Observer - put a single observer for everything - general - itcwb * Fixed conflicts in colortemp.cc * Various change - fixed bug - simplify * Fixed limits for settings pp3 - chnage tooltip * Clean unused code * Put itcwb_findgreen in GUI * Added checkbox 'Low sampling' to find the settings of 5.9 * Set Observer to Observer 10° - preferences default * Missing setting Low sampling * Show white balance multipliers * Change default settings - Itcwb_sorted * Move observer from preferences to WB * Make observer selectable for camera WB * Ensure observer checkbox is in sync with PP3 * Set default ITCWB low sampling for PP3s from <=5.9 Ensure temperature correlation white balance algorithm 1 is used when opening edits from versions 5.9 and earlier. * Removed unused White-balance frame in Preferences * Comment some GUI sliders checkbox * Removed all GUI itcwb in preferences and whitebalance * Removed forgotten code in preferences * Remove labels tooltips history Itcwb --------- Co-authored-by: Lawrence Lee <45837045+Lawrence37@users.noreply.github.com>
90 lines
3.1 KiB
C++
90 lines
3.1 KiB
C++
/*
|
|
* This file is part of RawTherapee.
|
|
*
|
|
* Copyright (c) 2004-2010 Gabor Horvath <hgabor@rawtherapee.com>
|
|
*
|
|
* RawTherapee is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* RawTherapee is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with RawTherapee. If not, see <https://www.gnu.org/licenses/>.
|
|
*/
|
|
#pragma once
|
|
|
|
#include "fileselectionchangelistener.h"
|
|
#include "paramsedited.h"
|
|
#include "thumbnaillistener.h"
|
|
#include "toolpanelcoord.h"
|
|
|
|
#include "../rtengine/procevents.h"
|
|
#include "../rtengine/procparams.h"
|
|
|
|
class FilePanel;
|
|
class Thumbnail;
|
|
class BatchToolPanelCoordinator final :
|
|
public ToolPanelCoordinator,
|
|
public FileSelectionChangeListener,
|
|
public BatchPParamsChangeListener,
|
|
public ThumbnailListener
|
|
{
|
|
protected:
|
|
rtengine::procparams::ProcParams pparams;
|
|
ParamsEdited pparamsEdited;
|
|
std::vector<Thumbnail*> selected;
|
|
std::vector<Glib::ustring> selFileNames;
|
|
std::vector<rtengine::procparams::ProcParams> initialPP;
|
|
bool somethingChanged;
|
|
bool blockedUpdate;
|
|
FilePanel* parent;
|
|
|
|
void closeSession (bool save = true);
|
|
void initSession ();
|
|
|
|
public:
|
|
|
|
explicit BatchToolPanelCoordinator (FilePanel* parent);
|
|
|
|
// FileSelectionChangeListener interface
|
|
void selectionChanged (const std::vector<Thumbnail*>& selected) override;
|
|
|
|
// toolpanellistener interface
|
|
void panelChanged(const rtengine::ProcEvent& event, const Glib::ustring& descr) override;
|
|
void setTweakOperator (rtengine::TweakOperator *tOperator) override;
|
|
void unsetTweakOperator (rtengine::TweakOperator *tOperator) override;
|
|
|
|
// profilechangelistener interface
|
|
void profileChange(
|
|
const rtengine::procparams::PartialProfile* nparams,
|
|
const rtengine::ProcEvent& event,
|
|
const Glib::ustring& descr,
|
|
const ParamsEdited* paramsEdited = nullptr,
|
|
bool fromLastSave = false
|
|
) override;
|
|
|
|
// wbprovider interface
|
|
void getAutoWB (double& temp, double& green, double equal, rtengine::StandardObserver observer, double tempBias) override;
|
|
void getCamWB (double& temp, double& green, rtengine::StandardObserver observer) override;
|
|
|
|
// thumbnaillistener interface
|
|
void procParamsChanged (Thumbnail* thm, int whoChangedIt) override;
|
|
|
|
// batchpparamschangelistener interface
|
|
void beginBatchPParamsChange(int numberOfEntries) override;
|
|
void endBatchPParamsChange() override;
|
|
|
|
// imageareatoollistener interface
|
|
void spotWBselected (int x, int y, Thumbnail* thm = nullptr) override;
|
|
void cropSelectionReady () override;
|
|
void rotateSelectionReady (double rotate_deg, Thumbnail* thm = nullptr) override;
|
|
CropGUIListener* startCropEditing (Thumbnail* thm = nullptr) override;
|
|
|
|
void optionsChanged ();
|
|
};
|