digiKam
Loading...
Searching...
No Matches
renamecustomizer.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-09-19
7 * Description : a options group to set renaming files
8 * operations during camera downloading
9 *
10 * SPDX-FileCopyrightText: 2004-2005 by Renchi Raju <renchi dot raju at gmail dot com>
11 * SPDX-FileCopyrightText: 2006-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
12 * SPDX-FileCopyrightText: 2011 by Andi Clemens <andi dot clemens at gmail dot com>
13 *
14 * SPDX-License-Identifier: GPL-2.0-or-later
15 *
16 * ============================================================ */
17
18#pragma once
19
20// Qt includes
21
22#include <QMap>
23#include <QWidget>
24
25// Local includes
26
27#include "digikam_export.h"
28
29namespace Digikam
30{
31
32class AdvancedRenameManager;
33
34class DIGIKAM_GUI_EXPORT RenameCustomizer : public QWidget
35{
36 Q_OBJECT
37
38public:
39
40 enum Case
41 {
42 NONE = 0,
44 LOWER
45 };
46
47public:
48
49 explicit RenameCustomizer(QWidget* const parent, const QString& cameraTitle);
50 ~RenameCustomizer() override;
51
52 void setUseDefault(bool val);
53 bool useDefault() const;
54 QString newName(const QString& fileName) const;
55 Case changeCase() const;
56 void setChangeCase(Case val);
57
58 int startIndex() const;
59 void setStartIndex(int startIndex);
60 void reset();
61
62 void setPreviewText(const QString& txt);
63
64 AdvancedRenameManager* renameManager() const;
65
66Q_SIGNALS:
67
69
70private:
71
72 void readSettings();
73 void saveSettings();
74
75private Q_SLOTS:
76
77 void slotRadioButtonClicked(int);
78 void slotRenameOptionsChanged();
79 void slotCustomRenameChanged();
80
81private:
82
83 class Private;
84 Private* const d = nullptr;
85};
86
87} // namespace Digikam
Definition advancedrenamemanager.h:36
Definition renamecustomizer.h:35
Case
Definition renamecustomizer.h:41
@ UPPER
Definition renamecustomizer.h:43
Definition datefolderview.cpp:34