digiKam
advprintcaptionpage.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) 2017-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_CAPTION_PAGE_H
24 #define DIGIKAM_ADV_PRINT_CAPTION_PAGE_H
25 
26 // Qt includes
27 
28 #include <QString>
29 #include <QPrinter>
30 #include <QList>
31 #include <QUrl>
32 
33 // Local includes
34 
35 #include "dwizardpage.h"
36 #include "ditemslist.h"
37 #include "ui_advprintcaptionpage.h"
38 
39 using namespace Digikam;
40 
42 {
43 
44 class AdvPrintPhoto;
45 
47 {
48  Q_OBJECT
49 
50 public:
51 
52  explicit AdvPrintCaptionPage(QWizard* const wizard, const QString& title);
53  ~AdvPrintCaptionPage() override;
54 
55  DItemsList* imagesList() const;
56 
57  void blockCaptionButtons(bool block=true);
58 
59  void initializePage() override;
60  bool validatePage() override;
61 
62  static QString captionFormatter(AdvPrintPhoto* const photo);
63 
64 public Q_SLOTS:
65 
66  void slotCaptionChanged(int);
67  void slotUpdateImagesList();
68  void slotUpdateCaptions();
69 
70 private:
71 
75  void enableCaptionGroup(int);
76 
77  void updateCaption(AdvPrintPhoto* const);
78 
79 private:
80 
81  class Private;
82  Private* const d;
83 };
84 
85 } // namespace DigikamGenericPrintCreatorPlugin
86 
87 #endif // DIGIKAM_ADV_PRINT_CAPTION_PAGE_H
Definition: advprintcaptionpage.h:47
Definition: ditemslist.h:196
Definition: dwizardpage.h:42
Definition: advprintphoto.cpp:43
Definition: datefolderview.cpp:43