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

#include <visual_deck_editor_widget.h>

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

Public Slots

void decklistDataChanged (QModelIndex topLeft, QModelIndex bottomRight)
void updateZoneWidgets ()
void cleanupInvalidZones (DeckCardZoneDisplayWidget *displayWidget)
void onCardAddition (const QModelIndex &parent, int first, int last)
void onCardRemoval (const QModelIndex &parent, int first, int last)
void constructZoneWidgetForIndex (QPersistentModelIndex persistent)
void constructZoneWidgetsFromDeckListModel ()

Signals

void activeCardChanged (const ExactCard &activeCard)
void activeGroupCriteriaChanged (QString activeGroupCriteria)
void activeSortCriteriaChanged (QStringList activeSortCriteria)
void cardClicked (QMouseEvent *event, CardInfoPictureWithTextOverlayWidget *instance, QString zoneName)
void cardAdditionRequested (const ExactCard &card)
void displayTypeChanged (DisplayType displayType)

Public Member Functions

 VisualDeckEditorWidget (QWidget *parent, DeckListModel *deckListModel, QItemSelectionModel *selectionModel)
void retranslateUi ()
void clearAllDisplayWidgets ()
void resizeEvent (QResizeEvent *event) override
void setDeckList (const DeckList &_deckListModel)
void setSelectionModel (QItemSelectionModel *model)
void onSelectionChanged (const QItemSelection &selected, const QItemSelection &deselected)
QItemSelectionModel * getSelectionModel () const

Public Attributes

QLineEdit * searchBar
CardSizeWidgetcardSizeWidget

Protected Slots

void onHover (const ExactCard &hoveredCard)
void onCardClick (QMouseEvent *event, CardInfoPictureWithTextOverlayWidget *instance, QString zoneName)
void decklistModelReset ()

Private Attributes

DeckListModeldeckListModel
QItemSelectionModel * selectionModel
QVBoxLayout * mainLayout
CardDatabaseModelcardDatabaseModel
CardDatabaseDisplayModelcardDatabaseDisplayModel
CardCompleterProxyModelproxyModel
QCompleter * completer
QWidget * displayOptionsAndSearch
QHBoxLayout * displayOptionsAndSearchLayout
VisualDeckDisplayOptionsWidgetdisplayOptionsWidget
QPushButton * searchPushButton
QScrollArea * scrollArea
QWidget * zoneContainer
QVBoxLayout * zoneContainerLayout
QWidget * container
QHash< QPersistentModelIndex, QWidget * > indexToWidgetMap

Constructor & Destructor Documentation

◆ VisualDeckEditorWidget()

VisualDeckEditorWidget::VisualDeckEditorWidget ( QWidget * parent,
DeckListModel * deckListModel,
QItemSelectionModel * selectionModel )
explicit
Here is the call graph for this function:

Member Function Documentation

◆ activeCardChanged

void VisualDeckEditorWidget::activeCardChanged ( const ExactCard & activeCard)
signal
Here is the caller graph for this function:

◆ activeGroupCriteriaChanged

void VisualDeckEditorWidget::activeGroupCriteriaChanged ( QString activeGroupCriteria)
signal
Here is the caller graph for this function:

◆ activeSortCriteriaChanged

void VisualDeckEditorWidget::activeSortCriteriaChanged ( QStringList activeSortCriteria)
signal
Here is the caller graph for this function:

◆ cardAdditionRequested

void VisualDeckEditorWidget::cardAdditionRequested ( const ExactCard & card)
signal
Here is the caller graph for this function:

◆ cardClicked

void VisualDeckEditorWidget::cardClicked ( QMouseEvent * event,
CardInfoPictureWithTextOverlayWidget * instance,
QString zoneName )
signal
Here is the caller graph for this function:

◆ cleanupInvalidZones

void VisualDeckEditorWidget::cleanupInvalidZones ( DeckCardZoneDisplayWidget * displayWidget)
slot
Here is the caller graph for this function:

◆ clearAllDisplayWidgets()

void VisualDeckEditorWidget::clearAllDisplayWidgets ( )
Here is the caller graph for this function:

◆ constructZoneWidgetForIndex

