File indexing completed on 2024-05-12 15:28:18

0001 /***************************************************************************
0002 File                 : FITSHeaderEditDialog.cpp
0003 Project              : LabPlot
0004 Description          : Dialog for listing/editing FITS header keywords
0005 --------------------------------------------------------------------
0006 Copyright            : (C) 2016-2017 by Fabian Kristof (fkristofszabolcs@gmail.com)
0007 ***************************************************************************/
0008 
0009 /***************************************************************************
0010 *                                                                         *
0011 *  This program is free software; you can redistribute it and/or modify   *
0012 *  it under the terms of the GNU General Public License as published by   *
0013 *  the Free Software Foundation; either version 2 of the License, or      *
0014 *  (at your option) any later version.                                    *
0015 *                                                                         *
0016 *  This program is distributed in the hope that it will be useful,        *
0017 *  but WITHOUT ANY WARRANTY; without even the implied warranty of         *
0018 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          *
0019 *  GNU General Public License for more details.                           *
0020 *                                                                         *
0021 *   You should have received a copy of the GNU General Public License     *
0022 *   along with this program; if not, write to the Free Software           *
0023 *   Foundation, Inc., 51 Franklin Street, Fifth Floor,                    *
0024 *   Boston, MA  02110-1301  USA                                           *
0025 *                                                                         *
0026 ***************************************************************************/
0027 #ifndef FITSHEADEREDITDIALOG_H
0028 #define FITSHEADEREDITDIALOG_H
0029 
0030 #include "FITSHeaderEditWidget.h"
0031 #include <QDialog>
0032 
0033 class QPushButton;
0034 
0035 class FITSHeaderEditDialog : public QDialog {
0036     Q_OBJECT
0037 
0038 public:
0039     explicit FITSHeaderEditDialog(QWidget* parent = nullptr);
0040     ~FITSHeaderEditDialog() override;
0041     bool saved() const;
0042 
0043 private:
0044     FITSHeaderEditWidget* m_headerEditWidget;
0045     bool m_saved{false};
0046     QPushButton* m_okButton;
0047 
0048 private slots:
0049     void save();
0050     void headersChanged(bool);
0051 };
0052 
0053 #endif // FITSHEADEREDITDIALOG_H