digiKam
casemodifier.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-09-14
7  * Description : modifier to change the case of a renaming option
8  *
9  * Copyright (C) 2009-2012 by Andi Clemens <andi dot clemens at gmail dot com>
10  *
11  * This program is free software; you can redistribute it
12  * and/or modify it under the terms of the GNU General
13  * Public License as published by the Free Software Foundation;
14  * either version 2, or (at your option)
15  * 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_CASE_MODIFIER_H
25 #define DIGIKAM_CASE_MODIFIER_H
26 
27 // Local includes
28 
29 #include "modifier.h"
30 
31 namespace Digikam
32 {
33 
34 class CaseModifier : public Modifier
35 {
36  Q_OBJECT
37 
38 public:
39 
40  explicit CaseModifier();
41  QString parseOperation(ParseSettings& settings, const QRegularExpressionMatch& match) override;
42 
43 private:
44 
45  // Disable
46  explicit CaseModifier(QObject*) = delete;
47  CaseModifier(const CaseModifier&) = delete;
48  CaseModifier& operator=(const CaseModifier&) = delete;
49 
50 private:
51 
52  QString firstupper(const QString& str2Modify);
53 };
54 
55 } // namespace Digikam
56 
57 #endif // DIGIKAM_CASE_MODIFIER_H
Definition: casemodifier.h:35
CaseModifier()
Definition: casemodifier.cpp:37
QString parseOperation(ParseSettings &settings, const QRegularExpressionMatch &match) override
Definition: casemodifier.cpp:56
Definition: modifier.h:35
Definition: parsesettings.h:43
Definition: datefolderview.cpp:43