File indexing completed on 2025-01-19 03:55:43
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2009-11-13 0007 * Description : a template to create wizard page. 0008 * 0009 * SPDX-FileCopyrightText: 2009-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_DWIZARD_PAGE_H 0016 #define DIGIKAM_DWIZARD_PAGE_H 0017 0018 // Qt includes 0019 0020 #include <QWizardPage> 0021 #include <QString> 0022 #include <QPixmap> 0023 0024 // Local includes 0025 0026 #include "digikam_export.h" 0027 0028 class QWizard; 0029 0030 namespace Digikam 0031 { 0032 0033 class DIGIKAM_EXPORT DWizardPage : public QWizardPage 0034 { 0035 Q_OBJECT 0036 0037 public: 0038 0039 explicit DWizardPage(QWizard* const dlg, const QString& title); 0040 ~DWizardPage() override; 0041 0042 public: 0043 0044 void setPageWidget(QWidget* const w); 0045 void removePageWidget(QWidget* const w); 0046 void setLeftBottomPix(const QPixmap& pix); 0047 void setLeftBottomPix(const QIcon& icon); 0048 void setShowLeftView(bool v); 0049 0050 void setComplete(bool b); 0051 bool isComplete() const override; 0052 0053 int id() const; 0054 0055 QWizard* assistant() const; 0056 0057 private: 0058 0059 class Private; 0060 Private* const d; 0061 }; 0062 0063 } // namespace Digikam 0064 0065 #endif // DIGIKAM_DWIZARD_PAGE_H