File indexing completed on 2025-01-05 03:52:04

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2022-08-11
0007  * Description : a tool to generate HTML image galleries
0008  *
0009  * SPDX-FileCopyrightText: 2012-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
0010  *
0011  * SPDX-License-Identifier: GPL-2.0-or-later
0012  *
0013  * ============================================================ */
0014 
0015 #ifndef DIGIKAM_CAPTION_THEME_PARAMETER_H
0016 #define DIGIKAM_CAPTION_THEME_PARAMETER_H
0017 
0018 // Local includes
0019 
0020 #include "abstractthemeparameter.h"
0021 
0022 namespace DigikamGenericHtmlGalleryPlugin
0023 {
0024 
0025 /**
0026  * A theme parameter which let the user enter a caption with spell-checking support.
0027  */
0028 class CaptionThemeParameter : public AbstractThemeParameter
0029 {
0030 public:
0031 
0032     QWidget* createWidget(QWidget* parent, const QString& value) const override;
0033     QString  valueFromWidget(QWidget*)                           const override;
0034 };
0035 
0036 } // namespace DigikamGenericHtmlGalleryPlugin
0037 
0038 #endif // DIGIKAM_CAPTION_THEME_PARAMETER_H