customgenerator.h 680 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. private slots:
  26. void on_compile_clicked();
  27. private:
  28. Ui::CustomGenerator *ui;
  29. };
  30. #endif // CUSTOMGENERATOR_H