KSeExpr 6.0.0.0
ImageEditorDialog.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2011-2019 Disney Enterprises, Inc.
2// SPDX-License-Identifier: LicenseRef-Apache-2.0
3// SPDX-FileCopyrightText: 2020 L. E. Segovia <amy@amyspark.me>
4// SPDX-License-Identifier: GPL-3.0-or-later
5
10#include <memory>
11#include <QDialog>
12
13class QLabel;
14class ExprEditor;
15class ImageSynthesizer;
16
17class ImageEditorDialog : public QDialog
18{
19 Q_OBJECT
20public:
21 ImageEditorDialog(QWidget *parent = nullptr);
22
23protected Q_SLOTS:
24 void applyExpression();
25
26private:
27 std::shared_ptr<std::vector<unsigned char>> imageData{nullptr};
28 QLabel *_imageLabel {nullptr};
29 ExprEditor *_editor {nullptr};
30 ImageSynthesizer *_imageSynthesizer {nullptr};
31};