2019-11-03 13:27:46 +01:00
|
|
|
/*
|
2024-03-29 10:09:48 +01:00
|
|
|
Copyright 2006-2024 The QElectroTech Team
|
2020-08-17 16:42:07 +02:00
|
|
|
This file is part of QElectroTech.
|
2019-11-03 13:27:46 +01:00
|
|
|
|
2020-08-17 16:42:07 +02:00
|
|
|
QElectroTech is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation, either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
2019-11-03 13:27:46 +01:00
|
|
|
|
2020-08-17 16:42:07 +02:00
|
|
|
QElectroTech is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
2019-11-03 13:27:46 +01:00
|
|
|
|
2020-08-17 16:42:07 +02:00
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
|
2019-11-03 13:27:46 +01:00
|
|
|
*/
|
2020-08-17 16:42:07 +02:00
|
|
|
#ifndef BOMEXPORTDIALOG_H
|
|
|
|
#define BOMEXPORTDIALOG_H
|
2019-11-03 13:27:46 +01:00
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
|
|
|
|
class QETProject;
|
2020-08-17 16:42:07 +02:00
|
|
|
class ElementQueryWidget;
|
2019-11-03 13:27:46 +01:00
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class BOMExportDialog;
|
|
|
|
}
|
|
|
|
|
2020-08-17 16:42:07 +02:00
|
|
|
/**
|
2020-08-18 21:28:52 +02:00
|
|
|
@brief The BOMExportDialog class
|
|
|
|
*/
|
2019-11-03 13:27:46 +01:00
|
|
|
class BOMExportDialog : public QDialog
|
|
|
|
{
|
2020-08-16 14:23:59 +02:00
|
|
|
Q_OBJECT
|
2019-11-03 13:27:46 +01:00
|
|
|
|
2020-08-16 14:23:59 +02:00
|
|
|
public:
|
2020-08-17 16:42:07 +02:00
|
|
|
explicit BOMExportDialog(QETProject *project, QWidget *parent = nullptr);
|
2020-08-16 14:23:59 +02:00
|
|
|
~BOMExportDialog() override;
|
2019-11-03 13:27:46 +01:00
|
|
|
|
2019-11-09 11:38:30 +01:00
|
|
|
virtual int exec() override;
|
2020-08-17 16:42:07 +02:00
|
|
|
QString getBom();
|
2019-11-03 13:27:46 +01:00
|
|
|
|
2020-08-16 14:23:59 +02:00
|
|
|
private slots:
|
2020-08-17 16:42:07 +02:00
|
|
|
void on_m_format_as_bom_clicked(bool checked);
|
2019-11-03 13:27:46 +01:00
|
|
|
|
2020-08-17 16:42:07 +02:00
|
|
|
private:
|
2020-08-16 14:23:59 +02:00
|
|
|
Ui::BOMExportDialog *ui;
|
2020-08-17 16:42:07 +02:00
|
|
|
ElementQueryWidget *m_query_widget = nullptr;
|
2020-08-16 14:23:59 +02:00
|
|
|
QETProject *m_project = nullptr;
|
2019-11-03 13:27:46 +01:00
|
|
|
};
|
|
|
|
|
2020-08-17 16:42:07 +02:00
|
|
|
#endif // BOMEXPORTDIALOG_H
|