File indexing completed on 2025-01-19 03:55:42

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2018-12-31
0007  * Description : digiKam plugin main dialog
0008  *
0009  * SPDX-FileCopyrightText: 2018-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
0010  *
0011  * SPDX-License-Identifier: GPL-2.0-or-later
0012  *
0013  * ============================================================ */
0014 
0015 #ifndef DIGIKAM_DPLUGIN_DIALOG_H
0016 #define DIGIKAM_DPLUGIN_DIALOG_H
0017 
0018 // Qt includes
0019 
0020 #include <QDialog>
0021 #include <QDialogButtonBox>
0022 
0023 // Local includes
0024 
0025 #include "digikam_export.h"
0026 
0027 namespace Digikam
0028 {
0029 
0030 class DPlugin;
0031 
0032 class DIGIKAM_EXPORT DPluginDialog : public QDialog
0033 {
0034     Q_OBJECT
0035 
0036 public:
0037 
0038     explicit DPluginDialog(QWidget* const parent, const QString& objName);
0039     ~DPluginDialog() override;
0040 
0041     void setPlugin(DPlugin* const tool);
0042 
0043 protected:
0044 
0045     void restoreDialogSize();
0046     void saveDialogSize();
0047 
0048 private Q_SLOTS:
0049 
0050     void slotAboutPlugin();
0051     void slotOnlineHandbook();
0052 
0053 protected:
0054 
0055     QDialogButtonBox* m_buttons;
0056 
0057 private:
0058 
0059     DPlugin*          m_tool;
0060 
0061     Q_DISABLE_COPY(DPluginDialog)
0062 };
0063 
0064 } // namespace Digikam
0065 
0066 #endif // DIGIKAM_DPLUGIN_DIALOG_H