Refactor tool name code

This commit is contained in:
Lawrence Lee 2021-12-11 21:21:54 -08:00
parent 546c99d276
commit 40678f67b0
114 changed files with 290 additions and 113 deletions

View File

@ -28,7 +28,9 @@
using namespace rtengine; using namespace rtengine;
using namespace rtengine::procparams; using namespace rtengine::procparams;
BayerPreProcess::BayerPreProcess() : FoldableToolPanel(this, "bayerpreprocess", M("TP_PREPROCESS_LABEL"), options.prevdemo != PD_Sidecar) const Glib::ustring BayerPreProcess::TOOL_NAME = "bayerpreprocess";
BayerPreProcess::BayerPreProcess() : FoldableToolPanel(this, TOOL_NAME, M("TP_PREPROCESS_LABEL"), options.prevdemo != PD_Sidecar)
{ {
auto m = ProcEventMapper::getInstance(); auto m = ProcEventMapper::getInstance();
EvLineDenoiseDirection = m->newEvent(DARKFRAME, "HISTORY_MSG_PREPROCESS_LINEDENOISE_DIRECTION"); EvLineDenoiseDirection = m->newEvent(DARKFRAME, "HISTORY_MSG_PREPROCESS_LINEDENOISE_DIRECTION");

View File

@ -37,6 +37,7 @@ protected:
rtengine::ProcEvent EvPDAFLinesFilter; rtengine::ProcEvent EvPDAFLinesFilter;
public: public:
static const Glib::ustring TOOL_NAME;
BayerPreProcess (); BayerPreProcess ();

View File

@ -28,9 +28,10 @@
using namespace rtengine; using namespace rtengine;
using namespace rtengine::procparams; using namespace rtengine::procparams;
const Glib::ustring BayerProcess::TOOL_NAME = "bayerprocess";
BayerProcess::BayerProcess () : BayerProcess::BayerProcess () :
FoldableToolPanel(this, "bayerprocess", M("TP_RAW_LABEL"), options.prevdemo != PD_Sidecar), FoldableToolPanel(this, TOOL_NAME, M("TP_RAW_LABEL"), options.prevdemo != PD_Sidecar),
oldMethod(-1) oldMethod(-1)
{ {

View File

@ -76,6 +76,7 @@ protected:
rtengine::ProcEvent EvDemosaicPixelshiftDemosaicMethod; rtengine::ProcEvent EvDemosaicPixelshiftDemosaicMethod;
rtengine::ProcEvent EvPixelshiftAverage; rtengine::ProcEvent EvPixelshiftAverage;
public: public:
static const Glib::ustring TOOL_NAME;
BayerProcess (); BayerProcess ();
~BayerProcess () override; ~BayerProcess () override;

View File

@ -26,7 +26,9 @@
using namespace rtengine; using namespace rtengine;
using namespace rtengine::procparams; using namespace rtengine::procparams;
BayerRAWExposure::BayerRAWExposure () : FoldableToolPanel(this, "bayerrawexposure", M("TP_EXPOS_BLACKPOINT_LABEL"), options.prevdemo != PD_Sidecar) const Glib::ustring BayerRAWExposure::TOOL_NAME = "bayerrawexposure";
BayerRAWExposure::BayerRAWExposure () : FoldableToolPanel(this, TOOL_NAME, M("TP_EXPOS_BLACKPOINT_LABEL"), options.prevdemo != PD_Sidecar)
{ {
PexBlack1 = Gtk::manage(new Adjuster (M("TP_RAWEXPOS_BLACK_1"), -2048, 2048, 1.0, 0)); //black level PexBlack1 = Gtk::manage(new Adjuster (M("TP_RAWEXPOS_BLACK_1"), -2048, 2048, 1.0, 0)); //black level
PexBlack1->setAdjusterListener (this); PexBlack1->setAdjusterListener (this);

View File

@ -31,6 +31,8 @@ class BayerRAWExposure final :
public FoldableToolPanel public FoldableToolPanel
{ {
public: public:
static const Glib::ustring TOOL_NAME;
BayerRAWExposure (); BayerRAWExposure ();
void read (const rtengine::procparams::ProcParams* pp, const ParamsEdited* pedited = nullptr) override; void read (const rtengine::procparams::ProcParams* pp, const ParamsEdited* pedited = nullptr) override;

View File

@ -34,8 +34,9 @@
using namespace rtengine; using namespace rtengine;
using namespace rtengine::procparams; using namespace rtengine::procparams;
const Glib::ustring BlackWhite::TOOL_NAME = "blackwhite";
BlackWhite::BlackWhite (): FoldableToolPanel(this, "blackwhite", M("TP_BWMIX_LABEL"), false, true) BlackWhite::BlackWhite (): FoldableToolPanel(this, TOOL_NAME, M("TP_BWMIX_LABEL"), false, true)
{ {
CurveListener::setMulti(true); CurveListener::setMulti(true);

View File

@ -40,6 +40,7 @@ class BlackWhite final :
public ColorProvider public ColorProvider
{ {
public: public:
static const Glib::ustring TOOL_NAME;
BlackWhite (); BlackWhite ();
~BlackWhite () override; ~BlackWhite () override;

View File

@ -27,7 +27,9 @@
using namespace rtengine; using namespace rtengine;
using namespace rtengine::procparams; using namespace rtengine::procparams;
CACorrection::CACorrection () : FoldableToolPanel(this, "cacorrection", M("TP_CACORRECTION_LABEL")) const Glib::ustring CACorrection::TOOL_NAME = "cacorrection";
CACorrection::CACorrection () : FoldableToolPanel(this, TOOL_NAME, M("TP_CACORRECTION_LABEL"))
{ {
Gtk::Image* icaredL = Gtk::manage (new RTImage ("circle-red-cyan-small.png")); Gtk::Image* icaredL = Gtk::manage (new RTImage ("circle-red-cyan-small.png"));

View File

@ -34,6 +34,7 @@ protected:
Adjuster* blue; Adjuster* blue;
public: public:
static const Glib::ustring TOOL_NAME;
CACorrection (); CACorrection ();

View File

@ -25,7 +25,9 @@
using namespace rtengine; using namespace rtengine;
using namespace rtengine::procparams; using namespace rtengine::procparams;
ChMixer::ChMixer (): FoldableToolPanel(this, "chmixer", M("TP_CHMIXER_LABEL"), false, true) const Glib::ustring ChMixer::TOOL_NAME = "chmixer";
ChMixer::ChMixer (): FoldableToolPanel(this, TOOL_NAME, M("TP_CHMIXER_LABEL"), false, true)
{ {
imgIcon[0] = Gtk::manage (new RTImage ("circle-red-small.png")); imgIcon[0] = Gtk::manage (new RTImage ("circle-red-small.png"));

View File

@ -36,6 +36,7 @@ protected:
Gtk::Image *imgIcon[9]; Gtk::Image *imgIcon[9];
public: public:
static const Glib::ustring TOOL_NAME;
ChMixer (); ChMixer ();

View File

@ -44,6 +44,8 @@
using namespace rtengine; using namespace rtengine;
using namespace rtengine::procparams; using namespace rtengine::procparams;
const Glib::ustring ColorAppearance::TOOL_NAME = "colorappearance";
static double wbSlider2Temp (double sval) static double wbSlider2Temp (double sval)
{ {
@ -212,7 +214,7 @@ static double wbTemp2Slider (double temp)
} }
ColorAppearance::ColorAppearance () : FoldableToolPanel (this, "colorappearance", M ("TP_COLORAPP_LABEL"), false, true) ColorAppearance::ColorAppearance () : FoldableToolPanel (this, TOOL_NAME, M ("TP_COLORAPP_LABEL"), false, true)
{ {
CurveListener::setMulti (true); CurveListener::setMulti (true);
std::vector<GradientMilestone> milestones; std::vector<GradientMilestone> milestones;

View File

@ -39,6 +39,8 @@ class ColorAppearance final :
public ColorProvider public ColorProvider
{ {
public: public:
static const Glib::ustring TOOL_NAME;
ColorAppearance (); ColorAppearance ();
~ColorAppearance () override; ~ColorAppearance () override;

View File

@ -14,6 +14,7 @@
using namespace rtengine; using namespace rtengine;
using namespace rtengine::procparams; using namespace rtengine::procparams;
const Glib::ustring ColorToning::TOOL_NAME = "colortoning";
namespace { namespace {
@ -33,7 +34,7 @@ inline float round_ab(float v)
} // namespace } // namespace
ColorToning::ColorToning () : FoldableToolPanel(this, "colortoning", M("TP_COLORTONING_LABEL"), false, true) ColorToning::ColorToning () : FoldableToolPanel(this, TOOL_NAME, M("TP_COLORTONING_LABEL"), false, true)
{ {
nextbw = 0; nextbw = 0;
CurveListener::setMulti(true); CurveListener::setMulti(true);

View File

@ -30,6 +30,8 @@ class ColorToning final :
public AdjusterListener public AdjusterListener
{ {
public: public:
static const Glib::ustring TOOL_NAME;
ColorToning (); ColorToning ();
~ColorToning() override; ~ColorToning() override;
void read (const rtengine::procparams::ProcParams* pp, const ParamsEdited* pedited = nullptr) override; void read (const rtengine::procparams::ProcParams* pp, const ParamsEdited* pedited = nullptr) override;

View File

@ -29,6 +29,8 @@
using namespace rtengine; using namespace rtengine;
using namespace rtengine::procparams; using namespace rtengine::procparams;
const Glib::ustring Crop::TOOL_NAME = "crop";
namespace namespace
{ {
@ -124,7 +126,7 @@ private:
}; };
Crop::Crop(): Crop::Crop():
FoldableToolPanel(this, "crop", M("TP_CROP_LABEL"), false, true), FoldableToolPanel(this, TOOL_NAME, M("TP_CROP_LABEL"), false, true),
crop_ratios(new CropRatios), crop_ratios(new CropRatios),
opt(0), opt(0),
wDirty(true), wDirty(true),

View File

@ -41,6 +41,8 @@ class Crop final :
public rtengine::SizeListener public rtengine::SizeListener
{ {
public: public:
static const Glib::ustring TOOL_NAME;
Crop(); Crop();
~Crop() override; ~Crop() override;

View File

@ -30,7 +30,9 @@
using namespace rtengine; using namespace rtengine;
using namespace rtengine::procparams; using namespace rtengine::procparams;
DarkFrame::DarkFrame () : FoldableToolPanel(this, "darkframe", M("TP_DARKFRAME_LABEL")), dfChanged(false), lastDFauto(false), dfp(nullptr), israw(true) const Glib::ustring DarkFrame::TOOL_NAME = "darkframe";
DarkFrame::DarkFrame () : FoldableToolPanel(this, TOOL_NAME, M("TP_DARKFRAME_LABEL")), dfChanged(false), lastDFauto(false), dfp(nullptr), israw(true)
{ {
hbdf = Gtk::manage(new Gtk::Box()); hbdf = Gtk::manage(new Gtk::Box());
hbdf->set_spacing(4); hbdf->set_spacing(4);

View File

@ -62,6 +62,7 @@ protected:
bool israw; bool israw;
public: public:
static const Glib::ustring TOOL_NAME;
DarkFrame (); DarkFrame ();

View File

@ -30,7 +30,9 @@
using namespace rtengine; using namespace rtengine;
using namespace rtengine::procparams; using namespace rtengine::procparams;
Defringe::Defringe () : FoldableToolPanel(this, "defringe", M("TP_DEFRINGE_LABEL"), true, true) const Glib::ustring Defringe::TOOL_NAME = "defringe";
Defringe::Defringe () : FoldableToolPanel(this, TOOL_NAME, M("TP_DEFRINGE_LABEL"), true, true)
{ {
std::vector<GradientMilestone> bottomMilestones; std::vector<GradientMilestone> bottomMilestones;

View File

@ -46,6 +46,7 @@ protected:
bool edges; bool edges;
public: public:
static const Glib::ustring TOOL_NAME;
Defringe (); Defringe ();
~Defringe () override; ~Defringe () override;

View File

@ -29,7 +29,9 @@
using namespace rtengine; using namespace rtengine;
using namespace rtengine::procparams; using namespace rtengine::procparams;
Dehaze::Dehaze(): FoldableToolPanel(this, "dehaze", M("TP_DEHAZE_LABEL"), false, true) const Glib::ustring Dehaze::TOOL_NAME = "dehaze";
Dehaze::Dehaze(): FoldableToolPanel(this, TOOL_NAME, M("TP_DEHAZE_LABEL"), false, true)
{ {
auto m = ProcEventMapper::getInstance(); auto m = ProcEventMapper::getInstance();
EvDehazeEnabled = m->newEvent(HDR, "HISTORY_MSG_DEHAZE_ENABLED"); EvDehazeEnabled = m->newEvent(HDR, "HISTORY_MSG_DEHAZE_ENABLED");

View File

@ -39,6 +39,7 @@ private:
rtengine::ProcEvent EvDehazeSaturation; rtengine::ProcEvent EvDehazeSaturation;
public: public:
static const Glib::ustring TOOL_NAME;
Dehaze(); Dehaze();

View File

@ -33,7 +33,9 @@
using namespace rtengine; using namespace rtengine;
using namespace rtengine::procparams; using namespace rtengine::procparams;
DirPyrDenoise::DirPyrDenoise () : FoldableToolPanel(this, "dirpyrdenoise", M("TP_DIRPYRDENOISE_LABEL"), true, true), lastmedian(false) const Glib::ustring DirPyrDenoise::TOOL_NAME = "dirpyrdenoise";
DirPyrDenoise::DirPyrDenoise () : FoldableToolPanel(this, TOOL_NAME, M("TP_DIRPYRDENOISE_LABEL"), true, true), lastmedian(false)
{ {
std::vector<GradientMilestone> milestones; std::vector<GradientMilestone> milestones;
CurveListener::setMulti(true); CurveListener::setMulti(true);

View File

@ -40,6 +40,8 @@ class DirPyrDenoise final :
public ColorProvider public ColorProvider
{ {
public: public:
static const Glib::ustring TOOL_NAME;
DirPyrDenoise (); DirPyrDenoise ();
~DirPyrDenoise () override; ~DirPyrDenoise () override;

View File

@ -24,7 +24,9 @@
using namespace rtengine; using namespace rtengine;
using namespace rtengine::procparams; using namespace rtengine::procparams;
DirPyrEqualizer::DirPyrEqualizer () : FoldableToolPanel(this, "dirpyrequalizer", M("TP_DIRPYREQUALIZER_LABEL"), true, true) const Glib::ustring DirPyrEqualizer::TOOL_NAME = "dirpyrequalizer";
DirPyrEqualizer::DirPyrEqualizer () : FoldableToolPanel(this, TOOL_NAME, M("TP_DIRPYREQUALIZER_LABEL"), true, true)
{ {
std::vector<GradientMilestone> milestones; std::vector<GradientMilestone> milestones;

View File

@ -56,6 +56,7 @@ protected:
bool lastgamutlab; bool lastgamutlab;
public: public:
static const Glib::ustring TOOL_NAME;
DirPyrEqualizer (); DirPyrEqualizer ();
~DirPyrEqualizer () override; ~DirPyrEqualizer () override;

View File

@ -27,7 +27,9 @@
using namespace rtengine; using namespace rtengine;
using namespace rtengine::procparams; using namespace rtengine::procparams;
Distortion::Distortion (): FoldableToolPanel(this, "distortion", M("TP_DISTORTION_LABEL")) const Glib::ustring Distortion::TOOL_NAME = "distortion";
Distortion::Distortion (): FoldableToolPanel(this, TOOL_NAME, M("TP_DISTORTION_LABEL"))
{ {
rlistener = nullptr; rlistener = nullptr;

View File

@ -37,6 +37,7 @@ protected:
LensGeomListener * rlistener; LensGeomListener * rlistener;
public: public:
static const Glib::ustring TOOL_NAME;
Distortion (); Distortion ();

View File

@ -26,7 +26,9 @@
using namespace rtengine; using namespace rtengine;
using namespace rtengine::procparams; using namespace rtengine::procparams;
EdgePreservingDecompositionUI::EdgePreservingDecompositionUI () : FoldableToolPanel(this, "epd", M("TP_EPD_LABEL"), true, true) const Glib::ustring EdgePreservingDecompositionUI::TOOL_NAME = "epd";
EdgePreservingDecompositionUI::EdgePreservingDecompositionUI () : FoldableToolPanel(this, TOOL_NAME, M("TP_EPD_LABEL"), true, true)
{ {
strength = Gtk::manage(new Adjuster (M("TP_EPD_STRENGTH"), -1.0, 2.0, 0.01, 0.5)); strength = Gtk::manage(new Adjuster (M("TP_EPD_STRENGTH"), -1.0, 2.0, 0.01, 0.5));

View File

@ -36,6 +36,7 @@ protected:
Adjuster *reweightingIterates; Adjuster *reweightingIterates;
public: public:
static const Glib::ustring TOOL_NAME;
EdgePreservingDecompositionUI(); EdgePreservingDecompositionUI();

View File

@ -31,7 +31,9 @@
using namespace rtengine; using namespace rtengine;
using namespace rtengine::procparams; using namespace rtengine::procparams;
FattalToneMapping::FattalToneMapping(): FoldableToolPanel(this, "fattal", M("TP_TM_FATTAL_LABEL"), true, true) const Glib::ustring FattalToneMapping::TOOL_NAME = "fattal";
FattalToneMapping::FattalToneMapping(): FoldableToolPanel(this, TOOL_NAME, M("TP_TM_FATTAL_LABEL"), true, true)
{ {
auto m = ProcEventMapper::getInstance(); auto m = ProcEventMapper::getInstance();
EvTMFattalAnchor = m->newEvent(HDR, "HISTORY_MSG_TM_FATTAL_ANCHOR"); EvTMFattalAnchor = m->newEvent(HDR, "HISTORY_MSG_TM_FATTAL_ANCHOR");

View File

@ -33,6 +33,7 @@ protected:
rtengine::ProcEvent EvTMFattalAnchor; rtengine::ProcEvent EvTMFattalAnchor;
public: public:
static const Glib::ustring TOOL_NAME;
FattalToneMapping(); FattalToneMapping();

View File

@ -28,6 +28,8 @@
#include "../rtengine/procparams.h" #include "../rtengine/procparams.h"
#include "../rtengine/color.h" #include "../rtengine/color.h"
const Glib::ustring FilmNegative::TOOL_NAME = "filmnegative";
namespace namespace
{ {
@ -184,7 +186,7 @@ void rgb2temp(const RGB &refOut, double &outLev, double &temp, double &green)
} }
FilmNegative::FilmNegative() : FilmNegative::FilmNegative() :
FoldableToolPanel(this, "filmnegative", M("TP_FILMNEGATIVE_LABEL"), false, true), FoldableToolPanel(this, TOOL_NAME, M("TP_FILMNEGATIVE_LABEL"), false, true),
EditSubscriber(ET_OBJECTS), EditSubscriber(ET_OBJECTS),
NEUTRAL_TEMP(rtengine::ColorTemp(1., 1., 1., 1.)), NEUTRAL_TEMP(rtengine::ColorTemp(1., 1., 1., 1.)),
evFilmNegativeExponents(ProcEventMapper::getInstance()->newEvent(ALLNORAW, "HISTORY_MSG_FILMNEGATIVE_VALUES")), evFilmNegativeExponents(ProcEventMapper::getInstance()->newEvent(ALLNORAW, "HISTORY_MSG_FILMNEGATIVE_VALUES")),

View File

@ -52,6 +52,8 @@ class FilmNegative final :
public rtengine::FilmNegListener public rtengine::FilmNegListener
{ {
public: public:
static const Glib::ustring TOOL_NAME;
FilmNegative(); FilmNegative();
~FilmNegative() override; ~FilmNegative() override;

View File

@ -12,6 +12,8 @@
using namespace rtengine; using namespace rtengine;
using namespace rtengine::procparams; using namespace rtengine::procparams;
const Glib::ustring FilmSimulation::TOOL_NAME = "filmsimulation";
namespace namespace
{ {
@ -61,7 +63,7 @@ bool notifySlowParseDir (const std::chrono::system_clock::time_point& startedAt)
} }
FilmSimulation::FilmSimulation() FilmSimulation::FilmSimulation()
: FoldableToolPanel( this, "filmsimulation", M("TP_FILMSIMULATION_LABEL"), false, true ) : FoldableToolPanel( this, TOOL_NAME, M("TP_FILMSIMULATION_LABEL"), false, true )
{ {
m_clutComboBox = Gtk::manage( new ClutComboBox(options.clutsDir) ); m_clutComboBox = Gtk::manage( new ClutComboBox(options.clutsDir) );
int foundClutsCount = m_clutComboBox->foundClutsCount(); int foundClutsCount = m_clutComboBox->foundClutsCount();

View File

@ -56,6 +56,8 @@ private:
class FilmSimulation : public ToolParamBlock, public AdjusterListener, public FoldableToolPanel class FilmSimulation : public ToolParamBlock, public AdjusterListener, public FoldableToolPanel
{ {
public: public:
static const Glib::ustring TOOL_NAME;
FilmSimulation(); FilmSimulation();
void adjusterChanged(Adjuster* a, double newval) override; void adjusterChanged(Adjuster* a, double newval) override;

View File

@ -30,7 +30,9 @@
using namespace rtengine; using namespace rtengine;
using namespace rtengine::procparams; using namespace rtengine::procparams;
FlatField::FlatField () : FoldableToolPanel(this, "flatfield", M("TP_FLATFIELD_LABEL")) const Glib::ustring FlatField::TOOL_NAME = "flatfield";
FlatField::FlatField () : FoldableToolPanel(this, TOOL_NAME, M("TP_FLATFIELD_LABEL"))
{ {
hbff = Gtk::manage(new Gtk::Box()); hbff = Gtk::manage(new Gtk::Box());
flatFieldFile = Gtk::manage(new MyFileChooserButton(M("TP_FLATFIELD_LABEL"), Gtk::FILE_CHOOSER_ACTION_OPEN)); flatFieldFile = Gtk::manage(new MyFileChooserButton(M("TP_FLATFIELD_LABEL"), Gtk::FILE_CHOOSER_ACTION_OPEN));

View File

@ -67,6 +67,7 @@ protected:
IdleRegister idle_register; IdleRegister idle_register;
public: public:
static const Glib::ustring TOOL_NAME;
FlatField (); FlatField ();
~FlatField () override; ~FlatField () override;

View File

@ -25,7 +25,9 @@ enum GeometryIndex {
} }
Gradient::Gradient () : FoldableToolPanel(this, "gradient", M("TP_GRADIENT_LABEL"), false, true), EditSubscriber(ET_OBJECTS), lastObject(-1), draggedPointOldAngle(-1000.) const Glib::ustring Gradient::TOOL_NAME = "gradient";
Gradient::Gradient () : FoldableToolPanel(this, TOOL_NAME, M("TP_GRADIENT_LABEL"), false, true), EditSubscriber(ET_OBJECTS), lastObject(-1), draggedPointOldAngle(-1000.)
{ {
editHBox = Gtk::manage (new Gtk::Box()); editHBox = Gtk::manage (new Gtk::Box());

View File

@ -38,6 +38,7 @@ protected:
void releaseEdit(); void releaseEdit();
public: public:
static const Glib::ustring TOOL_NAME;
Gradient (); Gradient ();
~Gradient () override; ~Gradient () override;

View File

@ -28,9 +28,11 @@
using namespace rtengine; using namespace rtengine;
using namespace rtengine::procparams; using namespace rtengine::procparams;
const Glib::ustring HSVEqualizer::TOOL_NAME = "hsvequalizer";
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
HSVEqualizer::HSVEqualizer () : FoldableToolPanel(this, "hsvequalizer", M("TP_HSVEQUALIZER_LABEL"), false, true) HSVEqualizer::HSVEqualizer () : FoldableToolPanel(this, TOOL_NAME, M("TP_HSVEQUALIZER_LABEL"), false, true)
{ {
std::vector<GradientMilestone> bottomMilestones; std::vector<GradientMilestone> bottomMilestones;

View File

@ -44,6 +44,7 @@ protected:
FlatCurveEditor* vshape; FlatCurveEditor* vshape;
public: public:
static const Glib::ustring TOOL_NAME;
HSVEqualizer (); HSVEqualizer ();
~HSVEqualizer () override; ~HSVEqualizer () override;

View File

@ -35,7 +35,9 @@
using namespace rtengine; using namespace rtengine;
using namespace rtengine::procparams; using namespace rtengine::procparams;
ICMPanel::ICMPanel() : FoldableToolPanel(this, "icm", M("TP_ICM_LABEL")), iunchanged(nullptr), icmplistener(nullptr) const Glib::ustring ICMPanel::TOOL_NAME = "icm";
ICMPanel::ICMPanel() : FoldableToolPanel(this, TOOL_NAME, M("TP_ICM_LABEL")), iunchanged(nullptr), icmplistener(nullptr)
{ {
auto m = ProcEventMapper::getInstance(); auto m = ProcEventMapper::getInstance();
EvICMprimariMethod = m->newEvent(GAMMA, "HISTORY_MSG_ICM_OUTPUT_PRIMARIES"); EvICMprimariMethod = m->newEvent(GAMMA, "HISTORY_MSG_ICM_OUTPUT_PRIMARIES");

View File

@ -177,6 +177,8 @@ private:
float nextwy; float nextwy;
public: public:
static const Glib::ustring TOOL_NAME;
ICMPanel(); ICMPanel();
~ICMPanel() override; ~ICMPanel() override;

View File

@ -28,7 +28,9 @@
using namespace rtengine; using namespace rtengine;
using namespace rtengine::procparams; using namespace rtengine::procparams;
ImpulseDenoise::ImpulseDenoise () : FoldableToolPanel(this, "impulsedenoise", M("TP_IMPULSEDENOISE_LABEL"), true, true) const Glib::ustring ImpulseDenoise::TOOL_NAME = "impulsedenoise";
ImpulseDenoise::ImpulseDenoise () : FoldableToolPanel(this, TOOL_NAME, M("TP_IMPULSEDENOISE_LABEL"), true, true)
{ {
thresh = Gtk::manage (new Adjuster (M("TP_IMPULSEDENOISE_THRESH"), 0, 100, 1, 50)); thresh = Gtk::manage (new Adjuster (M("TP_IMPULSEDENOISE_THRESH"), 0, 100, 1, 50));

View File

@ -34,6 +34,7 @@ protected:
//Adjuster* edge; //Adjuster* edge;
public: public:
static const Glib::ustring TOOL_NAME;
ImpulseDenoise (); ImpulseDenoise ();

View File

@ -32,7 +32,9 @@
using namespace rtengine; using namespace rtengine;
using namespace rtengine::procparams; using namespace rtengine::procparams;
LCurve::LCurve () : FoldableToolPanel(this, "labcurves", M("TP_LABCURVE_LABEL"), false, true) const Glib::ustring LCurve::TOOL_NAME = "labcurves";
LCurve::LCurve () : FoldableToolPanel(this, TOOL_NAME, M("TP_LABCURVE_LABEL"), false, true)
{ {
brightness = Gtk::manage (new Adjuster (M("TP_LABCURVE_BRIGHTNESS"), -100., 100., 1., 0.)); brightness = Gtk::manage (new Adjuster (M("TP_LABCURVE_BRIGHTNESS"), -100., 100., 1., 0.));
contrast = Gtk::manage (new Adjuster (M("TP_LABCURVE_CONTRAST"), -100., 100., 1., 0.)); contrast = Gtk::manage (new Adjuster (M("TP_LABCURVE_CONTRAST"), -100., 100., 1., 0.));

View File

@ -69,6 +69,7 @@ protected:
//%%%%%%%%%%%%%%%% //%%%%%%%%%%%%%%%%
public: public:
static const Glib::ustring TOOL_NAME;
LCurve (); LCurve ();
~LCurve () override; ~LCurve () override;

View File

@ -27,7 +27,9 @@
using namespace rtengine; using namespace rtengine;
using namespace rtengine::procparams; using namespace rtengine::procparams;
LensGeometry::LensGeometry () : FoldableToolPanel(this, "lensgeom", M("TP_LENSGEOM_LABEL")), rlistener(nullptr), lastFill(false) const Glib::ustring LensGeometry::TOOL_NAME = "lensgeom";
LensGeometry::LensGeometry () : FoldableToolPanel(this, TOOL_NAME, M("TP_LENSGEOM_LABEL")), rlistener(nullptr), lastFill(false)
{ {
auto m = ProcEventMapper::getInstance(); auto m = ProcEventMapper::getInstance();

View File

@ -39,6 +39,7 @@ protected:
rtengine::ProcEvent EvTransMethod; rtengine::ProcEvent EvTransMethod;
public: public:
static const Glib::ustring TOOL_NAME;
LensGeometry (); LensGeometry ();
~LensGeometry () override; ~LensGeometry () override;

View File

@ -36,8 +36,10 @@
using namespace rtengine; using namespace rtengine;
using namespace rtengine::procparams; using namespace rtengine::procparams;
const Glib::ustring LensProfilePanel::TOOL_NAME = "lensprof";
LensProfilePanel::LensProfilePanel() : LensProfilePanel::LensProfilePanel() :
FoldableToolPanel(this, "lensprof", M("TP_LENSPROFILE_LABEL")), FoldableToolPanel(this, TOOL_NAME, M("TP_LENSPROFILE_LABEL")),
lcModeChanged(false), lcModeChanged(false),
lcpFileChanged(false), lcpFileChanged(false),
useDistChanged(false), useDistChanged(false),

View File

@ -28,6 +28,8 @@ class LensProfilePanel final :
public FoldableToolPanel public FoldableToolPanel
{ {
public: public:
static const Glib::ustring TOOL_NAME;
LensProfilePanel(); LensProfilePanel();
void read(const rtengine::procparams::ProcParams* pp, const ParamsEdited* pedited = nullptr) override; void read(const rtengine::procparams::ProcParams* pp, const ParamsEdited* pedited = nullptr) override;

View File

@ -29,7 +29,9 @@
using namespace rtengine; using namespace rtengine;
using namespace rtengine::procparams; using namespace rtengine::procparams;
LocalContrast::LocalContrast(): FoldableToolPanel(this, "localcontrast", M("TP_LOCALCONTRAST_LABEL"), false, true) const Glib::ustring LocalContrast::TOOL_NAME = "localcontrast";
LocalContrast::LocalContrast(): FoldableToolPanel(this, TOOL_NAME, M("TP_LOCALCONTRAST_LABEL"), false, true)
{ {
auto m = ProcEventMapper::getInstance(); auto m = ProcEventMapper::getInstance();
/* EvLocalContrastEnabled = m->newEvent(RGBCURVE, "HISTORY_MSG_LOCALCONTRAST_ENABLED"); /* EvLocalContrastEnabled = m->newEvent(RGBCURVE, "HISTORY_MSG_LOCALCONTRAST_ENABLED");

View File

@ -38,6 +38,7 @@ private:
rtengine::ProcEvent EvLocalContrastLightness; rtengine::ProcEvent EvLocalContrastLightness;
public: public:
static const Glib::ustring TOOL_NAME;
LocalContrast(); LocalContrast();

View File

@ -29,6 +29,8 @@ using namespace procparams;
extern Options options; extern Options options;
const Glib::ustring Locallab::TOOL_NAME = "locallab";
/* ==== LocallabToolList ==== */ /* ==== LocallabToolList ==== */
LocallabToolList::LocallabToolList(): LocallabToolList::LocallabToolList():
// Tool list GUI elements // Tool list GUI elements
@ -142,7 +144,7 @@ void LocallabToolList::toolRowSelected()
/* ==== Locallab ==== */ /* ==== Locallab ==== */
Locallab::Locallab(): Locallab::Locallab():
FoldableToolPanel(this, "locallab", M("TP_LOCALLAB_LABEL"), false, true), FoldableToolPanel(this, TOOL_NAME, M("TP_LOCALLAB_LABEL"), false, true),
// Spot control panel widget // Spot control panel widget
expsettings(Gtk::manage(new ControlSpotPanel())), expsettings(Gtk::manage(new ControlSpotPanel())),

View File

@ -131,6 +131,8 @@ private:
Glib::ustring spotName; Glib::ustring spotName;
public: public:
static const Glib::ustring TOOL_NAME;
Locallab(); Locallab();
// FoldableToolPanel management functions // FoldableToolPanel management functions

View File

@ -8,7 +8,9 @@
using namespace rtengine; using namespace rtengine;
using namespace rtengine::procparams; using namespace rtengine::procparams;
PCVignette::PCVignette () : FoldableToolPanel(this, "pcvignette", M("TP_PCVIGNETTE_LABEL"), false, true) const Glib::ustring PCVignette::TOOL_NAME = "pcvignette";
PCVignette::PCVignette () : FoldableToolPanel(this, TOOL_NAME, M("TP_PCVIGNETTE_LABEL"), false, true)
{ {
strength = Gtk::manage (new Adjuster (M("TP_PCVIGNETTE_STRENGTH"), -6, 6, 0.01, 0)); strength = Gtk::manage (new Adjuster (M("TP_PCVIGNETTE_STRENGTH"), -6, 6, 0.01, 0));
strength->set_tooltip_text (M("TP_PCVIGNETTE_STRENGTH_TOOLTIP")); strength->set_tooltip_text (M("TP_PCVIGNETTE_STRENGTH_TOOLTIP"));

View File

@ -20,6 +20,7 @@ protected:
Adjuster* roundness; Adjuster* roundness;
public: public:
static const Glib::ustring TOOL_NAME;
PCVignette (); PCVignette ();

View File

@ -31,8 +31,10 @@
using namespace rtengine; using namespace rtengine;
using namespace rtengine::procparams; using namespace rtengine::procparams;
const Glib::ustring PdSharpening::TOOL_NAME = "capturesharpening";
PdSharpening::PdSharpening() : PdSharpening::PdSharpening() :
FoldableToolPanel(this, "capturesharpening", M("TP_PDSHARPENING_LABEL"), false, true), FoldableToolPanel(this, TOOL_NAME, M("TP_PDSHARPENING_LABEL"), false, true),
lastAutoContrast(true), lastAutoContrast(true),
lastAutoRadius(true) lastAutoRadius(true)
{ {

View File

@ -50,6 +50,7 @@ protected:
IdleRegister idle_register; IdleRegister idle_register;
public: public:
static const Glib::ustring TOOL_NAME;
PdSharpening (); PdSharpening ();
~PdSharpening () override; ~PdSharpening () override;

View File

@ -27,6 +27,8 @@
using namespace rtengine; using namespace rtengine;
using namespace rtengine::procparams; using namespace rtengine::procparams;
const Glib::ustring PerspCorrection::TOOL_NAME = "perspective";
namespace namespace
{ {
@ -84,7 +86,7 @@ std::vector<rtengine::ControlLine> valuesToControlLines(
} }
PerspCorrection::PerspCorrection () : FoldableToolPanel(this, "perspective", M("TP_PERSPECTIVE_LABEL")) PerspCorrection::PerspCorrection () : FoldableToolPanel(this, TOOL_NAME, M("TP_PERSPECTIVE_LABEL"))
{ {
auto mapper = ProcEventMapper::getInstance(); auto mapper = ProcEventMapper::getInstance();

View File

@ -104,6 +104,7 @@ public:
static constexpr std::size_t MIN_HORIZ_LINES = 2; static constexpr std::size_t MIN_HORIZ_LINES = 2;
/** Minimum number of vertical lines for vertical/full correction. */ /** Minimum number of vertical lines for vertical/full correction. */
static constexpr std::size_t MIN_VERT_LINES = 2; static constexpr std::size_t MIN_VERT_LINES = 2;
static const Glib::ustring TOOL_NAME;
PerspCorrection (); PerspCorrection ();

View File

@ -28,7 +28,9 @@
using namespace rtengine; using namespace rtengine;
using namespace rtengine::procparams; using namespace rtengine::procparams;
PreProcess::PreProcess () : FoldableToolPanel(this, "preprocess", M("TP_PREPROCESS_LABEL"), options.prevdemo != PD_Sidecar) const Glib::ustring PreProcess::TOOL_NAME = "preprocess";
PreProcess::PreProcess () : FoldableToolPanel(this, TOOL_NAME, M("TP_PREPROCESS_LABEL"), options.prevdemo != PD_Sidecar)
{ {
Gtk::Box* hotdeadPixel = Gtk::manage( new Gtk::Box () ); Gtk::Box* hotdeadPixel = Gtk::manage( new Gtk::Box () );

View File

@ -38,6 +38,7 @@ protected:
sigc::connection dpixelconn; sigc::connection dpixelconn;
Adjuster* hdThreshold; Adjuster* hdThreshold;
public: public:
static const Glib::ustring TOOL_NAME;
PreProcess (); PreProcess ();

View File

@ -29,8 +29,10 @@
using namespace rtengine; using namespace rtengine;
using namespace rtengine::procparams; using namespace rtengine::procparams;
const Glib::ustring PreprocessWB::TOOL_NAME = "preprocesswb";
PreprocessWB::PreprocessWB() : PreprocessWB::PreprocessWB() :
FoldableToolPanel(this, "preprocesswb", M("TP_PREPROCWB_LABEL")), FoldableToolPanel(this, TOOL_NAME, M("TP_PREPROCWB_LABEL")),
evPreprocessWBMode(ProcEventMapper::getInstance()->newEvent(FIRST, "HISTORY_MSG_PREPROCWB_MODE")), evPreprocessWBMode(ProcEventMapper::getInstance()->newEvent(FIRST, "HISTORY_MSG_PREPROCWB_MODE")),
mode(Gtk::manage(new MyComboBoxText())) mode(Gtk::manage(new MyComboBoxText()))
{ {

View File

@ -34,6 +34,7 @@ private:
MyComboBoxText* mode; MyComboBoxText* mode;
public: public:
static const Glib::ustring TOOL_NAME;
PreprocessWB(); PreprocessWB();

View File

@ -23,7 +23,9 @@
using namespace rtengine; using namespace rtengine;
using namespace rtengine::procparams; using namespace rtengine::procparams;
PrSharpening::PrSharpening () : FoldableToolPanel(this, "prsharpening", M("TP_PRSHARPENING_LABEL"), false, true) const Glib::ustring PrSharpening::TOOL_NAME = "prsharpening";
PrSharpening::PrSharpening () : FoldableToolPanel(this, TOOL_NAME, M("TP_PRSHARPENING_LABEL"), false, true)
{ {
auto m = ProcEventMapper::getInstance(); auto m = ProcEventMapper::getInstance();

View File

@ -59,6 +59,7 @@ protected:
sigc::connection hcConn; sigc::connection hcConn;
rtengine::ProcEvent EvPrShrContrast; rtengine::ProcEvent EvPrShrContrast;
public: public:
static const Glib::ustring TOOL_NAME;
PrSharpening (); PrSharpening ();
~PrSharpening () override; ~PrSharpening () override;

View File

@ -28,7 +28,9 @@
using namespace rtengine; using namespace rtengine;
using namespace rtengine::procparams; using namespace rtengine::procparams;
RAWCACorr::RAWCACorr () : FoldableToolPanel(this, "rawcacorrection", M("TP_RAWCACORR_LABEL")) const Glib::ustring RAWCACorr::TOOL_NAME = "rawcacorrection";
RAWCACorr::RAWCACorr () : FoldableToolPanel(this, TOOL_NAME, M("TP_RAWCACORR_LABEL"))
{ {
auto m = ProcEventMapper::getInstance(); auto m = ProcEventMapper::getInstance();
EvPreProcessCAAutoiterations = m->newEvent(DARKFRAME, "HISTORY_MSG_RAWCACORR_AUTOIT"); EvPreProcessCAAutoiterations = m->newEvent(DARKFRAME, "HISTORY_MSG_RAWCACORR_AUTOIT");

View File

@ -43,6 +43,7 @@ protected:
rtengine::ProcEvent EvPreProcessCAColourshiftHistory; rtengine::ProcEvent EvPreProcessCAColourshiftHistory;
public: public:
static const Glib::ustring TOOL_NAME;
RAWCACorr (); RAWCACorr ();

View File

@ -28,7 +28,9 @@
using namespace rtengine; using namespace rtengine;
using namespace rtengine::procparams; using namespace rtengine::procparams;
RAWExposure::RAWExposure () : FoldableToolPanel(this, "rawexposure", M("TP_EXPOS_WHITEPOINT_LABEL")) const Glib::ustring RAWExposure::TOOL_NAME = "rawexposure";
RAWExposure::RAWExposure () : FoldableToolPanel(this, TOOL_NAME, M("TP_EXPOS_WHITEPOINT_LABEL"))
{ {
PexPos = Gtk::manage(new Adjuster (M("TP_RAWEXPOS_LINEAR"), 0.1, 16.0, 0.01, 1)); PexPos = Gtk::manage(new Adjuster (M("TP_RAWEXPOS_LINEAR"), 0.1, 16.0, 0.01, 1));
PexPos->setAdjusterListener (this); PexPos->setAdjusterListener (this);

View File

@ -33,6 +33,7 @@ protected:
Adjuster* PexPos; Adjuster* PexPos;
public: public:
static const Glib::ustring TOOL_NAME;
RAWExposure (); RAWExposure ();

View File

@ -29,7 +29,9 @@
using namespace rtengine; using namespace rtengine;
using namespace rtengine::procparams; using namespace rtengine::procparams;
Resize::Resize () : FoldableToolPanel(this, "resize", M("TP_RESIZE_LABEL"), false, true), maxw(100000), maxh(100000) const Glib::ustring Resize::TOOL_NAME = "resize";
Resize::Resize () : FoldableToolPanel(this, TOOL_NAME, M("TP_RESIZE_LABEL"), false, true), maxw(100000), maxh(100000)
{ {
auto m = ProcEventMapper::getInstance(); auto m = ProcEventMapper::getInstance();
EvResizeAllowUpscaling = m->newEvent(RESIZE, "HISTORY_MSG_RESIZE_ALLOWUPSCALING"); EvResizeAllowUpscaling = m->newEvent(RESIZE, "HISTORY_MSG_RESIZE_ALLOWUPSCALING");

View File

@ -32,6 +32,8 @@ class Resize final :
public rtengine::SizeListener public rtengine::SizeListener
{ {
public: public:
static const Glib::ustring TOOL_NAME;
Resize (); Resize ();
~Resize () override; ~Resize () override;

View File

@ -14,7 +14,9 @@
using namespace rtengine; using namespace rtengine;
using namespace rtengine::procparams; using namespace rtengine::procparams;
Retinex::Retinex () : FoldableToolPanel (this, "retinex", M ("TP_RETINEX_LABEL"), false, true), lastmedianmap (false) const Glib::ustring Retinex::TOOL_NAME = "retinex";
Retinex::Retinex () : FoldableToolPanel (this, TOOL_NAME, M ("TP_RETINEX_LABEL"), false, true), lastmedianmap (false)
{ {
CurveListener::setMulti (true); CurveListener::setMulti (true);
std::vector<GradientMilestone> milestones; std::vector<GradientMilestone> milestones;

View File

@ -109,6 +109,8 @@ protected:
sigc::connection medianmapConn; sigc::connection medianmapConn;
public: public:
static const Glib::ustring TOOL_NAME;
Retinex(); Retinex();
~Retinex() override; ~Retinex() override;

View File

@ -27,7 +27,9 @@
using namespace rtengine; using namespace rtengine;
using namespace rtengine::procparams; using namespace rtengine::procparams;
RGBCurves::RGBCurves () : FoldableToolPanel(this, "rgbcurves", M("TP_RGBCURVES_LABEL"), false, true), lastLumamode(false) const Glib::ustring RGBCurves::TOOL_NAME = "rgbcurves";
RGBCurves::RGBCurves () : FoldableToolPanel(this, TOOL_NAME, M("TP_RGBCURVES_LABEL"), false, true), lastLumamode(false)
{ {
lumamode = Gtk::manage (new Gtk::CheckButton (M("TP_RGBCURVES_LUMAMODE"))); lumamode = Gtk::manage (new Gtk::CheckButton (M("TP_RGBCURVES_LUMAMODE")));

View File

@ -45,6 +45,7 @@ protected:
sigc::connection lumamodeConn; sigc::connection lumamodeConn;
public: public:
static const Glib::ustring TOOL_NAME;
RGBCurves (); RGBCurves ();
~RGBCurves () override; ~RGBCurves () override;

View File

@ -29,7 +29,9 @@
using namespace rtengine; using namespace rtengine;
using namespace rtengine::procparams; using namespace rtengine::procparams;
Rotate::Rotate () : FoldableToolPanel(this, "rotate", M("TP_ROTATE_LABEL")) const Glib::ustring Rotate::TOOL_NAME = "rotate";
Rotate::Rotate () : FoldableToolPanel(this, TOOL_NAME, M("TP_ROTATE_LABEL"))
{ {
rlistener = nullptr; rlistener = nullptr;

View File

@ -36,6 +36,7 @@ protected:
LensGeomListener* rlistener; LensGeomListener* rlistener;
public: public:
static const Glib::ustring TOOL_NAME;
Rotate (); Rotate ();

View File

@ -20,7 +20,9 @@
#include "guiutils.h" #include "guiutils.h"
#include "rtimage.h" #include "rtimage.h"
SensorBayer::SensorBayer () : FoldableToolPanel(this, "sensorbayer", M("TP_RAW_SENSOR_BAYER_LABEL")) const Glib::ustring SensorBayer::TOOL_NAME = "sensorbayer";
SensorBayer::SensorBayer () : FoldableToolPanel(this, TOOL_NAME, M("TP_RAW_SENSOR_BAYER_LABEL"))
{ {
packBox = Gtk::manage (new ToolParamBlock ()); packBox = Gtk::manage (new ToolParamBlock ());

View File

@ -31,6 +31,7 @@ protected:
ToolParamBlock* packBox; ToolParamBlock* packBox;
public: public:
static const Glib::ustring TOOL_NAME;
SensorBayer (); SensorBayer ();

View File

@ -20,7 +20,9 @@
#include "guiutils.h" #include "guiutils.h"
#include "rtimage.h" #include "rtimage.h"
SensorXTrans::SensorXTrans () : FoldableToolPanel(this, "sensorxtrans", M("TP_RAW_SENSOR_XTRANS_LABEL")) const Glib::ustring SensorXTrans::TOOL_NAME = "sensorxtrans";
SensorXTrans::SensorXTrans () : FoldableToolPanel(this, TOOL_NAME, M("TP_RAW_SENSOR_XTRANS_LABEL"))
{ {
packBox = Gtk::manage (new ToolParamBlock ()); packBox = Gtk::manage (new ToolParamBlock ());

View File

@ -31,6 +31,7 @@ protected:
ToolParamBlock* packBox; ToolParamBlock* packBox;
public: public:
static const Glib::ustring TOOL_NAME;
SensorXTrans (); SensorXTrans ();

View File

@ -25,7 +25,9 @@
using namespace rtengine; using namespace rtengine;
using namespace rtengine::procparams; using namespace rtengine::procparams;
ShadowsHighlights::ShadowsHighlights () : FoldableToolPanel(this, "shadowshighlights", M("TP_SHADOWSHLIGHTS_LABEL"), false, true) const Glib::ustring ShadowsHighlights::TOOL_NAME = "shadowshighlights";
ShadowsHighlights::ShadowsHighlights () : FoldableToolPanel(this, TOOL_NAME, M("TP_SHADOWSHLIGHTS_LABEL"), false, true)
{ {
auto m = ProcEventMapper::getInstance(); auto m = ProcEventMapper::getInstance();
EvSHColorspace = m->newEvent(LUMINANCECURVE, "HISTORY_MSG_SH_COLORSPACE"); EvSHColorspace = m->newEvent(LUMINANCECURVE, "HISTORY_MSG_SH_COLORSPACE");

View File

@ -40,6 +40,7 @@ protected:
rtengine::ProcEvent EvSHColorspace; rtengine::ProcEvent EvSHColorspace;
public: public:
static const Glib::ustring TOOL_NAME;
ShadowsHighlights (); ShadowsHighlights ();

View File

@ -28,8 +28,9 @@
using namespace rtengine; using namespace rtengine;
using namespace rtengine::procparams; using namespace rtengine::procparams;
const Glib::ustring SharpenEdge::TOOL_NAME = "sharpenedge";
SharpenEdge::SharpenEdge () : FoldableToolPanel(this, "sharpenedge", M("TP_SHARPENEDGE_LABEL"), true, true) SharpenEdge::SharpenEdge () : FoldableToolPanel(this, TOOL_NAME, M("TP_SHARPENEDGE_LABEL"), true, true)
{ {
passes = Gtk::manage(new Adjuster (M("TP_SHARPENEDGE_PASSES"), 1, 4, 1, 2)); passes = Gtk::manage(new Adjuster (M("TP_SHARPENEDGE_PASSES"), 1, 4, 1, 2));

View File

@ -44,6 +44,7 @@ protected:
bool lastchanthree; bool lastchanthree;
public: public:
static const Glib::ustring TOOL_NAME;
SharpenEdge (); SharpenEdge ();

View File

@ -23,7 +23,9 @@
using namespace rtengine; using namespace rtengine;
using namespace rtengine::procparams; using namespace rtengine::procparams;
Sharpening::Sharpening () : FoldableToolPanel(this, "sharpening", M("TP_SHARPENING_LABEL"), true, true) const Glib::ustring Sharpening::TOOL_NAME = "sharpening";
Sharpening::Sharpening () : FoldableToolPanel(this, TOOL_NAME, M("TP_SHARPENING_LABEL"), true, true)
{ {
auto m = ProcEventMapper::getInstance(); auto m = ProcEventMapper::getInstance();
EvSharpenContrast = m->newEvent(SHARPENING, "HISTORY_MSG_SHARPENING_CONTRAST"); EvSharpenContrast = m->newEvent(SHARPENING, "HISTORY_MSG_SHARPENING_CONTRAST");

View File

@ -62,6 +62,7 @@ protected:
rtengine::ProcEvent EvSharpenContrast; rtengine::ProcEvent EvSharpenContrast;
rtengine::ProcEvent EvSharpenBlur; rtengine::ProcEvent EvSharpenBlur;
public: public:
static const Glib::ustring TOOL_NAME;
Sharpening (); Sharpening ();
~Sharpening () override; ~Sharpening () override;

View File

@ -29,8 +29,9 @@
using namespace rtengine; using namespace rtengine;
using namespace rtengine::procparams; using namespace rtengine::procparams;
const Glib::ustring SharpenMicro::TOOL_NAME = "sharpenmicro";
SharpenMicro::SharpenMicro () : FoldableToolPanel(this, "sharpenmicro", M("TP_SHARPENMICRO_LABEL"), true, true) SharpenMicro::SharpenMicro () : FoldableToolPanel(this, TOOL_NAME, M("TP_SHARPENMICRO_LABEL"), true, true)
{ {
auto m = ProcEventMapper::getInstance(); auto m = ProcEventMapper::getInstance();

View File

@ -47,6 +47,7 @@ protected:
bool lastmatrix; bool lastmatrix;
public: public:
static const Glib::ustring TOOL_NAME;
SharpenMicro (); SharpenMicro ();

View File

@ -29,7 +29,9 @@
using namespace rtengine; using namespace rtengine;
using namespace rtengine::procparams; using namespace rtengine::procparams;
SoftLight::SoftLight(): FoldableToolPanel(this, "softlight", M("TP_SOFTLIGHT_LABEL"), false, true) const Glib::ustring SoftLight::TOOL_NAME = "softlight";
SoftLight::SoftLight(): FoldableToolPanel(this, TOOL_NAME, M("TP_SOFTLIGHT_LABEL"), false, true)
{ {
auto m = ProcEventMapper::getInstance(); auto m = ProcEventMapper::getInstance();
EvSoftLightEnabled = m->newEvent(LUMINANCECURVE, "HISTORY_MSG_SOFTLIGHT_ENABLED"); EvSoftLightEnabled = m->newEvent(LUMINANCECURVE, "HISTORY_MSG_SOFTLIGHT_ENABLED");

View File

@ -32,6 +32,7 @@ private:
rtengine::ProcEvent EvSoftLightStrength; rtengine::ProcEvent EvSoftLightStrength;
public: public:
static const Glib::ustring TOOL_NAME;
SoftLight(); SoftLight();

View File

@ -52,8 +52,10 @@ enum GeometryIndex {
} }
const Glib::ustring Spot::TOOL_NAME = "spot";
Spot::Spot() : Spot::Spot() :
FoldableToolPanel(this, "spot", M ("TP_SPOT_LABEL"), true, true), FoldableToolPanel(this, TOOL_NAME, M ("TP_SPOT_LABEL"), true, true),
EditSubscriber(ET_OBJECTS), EditSubscriber(ET_OBJECTS),
draggedSide(DraggedSide::NONE), draggedSide(DraggedSide::NONE),
lastObject(-1), lastObject(-1),

View File

@ -97,6 +97,7 @@ protected:
Geometry* getVisibleGeometryFromMO (int MOID); Geometry* getVisibleGeometryFromMO (int MOID);
public: public:
static const Glib::ustring TOOL_NAME;
Spot (); Spot ();
~Spot (); ~Spot ();

View File

@ -33,7 +33,9 @@
using namespace rtengine; using namespace rtengine;
using namespace rtengine::procparams; using namespace rtengine::procparams;
ToneCurve::ToneCurve() : FoldableToolPanel(this, "tonecurve", M("TP_EXPOSURE_LABEL")) const Glib::ustring ToneCurve::TOOL_NAME = "tonecurve";
ToneCurve::ToneCurve() : FoldableToolPanel(this, TOOL_NAME, M("TP_EXPOSURE_LABEL"))
{ {
auto m = ProcEventMapper::getInstance(); auto m = ProcEventMapper::getInstance();
EvHistMatching = m->newEvent(AUTOEXP, "HISTORY_MSG_HISTMATCHING"); EvHistMatching = m->newEvent(AUTOEXP, "HISTORY_MSG_HISTMATCHING");

View File

@ -97,6 +97,8 @@ protected:
void setHistmatching(bool enabled); void setHistmatching(bool enabled);
public: public:
static const Glib::ustring TOOL_NAME;
ToneCurve (); ToneCurve ();
~ToneCurve () override; ~ToneCurve () override;

Some files were not shown because too many files have changed in this diff Show More