#ifndef CHOOSEGENERATORS_H #define CHOOSEGENERATORS_H #include "ui_choosegenerators.h" #include "Mandel.h" #include #include #include #include #include #include namespace Ui { class ChooseGenerators; } class ChooseGenerators : public QDialog { Q_OBJECT private: std::unique_ptr ui; mnd::MandelContext& mndCtxt; std::map generators; std::vector> tableContent; std::unique_ptr floatValidator; std::unique_ptr createdGenerator; public: ChooseGenerators(mnd::MandelContext& mndCtxt, QWidget* parent = nullptr); ~ChooseGenerators(); inline mnd::AdaptiveGenerator* getChosenGenerator(void) { return createdGenerator.get(); } private: QComboBox* createComboBox(void); QLineEdit* createFloatText(void); public slots: private slots: void on_buttonBox_accepted(); }; #endif // CHOOSEGENERATORS_H