digiKam
Loading...
Searching...
No Matches
albumcustomizer.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-08-11
7 * Description : a widget to customize album name created by
8 * camera interface.
9 *
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 <QWidget>
21
22// Local includes
23
24#include "digikam_export.h"
25
26class KConfigGroup;
27
28namespace Digikam
29{
30
31class DIGIKAM_GUI_EXPORT AlbumCustomizer : public QWidget
32{
33 Q_OBJECT
34
35public:
36
38 {
39 IsoDateFormat = 0,
42 CustomDateFormat
43 };
44
45public:
46
47 explicit AlbumCustomizer(QWidget* const parent = nullptr);
48 ~AlbumCustomizer() override;
49
50 void readSettings(const KConfigGroup& group);
51 void saveSettings(KConfigGroup& group);
52
53 bool autoAlbumDateEnabled() const;
54 bool autoAlbumExtEnabled() const;
55 int folderDateFormat() const;
56 bool customDateFormatIsValid() const;
57 QString customDateFormat() const;
58
59private Q_SLOTS:
60
61 void slotFolderDateFormatChanged(int);
62 void slotToolTipButtonToggled(bool);
63 void slotCustomizerChanged();
64
65private:
66
67 class Private;
68 Private* const d = nullptr;
69};
70
71} // namespace Digikam
Definition albumcustomizer.h:32
DateFormatOptions
Definition albumcustomizer.h:38
@ LocalDateFormat
Definition albumcustomizer.h:41
@ TextDateFormat
Definition albumcustomizer.h:40
Definition datefolderview.cpp:34