digiKam
timeadjustsettings.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 : 2004-05-16
7  * Description : time adjust settings widget.
8  *
9  * Copyright (C) 2012 by Smit Mehta <smit dot meh at gmail dot com>
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_TIME_ADJUST_SETTINGS_H
25 #define DIGIKAM_TIME_ADJUST_SETTINGS_H
26 
27 // Qt includes
28 
29 #include <QScrollArea>
30 
31 // Local includes
32 
33 #include "digikam_export.h"
34 #include "timeadjustcontainer.h"
35 
36 namespace Digikam
37 {
38 
39 class TimeAdjustContainer;
40 
41 class DIGIKAM_EXPORT TimeAdjustSettings : public QScrollArea
42 {
43  Q_OBJECT
44 
45 public:
46 
47  explicit TimeAdjustSettings(QWidget* const parent, bool timeAdjustTool = false);
48  ~TimeAdjustSettings() override;
49 
50 public:
51 
52  void setSettings(const TimeAdjustContainer& settings);
53  TimeAdjustContainer settings() const;
54  void detAdjustmentByClockPhotoUrl(const QUrl& url);
55  void setCurrentItemUrl(const QUrl& url);
56 
57 Q_SIGNALS:
58 
61 
62 private Q_SLOTS:
63 
64  void slotSrcTimestampChanged();
65  void slotResetDateToCurrent();
66  void slotAdjustmentTypeChanged();
67  void slotDetAdjustmentByClockPhotoDialog();
68  void slotDetAdjustmentByClockPhotoUrl(const QUrl& url);
69 
70 private:
71 
72  class Private;
73  Private* const d;
74 };
75 
76 } // namespace Digikam
77 
78 #endif // DIGIKAM_TIME_ADJUST_SETTINGS_H
Definition: timeadjustcontainer.h:42
Definition: timeadjustsettings.h:42
Definition: datefolderview.cpp:43