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 dialog. 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_DLG_H 0016 #define DIGIKAM_DWIZARD_DLG_H 0017 0018 // Qt includes 0019 0020 #include <QWizard> 0021 #include <QString> 0022 0023 // Local includes 0024 0025 #include "dplugin.h" 0026 #include "digikam_export.h" 0027 0028 namespace Digikam 0029 { 0030 0031 class DIGIKAM_EXPORT DWizardDlg : public QWizard 0032 { 0033 Q_OBJECT 0034 0035 public: 0036 0037 explicit DWizardDlg(QWidget* const parent, const QString& objName); 0038 ~DWizardDlg() override; 0039 0040 void setPlugin(DPlugin* const tool); 0041 0042 protected: 0043 0044 void restoreDialogSize(); 0045 void saveDialogSize(); 0046 0047 private Q_SLOTS: 0048 0049 void slotAboutPlugin(); 0050 void slotOnlineHandbook(); 0051 0052 private: 0053 0054 DPlugin* m_tool; 0055 0056 Q_DISABLE_COPY(DWizardDlg) 0057 }; 0058 0059 } // namespace Digikam 0060 0061 #endif // DIGIKAM_DWIZARD_DLG_H