CaptureMoment 0.1.0
Free and open-source non-destructive photo editor
Loading...
Searching...
No Matches
i_operation_model.h
Go to the documentation of this file.
1
8#pragma once
9
10#include <QString>
11
14
15namespace CaptureMoment::UI {
16// TODO: ADD namespace Models::Operations
17
25public:
26 virtual ~IOperationModel() = default;
27
31 [[nodiscard]] virtual QString name() const = 0;
32
36 [[nodiscard]] virtual bool isActive() const = 0;
37
42 [[nodiscard]] virtual Core::Operations::OperationType getType() const = 0;
43
50 [[nodiscard]] virtual Core::Operations::OperationDescriptor getDescriptor() const = 0;
51
55 virtual void reset() = 0;
56};
57
58} // namespace CaptureMoment::UI
Pure interface for operation models.
virtual void reset()=0
Reset to default state.
virtual bool isActive() const =0
Check if operation is active (non-default)
virtual Core::Operations::OperationDescriptor getDescriptor() const =0
Creates and returns an OperationDescriptor representing the current state of this model....
virtual QString name() const =0
Get operation name.
virtual Core::Operations::OperationType getType() const =0
Gets the type of this operation.
OperationType
Identifies the type of an image processing operation.
Descriptor of an operation with its parameters and unique identifier.
Enumeration of image processing operation types.
A universal container for operation settings with unique identifier.
CaptureMoment — footer