KSeExpr  4.0.4.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 
13 class QLabel;
14 class ExprEditor;
15 class ImageSynthesizer;
16 
17 class ImageEditorDialog : public QDialog
18 {
19  Q_OBJECT
20 public:
21  ImageEditorDialog(QWidget *parent = nullptr);
22 
23 protected Q_SLOTS:
24  void applyExpression();
25 
26 private:
27  std::shared_ptr<std::vector<unsigned char>> imageData{nullptr};
28  QLabel *_imageLabel {nullptr};
29  ExprEditor *_editor {nullptr};
30  ImageSynthesizer *_imageSynthesizer {nullptr};
31 };