digiKam
panoactions.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 : 2011-05-23
7  * Description : a tool to create panorama by fusion of several images.
8  *
9  * Copyright (C) 2011-2016 by Benjamin Girault <benjamin dot girault at gmail dot com>
10  * Copyright (C) 2009-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_PANO_ACTIONS_H
25 #define DIGIKAM_PANO_ACTIONS_H
26 
27 // Qt includes
28 
29 #include <QString>
30 #include <QImage>
31 #include <QMetaType>
32 #include <QMap>
33 #include <QUrl>
34 
36 {
37 
39 {
40  PANO_NONE = 0, // 0
53  PANO_STITCH, // 13
57  PANO_COPY // 17
58 };
59 
60 typedef enum
61 {
64  HDR
65 }
67 
69 {
70 public:
71 
73  explicit PanoramaPreprocessedUrls(const QUrl& preprocessed, const QUrl& preview)
74  : preprocessedUrl(preprocessed),
75  previewUrl (preview)
76  {
77  }
78 
80 
81 public:
82 
84  QUrl previewUrl;
85 };
86 
87 typedef QMap<QUrl, PanoramaPreprocessedUrls> PanoramaItemUrlsMap;
88 
89 // ----------------------------------------------------------------------------------------------------------
90 
92 {
94  : starting(false),
95  success (false),
96  id (0),
98  {
99  }
100 
101  bool starting;
102  bool success;
103 
104  QString message;
105 
106  int id;
107 
109 };
110 
111 } // namespace DigikamGenericPanoramaPlugin
112 
115 
116 #endif // DIGIKAM_PANO_ACTIONS_H
QUrl preprocessedUrl
Can be an original file or a converted version, depending on the original file type.
Definition: panoactions.h:83
QUrl previewUrl
The JPEG preview version, accordingly of preprocessedUrl constant.
Definition: panoactions.h:84
PanoramaPreprocessedUrls(const QUrl &preprocessed, const QUrl &preview)
Definition: panoactions.h:73
Definition: panoactions.h:36
PanoramaFileType
Definition: panoactions.h:61
@ HDR
Definition: panoactions.h:64
@ JPEG
Definition: panoactions.h:62
@ TIFF
Definition: panoactions.h:63
PanoAction
Definition: panoactions.h:39
@ PANO_CREATEMKPREVIEW
Definition: panoactions.h:49
@ PANO_AUTOCROP
Definition: panoactions.h:46
@ PANO_CPCLEAN
Definition: panoactions.h:44
@ PANO_STITCHPREVIEW
Definition: panoactions.h:54
@ PANO_NONE
Definition: panoactions.h:40
@ PANO_COPY
Definition: panoactions.h:57
@ PANO_PREPROCESS_INPUT
Definition: panoactions.h:41
@ PANO_OPTIMIZE
Definition: panoactions.h:45
@ PANO_HUGINEXECUTOR
Definition: panoactions.h:55
@ PANO_NONAFILEPREVIEW
Definition: panoactions.h:52
@ PANO_HUGINEXECUTORPREVIEW
Definition: panoactions.h:56
@ PANO_NONAFILE
Definition: panoactions.h:51
@ PANO_CREATEMK
Definition: panoactions.h:48
@ PANO_CREATEPREVIEWPTO
Definition: panoactions.h:47
@ PANO_CREATEFINALPTO
Definition: panoactions.h:50
@ PANO_STITCH
Definition: panoactions.h:53
@ PANO_CREATEPTO
Definition: panoactions.h:42
@ PANO_CPFIND
Definition: panoactions.h:43
QMap< QUrl, PanoramaPreprocessedUrls > PanoramaItemUrlsMap
Map between original Url and processed temp Urls.
Definition: panoactions.h:87
PanoActionData()
Definition: panoactions.h:93
int id
Definition: panoactions.h:106
QString message
Usually, an error message.
Definition: panoactions.h:104
PanoAction action
Definition: panoactions.h:108
bool success
Definition: panoactions.h:102
bool starting
Definition: panoactions.h:101