mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-03-21 17:55:21 -05:00
* Move models to own library.
Took 35 minutes
Took 22 minutes
* Adjust CMakeLists
Took 20 seconds
* Reformat CMakeLists.
Took 2 minutes
* Revert "Reformat CMakeLists."
This reverts commit db5982ad1c.
Took 55 seconds
* Lint an include
Took 17 minutes
Took 9 seconds
---------
Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
47 lines
1.1 KiB
C++
47 lines
1.1 KiB
C++
/**
|
|
* @file deck_analytics_widget.h
|
|
* @ingroup DeckEditorAnalyticsWidgets
|
|
* @brief TODO: Document this.
|
|
*/
|
|
|
|
#ifndef DECK_ANALYTICS_WIDGET_H
|
|
#define DECK_ANALYTICS_WIDGET_H
|
|
|
|
#include "../general/layout_containers/flow_widget.h"
|
|
#include "mana_base_widget.h"
|
|
#include "mana_curve_widget.h"
|
|
#include "mana_devotion_widget.h"
|
|
|
|
#include <QHBoxLayout>
|
|
#include <QScrollArea>
|
|
#include <QVBoxLayout>
|
|
#include <QWidget>
|
|
#include <libcockatrice/deck_list/deck_list.h>
|
|
#include <libcockatrice/models/deck_list/deck_list_model.h>
|
|
|
|
class DeckAnalyticsWidget : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit DeckAnalyticsWidget(QWidget *parent, DeckListModel *deckListModel);
|
|
void setDeckList(const DeckList &_deckListModel);
|
|
std::map<int, int> analyzeManaCurve();
|
|
void refreshDisplays(DeckListModel *_deckListModel);
|
|
|
|
private:
|
|
DeckListModel *deckListModel;
|
|
QVBoxLayout *mainLayout;
|
|
|
|
QWidget *container;
|
|
QVBoxLayout *containerLayout;
|
|
|
|
QScrollArea *scrollArea;
|
|
|
|
ManaCurveWidget *manaCurveWidget;
|
|
ManaDevotionWidget *manaDevotionWidget;
|
|
ManaBaseWidget *manaBaseWidget;
|
|
};
|
|
|
|
#endif // DECK_ANALYTICS_WIDGET_H
|