File indexing completed on 2023-10-03 03:05:04
0001 /* 0002 KmPlot - a math. function plotter for the KDE-Desktop 0003 0004 SPDX-FileCopyrightText: 2006 David Saxton <david@bluehaze.org> 0005 0006 This file is part of the KDE Project. 0007 KmPlot is part of the KDE-EDU Project. 0008 0009 SPDX-License-Identifier: GPL-2.0-or-later 0010 0011 */ 0012 0013 #ifndef EQUATIONEDITORWIDGET_H 0014 #define EQUATIONEDITORWIDGET_H 0015 0016 #include "ui_equationeditorwidget.h" 0017 0018 class EquationEditorWidget : public QWidget, public Ui::EquationEditorWidget 0019 { 0020 Q_OBJECT 0021 0022 public: 0023 explicit EquationEditorWidget(QWidget *parent = nullptr); 0024 0025 protected slots: 0026 void insertFunction(const QString &text); 0027 /** 0028 * \p index is the position of the constant in the constants combo box. 0029 */ 0030 void insertConstant(int index); 0031 void characterButtonClicked(); 0032 void updateConstantList(); 0033 void editConstants(); 0034 }; 0035 0036 #endif