21 lines
695 B
C++
21 lines
695 B
C++
#pragma once
|
|
|
|
#include "tkrShapeProvider.h"
|
|
#include <QObject>
|
|
|
|
namespace TikzRefinery {
|
|
|
|
class tkrRectangleShapeProvider final : public QObject, public tkrShapeProvider
|
|
{
|
|
Q_OBJECT
|
|
Q_PLUGIN_METADATA(IID TKR_SHAPE_PROVIDER_IID FILE "rectangle-plugin.json")
|
|
Q_INTERFACES(TikzRefinery::tkrShapeProvider)
|
|
public:
|
|
QStringList availableOperations(const ShapeApi::ElementDescription &description) const override;
|
|
ShapeApi::PresentationDescription describePresentation(
|
|
const ShapeApi::ElementDescription &description) const override;
|
|
ShapeApi::PreparationResult prepareOperation(const ShapeApi::OperationRequest &request) const override;
|
|
};
|
|
|
|
} // namespace TikzRefinery
|