digiKam
Loading...
Searching...
No Matches
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 * SPDX-FileCopyrightText: 2009 by Pieter Edelman <p dot edelman at gmx dot net>
10 * SPDX-FileCopyrightText: 2011-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
11 *
12 * SPDX-License-Identifier: GPL-2.0-or-later
13 *
14 * ============================================================ */
15
16#pragma once
17
18// Qt includes
19
20#include <QUrl>
21#include <QDialog>
22
23namespace Digikam
24{
25
26class DeltaTime;
27
28class ClockPhotoDialog : public QDialog
29{
30 Q_OBJECT
31
32public:
33
34 explicit ClockPhotoDialog(QWidget* const parent, const QUrl& defaultUrl);
35 ~ClockPhotoDialog() override;
36
42 bool setImage(const QUrl&);
43
44 DeltaTime deltaValues() const;
45
46private Q_SLOTS:
47
48 void slotLoadPhoto();
49 void slotOk();
50
54 void slotCancel();
55
56private:
57
58 void loadSettings();
59 void saveSettings();
60
61protected:
62
63 void showEvent(QShowEvent*) override;
64
65private:
66
67 class Private;
68 Private* const d = nullptr;
69};
70
71} // namespace Digikam
Definition clockphotodialog.h:29
DeltaTime deltaValues() const
Definition clockphotodialog.cpp:159
bool setImage(const QUrl &)
Definition clockphotodialog.cpp:164
void showEvent(QShowEvent *) override
Definition clockphotodialog.cpp:291
~ClockPhotoDialog() override
Definition clockphotodialog.cpp:154
Definition timeadjustcontainer.h:123
Definition datefolderview.cpp:34