File indexing completed on 2025-01-19 03:53:53

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2008-07-11
0007  * Description : shared libraries list dialog common to digiKam and Showfoto
0008  *
0009  * SPDX-FileCopyrightText: 2008-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_LIBS_INFO_DLG_H
0016 #define DIGIKAM_LIBS_INFO_DLG_H
0017 
0018 // Qt includes
0019 
0020 #include <QMap>
0021 #include <QTreeWidgetItem>
0022 
0023 // Local includes
0024 
0025 #include "digikam_export.h"
0026 #include "infodlg.h"
0027 
0028 namespace cv::ocl
0029 {
0030     class Device;
0031 }
0032 
0033 namespace Digikam
0034 {
0035 
0036 class DIGIKAM_EXPORT LibsInfoDlg : public InfoDlg
0037 {
0038     Q_OBJECT
0039 
0040 public:
0041 
0042     explicit LibsInfoDlg(QWidget* const parent);
0043     ~LibsInfoDlg();
0044 
0045 protected:
0046 
0047     QTreeWidgetItem* m_features  = nullptr;
0048     QTreeWidgetItem* m_libraries = nullptr;
0049 
0050 private:
0051 
0052     QString checkTriState(int value) const;
0053 
0054     QString openCVBytesToStringRepr(size_t value) const;
0055     QString openCVGetDeviceTypeString(const cv::ocl::Device& device);
0056 };
0057 
0058 } // namespace Digikam
0059 
0060 #endif // DIGIKAM_LIBS_INFO_DLG_H