File indexing completed on 2025-04-27 03:58:33

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2021-04-29
0007  * Description : ExifTool configuration panel.
0008  *
0009  * SPDX-FileCopyrightText: 2021-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_EXIF_TOOL_CONF_PANEL_H
0016 #define DIGIKAM_EXIF_TOOL_CONF_PANEL_H
0017 
0018 // Qt includes
0019 
0020 #include <QWidget>
0021 #include <QString>
0022 
0023 // Local includes
0024 
0025 #include "digikam_export.h"
0026 #include "searchtextbar.h"
0027 
0028 namespace Digikam
0029 {
0030 
0031 class DIGIKAM_EXPORT ExifToolConfPanel : public QWidget
0032 {
0033     Q_OBJECT
0034 
0035 public:
0036 
0037     explicit ExifToolConfPanel(QWidget* const parent = nullptr);
0038     ~ExifToolConfPanel() override;
0039 
0040     QString exifToolDirectory() const;
0041     void setExifToolDirectory(const QString& dir);
0042 
0043 Q_SIGNALS:
0044 
0045     void signalExifToolSettingsChanged(bool available);
0046 
0047 public Q_SLOTS:
0048 
0049     void slotStartFoundExifTool();
0050 
0051 private Q_SLOTS:
0052 
0053     void slotSearchTextChanged(const SearchTextSettings&);
0054     void slotExifToolBinaryFound(bool);
0055 
0056 private:
0057 
0058     class Private;
0059     Private* const d;
0060 };
0061 
0062 } // namespace Digikam
0063 
0064 #endif // DIGIKAM_EXIF_TOOL_CONF_PANEL_H