24 #ifndef DIGIKAM_HISTOGRAM_WIDGET_H
25 #define DIGIKAM_HISTOGRAM_WIDGET_H
31 #include <QMouseEvent>
32 #include <QPaintEvent>
50 Q_PROPERTY(
int animationState READ animationState WRITE setAnimationState)
58 QWidget*
const parent =
nullptr,
60 bool showProgress=
true,
61 bool statisticsVisible=
false);
68 void stopHistogramComputation();
73 void updateData(
const DImg& img,
75 bool showProgress=
true);
80 void updateSelectionData(
const DImg& sel,
bool showProgress=
true);
82 void setDataLoading();
83 void setLoadingFailed();
85 void setHistogramGuideByColor(
const DColor& color);
86 void setStatisticsVisible(
bool b);
93 int animationState()
const;
94 void setAnimationState(
int animationState);
112 void slotMinValueChanged(
int min);
113 void slotMaxValueChanged(
int max);
119 void slotCalculationAboutToStart();
120 void slotCalculationFinished(
bool success);
124 void paintEvent(QPaintEvent*)
override;
125 void mousePressEvent(QMouseEvent*)
override;
126 void mouseReleaseEvent(QMouseEvent*)
override;
127 void mouseMoveEvent(QMouseEvent*)
override;
131 void notifyValuesChanged();
133 void setup(
int w,
int h,
bool selectMode,
bool statisticsVisible);
134 void setState(
int state);
135 void startWaitingAnimation();
136 void stopWaitingAnimation();
Definition: imagehistogram.h:44
Definition: datefolderview.cpp:43
ChannelType
Definition: digikam_globals.h:159
HistogramRenderingType
Definition: digikam_globals.h:151
HistogramScale
Definition: digikam_globals.h:145