customgenerator.h 704 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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_buttonBox_accepted();
  28. private:
  29. Ui::CustomGenerator *ui;
  30. };
  31. #endif // CUSTOMGENERATOR_H