File indexing completed on 2025-01-05 04:00:12
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2010-08-06 0007 * Description : setup tab for image versioning 0008 * 0009 * SPDX-FileCopyrightText: 2010 by Martin Klapetek <martin dot klapetek at gmail dot com> 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_SETUP_VERSIONING_H 0017 #define DIGIKAM_SETUP_VERSIONING_H 0018 0019 // Qt includes 0020 0021 #include <QScrollArea> 0022 0023 namespace Digikam 0024 { 0025 0026 class SetupVersioning : public QScrollArea 0027 { 0028 Q_OBJECT 0029 0030 public: 0031 0032 explicit SetupVersioning(QWidget* const parent = nullptr); 0033 ~SetupVersioning() override; 0034 0035 void applySettings(); 0036 0037 static void losslessFormatToolTip(QString& formatHelp, 0038 bool hasJXLSupport, 0039 bool hasWEBPSupport, 0040 bool hasAVIFSupport); 0041 0042 private: 0043 0044 void readSettings(); 0045 0046 private Q_SLOTS: 0047 0048 void showNonDestructiveInformation(); 0049 void showFormatInformation(); 0050 void showSnapshotInformation(); 0051 void showViewInformation(); 0052 void enableToggled(bool); 0053 0054 private: 0055 0056 class Private; 0057 Private* const d; 0058 }; 0059 0060 } // namespace Digikam 0061 0062 #endif // DIGIKAM_SETUP_VERSIONING_H