File indexing completed on 2024-04-21 03:42: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 EQUATIONEDITOR_H
0014 #define EQUATIONEDITOR_H
0015 
0016 #include <QDialog>
0017 
0018 class EquationEdit;
0019 class EquationEditorWidget;
0020 
0021 /**
0022  * A dialog containing an EquationEdit and a variety of buttons to insert
0023  * special characters.
0024  * \author David Saxton
0025  */
0026 class EquationEditor : public QDialog
0027 {
0028     Q_OBJECT
0029 
0030 public:
0031     explicit EquationEditor(QWidget *parent);
0032 
0033     /**
0034      * The equation's text, e.g. "f(x) = x^2".
0035      */
0036     QString text() const;
0037 
0038     EquationEdit *edit() const;
0039 
0040 protected:
0041     EquationEditorWidget *m_widget;
0042 };
0043 
0044 #endif