File indexing completed on 2025-07-13 03:32:57

0001 /*
0002     File                 : ConstansWidget.h
0003     Project              : LabPlot
0004     Description          : widget for selecting constants
0005     --------------------------------------------------------------------
0006     SPDX-FileCopyrightText: 2014 Alexander Semke <alexander.semke@web.de>
0007     SPDX-License-Identifier: GPL-2.0-or-later
0008 */
0009 
0010 #ifndef CONSTANTSWIDGET_H
0011 #define CONSTANTSWIDGET_H
0012 
0013 #include <QWidget>
0014 
0015 #include "ui_constantswidget.h"
0016 
0017 class ExpressionParser;
0018 
0019 class ConstantsWidget : public QWidget {
0020     Q_OBJECT
0021 
0022 public:
0023     explicit ConstantsWidget(QWidget*);
0024 
0025 private:
0026     Ui::ConstantsWidget ui;
0027     ExpressionParser* m_expressionParser;
0028 
0029 Q_SIGNALS:
0030     void constantSelected(const QString&);
0031     void canceled();
0032 
0033 private Q_SLOTS:
0034     void groupChanged(int);
0035     void filterChanged(const QString&);
0036     void constantChanged(const QString&);
0037     void insertClicked();
0038 };
0039 
0040 #endif // CONSTANTSWIDGET_H