diff --git a/rtdata/languages/Francais b/rtdata/languages/Francais index b34933e0b..786929f9c 100644 --- a/rtdata/languages/Francais +++ b/rtdata/languages/Francais @@ -2749,6 +2749,7 @@ TP_SHARPENMICRO_UNIFORMITY;Uniformité TP_SOFTLIGHT_LABEL;Lumière douce TP_SOFTLIGHT_STRENGTH;Force TP_SPOT_COUNTLABEL;%1 point(s) +TP_SPOT_DEFAULT_SIZE;Taille par défault des points TP_SPOT_ENTRYCHANGED;Modification d'un point TP_SPOT_HINT;Cliquez sur ce bouton pour pouvoir opérer sur la zone de prévisualisation.\n\nPour ajouter un spot, pressez Ctrl et le bouton gauche de la souris, tirez le cercle (la touche Ctrl peut être relâchée) vers la position source, puis relâchez le bouton de la souris.\n\nPour éditer un spot, placez le curseur au-dessus de la marque blanche situant une zone éditée, faisant apparaître la géométrie d'édition.\n\nPour déplacer le spot source ou destination, placez le curseur en son centre et tirez le.\n\nLe cercle intérieur (zone d'effet maximum) et le cercle "d'adoucicement" peuvent être redimmensionné en plaçant le curseur dessus (le cercle devient orange) et en le tirant (le cercle devient rouge).\n\nQuand les changements sont terminés, un clic droit en dehors de tout spot termine le mode d'édition, ou cliquez à nouveau sur ce bouton. TP_SPOT_LABEL;Retrait de taches diff --git a/rtdata/languages/default b/rtdata/languages/default index 141b38a55..dfa982cb7 100644 --- a/rtdata/languages/default +++ b/rtdata/languages/default @@ -3822,6 +3822,7 @@ TP_SHARPENMICRO_UNIFORMITY;Uniformity TP_SOFTLIGHT_LABEL;Soft Light TP_SOFTLIGHT_STRENGTH;Strength TP_SPOT_COUNTLABEL;%1 point(s) +TP_SPOT_DEFAULT_SIZE;Default point size TP_SPOT_ENTRYCHANGED;Point changed TP_SPOT_HINT;Click on this button to be able to operate on the preview area.\n\nTo edit a spot, hover the white mark locating an edited area, making the editing geometry appear.\n\nTo add a spot, press Ctrl and left mouse button, drag the circle (Ctrl key can be released) to a source location, then release the mouse button.\n\nTo move the source or destination spot, hover its center then drag it.\n\nThe inner circle (maximum effect area) and the "feather" circle can be resized by hovering them (the circle becomes orange) and dragging it (the circle becomes red).\n\nWhen the changes are done, right click outside any spot to end the Spot editing mode, or click on this button again. TP_SPOT_LABEL;Spot Removal diff --git a/rtgui/spot.cc b/rtgui/spot.cc index 6e9143dbe..515884964 100644 --- a/rtgui/spot.cc +++ b/rtgui/spot.cc @@ -74,13 +74,16 @@ Spot::Spot() : reset->set_border_width (0); reset->signal_clicked().connect ( sigc::mem_fun (*this, &Spot::resetPressed) ); + spotSize = Gtk::manage(new Adjuster(M("TP_SPOT_DEFAULT_SIZE"), SpotParams::minRadius, SpotParams::maxRadius, 1, 25)); + labelBox = Gtk::manage (new Gtk::Box()); labelBox->set_spacing (2); labelBox->pack_start (*countLabel, false, false, 0); labelBox->pack_end (*edit, false, false, 0); labelBox->pack_end (*reset, false, false, 0); + labelBox->pack_end (*spotSize, false, false, 0); pack_start (*labelBox); - + sourceIcon.datum = Geometry::IMAGE; sourceIcon.setActive (false); sourceIcon.state = Geometry::ACTIVE; @@ -475,6 +478,7 @@ void Spot::addNewEntry() EditDataProvider* editProvider = getEditProvider(); // we create a new entry SpotEntry se; + se.radius = spotSize->getIntValue(); se.targetPos = editProvider->posImage; se.sourcePos = se.targetPos; spots.push_back (se); // this make a copy of se ... @@ -856,6 +860,7 @@ void Spot::switchOffEditMode () listener->refreshPreview(EvSpotEnabled); // reprocess the preview w/o creating History entry } + void Spot::tweakParams(procparams::ProcParams& pparams) { //params->raw.bayersensor.method = RAWParams::BayerSensor::getMethodString(RAWParams::BayerSensor::Method::FAST); diff --git a/rtgui/spot.h b/rtgui/spot.h index 85cefa4c2..7cdea35f7 100644 --- a/rtgui/spot.h +++ b/rtgui/spot.h @@ -23,6 +23,7 @@ #include #include "toolpanel.h" #include "editwidgets.h" +#include "adjuster.h" #include "../rtengine/procparams.h" #include "../rtengine/tweakoperator.h" @@ -90,6 +91,7 @@ protected: Gtk::Label* countLabel; Gtk::ToggleButton* edit; Gtk::Button* reset; + Adjuster* spotSize; sigc::connection editConn, editedConn; void editToggled ();