#ifndef GRADIENTCHOOSEDIALOG_H #define GRADIENTCHOOSEDIALOG_H #include #include "ui_gradientchooser.h" #include "Gradient.h" #include #include class GradientChooseDialog : public QDialog { Q_OBJECT private: Ui::GradientChooser gcd; std::unique_ptr chosenGradient = nullptr; static std::map presets; public: GradientChooseDialog(); private slots: void on_buttonBox_accepted(); void on_buttonBox_clicked(QAbstractButton *button); void on_presets_currentIndexChanged(const QString &arg1); public: inline std::unique_ptr getGradient(void) { return std::move(chosenGradient); } }; #endif // GRADIENTCHOOSEDIALOG_H