digiKam
ruledialog.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 : 2010-05-01
7  * Description : a dialog that can be used to display a configuration
8  * dialog for a rule
9  *
10  * Copyright (C) 2009-2012 by Andi Clemens <andi dot clemens 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_RULE_DIALOG_H
26 #define DIGIKAM_RULE_DIALOG_H
27 
28 // Qt includes
29 
30 #include <QDialog>
31 
32 namespace Digikam
33 {
34 
35 class Rule;
36 
37 class RuleDialog : public QDialog
38 {
39  Q_OBJECT
40 
41 public:
42 
43  explicit RuleDialog(Rule* const parent);
44  ~RuleDialog() override;
45 
46  void setSettingsWidget(QWidget* const settingsWidget);
47 
48 private:
49 
50  void setDialogTitle(const QString& title);
51  void setDialogDescription(const QString& description);
52  void setDialogIcon(const QPixmap& pixmap);
53 
54 private:
55 
56  // Disable
57  explicit RuleDialog(QWidget*) = delete;
58  RuleDialog(const RuleDialog&) = delete;
59  RuleDialog& operator=(const RuleDialog&) = delete;
60 
61 private:
62 
63  class Private;
64  Private* const d;
65 };
66 
67 } // namespace Digikam
68 
69 #endif // DIGIKAM_RULE_DIALOG_H
Definition: ruledialog.h:38
~RuleDialog() override
Definition: ruledialog.cpp:120
RuleDialog(Rule *const parent)
Definition: ruledialog.cpp:67
void setSettingsWidget(QWidget *const settingsWidget)
Definition: ruledialog.cpp:146
Definition: rule.h:42
Definition: datefolderview.cpp:43