gradientchoosedialog.h 667 B

1234567891011121314151617181920212223242526272829
  1. #ifndef GRADIENTCHOOSEDIALOG_H
  2. #define GRADIENTCHOOSEDIALOG_H
  3. #include <QDialog>
  4. #include "ui_gradientchooser.h"
  5. #include "Gradient.h"
  6. #include <memory>
  7. #include <map>
  8. class GradientChooseDialog : public QDialog
  9. {
  10. Q_OBJECT
  11. private:
  12. Ui::GradientChooser gcd;
  13. std::unique_ptr<Gradient> chosenGradient = nullptr;
  14. public:
  15. GradientChooseDialog();
  16. private slots:
  17. void on_buttonBox_accepted();
  18. void on_buttonBox_clicked(QAbstractButton *button);
  19. void on_presets_currentIndexChanged(const QString &arg1);
  20. public:
  21. inline std::unique_ptr<Gradient> getGradient(void) { return std::move(chosenGradient); }
  22. };
  23. #endif // GRADIENTCHOOSEDIALOG_H