Cockatrice 2025-11-30-Development-2.11.0-beta.38
A cross-platform virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
card_set_list.h
Go to the documentation of this file.
1#ifndef COCKATRICE_CARD_SET_LIST_H
2#define COCKATRICE_CARD_SET_LIST_H
3
4#include "card_set.h"
5
6#include <QList>
7
19class CardSetList : public QList<CardSetPtr>
20{
21private:
30
31public:
38 void sortByKey();
39
47 void guessSortKeys();
48
55 void enableAllUnknown();
56
62 void enableAll();
63
70 void markAllAsKnown();
71
78
85
91 QStringList getUnknownSetsNames();
92
99 void defaultSort();
100};
101
102#endif // COCKATRICE_CARD_SET_LIST_H
Internal comparison functor for sorting by sort key.
Definition card_set_list.cpp:4
A list-like container for CardSet objects with extended management methods.
Definition card_set_list.h:20
void defaultSort()
Sorts the list by default rules.
Definition card_set_list.cpp:115
void guessSortKeys()
Reassigns sort keys based on the current order.
Definition card_set_list.cpp:102
QStringList getUnknownSetsNames()
Collects the short names of all sets marked as unknown.
Definition card_set_list.cpp:46
void sortByKey()
Sorts the set list by each set’s assigned sort key.
Definition card_set_list.cpp:17
void markAllAsKnown()
Marks all sets as known and adjusts their enabled state.
Definition card_set_list.cpp:89
int getEnabledSetsNum()
Counts the number of sets that are currently enabled.
Definition card_set_list.cpp:22
void enableAllUnknown()
Enables all sets that are unknown or ignored.
Definition card_set_list.cpp:58
int getUnknownSetsNum()
Counts the number of sets that are currently unknown.
Definition card_set_list.cpp:34
void enableAll()
Enables all sets in the list.
Definition card_set_list.cpp:71