digiKam
advprintcustomdlg.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 : 2010-10-01
7  * Description : Dialog to allow a custom page layout
8  *
9  * Copyright (C) 2010-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_CUSTOM_DLG_H
25 #define DIGIKAM_ADV_PRINT_CUSTOM_DLG_H
26 
27 // Qt includes
28 
29 #include <QDialog>
30 #include <QWidget>
31 
32 // Local includes
33 
34 #include "ui_advprintcustomlayout.h"
35 
37 {
38 
39 class AdvPrintCustomLayoutDlg : public QDialog,
40  public Ui::AdvPrintCustomLayout
41 {
42  Q_OBJECT
43 
44 public:
45 
46  explicit AdvPrintCustomLayoutDlg(QWidget* const parent = nullptr);
47  ~AdvPrintCustomLayoutDlg() override;
48 
49  void readSettings();
50  void saveSettings();
51 
52 private:
53 
54  enum CustomChoice
55  {
56  PHOTO_GRID = 1,
57  FIT_AS_MANY_AS_POSSIBLE = 2
58  };
59 };
60 
61 } // namespace DigikamGenericPrintCreatorPlugin
62 
63 #endif // DIGIKAM_ADV_PRINT_CUSTOM_DLG_H
void readSettings()
Definition: advprintcustomdlg.cpp:64
~AdvPrintCustomLayoutDlg() override
Definition: advprintcustomdlg.cpp:60
AdvPrintCustomLayoutDlg(QWidget *const parent=nullptr)
Definition: advprintcustomdlg.cpp:34
void saveSettings()
Definition: advprintcustomdlg.cpp:95
Definition: advprintphoto.cpp:43