void VisualDeckEditorWidget::constructZoneWidgetForIndex ( QPersistentModelIndex persistent)
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ constructZoneWidgetsFromDeckListModel

void VisualDeckEditorWidget::constructZoneWidgetsFromDeckListModel ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ decklistDataChanged

void VisualDeckEditorWidget::decklistDataChanged ( QModelIndex topLeft,
QModelIndex bottomRight )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ decklistModelReset

void VisualDeckEditorWidget::decklistModelReset ( )
protectedslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ displayTypeChanged

void VisualDeckEditorWidget::displayTypeChanged ( DisplayType displayType)
signal
Here is the caller graph for this function:

◆ getSelectionModel()

QItemSelectionModel * VisualDeckEditorWidget::getSelectionModel ( ) const
inline

◆ onCardAddition

void VisualDeckEditorWidget::onCardAddition ( const QModelIndex & parent,
int first,
int last )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ onCardClick

void VisualDeckEditorWidget::onCardClick ( QMouseEvent * event,
CardInfoPictureWithTextOverlayWidget * instance,
QString zoneName )
protectedslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ onCardRemoval

void VisualDeckEditorWidget::onCardRemoval ( const QModelIndex & parent,
int first,
int last )
slot
Here is the caller graph for this function:

◆ onHover

void VisualDeckEditorWidget::onHover ( const ExactCard & hoveredCard)
protectedslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ onSelectionChanged()

void VisualDeckEditorWidget::onSelectionChanged ( const QItemSelection & selected,
const QItemSelection & deselected )
Here is the caller graph for this function:

◆ resizeEvent()

void VisualDeckEditorWidget::resizeEvent ( QResizeEvent * event)
override

◆ retranslateUi()

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

◆ setDeckList()

void VisualDeckEditorWidget::setDeckList ( const DeckList & _deckListModel)

◆ setSelectionModel()

void VisualDeckEditorWidget::setSelectionModel ( QItemSelectionModel * model)
Here is the call graph for this function:

◆ updateZoneWidgets

void VisualDeckEditorWidget::updateZoneWidgets ( )
slot
Here is the caller graph for this function:

Member Data Documentation

◆ cardDatabaseDisplayModel

CardDatabaseDisplayModel* VisualDeckEditorWidget::cardDatabaseDisplayModel
private

◆ cardDatabaseModel

CardDatabaseModel* VisualDeckEditorWidget::cardDatabaseModel
private

◆ cardSizeWidget

CardSizeWidget* VisualDeckEditorWidget::cardSizeWidget

◆ completer

QCompleter* VisualDeckEditorWidget::completer
private

◆ container

QWidget* VisualDeckEditorWidget::container
private

◆ deckListModel

DeckListModel* VisualDeckEditorWidget::deckListModel
private

◆ displayOptionsAndSearch

QWidget* VisualDeckEditorWidget::displayOptionsAndSearch
private

◆ displayOptionsAndSearchLayout

QHBoxLayout* VisualDeckEditorWidget::displayOptionsAndSearchLayout
private

◆ displayOptionsWidget

VisualDeckDisplayOptionsWidget* VisualDeckEditorWidget::displayOptionsWidget
private

◆ indexToWidgetMap

QHash<QPersistentModelIndex, QWidget *> VisualDeckEditorWidget::indexToWidgetMap
private

◆ mainLayout

QVBoxLayout* VisualDeckEditorWidget::mainLayout
private

◆ proxyModel

CardCompleterProxyModel* VisualDeckEditorWidget::proxyModel
private

◆ scrollArea

QScrollArea* VisualDeckEditorWidget::scrollArea
private

◆ searchBar

QLineEdit* VisualDeckEditorWidget::searchBar

◆ searchPushButton

QPushButton* VisualDeckEditorWidget::searchPushButton
private

◆ selectionModel

QItemSelectionModel* VisualDeckEditorWidget::selectionModel
private

◆ zoneContainer

QWidget* VisualDeckEditorWidget::zoneContainer
private

◆ zoneContainerLayout

QVBoxLayout* VisualDeckEditorWidget::zoneContainerLayout
private

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