![]() |
Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
|
#include <visual_database_display_widget.h>
Public Slots | |
| void | onSearchModelChanged () |
Signals | |
| void | cardClickedDatabaseDisplay (QMouseEvent *event, const ExactCard &card) |
| void | cardHoveredDatabaseDisplay (const ExactCard &hoveredCard) |
| void | cardAdded (const ExactCard &card, const QString &zoneName) |
| void | cardDecremented (const ExactCard &card, const QString &zoneName) |
| void | edhrecRequested (const CardInfoPtr &cardInfo, bool isCommander) |
| void | printingSelectorRequested () |
| void | cardInfoRequested (const ExactCard &cardName) |
Public Member Functions | |
| VisualDatabaseDisplayWidget (QWidget *parent, CardDatabaseModel *database_model, DeckListModel *deckListModel=nullptr) | |
| void | retranslateUi () |
| void | adjustCardsPerPage () |
| void | populateCards () |
| void | loadPage (int start, int end) |
| void | loadNextPage () |
| void | loadCurrentPage () |
| void | sortCardList (const QStringList &properties, Qt::SortOrder order) const |
| void | setDeckList (const DeckList &new_deck_list_model) |
| void | setNewZoneCreator (const std::function< QString()> &creator) |
| Sets the callback used to create a custom zone from the add-to-zone menu. The callback returns the name of the created zone, or an empty string if creation was cancelled. | |
| CardDatabaseDisplayModel * | getDatabaseDisplayModel () |
| CardDatabaseView * | getDatabaseView () |
| FilterTreeModel * | getFilterModel () |
| bool | isVisualDisplayMode () const |
Protected Slots | |
| void | initialize () |
| void | onClick (QMouseEvent *event, const ExactCard &card) |
| void | onHover (const ExactCard &hoveredCard) |
| void | addCardToDisplay (const ExactCard &cardToAdd) |
| void | databaseDataChanged (const QModelIndex &topLeft, const QModelIndex &bottomRight) |
| void | modelDirty () const |
| void | onDisplayModeChanged (bool checked) |
| void | onSelectedCardChanged (const QString &cardName) |
| void | actAddCard (const QString &cardName, const QString &zoneName) |
| void | actDecrementCard (const QString &cardName, const QString &zoneName) |
| void | onRelatedCardClicked (const QString &relatedCard) |
Protected Member Functions | |
| void | resizeEvent (QResizeEvent *event) override |
| void | showEvent (QShowEvent *event) override |
Private Member Functions | |
| void | initializeFilters () |
| void | highlightAllSearchEdit () |
| bool | nearEndOfPage () const |
Private Attributes | |
| FlowWidget * | searchContainer |
| SearchLineEdit * | searchEdit |
| QPushButton * | displayModeButton |
| FilterTreeModel * | filterModel |
| VisualDatabaseDisplayColorFilterWidget * | colorFilterWidget |
| QLabel * | databaseLoadIndicator |
| QToolButton * | clearFilterWidget |
| VisualDatabaseDisplayFilterToolbarWidget * | filterContainer |
| CardDatabaseDisplayModel * | databaseDisplayModel |
| CardDatabaseView * | databaseView |
| std::function< QString()> | newZoneCreator |
| QList< ExactCard > * | cards |
| QVBoxLayout * | mainLayout |
| QScrollArea * | scrollArea |
| FlowWidget * | flowWidget |
| QWidget * | overlapCategories |
| QVBoxLayout * | overlapCategoriesLayout |
| OverlapControlWidget * | overlapControlWidget |
| CardSizeWidget * | cardSizeWidget |
| QTimer * | debounceTimer |
| int | debounceTime = 300 |
| int | currentPage = 0 |
| int | cardsPerPage = 100 |
| bool | filtersInitialized = false |
| bool | initialLoadScheduled = false |
|
explicit |
|
protectedslot |
|
protectedslot |
|
protectedslot |
| void VisualDatabaseDisplayWidget::adjustCardsPerPage | ( | ) |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
protectedslot |
|
signal |
|
inline |
|
inline |
|
inline |
|
private |
|
protectedslot |
|
private |
| bool VisualDatabaseDisplayWidget::isVisualDisplayMode | ( | ) | const |
| void VisualDatabaseDisplayWidget::loadCurrentPage | ( | ) |
| void VisualDatabaseDisplayWidget::loadNextPage | ( | ) |
| void VisualDatabaseDisplayWidget::loadPage | ( | int | start, |
| int | end ) |
|
protectedslot |
|
private |
|
protectedslot |
|
protectedslot |
|
protectedslot |
|
protectedslot |
|
slot |
|
protectedslot |
| void VisualDatabaseDisplayWidget::populateCards | ( | ) |
|
signal |
|
overrideprotected |
| void VisualDatabaseDisplayWidget::retranslateUi | ( | ) |
| void VisualDatabaseDisplayWidget::setDeckList | ( | const DeckList & | new_deck_list_model | ) |
| void VisualDatabaseDisplayWidget::setNewZoneCreator | ( | const std::function< QString()> & | creator | ) |
Sets the callback used to create a custom zone from the add-to-zone menu. The callback returns the name of the created zone, or an empty string if creation was cancelled.
|
overrideprotected |
| void VisualDatabaseDisplayWidget::sortCardList | ( | const QStringList & | properties, |
| Qt::SortOrder | order = Qt::AscendingOrder ) const |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |