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: 2004 Fredrik Edemar <f_edemar@linux.se>
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 COORDSCONFIGDIALOG_H
0014 #define COORDSCONFIGDIALOG_H
0015 
0016 #include <KConfigDialog>
0017 
0018 namespace Ui
0019 {
0020 class EditCoords;
0021 }
0022 
0023 class EditCoords;
0024 
0025 /**
0026 @author Fredrik Edemar
0027 */
0028 ///
0029 class CoordsConfigDialog : public KConfigDialog
0030 {
0031     Q_OBJECT
0032 public:
0033     explicit CoordsConfigDialog(QWidget *parent = nullptr);
0034     ~CoordsConfigDialog();
0035     /**
0036      * Updates the widgets containing the min/max values.
0037      */
0038     void updateXYRange();
0039 
0040 public slots:
0041     virtual void done(int result) Q_DECL_OVERRIDE;
0042 
0043 protected slots:
0044     void updateButtons();
0045 
0046 private:
0047     bool evalX(bool showError = true);
0048     bool evalY(bool showError = true);
0049 
0050     EditCoords *configAxesDialog;
0051 };
0052 
0053 #endif