digiKam
dwizarddlg.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of digiKam project
4  * https://www.digikam.org
5  *
6  * Date : 2009-11-13
7  * Description : a template to create wizard dialog.
8  *
9  * Copyright (C) 2009-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
10  *
11  * This program is free software; you can redistribute it
12  * and/or modify it under the terms of the GNU General
13  * Public License as published by the Free Software Foundation;
14  * either version 2, or (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU General Public License for more details.
20  *
21  * ============================================================ */
22 
23 #ifndef DIGIKAM_DWIZARD_DLG_H
24 #define DIGIKAM_DWIZARD_DLG_H
25 
26 // Qt includes
27 
28 #include <QWizard>
29 #include <QString>
30 
31 // Local includes
32 
33 #include "dplugin.h"
34 #include "digikam_export.h"
35 
36 namespace Digikam
37 {
38 
39 class DIGIKAM_EXPORT DWizardDlg : public QWizard
40 {
41  Q_OBJECT
42 
43 public:
44 
45  explicit DWizardDlg(QWidget* const parent, const QString& objName);
46  ~DWizardDlg() override;
47 
48  void setPlugin(DPlugin* const tool);
49 
50 protected:
51 
52  void restoreDialogSize();
53  void saveDialogSize();
54 
55 private Q_SLOTS:
56 
57  void slotAboutPlugin();
58 
59 private:
60 
61  DPlugin* m_tool;
62 
63  Q_DISABLE_COPY(DWizardDlg)
64 };
65 
66 } // namespace Digikam
67 
68 #endif // DIGIKAM_DWIZARD_DLG_H
Definition: dplugin.h:61
Definition: dwizarddlg.h:40
Definition: datefolderview.cpp:43