File indexing completed on 2025-01-05 03:52:07

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2006-04-04
0007  * Description : a tool to generate HTML image galleries
0008  *
0009  * SPDX-FileCopyrightText: 2006-2010 by Aurelien Gateau <aurelien dot gateau at free dot fr>
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_HTML_WIZARD_H
0017 #define DIGIKAM_HTML_WIZARD_H
0018 
0019 // Qt includes
0020 
0021 #include <QList>
0022 #include <QUrl>
0023 
0024 // Local includes
0025 
0026 #include "dwizarddlg.h"
0027 #include "gallerytheme.h"
0028 #include "dinfointerface.h"
0029 
0030 using namespace Digikam;
0031 
0032 namespace DigikamGenericHtmlGalleryPlugin
0033 {
0034 
0035 class GalleryInfo;
0036 
0037 /**
0038  * The wizard used by the user to select the various settings.
0039  */
0040 class HTMLWizard : public DWizardDlg
0041 {
0042     Q_OBJECT
0043 
0044 public:
0045 
0046     explicit HTMLWizard(QWidget* const parent, DInfoInterface* const iface = nullptr);
0047     ~HTMLWizard()                          override;
0048 
0049     GalleryInfo*      galleryInfo()  const;
0050     GalleryTheme::Ptr galleryTheme() const;
0051 
0052     bool validateCurrentPage()             override;
0053     int  nextId()                    const override;
0054 
0055     void setItemsList(const QList<QUrl>& urls);
0056 
0057 private:
0058 
0059     class Private;
0060     Private* const d;
0061 };
0062 
0063 } // namespace DigikamGenericHtmlGalleryPlugin
0064 
0065 #endif // DIGIKAM_HTML_WIZARD_H