File indexing completed on 2025-10-19 03:37:45

0001 /*
0002     File                 : MatrixFunctionDialog.h
0003     Project              : LabPlot
0004     Description          : Dialog for generating matrix values from a mathematical function
0005     --------------------------------------------------------------------
0006     SPDX-FileCopyrightText: 2015-2019 Alexander Semke <alexander.semke@web.de>
0007     SPDX-License-Identifier: GPL-2.0-or-later
0008 */
0009 
0010 #ifndef MATRIXFUNCTIONDIALOG_H
0011 #define MATRIXFUNCTIONDIALOG_H
0012 
0013 #include "ui_matrixfunctionwidget.h"
0014 #include <QDialog>
0015 
0016 class Matrix;
0017 class QPushButton;
0018 
0019 class MatrixFunctionDialog : public QDialog {
0020     Q_OBJECT
0021 
0022 public:
0023     explicit MatrixFunctionDialog(Matrix*, QWidget* parent = nullptr);
0024     ~MatrixFunctionDialog();
0025 
0026 private:
0027     Ui::MatrixFunctionWidget ui;
0028     Matrix* m_matrix;
0029     QPushButton* m_okButton;
0030 
0031 private Q_SLOTS:
0032     void generate();
0033     void checkValues();
0034     void showConstants();
0035     void showFunctions();
0036     void insertFunction(const QString&) const;
0037     void insertConstant(const QString&) const;
0038 };
0039 
0040 #endif