digiKam
sequencenumberoption.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-08-08
7  * Description : an option to add a sequence number to the parser
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_SEQUENCE_NUMBER_OPTION_H
25 #define DIGIKAM_SEQUENCE_NUMBER_OPTION_H
26 
27 // Local includes
28 
29 #include "option.h"
30 #include "ruledialog.h"
31 
32 namespace Ui
33 {
34  class SequenceNumberOptionDialogWidget;
35 }
36 
37 namespace Digikam
38 {
39 
41 {
42  Q_OBJECT
43 
44 public:
45 
46  explicit SequenceNumberDialog(Rule* const parent);
47  ~SequenceNumberDialog() override;
48 
49  Ui::SequenceNumberOptionDialogWidget* const ui;
50 
51 private:
52 
53  // Disable
54  explicit SequenceNumberDialog(QWidget*) = delete;
56  SequenceNumberDialog& operator=(const SequenceNumberDialog&) = delete;
57 };
58 
59 // --------------------------------------------------------
60 
62 {
63  Q_OBJECT
64 
65 public:
66 
67  explicit SequenceNumberOption();
68  ~SequenceNumberOption() override;
69 
70 protected:
71 
72  QString parseOperation(ParseSettings& settings, const QRegularExpressionMatch &match) override;
73 
74 private Q_SLOTS:
75 
76  void slotTokenTriggered(const QString& token) override;
77 
78 private:
79 
80  // Disable
81  explicit SequenceNumberOption(QObject*) = delete;
83  SequenceNumberOption& operator=(const SequenceNumberOption&) = delete;
84 };
85 
86 } // namespace Digikam
87 
88 #endif // DIGIKAM_SEQUENCE_NUMBER_OPTION_H
Definition: option.h:35
Definition: parsesettings.h:43
Definition: ruledialog.h:38
Definition: rule.h:42
Definition: sequencenumberoption.h:41
~SequenceNumberDialog() override
Definition: sequencenumberoption.cpp:55
SequenceNumberDialog(Rule *const parent)
Definition: sequencenumberoption.cpp:45
Ui::SequenceNumberOptionDialogWidget *const ui
Definition: sequencenumberoption.h:49
Definition: sequencenumberoption.h:62
~SequenceNumberOption() override
Definition: sequencenumberoption.cpp:76
SequenceNumberOption()
Definition: sequencenumberoption.cpp:62
QString parseOperation(ParseSettings &settings, const QRegularExpressionMatch &match) override
Definition: sequencenumberoption.cpp:136
Definition: datefolderview.cpp:43