File indexing completed on 2024-04-21 03:41:42

0001 /*
0002     SPDX-FileCopyrightText: 2006 Carsten Niehaus <cniehaus@kde.org>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #ifndef EQCHEMVIEW_H
0008 #define EQCHEMVIEW_H
0009 
0010 #include <QWidget>
0011 
0012 #include "ui_equationview.h"
0013 
0014 /**
0015  * @author Carsten Niehaus
0016  */
0017 class EQChemDialog : public QWidget
0018 {
0019     Q_OBJECT
0020 
0021 public:
0022     /**
0023      * public constructor
0024      *
0025      * @param parent the parent widget
0026      */
0027     explicit EQChemDialog(QWidget *parent);
0028 
0029 private:
0030     const QString getHelpText();
0031 
0032     Ui::EquationView ui;
0033 
0034 public slots:
0035     /**
0036       start the computation (balancing) of the equation
0037       */
0038     void compute();
0039 
0040     void copyAnswer();
0041 
0042 protected:
0043     QSize sizeHint() const override;
0044 };
0045 
0046 #endif // EQCHEMVIEW_H