customgenerator.h 736 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #ifndef CUSTOMGENERATOR_H
  2. #define CUSTOMGENERATOR_H
  3. #include <QDialog>
  4. #include <Mandel.h>
  5. #include <IterationCompiler.h>
  6. struct FractalDef
  7. {
  8. QString name;
  9. QString z0;
  10. QString zi;
  11. mnd::GeneratorCollection gc;
  12. };
  13. namespace Ui {
  14. class CustomGenerator;
  15. }
  16. class CustomGenerator : public QDialog
  17. {
  18. Q_OBJECT
  19. mnd::MandelContext& mndCtxt;
  20. std::vector<FractalDef> fractalDefs;
  21. public:
  22. explicit CustomGenerator(mnd::MandelContext& mndCtxt, QWidget *parent = nullptr);
  23. ~CustomGenerator();
  24. FractalDef* getLastCompiled(void);
  25. void compile();
  26. private slots:
  27. void on_compile_clicked();
  28. void on_buttonBox_accepted();
  29. private:
  30. Ui::CustomGenerator *ui;
  31. };
  32. #endif // CUSTOMGENERATOR_H