digiKam
Digikam::CurvesWidget Class Reference
+ Inheritance diagram for Digikam::CurvesWidget:

Public Slots

void setChannelType (ChannelType channel)
 
void setScaleType (HistogramScale scale)
 

Signals

void signalCurvesChanged ()
 
void signalHistogramComputationDone ()
 
void signalHistogramComputationFailed ()
 
void signalMouseMoved (int x, int y)
 

Public Member Functions

ImageCurvescurves () const
 
 CurvesWidget (int w, int h, QWidget *const parent, bool readOnly=false)
 
void curveTypeChanged ()
 
bool isSixteenBits () const
 
void reset ()
 
void resetUI ()
 
void restoreCurve (KConfigGroup &group, const QString &prefix)
 
void saveCurve (KConfigGroup &group, const QString &prefix)
 
void setCurveGuide (const DColor &color)
 
void setDataLoading ()
 
void setLoadingFailed ()
 
void setup (int w, int h, bool readOnly)
 
void stopHistogramComputation ()
 
void updateData (const DImg &img)
 
 ~CurvesWidget () override
 

Protected Slots

void slotCalculationFinished (bool success)
 
void slotCalculationStarted ()
 
void slotProgressTimerDone ()
 

Protected Member Functions

void leaveEvent (QEvent *) override
 
void mouseMoveEvent (QMouseEvent *) override
 
void mousePressEvent (QMouseEvent *) override
 
void mouseReleaseEvent (QMouseEvent *) override
 
void paintEvent (QPaintEvent *) override
 

Constructor & Destructor Documentation

◆ CurvesWidget()

Digikam::CurvesWidget::CurvesWidget ( int  w,
int  h,
QWidget *const  parent,
bool  readOnly = false 
)
explicit

References setup().

◆ ~CurvesWidget()

Digikam::CurvesWidget::~CurvesWidget ( )
override

Member Function Documentation

◆ curves()

ImageCurves * Digikam::CurvesWidget::curves ( ) const

◆ curveTypeChanged()

void Digikam::CurvesWidget::curveTypeChanged ( )

◆ isSixteenBits()

bool Digikam::CurvesWidget::isSixteenBits ( ) const

◆ leaveEvent()

void Digikam::CurvesWidget::leaveEvent ( QEvent *  )
overrideprotected

References signalMouseMoved().

◆ mouseMoveEvent()

void Digikam::CurvesWidget::mouseMoveEvent ( QMouseEvent *  e)
overrideprotected

◆ mousePressEvent()

void Digikam::CurvesWidget::mousePressEvent ( QMouseEvent *  e)
overrideprotected

◆ mouseReleaseEvent()

void Digikam::CurvesWidget::mouseReleaseEvent ( QMouseEvent *  e)
overrideprotected

◆ paintEvent()

void Digikam::CurvesWidget::paintEvent ( QPaintEvent *  )
overrideprotected

◆ reset()

void Digikam::CurvesWidget::reset ( )

Resets the ui including the user specified curve.

References resetUI().

Referenced by restoreCurve().

◆ resetUI()

void Digikam::CurvesWidget::resetUI ( )

Resets only the ui and keeps the curve.

Referenced by reset(), and updateData().

◆ restoreCurve()

void Digikam::CurvesWidget::restoreCurve ( KConfigGroup &  group,
const QString &  prefix 
)

Restores the curve tfrom the given group with prefix as a prefix for the curve point config entries.

Parameters
groupthe group to restore the curve from
prefixthe prefix prepended to the point numbers in the config

References curves(), Digikam::ImageCurves::curvesCalculateCurve(), Digikam::ImageCurves::getDisabledValue(), isSixteenBits(), Digikam::ImageCurves::MULTIPLIER_16BIT, Digikam::ImageCurves::NUM_CHANNELS, Digikam::ImageCurves::NUM_POINTS, prefix, reset(), Digikam::ImageCurves::setCurvePoint(), and Digikam::ImageCurves::setCurveType().

◆ saveCurve()

void Digikam::CurvesWidget::saveCurve ( KConfigGroup &  group,
const QString &  prefix 
)

Saves the currently created curve to the given group with prefix as a prefix for the curve point config entries.

Parameters
groupthe group to save the curve to
prefixthe prefix prepended to the point numbers in the config

References curves(), Digikam::ImageCurves::getCurvePoint(), Digikam::ImageCurves::getDisabledValue(), isSixteenBits(), Digikam::ImageCurves::MULTIPLIER_16BIT, Digikam::ImageCurves::NUM_CHANNELS, Digikam::ImageCurves::NUM_POINTS, and prefix.

◆ setChannelType

void Digikam::CurvesWidget::setChannelType ( ChannelType  channel)
slot

◆ setCurveGuide()

void Digikam::CurvesWidget::setCurveGuide ( const DColor color)

◆ setDataLoading()

void Digikam::CurvesWidget::setDataLoading ( )

◆ setLoadingFailed()

void Digikam::CurvesWidget::setLoadingFailed ( )

◆ setScaleType

void Digikam::CurvesWidget::setScaleType ( HistogramScale  scale)
slot

◆ setup()

void Digikam::CurvesWidget::setup ( int  w,
int  h,
bool  readOnly 
)

◆ signalCurvesChanged

void Digikam::CurvesWidget::signalCurvesChanged ( )
signal

◆ signalHistogramComputationDone

void Digikam::CurvesWidget::signalHistogramComputationDone ( )
signal

◆ signalHistogramComputationFailed

void Digikam::CurvesWidget::signalHistogramComputationFailed ( )
signal

Referenced by slotCalculationFinished().

◆ signalMouseMoved

void Digikam::CurvesWidget::signalMouseMoved ( int  x,
int  y 
)
signal

Referenced by leaveEvent(), and mouseMoveEvent().

◆ slotCalculationFinished

void Digikam::CurvesWidget::slotCalculationFinished ( bool  success)
protectedslot

◆ slotCalculationStarted

void Digikam::CurvesWidget::slotCalculationStarted ( )
protectedslot

Referenced by updateData().

◆ slotProgressTimerDone

void Digikam::CurvesWidget::slotProgressTimerDone ( )
protectedslot

Referenced by setup().

◆ stopHistogramComputation()

void Digikam::CurvesWidget::stopHistogramComputation ( )

Stop current histogram computations.

Referenced by updateData().

◆ updateData()

void Digikam::CurvesWidget::updateData ( const DImg img)

The documentation for this class was generated from the following files: