18namespace Models::Operations {
111 [[nodiscard]]
virtual float minimum()
const = 0;
118 [[nodiscard]]
virtual float maximum()
const = 0;
Generic base class for operations with a single adjustable value (e.g., brightness,...
BaseAdjustmentModel(QObject *parent=nullptr)
Constructs a BaseAdjustmentModel.
bool isActive() const override
Checks if the adjustment operation is currently active. An operation is considered active if its inte...
virtual ~BaseAdjustmentModel()=default
Virtual destructor.
void setValue(float val)
Sets the adjustment value and triggers an update.
uint64_t m_operation_id
id for operations
void valueChanged(float value)
Signal emitted when the adjustment value changes. QML can connect to this signal to react to value up...
float value() const
Gets the current adjustment value.
virtual float minimum() const =0
Gets the minimum allowed value for the UI slider.
Domain::RelativeAdjustmentParams m_params
used for the value and activity state
virtual float maximum() const =0
Gets the maximum allowed value for the UI slider.
Generic base class providing Qt signals/slots infrastructure for operation models.
void isActiveChanged()
Signal emitted when the operation's activity state changes. This signal is emitted by the operation m...
Generic parameter structures for common image operation types.
Generic Qt base class for operation models with QObject infrastructure.
static uint64_t generateId()
Generates a unique identifier for a new operation.
bool isActive() const
Checks if the parameter value indicates an active operation.
float value
The adjustment value.