digiKam
advprintfinalpage.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 : 2017-05-25
7  * Description : a tool to print images
8  *
9  * Copyright (C) 2012-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_ADV_PRINT_FINAL_PAGE_H
24 #define DIGIKAM_ADV_PRINT_FINAL_PAGE_H
25 
26 // Qt includes
27 
28 #include <QString>
29 #include <QPainter>
30 #include <QList>
31 #include <QRect>
32 #include <QStringList>
33 
34 // Local includes
35 
36 #include "dwizardpage.h"
37 
38 using namespace Digikam;
39 
41 {
42 
43 class AdvPrintPhoto;
44 class AdvPrintPhotoSize;
45 class AdvPrintPhotoPage;
46 
48 {
49  Q_OBJECT
50 
51 public:
52 
53  explicit AdvPrintFinalPage(QWizard* const dialog, const QString& title);
54  ~AdvPrintFinalPage() override;
55 
56  void initializePage() override;
57  bool isComplete() const override;
58  void cleanupPage() override;
59 
60  bool checkTempPath(const QString& tempPath) const;
61  void removeGimpFiles();
62  void setPhotoPage(AdvPrintPhotoPage* const photoPage);
63 
64 private Q_SLOTS:
65 
66  void slotProcess();
67  void slotPrint(bool);
68  void slotDone(bool);
69  void slotMessage(const QString&, bool);
70 
71 private:
72 
73  bool print();
74 
75 private:
76 
77  class Private;
78  Private* const d;
79 };
80 
81 } // namespace DigikamGenericPrintCreatorPlugin
82 
83 #endif // DIGIKAM_ADV_PRINT_FINAL_PAGE_H
Definition: advprintfinalpage.h:48
Definition: advprintphotopage.h:50
Definition: dwizardpage.h:42
Definition: advprintphoto.cpp:43
Definition: datefolderview.cpp:43