digiKam
dplugindialog.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 : 2018-12-31
7  * Description : digiKam plugin main dialog
8  *
9  * Copyright (C) 2018-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_DPLUGIN_DIALOG_H
25 #define DIGIKAM_DPLUGIN_DIALOG_H
26 
27 // Qt includes
28 
29 #include <QDialog>
30 #include <QDialogButtonBox>
31 
32 // Local includes
33 
34 #include "digikam_export.h"
35 
36 namespace Digikam
37 {
38 
39 class DPlugin;
40 
41 class DIGIKAM_EXPORT DPluginDialog : public QDialog
42 {
43  Q_OBJECT
44 
45 public:
46 
47  explicit DPluginDialog(QWidget* const parent, const QString& objName);
48  ~DPluginDialog() override;
49 
50  void setPlugin(DPlugin* const tool);
51 
52 protected:
53 
54  void restoreDialogSize();
55  void saveDialogSize();
56 
57 private Q_SLOTS:
58 
59  void slotAboutPlugin();
60 
61 protected:
62 
63  QDialogButtonBox* m_buttons;
64 
65 private:
66 
67  DPlugin* m_tool;
68 
69  Q_DISABLE_COPY(DPluginDialog)
70 };
71 
72 } // namespace Digikam
73 
74 #endif // DIGIKAM_DPLUGIN_DIALOG_H
Definition: dplugindialog.h:42
QDialogButtonBox * m_buttons
Definition: dplugindialog.h:63
Definition: dplugin.h:61
Definition: datefolderview.cpp:43