digiKam
workflowdlg.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 : 2012-12-19
7  * Description : Workflow properties dialog.
8  *
9  * Copyright (C) 2012-2022 by Gilles Caulier <caulier dot gilles 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_BQM_WORK_FLOW_DLG_H
25 #define DIGIKAM_BQM_WORK_FLOW_DLG_H
26 
27 // Qt includes
28 
29 #include <QDateTime>
30 #include <QString>
31 #include <QStringList>
32 #include <QDialog>
33 
34 // Locale includes
35 
36 #include "workflowmanager.h"
37 
38 namespace Digikam
39 {
40 
41 class WorkflowDlg : public QDialog
42 {
43  Q_OBJECT
44 
45 public:
46 
47  explicit WorkflowDlg(const Workflow& wf, bool create = false);
48  ~WorkflowDlg() override;
49 
50  QString title() const;
51  QString description() const;
52 
53 public:
54 
55  static bool editProps(Workflow& wf);
56  static bool createNew(Workflow& wf);
57 
58 private Q_SLOTS:
59 
60  void slotTitleChanged(const QString& text);
61  void slotHelp();
62 
63 private:
64 
65  // Disable
66  explicit WorkflowDlg(QWidget*) = delete;
67 
68 private:
69 
70  class Private;
71  Private* const d;
72 };
73 
74 } // namespace Digikam
75 
76 #endif // DIGIKAM_BQM_WORK_FLOW_DLG_H
Definition: workflowdlg.h:42
~WorkflowDlg() override
Definition: workflowdlg.cpp:172
static bool editProps(Workflow &wf)
Definition: workflowdlg.cpp:187
WorkflowDlg(const Workflow &wf, bool create=false)
Definition: workflowdlg.cpp:72
QString description() const
Definition: workflowdlg.cpp:182
static bool createNew(Workflow &wf)
Definition: workflowdlg.cpp:203
QString title() const
Definition: workflowdlg.cpp:177
Definition: workflowmanager.h:46
Definition: datefolderview.cpp:43