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

0001 /*
0002     SPDX-License-Identifier: GPL-2.0-or-later
0003 */
0004 
0005 #ifndef ISOTOPETABLESETTINGSDIALOG_H
0006 #define ISOTOPETABLESETTINGSDIALOG_H
0007 
0008 #include "isotopetablesettingscard.h"
0009 #include "prefs.h"
0010 #include <QWidget>
0011 
0012 class IsotopeTableSettingsDialog : public QWidget
0013 {
0014     Q_OBJECT
0015 
0016 public:
0017     explicit IsotopeTableSettingsDialog(QWidget *parent);
0018     ~IsotopeTableSettingsDialog() override;
0019     bool hasChanged() const;
0020     bool isDefault() const;
0021     int getMode() const
0022     {
0023         return m_mode;
0024     }
0025 
0026 private:
0027     QVector<IsotopeTableSettingsCard *> m_cards;
0028     int m_mode;
0029 
0030 public Q_SLOTS:
0031     void setMode(int mode);
0032 
0033 Q_SIGNALS:
0034     void modeChanged(int mode);
0035 };
0036 
0037 #endif // ISOTOPETABLESETTINGSDIALOG_H