File indexing completed on 2025-01-19 03:51:20

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2006-10-18
0007  * Description : a checkbox with a boolean valid parameter.
0008  *               The boolean statement is used to check if
0009  *               a metadata value from a picture have a know
0010  *               value registered by EXIF/IPTC spec.
0011  *
0012  * SPDX-FileCopyrightText: 2006-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
0013  *
0014  * SPDX-License-Identifier: GPL-2.0-or-later
0015  *
0016  * ============================================================ */
0017 
0018 #ifndef DIGIKAM_METADATA_CHECKBOX_H
0019 #define DIGIKAM_METADATA_CHECKBOX_H
0020 
0021 // Qt includes
0022 
0023 #include <QCheckBox>
0024 
0025 namespace DigikamGenericMetadataEditPlugin
0026 {
0027 
0028 class MetadataCheckBox : public QCheckBox
0029 {
0030     Q_OBJECT
0031 
0032 public:
0033 
0034     explicit MetadataCheckBox(const QString& text, QWidget* const parent);
0035     ~MetadataCheckBox() override;
0036 
0037     void setValid(bool v);
0038     bool isValid() const;
0039 
0040 private Q_SLOTS:
0041 
0042     void slotValid();
0043 
0044 private:
0045 
0046     bool m_valid;
0047 };
0048 
0049 } // namespace DigikamGenericMetadataEditPlugin
0050 
0051 #endif // DIGIKAM_METADATA_CHECKBOX_H