digiKam
clockphotodialog.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 : 2009-05-31
7  * Description : Figure out camera clock delta from a clock picture.
8  *
9  * Copyright (C) 2009 by Pieter Edelman <p dot edelman at gmx dot net>
10  * Copyright (C) 2011-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_CLOCK_PHOTO_DIALOG_H
25 #define DIGIKAM_CLOCK_PHOTO_DIALOG_H
26 
27 // Qt includes
28 
29 #include <QUrl>
30 #include <QDialog>
31 
32 namespace Digikam
33 {
34 
35 class DeltaTime;
36 
37 class ClockPhotoDialog : public QDialog
38 {
39  Q_OBJECT
40 
41 public:
42 
43  explicit ClockPhotoDialog(QWidget* const parent, const QUrl& defaultUrl);
44  ~ClockPhotoDialog() override;
45 
51  bool setImage(const QUrl&);
52 
53  DeltaTime deltaValues() const;
54 
55 private Q_SLOTS:
56 
57  void slotLoadPhoto();
58  void slotOk();
59 
63  void slotCancel();
64 
65 private:
66 
67  void loadSettings();
68  void saveSettings();
69 
70 private:
71 
72  class Private;
73  Private* const d;
74 };
75 
76 } // namespace Digikam
77 
78 #endif // DIGIKAM_CLOCK_PHOTO_DIALOG_H
Definition: clockphotodialog.h:38
DeltaTime deltaValues() const
Definition: clockphotodialog.cpp:173
bool setImage(const QUrl &)
Definition: clockphotodialog.cpp:178
ClockPhotoDialog(QWidget *const parent, const QUrl &defaultUrl)
Definition: clockphotodialog.cpp:83
~ClockPhotoDialog() override
Definition: clockphotodialog.cpp:168
Definition: timeadjustcontainer.h:119
Definition: datefolderview.cpp:43