Merge branch 'dev' into dual_demosaic_auto_threshold

This commit is contained in:
heckflosse
2018-10-21 21:54:24 +02:00
177 changed files with 1886 additions and 1041 deletions

View File

@@ -84,7 +84,8 @@
class ImageEditorCoordinator;
class ToolPanelCoordinator : public ToolPanelListener,
class ToolPanelCoordinator :
public ToolPanelListener,
public ToolBarListener,
public ProfileChangeListener,
public WBProvider,
@@ -97,9 +98,7 @@ class ToolPanelCoordinator : public ToolPanelListener,
public ImageAreaToolListener,
public rtengine::ImageTypeListener
{
protected:
WhiteBalance* whitebalance;
Vignetting* vignetting;
Gradient* gradient;
@@ -192,11 +191,9 @@ protected:
void updateVScrollbars (bool hide);
private:
EditDataProvider *editDataProvider;
public:
CoarsePanel* coarse;
Gtk::Notebook* toolPanelNotebook;
@@ -207,7 +204,18 @@ public:
{
return hasChanged;
}
void updateCurveBackgroundHistogram (LUTu & histToneCurve, LUTu & histLCurve, LUTu & histCCurve, /*LUTu & histCLurve, LUTu & histLLCurve,*/ LUTu & histLCAM, LUTu & histCCAM, LUTu & histRed, LUTu & histGreen, LUTu & histBlue, LUTu & histLuma, LUTu & histLRETI);
void updateCurveBackgroundHistogram(
const LUTu& histToneCurve,
const LUTu& histLCurve,
const LUTu& histCCurve,
const LUTu& histLCAM,
const LUTu& histCCAM,
const LUTu& histRed,
const LUTu& histGreen,
const LUTu& histBlue,
const LUTu& histLuma,
const LUTu& histLRETI
);
void foldAllButOne (Gtk::Box* parent, FoldableToolPanel* openedSection);
// multiple listeners can be added that are notified on changes (typical: profile panel and the history)
@@ -217,14 +225,20 @@ public:
}
// toolpanellistener interface
void panelChanged (rtengine::ProcEvent event, const Glib::ustring& descr);
void panelChanged(const rtengine::ProcEvent& event, const Glib::ustring& descr);
void imageTypeChanged (bool isRaw, bool isBayer, bool isXtrans, bool isMono = false);
// void autoContrastChanged (double autoContrast);
// profilechangelistener interface
void profileChange (const rtengine::procparams::PartialProfile* nparams, rtengine::ProcEvent event, const Glib::ustring& descr, const ParamsEdited* paramsEdited = nullptr, bool fromLastSave = false);
void setDefaults (rtengine::procparams::ProcParams* defparams);
void profileChange(
const rtengine::procparams::PartialProfile* nparams,
const rtengine::ProcEvent& event,
const Glib::ustring& descr,
const ParamsEdited* paramsEdited = nullptr,
bool fromLastSave = false
);
void setDefaults(const rtengine::procparams::ProcParams* defparams);
// DirSelectionListener interface
void dirSelected (const Glib::ustring& dirname, const Glib::ustring& openfile);
@@ -279,22 +293,16 @@ public:
void cropSelectRequested ();
// icmpanellistener interface
void saveInputICCReference (Glib::ustring fname, bool apply_wb);
void saveInputICCReference(const Glib::ustring& fname, bool apply_wb);
// imageareatoollistener interface
void spotWBselected (int x, int y, Thumbnail* thm = nullptr);
void sharpMaskSelected (bool sharpMask);
void cropSelectionReady ();
void rotateSelectionReady (double rotate_deg, Thumbnail* thm = nullptr);
ToolBar* getToolBar ()
{
return toolBar;
}
int getSpotWBRectSize ();
CropGUIListener* startCropEditing (Thumbnail* thm = nullptr)
{
return crop;
}
void spotWBselected(int x, int y, Thumbnail* thm = nullptr);
void sharpMaskSelected(bool sharpMask);
int getSpotWBRectSize() const;
void cropSelectionReady();
void rotateSelectionReady(double rotate_deg, Thumbnail* thm = nullptr);
ToolBar* getToolBar() const;
CropGUIListener* startCropEditing(Thumbnail* thm = nullptr);
void updateTPVScrollbar (bool hide);
bool handleShortcutKey (GdkEventKey* event);