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        : 2006-04-04
0007  * Description : a tool to generate HTML image galleries
0008  *
0009  * SPDX-FileCopyrightText: 2006-2010 by Aurelien Gateau <aurelien dot gateau at free dot fr>
0010  * SPDX-FileCopyrightText: 2012-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
0011  *
0012  * SPDX-License-Identifier: GPL-2.0-or-later
0013  *
0014  * ============================================================ */
0015 
0016 #ifndef DIGIKAM_INT_THEME_PARAMETER_H
0017 #define DIGIKAM_INT_THEME_PARAMETER_H
0018 
0019 // Local includes
0020 
0021 #include "abstractthemeparameter.h"
0022 
0023 namespace DigikamGenericHtmlGalleryPlugin
0024 {
0025 
0026 /**
0027  * A theme parameter to select an integer value.
0028  */
0029 class IntThemeParameter : public AbstractThemeParameter
0030 {
0031 public:
0032 
0033     explicit IntThemeParameter();
0034     ~IntThemeParameter()                                                       override;
0035 
0036     void init(const QByteArray& internalName, const KConfigGroup* configGroup) override;
0037     QWidget* createWidget(QWidget* parent, const QString& value)         const override;
0038     QString valueFromWidget(QWidget*)                                    const override;
0039 
0040 private:
0041 
0042     class Private;
0043     Private* const d;
0044 };
0045 
0046 } // namespace DigikamGenericHtmlGalleryPlugin
0047 
0048 #endif // DIGIKAM_INT_THEME_PARAMETER_H