Cockatrice 2025-11-30-Development-2.11.0-beta.38
A cross-platform virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
mana_curve_widget.h
Go to the documentation of this file.
1
6
7#ifndef MANA_CURVE_WIDGET_H
8#define MANA_CURVE_WIDGET_H
9
11
12#include <QHBoxLayout>
13#include <QWidget>
15#include <unordered_map>
16
17class ManaCurveWidget : public QWidget
18{
19 Q_OBJECT
20
21public:
22 explicit ManaCurveWidget(QWidget *parent, DeckListModel *deckListModel);
23 void updateDisplay();
24
25public slots:
26 void setDeckModel(DeckListModel *deckModel);
27 std::unordered_map<int, int> analyzeManaCurve();
28 void retranslateUi();
29
30private:
32 std::unordered_map<int, int> manaCurveMap;
33 QVBoxLayout *layout;
35 QWidget *barContainer;
36 QHBoxLayout *barLayout;
37};
38
39#endif // MANA_CURVE_WIDGET_H
TODO: Document this.
Definition banner_widget.h:17
Qt model representing a decklist for use in views (tree/table).
Definition deck_list_model.h:200
DeckListModel * deckListModel
Definition mana_curve_widget.h:31
QWidget * barContainer
Definition mana_curve_widget.h:35
BannerWidget * bannerWidget
Definition mana_curve_widget.h:34
void updateDisplay()
Definition mana_curve_widget.cpp:65
void setDeckModel(DeckListModel *deckModel)
Definition mana_curve_widget.cpp:37
std::unordered_map< int, int > manaCurveMap
Definition mana_curve_widget.h:32
void retranslateUi()
Definition mana_curve_widget.cpp:32
QHBoxLayout * barLayout
Definition mana_curve_widget.h:36
QVBoxLayout * layout
Definition mana_curve_widget.h:33
std::unordered_map< int, int > analyzeManaCurve()
Definition mana_curve_widget.cpp:44
ManaCurveWidget(QWidget *parent, DeckListModel *deckListModel)
Definition mana_curve_widget.cpp:13