digiKam
advprintwizard.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 : 2008-01-11
7  * Description : a tool to print images
8  *
9  * Copyright (C) 2008-2012 by Angelo Naselli <anaselli at linux dot it>
10  * Copyright (C) 2006-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
11  *
12  * This program is free software; you can redistribute it
13  * and/or modify it under the terms of the GNU General
14  * Public License as published by the Free Software Foundation;
15  * either version 2, or (at your option) any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * ============================================================ */
23 
24 #ifndef DIGIKAM_ADV_PRINT_WIZARD_H
25 #define DIGIKAM_ADV_PRINT_WIZARD_H
26 
27 // Qt includes
28 
29 #include <QImage>
30 
31 // Local includes
32 
33 #include "advprintsettings.h"
34 #include "ditemslist.h"
35 #include "dinfointerface.h"
36 #include "dwizarddlg.h"
37 
38 using namespace Digikam;
39 
41 {
42 
43 class AdvPrintWizard : public DWizardDlg
44 {
45  Q_OBJECT
46 
47 public:
48 
49  explicit AdvPrintWizard(QWidget* const, DInfoInterface* const iface = nullptr);
50  ~AdvPrintWizard() override;
51 
52  void setItemsList(const QList<QUrl>& fileList = QList<QUrl>());
53  QList<QUrl> itemsList() const;
54 
55  DInfoInterface* iface() const;
56  AdvPrintSettings* settings() const;
57 
61  void previewPhotos();
62 
63  void updateCropFrame(AdvPrintPhoto* const, int);
64 
65  int nextId() const override;
66 
67  static int normalizedInt(double n);
68 
69 private:
70 
71  bool eventFilter(QObject*, QEvent*) override;
72 
73 private Q_SLOTS:
74 
75  void slotPreview(const QImage&);
76 
77 private:
78 
79  class Private;
80  Private* const d;
81 };
82 
83 } // namespace DigikamGenericPrintCreatorPlugin
84 
85 #endif // DIGIKAM_ADV_PRINT_WIZARD_H
Definition: dinfointerface.h:56
Definition: dwizarddlg.h:40
Definition: advprintphoto.cpp:43
Definition: datefolderview.cpp:43