File indexing completed on 2025-01-05 03:53:11

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2011-05-23
0007  * Description : a tool to create panorama by fusion of several images.
0008  * Acknowledge : based on the expoblending tool
0009  *
0010  * SPDX-FileCopyrightText: 2011-2016 by Benjamin Girault <benjamin dot girault at gmail dot com>
0011  * SPDX-FileCopyrightText: 2009-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
0012  *
0013  * SPDX-License-Identifier: GPL-2.0-or-later
0014  *
0015  * ============================================================ */
0016 
0017 #ifndef DIGIKAM_PANO_LAST_PAGE_H
0018 #define DIGIKAM_PANO_LAST_PAGE_H
0019 
0020 // Local includes
0021 
0022 #include "dwizardpage.h"
0023 #include "panoactions.h"
0024 
0025 using namespace Digikam;
0026 
0027 namespace DigikamGenericPanoramaPlugin
0028 {
0029 
0030 class PanoManager;
0031 
0032 class PanoLastPage : public DWizardPage
0033 {
0034     Q_OBJECT
0035 
0036 public:
0037 
0038     explicit PanoLastPage(PanoManager* const mngr, QWizard* const dlg);
0039     ~PanoLastPage()       override;
0040 
0041 private:
0042 
0043     void copyFiles();
0044     void checkFiles();
0045     QString panoFileName(const QString& fileTemplate) const;
0046 
0047     void initializePage() override;
0048     bool validatePage()   override;
0049 
0050 Q_SIGNALS:
0051 
0052     void signalCopyFinished();
0053 
0054 private Q_SLOTS:
0055 
0056     void slotTemplateChanged(const QString&);
0057     void slotPtoCheckBoxChanged(int);
0058     void slotPanoAction(const DigikamGenericPanoramaPlugin::PanoActionData&);
0059 
0060 private:
0061 
0062     class Private;
0063     Private* const d;
0064 };
0065 
0066 } // namespace DigikamGenericPanoramaPlugin
0067 
0068 #endif // DIGIKAM_PANO_LAST_PAGE_H