Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
deck_list_model_custom_zones.h File Reference
#include <../../../../libcockatrice_deck_list/libcockatrice/deck_list/tree/inner_deck_list_node.h>
#include <QList>
#include <QPair>
#include <QString>
#include <qnamespace.h>
Include dependency graph for deck_list_model_custom_zones.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  DecklistModelSubZoneNode
 Model node representing a custom zone nested under a board zone. More...

Namespaces

namespace  DeckListModelCustomZones
 Tree-level helpers for the deck list model's custom-zone shadow nodes.

Functions

bool DeckListModelCustomZones::isCustomZone (const AbstractDecklistNode *node)
 Whether the given node is a custom zone (as opposed to a criteria group).
InnerDecklistNode * DeckListModelCustomZones::findGroupChild (InnerDecklistNode *parent, const QString &name)
 Finds a criteria-group child of parent by name, skipping custom zones.
void DeckListModelCustomZones::mirrorCustomZones (const InnerDecklistNode *deckBoardZone, InnerDecklistNode *shadowBoardZone)
 Mirrors the custom zones of a deck board zone into its shadow board node.
DecklistModelSubZoneNode * DeckListModelCustomZones::findSubZoneByName (InnerDecklistNode *root, const QString &zoneName)
 Finds a custom zone in the shadow tree by deck-unique name.
QList< QPair< int, int > > DeckListModelCustomZones::sortWithCustomZonesLast (InnerDecklistNode *root, InnerDecklistNode *node, Qt::SortOrder order)
 Sorts a shadow node's children, keeping a board's custom zones last.