Cockatrice 2026-01-14-Development-2.11.0-beta.46
A cross-platform virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
DeckAnalyticsWidget Class Reference

#include <deck_analytics_widget.h>

Inheritance diagram for DeckAnalyticsWidget:
[legend]
Collaboration diagram for DeckAnalyticsWidget:
[legend]

Public Slots

void updateDisplays ()

Public Member Functions

 DeckAnalyticsWidget (QWidget *parent, DeckListStatisticsAnalyzer *analyzer)
void retranslateUi ()

Protected Member Functions

bool eventFilter (QObject *obj, QEvent *event) override
void selectWrapper (ResizablePanel *panel)
int indexOfSelectedWrapper () const

Private Slots

void onAddPanel ()
void onRemoveSelected ()
void onPanelDropped (ResizablePanel *dragged, ResizablePanel *target, bool insertBefore)
void saveLayout ()
void loadLayout ()
void addDefaultPanels ()
bool loadLayoutInternal ()
void clearPanels ()

Private Member Functions

void addPanelInstance (const QString &typeId, AbstractAnalyticsPanelWidget *panel, const QJsonObject &cfg={})

Private Attributes

QVBoxLayout * layout
QWidget * controlContainer
QHBoxLayout * controlLayout
QPushButton * addButton
QPushButton * removeButton
QPushButton * saveButton
QPushButton * loadButton
QScrollArea * scrollArea
QWidget * panelContainer
QVBoxLayout * panelLayout
QVector< ResizablePanel * > panelWrappers
ResizablePanelselectedWrapper = nullptr
DeckListStatisticsAnalyzerstatsAnalyzer
LayoutInspector * insp = nullptr

Constructor & Destructor Documentation

◆ DeckAnalyticsWidget()

DeckAnalyticsWidget::DeckAnalyticsWidget ( QWidget * parent,
DeckListStatisticsAnalyzer * analyzer )
explicit
Here is the call graph for this function:

Member Function Documentation

◆ addDefaultPanels

void DeckAnalyticsWidget::addDefaultPanels ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ addPanelInstance()

void DeckAnalyticsWidget::addPanelInstance ( const QString & typeId,
AbstractAnalyticsPanelWidget * panel,
const QJsonObject & cfg = {} )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ clearPanels

void DeckAnalyticsWidget::clearPanels ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ eventFilter()

bool DeckAnalyticsWidget::eventFilter ( QObject * obj,
QEvent * event )
overrideprotected
Here is the call graph for this function:

◆ indexOfSelectedWrapper()

int DeckAnalyticsWidget::indexOfSelectedWrapper ( ) const
protected
Here is the caller graph for this function:

◆ loadLayout

void DeckAnalyticsWidget::loadLayout ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ loadLayoutInternal

bool DeckAnalyticsWidget::loadLayoutInternal ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ onAddPanel

void DeckAnalyticsWidget::onAddPanel ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ onPanelDropped

void DeckAnalyticsWidget::onPanelDropped ( ResizablePanel * dragged,
ResizablePanel * target,
bool insertBefore )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ onRemoveSelected

void DeckAnalyticsWidget::onRemoveSelected ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ retranslateUi()

void DeckAnalyticsWidget::retranslateUi ( )
Here is the caller graph for this function:

◆ saveLayout

void DeckAnalyticsWidget::saveLayout ( )
privateslot
Here is the caller graph for this function:

◆ selectWrapper()

void DeckAnalyticsWidget::selectWrapper ( ResizablePanel * panel)
protected
Here is the caller graph for this function:

◆ updateDisplays

void DeckAnalyticsWidget::updateDisplays ( )
slot

Member Data Documentation

◆ addButton

QPushButton* DeckAnalyticsWidget::addButton
private

◆ controlContainer

QWidget* DeckAnalyticsWidget::controlContainer
private

◆ controlLayout

QHBoxLayout* DeckAnalyticsWidget::controlLayout
private

◆ insp

LayoutInspector* DeckAnalyticsWidget::insp = nullptr
private

◆ layout

QVBoxLayout* DeckAnalyticsWidget::layout
private

◆ loadButton

QPushButton* DeckAnalyticsWidget::loadButton
private

◆ panelContainer

QWidget* DeckAnalyticsWidget::panelContainer
private

◆ panelLayout

QVBoxLayout* DeckAnalyticsWidget::panelLayout
private

◆ panelWrappers

QVector<ResizablePanel *> DeckAnalyticsWidget::panelWrappers
private

◆ removeButton

QPushButton* DeckAnalyticsWidget::removeButton
private

◆ saveButton

QPushButton* DeckAnalyticsWidget::saveButton
private

◆ scrollArea

QScrollArea* DeckAnalyticsWidget::scrollArea
private

◆ selectedWrapper

ResizablePanel* DeckAnalyticsWidget::selectedWrapper = nullptr
private

◆ statsAnalyzer

DeckListStatisticsAnalyzer* DeckAnalyticsWidget::statsAnalyzer
private

The documentation for this class was generated from the following files: