CaptureMoment 0.1.0
Free and open-source non-destructive photo editor
Loading...
Searching...
No Matches
blacks_model.h
Go to the documentation of this file.
1
8#pragma once
9
12
13namespace CaptureMoment::UI {
14
15namespace Models::Operations {
16
25
26public:
27 explicit BlacksModel(QObject* parent = nullptr);
28
29 // --- Implement Pure Virtual Methods from IOperationModel / BaseAdjustmentModel ---
30 [[nodiscard]] QString name() const override { return "Blacks"; }
32 [[nodiscard]] float minimum() const override { return Core::Operations::OperationRanges::getBlacksMinValue(); }
33 [[nodiscard]] float maximum() const override { return Core::Operations::OperationRanges::getBlacksMaxValue(); }
34 [[nodiscard]] Core::Operations::OperationDescriptor getDescriptor() const override;
35 void reset() override;
36
37 // --- Implement Virtual Methods from OperationProvider ---
38 void onOperationCompleted() override;
39 void onOperationFailed(const QString& error) override;
40};
41
42} // namespace Models::Operations
43
44} // namespace CaptureMoment::UI
Generic Qt base class for single-value adjustment operations (e.g., Brightness, Contrast,...
Generic base class for operations with a single adjustable value (e.g., brightness,...
Blacks operation model inheriting common properties from BaseAdjustmentModel.
float minimum() const override
Gets the minimum allowed value for the UI slider.
float maximum() const override
Gets the maximum allowed value for the UI slider.
QString name() const override
Get operation name.
Core::Operations::OperationType getType() const override
Gets the type of this operation.
void onOperationFailed(const QString &error) override
Pure virtual slot to handle operation failure. Implementations in derived classes should react to a f...
void reset() override
Reset to default state.
Core::Operations::OperationDescriptor getDescriptor() const override
Creates and returns an OperationDescriptor representing the current state of this model....
void onOperationCompleted() override
Pure virtual slot to handle successful operation completion. Implementations in derived classes shoul...
OperationType
Identifies the type of an image processing operation.
@ Blacks
Blacks adjustment. Adjusts the luminosity of the black point of the image. Increasing blacks makes th...
Declaration of the OperationRanges struct.
A universal container for operation settings with unique identifier.
static consteval float getBlacksMinValue()
Gets the minimum allowed value for the Blacks operation.
static consteval float getBlacksMaxValue()
Gets the maximum allowed value for the Blacks operation.
CaptureMoment — footer