File indexing completed on 2024-06-23 05:49:17

0001 /*
0002     This file is part of the Kasten Framework, made within the KDE community.
0003 
0004     SPDX-FileCopyrightText: 2009, 2013 Friedrich W. H. Kossebau <kossebau@kde.org>
0005 
0006     SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0007 */
0008 
0009 #ifndef KASTEN_INSERTDIALOG_HPP
0010 #define KASTEN_INSERTDIALOG_HPP
0011 
0012 // Qt
0013 #include <QDialog>
0014 
0015 namespace Kasten {
0016 
0017 class AbstractModelDataGeneratorConfigEditor;
0018 class AbstractModelDataGenerator;
0019 
0020 class InsertDialog : public QDialog
0021 {
0022     Q_OBJECT
0023 
0024 public:
0025     explicit InsertDialog(AbstractModelDataGeneratorConfigEditor* configEditor,
0026                           AbstractModelDataGenerator* generator,
0027                           QWidget* parent = nullptr);
0028     ~InsertDialog() override;
0029 
0030 Q_SIGNALS:
0031     void insertAccepted(Kasten::AbstractModelDataGenerator* generator);
0032 
0033 private Q_SLOTS:
0034     void onFinished(int result);
0035 
0036 private:
0037     AbstractModelDataGeneratorConfigEditor* const mConfigEditor;
0038     AbstractModelDataGenerator* const m_generator;
0039 };
0040 
0041 }
0042 #endif