File indexing completed on 2025-03-09 03:52:10
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2014-09-19 0007 * Description : slide properties widget 0008 * 0009 * SPDX-FileCopyrightText: 2014-2024 by Gilles Caulier <caulier dot gilles at gmail dot com> 0010 * SPDX-FileCopyrightText: 2019-2020 by Minh Nghia Duong <minhnghiaduong997 at gmail dot com> 0011 * 0012 * SPDX-License-Identifier: GPL-2.0-or-later 0013 * 0014 * ============================================================ */ 0015 0016 #ifndef DIGIKAM_SLIDE_PROPERTIES_PLUGIN_H 0017 #define DIGIKAM_SLIDE_PROPERTIES_PLUGIN_H 0018 0019 #include <QWidget> 0020 #include <QPainter> 0021 #include <QString> 0022 #include <QColor> 0023 #include <QUrl> 0024 0025 // Local includes 0026 0027 #include "slideshowsettings.h" 0028 0029 namespace DigikamGenericSlideShowPlugin 0030 { 0031 0032 class SlideProperties : public QWidget 0033 { 0034 Q_OBJECT 0035 0036 public: 0037 0038 explicit SlideProperties(SlideShowSettings* const settings, QWidget* const parent); 0039 ~SlideProperties() override; 0040 0041 void setCurrentUrl(const QUrl& url); 0042 0043 private: 0044 0045 void printInfoText(QPainter& p, int& offset, const QString& str, const QColor& pcol = Qt::white); 0046 void printComments(QPainter& p, int& offset, const QString& comments); 0047 void printTags(QPainter& p, int& offset, QStringList& tags); 0048 void paintEvent(QPaintEvent*) override; 0049 0050 private: 0051 0052 class Private; 0053 Private* const d; 0054 }; 0055 0056 } // namespace DigikamGenericSlideShowPlugin 0057 0058 #endif // DIGIKAM_SLIDE_PROPERTIES_PLUGIN_H