#pragma once #include "util/DisplayBadge.hpp" #include #include #include namespace chatterino { class BadgePickerDialog : public QDialog, public std::enable_shared_from_this { using QIconPtr = std::shared_ptr; using BadgeOpt = boost::optional; public: BadgePickerDialog(QList badges, QWidget *parent = nullptr); BadgeOpt getSelection() const { return this->currentBadge_; } private: QComboBox *dropdown_; BadgeOpt currentBadge_; }; } // namespace chatterino