File indexing completed on 2025-02-16 04:49:25

0001 /*
0002     SPDX-FileCopyrightText: 2019-2024 Laurent Montel <montel@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include "libkmailmarkdown_export.h"
0010 #include <QDialog>
0011 class MarkdownCreateImageWidget;
0012 class QPushButton;
0013 class LIBKMAILMARKDOWN_EXPORT MarkdownCreateImageDialog : public QDialog
0014 {
0015     Q_OBJECT
0016 public:
0017     explicit MarkdownCreateImageDialog(QWidget *parent = nullptr);
0018     ~MarkdownCreateImageDialog() override;
0019     [[nodiscard]] QString linkStr() const;
0020 
0021 private:
0022     void writeConfig();
0023     void readConfig();
0024     void slotEnabledOkButton(bool enabled);
0025     MarkdownCreateImageWidget *const mMarkdownCreateImageWidget;
0026     QPushButton *mOkButton = nullptr;
0027 };