// settingswidget.h #ifndef SETTINGSWIDGET_H #define SETTINGSWIDGET_H #include #include #include #include "mandel.h" class SettingsWidget : public QDialog { Q_OBJECT QLineEdit *max_iter, *width, *height, *center_f_x, *center_f_y, *one; bool is_finished; public: explicit SettingsWidget(QWidget *parent = nullptr); void update_fields(const MandelParams ¶ms, const bool is_finished); inline const QString get_max_iter() const { return max_iter->text(); }; inline void set_finished(const bool is_finished) { this->is_finished = is_finished; max_iter->setReadOnly(!is_finished); } public Q_SLOTS: void apply(); }; #endif // SETTINGSWIDGET_H