Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
mana_distribution_single_display_widget.h
Go to the documentation of this file.
1#ifndef COCKATRICE_MANA_DISTRIBUTION_SINGLE_DISPLAY_WIDGET_H
2#define COCKATRICE_MANA_DISTRIBUTION_SINGLE_DISPLAY_WIDGET_H
3
4#include <QString>
5#include <QWidget>
6#include <qtmetamacros.h>
7
8class QLabel;
9class QProgressBar;
10
12{
13 Q_OBJECT
14public:
15 explicit ManaDistributionSingleDisplayWidget(const QString &colorSymbol, QWidget *parent = nullptr);
16
17 void setDevotion(int pips, int cards, int percent);
18 void setProduction(int pips, int cards, int percent);
19
20private:
21 QLabel *symbolLabel;
22
23 QProgressBar *devotionBar;
25
26 QProgressBar *productionBar;
28};
29
30#endif // COCKATRICE_MANA_DISTRIBUTION_SINGLE_DISPLAY_WIDGET_H
QLabel * devotionLabel
Definition mana_distribution_single_display_widget.h:24
ManaDistributionSingleDisplayWidget(const QString &colorSymbol, QWidget *parent=nullptr)
Definition mana_distribution_single_display_widget.cpp:10
QProgressBar * productionBar
Definition mana_distribution_single_display_widget.h:26
QLabel * symbolLabel
Definition mana_distribution_single_display_widget.h:21
QLabel * productionLabel
Definition mana_distribution_single_display_widget.h:27
void setProduction(int pips, int cards, int percent)
Definition mana_distribution_single_display_widget.cpp:48
QProgressBar * devotionBar
Definition mana_distribution_single_display_widget.h:23
void setDevotion(int pips, int cards, int percent)
Definition mana_distribution_single_display_widget.cpp:42