Migrated old visualization of the bidding round statuses with donut charts from the legacy BeetRound project.
This commit is contained in:
@ -3,9 +3,11 @@
|
||||
|
||||
#include <QWidget>
|
||||
|
||||
class BiddingRoundStatusWidget;
|
||||
class ModelSummary;
|
||||
class QLabel;
|
||||
class QSpinBox;
|
||||
class QBoxLayout;
|
||||
|
||||
class SummaryWidget : public QWidget {
|
||||
Q_OBJECT
|
||||
@ -15,10 +17,19 @@ class SummaryWidget : public QWidget {
|
||||
|
||||
private slots:
|
||||
void onFinancialNeedChanged(int newFinancialNeed);
|
||||
void onNExpectedBiddingChanged(int newNExpected);
|
||||
|
||||
void onNPlacedBiddingsChanged(const int roundNumber);
|
||||
void onBiddingSumChanged(const int roundNumber);
|
||||
void onBiddingAverageChanged(const int roundNumber);
|
||||
|
||||
private:
|
||||
std::shared_ptr<ModelSummary> m_modelSummary;
|
||||
|
||||
std::unique_ptr<BiddingRoundStatusWidget> m_biddingStatus1;
|
||||
std::unique_ptr<BiddingRoundStatusWidget> m_biddingStatus2;
|
||||
std::unique_ptr<BiddingRoundStatusWidget> m_biddingStatus3;
|
||||
|
||||
// TODO read from settings (maybe via model/core; maybe set in constructor)
|
||||
const int m_financialNeed = 13942;
|
||||
QSpinBox* m_financialNeedBox = nullptr;
|
||||
@ -26,7 +37,9 @@ class SummaryWidget : public QWidget {
|
||||
QLabel* m_rowCountValueLabel;
|
||||
QLabel* m_nExpectedBiddingsValueLabel;
|
||||
|
||||
void setupBindableProperties();
|
||||
/// functions
|
||||
QBoxLayout* createBiddingOverviewLayout();
|
||||
void setupConnections();
|
||||
};
|
||||
|
||||
#endif // SUMMARYWIDGET_H
|
||||
|
||||
Reference in New Issue
Block a user