Cockatrice 2025-11-30-Development-2.11.0-beta.38
A cross-platform virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
DeckViewScene Class Reference

#include <deck_view.h>

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

Signals

void newCardAdded (AbstractCardItem *card)
void sideboardPlanChanged ()

Public Member Functions

 DeckViewScene (QObject *parent=nullptr)
 ~DeckViewScene () override
void setLocked (bool _locked)
bool getLocked () const
void clearContents ()
void setDeck (const DeckList &_deck)
void setOptimalAspectRatio (qreal _optimalAspectRatio)
void rearrangeItems ()
void updateContents ()
QList< MoveCard_ToZone > getSideboardPlan () const
void resetSideboardPlan ()
void applySideboardPlan (const QList< MoveCard_ToZone > &plan)

Private Member Functions

void rebuildTree ()

Private Attributes

bool locked
DeckListdeck
QMap< QString, DeckViewCardContainer * > cardContainers
qreal optimalAspectRatio

Constructor & Destructor Documentation

◆ DeckViewScene()

DeckViewScene::DeckViewScene ( QObject * parent = nullptr)
explicit

◆ ~DeckViewScene()

DeckViewScene::~DeckViewScene ( )
override
Here is the call graph for this function:

Member Function Documentation

◆ applySideboardPlan()

void DeckViewScene::applySideboardPlan ( const QList< MoveCard_ToZone > & plan)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ clearContents()

void DeckViewScene::clearContents ( )
Here is the caller graph for this function:

◆ getLocked()

bool DeckViewScene::getLocked ( ) const
inlinenodiscard

◆ getSideboardPlan()

QList< MoveCard_ToZone > DeckViewScene::getSideboardPlan ( ) const
nodiscard
Here is the call graph for this function:

◆ newCardAdded

void DeckViewScene::newCardAdded ( AbstractCardItem * card)
signal
Here is the caller graph for this function:

◆ rearrangeItems()

void DeckViewScene::rearrangeItems ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rebuildTree()

void DeckViewScene::rebuildTree ( )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ resetSideboardPlan()

void DeckViewScene::resetSideboardPlan ( )
Here is the call graph for this function:

◆ setDeck()

void DeckViewScene::setDeck ( const DeckList & _deck)
Here is the call graph for this function:

◆ setLocked()

void DeckViewScene::setLocked ( bool _locked)
inline

◆ setOptimalAspectRatio()

void DeckViewScene::setOptimalAspectRatio ( qreal _optimalAspectRatio)
inline

◆ sideboardPlanChanged

void DeckViewScene::sideboardPlanChanged ( )
signal
Here is the caller graph for this function:

◆ updateContents()

void DeckViewScene::updateContents ( )
Here is the call graph for this function:

Member Data Documentation

◆ cardContainers

QMap<QString, DeckViewCardContainer *> DeckViewScene::cardContainers
private

◆ deck

DeckList* DeckViewScene::deck
private

◆ locked

bool DeckViewScene::locked
private

◆ optimalAspectRatio

qreal DeckViewScene::optimalAspectRatio
private

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