Setup: - `mkdir tidy; cd tidy` - `cmake .. -DCMAKE_BUILD_TYPE=debug -DPROC_TARGET_NUMBER=1 -DCACHE_NAME_SUFFIX=4 -DBINDIR=. -DDATADIR=. -DBUILD_BUNDLE=ON -DWITH_LTO=OFF -DOPTION_OMP=OFF -DCMAKE_EXPORT_COMPILE_COMMANDS=ON` - `cd ..` - `find -name '*.cc' -exec clang-tidy-3.8 -header-filter=.* -p=tidy -fix-errors -checks=modernize-use-nullptr {} \;`
35 lines
979 B
C++
35 lines
979 B
C++
/*
|
|
* This file is part of RawTherapee.
|
|
*/
|
|
#ifndef _PCVIGNETTE_H_
|
|
#define _PCVIGNETTE_H_
|
|
|
|
#include <gtkmm.h>
|
|
#include "adjuster.h"
|
|
#include "toolpanel.h"
|
|
|
|
class PCVignette : public ToolParamBlock, public AdjusterListener, public FoldableToolPanel
|
|
{
|
|
|
|
protected:
|
|
Adjuster* strength;
|
|
Adjuster* feather;
|
|
Adjuster* roundness;
|
|
|
|
public:
|
|
|
|
PCVignette ();
|
|
|
|
void read (const rtengine::procparams::ProcParams* pp, const ParamsEdited* pedited = nullptr);
|
|
void write (rtengine::procparams::ProcParams* pp, ParamsEdited* pedited = nullptr);
|
|
void setDefaults (const rtengine::procparams::ProcParams* defParams, const ParamsEdited* pedited = nullptr);
|
|
void setBatchMode (bool batchMode);
|
|
|
|
void adjusterChanged (Adjuster* a, double newval);
|
|
void enabledChanged ();
|
|
void setAdjusterBehavior (bool strengthadd, bool featheradd, bool roundnessadd);
|
|
void trimValues (rtengine::procparams::ProcParams* pp);
|
|
};
|
|
|
|
#endif
|