/*
   SPDX-FileCopyrightText: 2025-2026 Laurent Montel <montel@kde.org>

   SPDX-License-Identifier: LGPL-2.0-or-later
*/
#pragma once
#include "textautogeneratetext_export.h"
#include <TextAutoGenerateText/TextAutoGenerateMenuTextInfo>

#include <QDialog>
namespace TextAutoGenerateText
{
class TextAutoGenerateMenuConfigureWidget;
/*!
 * \class TextAutoGenerateText::TextAutoGenerateMenuConfigureDialog
 * \brief The TextAutoGenerateMenuConfigureDialog class
 * \author Laurent Montel <montel@kde.org>
 * \inmodule TextAutoGenerateText
 * \inheaderfile TextAutoGenerateText/TextAutoGenerateMenuConfigureDialog
 */
class TEXTAUTOGENERATETEXT_EXPORT TextAutoGenerateMenuConfigureDialog : public QDialog
{
    Q_OBJECT
public:
    /*!
     */
    explicit TextAutoGenerateMenuConfigureDialog(QWidget *parent = nullptr);
    /*!
     */
    ~TextAutoGenerateMenuConfigureDialog() override;

    /*!
     */
    void setTextInfos(const QList<TextAutoGenerateMenuTextInfo> &infos);
    /*!
     */
    [[nodiscard]] QList<TextAutoGenerateMenuTextInfo> textInfos() const;

private:
    TEXTAUTOGENERATETEXT_NO_EXPORT void readConfig();
    TEXTAUTOGENERATETEXT_NO_EXPORT void writeConfig();
    TextAutoGenerateMenuConfigureWidget *const mTextMenuConfigureWidget;
};
}
