digiKam
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  * 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)
16  * any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU General Public License for more details.
22  *
23  * ============================================================ */
24 
25 #ifndef DIGIKAM_ALBUM_CUSTOMIZER_H
26 #define DIGIKAM_ALBUM_CUSTOMIZER_H
27 
28 // Qt includes
29 
30 #include <QWidget>
31 
32 // Local includes
33 
34 #include "digikam_export.h"
35 
36 class KConfigGroup;
37 
38 namespace Digikam
39 {
40 
41 class DIGIKAM_GUI_EXPORT AlbumCustomizer : public QWidget
42 {
43  Q_OBJECT
44 
45 public:
46 
48  {
49  IsoDateFormat = 0,
52  CustomDateFormat
53  };
54 
55 public:
56 
57  explicit AlbumCustomizer(QWidget* const parent = nullptr);
58  ~AlbumCustomizer() override;
59 
60  void readSettings(KConfigGroup& group);
61  void saveSettings(KConfigGroup& group);
62 
63  bool autoAlbumDateEnabled() const;
64  bool autoAlbumExtEnabled() const;
65  int folderDateFormat() const;
66  bool customDateFormatIsValid() const;
67  QString customDateFormat() const;
68 
69 private Q_SLOTS:
70 
71  void slotFolderDateFormatChanged(int);
72  void slotToolTipButtonToggled(bool);
73  void slotCustomizerChanged();
74 
75 private:
76 
77  class Private;
78  Private* const d;
79 };
80 
81 } // namespace Digikam
82 
83 #endif // DIGIKAM_ALBUM_CUSTOMIZER_H
Definition: albumcustomizer.h:42
DateFormatOptions
Definition: albumcustomizer.h:48
@ LocalDateFormat
Definition: albumcustomizer.h:51
@ TextDateFormat
Definition: albumcustomizer.h:50
Definition: datefolderview.cpp:43