/** * @file mana_curve_widget.h * @ingroup DeckEditorAnalyticsWidgets * @brief TODO: Document this. */ #ifndef MANA_CURVE_WIDGET_H #define MANA_CURVE_WIDGET_H #include "../general/display/banner_widget.h" #include #include #include #include class ManaCurveWidget : public QWidget { Q_OBJECT public: explicit ManaCurveWidget(QWidget *parent, DeckListModel *deckListModel); void updateDisplay(); public slots: void setDeckModel(DeckListModel *deckModel); std::unordered_map analyzeManaCurve(); void retranslateUi(); private: DeckListModel *deckListModel; std::unordered_map manaCurveMap; QVBoxLayout *layout; BannerWidget *bannerWidget; QWidget *barContainer; QHBoxLayout *barLayout; }; #endif // MANA_CURVE_WIDGET_H