Show/hide contrast mask, still wrong icon on button
This commit is contained in:
@@ -560,6 +560,14 @@ void ImageArea::spotWBSelected (int x, int y)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ImageArea::sharpMaskSelected (bool sharpMask)
|
||||||
|
{
|
||||||
|
|
||||||
|
if (listener) {
|
||||||
|
listener->sharpMaskSelected (sharpMask);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void ImageArea::getScrollImageSize (int& w, int& h)
|
void ImageArea::getScrollImageSize (int& w, int& h)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@@ -131,6 +131,7 @@ public:
|
|||||||
void setToolHand ();
|
void setToolHand ();
|
||||||
void straightenReady (double rotDeg);
|
void straightenReady (double rotDeg);
|
||||||
void spotWBSelected (int x, int y);
|
void spotWBSelected (int x, int y);
|
||||||
|
void sharpMaskSelected (bool sharpMask);
|
||||||
int getSpotWBRectSize ();
|
int getSpotWBRectSize ();
|
||||||
void redraw ();
|
void redraw ();
|
||||||
|
|
||||||
|
@@ -29,6 +29,7 @@ class ImageAreaToolListener
|
|||||||
public:
|
public:
|
||||||
virtual ~ImageAreaToolListener() {}
|
virtual ~ImageAreaToolListener() {}
|
||||||
virtual void spotWBselected (int x, int y, Thumbnail* thm = nullptr) {}
|
virtual void spotWBselected (int x, int y, Thumbnail* thm = nullptr) {}
|
||||||
|
virtual void sharpMaskSelected (bool sharpMask) {}
|
||||||
virtual int getSpotWBRectSize ()
|
virtual int getSpotWBRectSize ()
|
||||||
{
|
{
|
||||||
return 8;
|
return 8;
|
||||||
|
@@ -127,6 +127,7 @@ void IndicateClippedPanel::buttonToggled (Gtk::ToggleButton* tb)
|
|||||||
indClippedH->set_active(false);
|
indClippedH->set_active(false);
|
||||||
}
|
}
|
||||||
previewFocusMask->set_active(false);
|
previewFocusMask->set_active(false);
|
||||||
|
imageArea->sharpMaskSelected(previewSharpMask->get_active());
|
||||||
} else {
|
} else {
|
||||||
previewFocusMask->set_active(false);
|
previewFocusMask->set_active(false);
|
||||||
previewSharpMask->set_active(false);
|
previewSharpMask->set_active(false);
|
||||||
|
@@ -656,6 +656,16 @@ void ToolPanelCoordinator::spotWBselected (int x, int y, Thumbnail* thm)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ToolPanelCoordinator::sharpMaskSelected(bool sharpMask)
|
||||||
|
{
|
||||||
|
|
||||||
|
if (!ipc) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
ipc->beginUpdateParams ();
|
||||||
|
ipc->setSharpMask(sharpMask);
|
||||||
|
ipc->endUpdateParams (rtengine::EvShrEnabled);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@@ -280,6 +280,7 @@ public:
|
|||||||
|
|
||||||
// imageareatoollistener interface
|
// imageareatoollistener interface
|
||||||
void spotWBselected (int x, int y, Thumbnail* thm = nullptr);
|
void spotWBselected (int x, int y, Thumbnail* thm = nullptr);
|
||||||
|
void sharpMaskSelected (bool sharpMask);
|
||||||
void cropSelectionReady ();
|
void cropSelectionReady ();
|
||||||
void rotateSelectionReady (double rotate_deg, Thumbnail* thm = nullptr);
|
void rotateSelectionReady (double rotate_deg, Thumbnail* thm = nullptr);
|
||||||
ToolBar* getToolBar ()
|
ToolBar* getToolBar ()
|
||||||
|
Reference in New Issue
Block a user