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

#include <deck_editor_deck_dock_widget.h>

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

Public Slots

void cleanDeck ()
void updateBannerCardComboBox ()
void setDeck (DeckLoader *_deck)
void syncDisplayWidgetsToModel ()
void sortDeckModelToDeckView ()
DeckLoader * getDeckLoader ()
DeckListgetDeckList ()
void actIncrement ()
bool swapCard (const QModelIndex &idx)
void actDecrementCard (const ExactCard &card, QString zoneName)
void actDecrementSelection ()
void actSwapCard ()
void actRemoveCard ()
void offsetCountAtIndex (const QModelIndex &idx, int offset)

Signals

void nameChanged ()
void commentsChanged ()
void hashChanged ()
void deckChanged ()
void deckModified ()
void requestDeckHistorySave (const QString &modificationReason)
void requestDeckHistoryClear ()
void cardChanged (const ExactCard &_card)

Public Member Functions

 DeckEditorDeckDockWidget (AbstractTabDeckEditor *parent)
void createDeckDock ()
ExactCard getCurrentCard ()
void retranslateUi ()
QString getDeckName ()
QString getSimpleDeckName ()
QComboBox * getGroupByComboBox ()
QItemSelectionModel * getSelectionModel () const

Public Attributes

DeckLoader * deckLoader
DeckListStyleProxyproxy
DeckListModeldeckModel
QTreeView * deckView
QComboBox * bannerCardComboBox

Private Slots

void decklistCustomMenu (QPoint point)
void updateCard (QModelIndex, const QModelIndex &current)
void updateName (const QString &name)
void updateComments ()
void setBannerCard (int)
void syncDeckListBannerCardWithComboBox ()
void updateHash ()
void refreshShortcuts ()
void updateShowBannerCardComboBox (bool visible)
void updateShowTagsWidget (bool visible)
void syncBannerCardComboBoxSelectionWithDeck ()
void expandAll ()

Private Member Functions

void recursiveExpand (const QModelIndex &index)
QModelIndexList getSelectedCardNodes () const

Private Attributes

AbstractTabDeckEditordeckEditor
DeckListHistoryManagerWidgethistoryManagerWidget
KeySignals deckViewKeySignals
QLabel * nameLabel
LineEditUnfocusablenameEdit
QTimer * nameDebounceTimer
SettingsButtonWidgetquickSettingsWidget
QCheckBox * showBannerCardCheckBox
QCheckBox * showTagsWidgetCheckBox
QLabel * commentsLabel
QTextEdit * commentsEdit
QTimer * commentsDebounceTimer
QLabel * bannerCardLabel
DeckPreviewDeckTagsDisplayWidgetdeckTagsDisplayWidget
QLabel * hashLabel1
LineEditUnfocusablehashLabel
QLabel * activeGroupCriteriaLabel
QComboBox * activeGroupCriteriaComboBox
QAction * aRemoveCard
QAction * aIncrement
QAction * aDecrement
QAction * aSwapCard

Constructor & Destructor Documentation

◆ DeckEditorDeckDockWidget()

DeckEditorDeckDockWidget::DeckEditorDeckDockWidget ( AbstractTabDeckEditor * parent)
explicit
Here is the call graph for this function:

Member Function Documentation

◆ actDecrementCard

void DeckEditorDeckDockWidget::actDecrementCard ( const ExactCard & card,
QString zoneName )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actDecrementSelection

void DeckEditorDeckDockWidget::actDecrementSelection ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actIncrement

void DeckEditorDeckDockWidget::actIncrement ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actRemoveCard

void DeckEditorDeckDockWidget::actRemoveCard ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actSwapCard

void DeckEditorDeckDockWidget::actSwapCard ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ cardChanged

void DeckEditorDeckDockWidget::cardChanged ( const ExactCard & _card)
signal
Here is the caller graph for this function:

◆ cleanDeck

void DeckEditorDeckDockWidget::cleanDeck ( )
slot

Resets the tab to the state for a blank new tab.

Here is the call graph for this function:

◆ commentsChanged

void DeckEditorDeckDockWidget::commentsChanged ( )
signal
Here is the caller graph for this function:

◆ createDeckDock()

void DeckEditorDeckDockWidget::createDeckDock ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ deckChanged

void DeckEditorDeckDockWidget::deckChanged ( )
signal
Here is the caller graph for this function:

◆ decklistCustomMenu

void DeckEditorDeckDockWidget::decklistCustomMenu ( QPoint point)
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ deckModified

void DeckEditorDeckDockWidget::deckModified ( )
signal
Here is the caller graph for this function:

◆ expandAll

void DeckEditorDeckDockWidget::expandAll ( )
privateslot
Here is the caller graph for this function:

◆ getCurrentCard()

ExactCard DeckEditorDeckDockWidget::getCurrentCard ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getDeckList

DeckList * DeckEditorDeckDockWidget::getDeckList ( )
slot

◆ getDeckLoader

DeckLoader * DeckEditorDeckDockWidget::getDeckLoader ( )
slot

◆ getDeckName()

QString DeckEditorDeckDockWidget::getDeckName ( )
inline

◆ getGroupByComboBox()

QComboBox * DeckEditorDeckDockWidget::getGroupByComboBox ( )
inline

◆ getSelectedCardNodes()

QModelIndexList DeckEditorDeckDockWidget::getSelectedCardNodes ( ) const
nodiscardprivate

Gets the index of all the currently selected card nodes in the decklist table. The list is in reverse order of the visual selection, so that rows can be deleted while iterating over them.

Returns
A model index list containing all selected card nodes
Here is the caller graph for this function:

◆ getSelectionModel()

QItemSelectionModel * DeckEditorDeckDockWidget::getSelectionModel ( ) const
inlinenodiscard
Here is the caller graph for this function:

◆ getSimpleDeckName()

QString DeckEditorDeckDockWidget::getSimpleDeckName ( )
inline

◆ hashChanged

void DeckEditorDeckDockWidget::hashChanged ( )
signal
Here is the caller graph for this function:

◆ nameChanged

void DeckEditorDeckDockWidget::nameChanged ( )
signal
Here is the caller graph for this function:

◆ offsetCountAtIndex

void DeckEditorDeckDockWidget::offsetCountAtIndex ( const QModelIndex & idx,
int offset )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ recursiveExpand()

void DeckEditorDeckDockWidget::recursiveExpand ( const QModelIndex & index)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ refreshShortcuts

void DeckEditorDeckDockWidget::refreshShortcuts ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ requestDeckHistoryClear

void DeckEditorDeckDockWidget::requestDeckHistoryClear ( )
signal
Here is the caller graph for this function:

◆ requestDeckHistorySave

void DeckEditorDeckDockWidget::requestDeckHistorySave ( const QString & modificationReason)
signal
Here is the caller graph for this function:

◆ retranslateUi()

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

◆ setBannerCard

void DeckEditorDeckDockWidget::setBannerCard ( int )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setDeck

void DeckEditorDeckDockWidget::setDeck ( DeckLoader * _deck)
slot

Sets the currently active deck for this tab

Parameters
_deckThe deck. Takes ownership of the object
Here is the call graph for this function:

◆ sortDeckModelToDeckView

void DeckEditorDeckDockWidget::sortDeckModelToDeckView ( )
slot
Here is the caller graph for this function:

◆ swapCard

bool DeckEditorDeckDockWidget::swapCard ( const QModelIndex & currentIndex)
slot

Swaps the card at the index between the maindeck and sideboard

Parameters
currentIndexThe index to swap.
Returns
True if the swap was successful
Here is the call graph for this function:
Here is the caller graph for this function:

◆ syncBannerCardComboBoxSelectionWithDeck

void DeckEditorDeckDockWidget::syncBannerCardComboBoxSelectionWithDeck ( )
privateslot
Here is the caller graph for this function:

◆ syncDeckListBannerCardWithComboBox

void DeckEditorDeckDockWidget::syncDeckListBannerCardWithComboBox ( )
privateslot
Here is the caller graph for this function:

◆ syncDisplayWidgetsToModel

void DeckEditorDeckDockWidget::syncDisplayWidgetsToModel ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateBannerCardComboBox

void DeckEditorDeckDockWidget::updateBannerCardComboBox ( )
slot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateCard

void DeckEditorDeckDockWidget::updateCard ( QModelIndex ,
const QModelIndex & current )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateComments

void DeckEditorDeckDockWidget::updateComments ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateHash

void DeckEditorDeckDockWidget::updateHash ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateName

void DeckEditorDeckDockWidget::updateName ( const QString & name)
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateShowBannerCardComboBox

void DeckEditorDeckDockWidget::updateShowBannerCardComboBox ( bool visible)
privateslot
Here is the caller graph for this function:

◆ updateShowTagsWidget

void DeckEditorDeckDockWidget::updateShowTagsWidget ( bool visible)
privateslot
Here is the caller graph for this function:

Member Data Documentation

◆ activeGroupCriteriaComboBox

QComboBox* DeckEditorDeckDockWidget::activeGroupCriteriaComboBox
private

◆ activeGroupCriteriaLabel

QLabel* DeckEditorDeckDockWidget::activeGroupCriteriaLabel
private

◆ aDecrement

QAction * DeckEditorDeckDockWidget::aDecrement
private

◆ aIncrement

QAction * DeckEditorDeckDockWidget::aIncrement
private

◆ aRemoveCard

QAction* DeckEditorDeckDockWidget::aRemoveCard
private

◆ aSwapCard

QAction * DeckEditorDeckDockWidget::aSwapCard
private

◆ bannerCardComboBox

QComboBox* DeckEditorDeckDockWidget::bannerCardComboBox

◆ bannerCardLabel

QLabel* DeckEditorDeckDockWidget::bannerCardLabel
private

◆ commentsDebounceTimer

QTimer* DeckEditorDeckDockWidget::commentsDebounceTimer
private

◆ commentsEdit

QTextEdit* DeckEditorDeckDockWidget::commentsEdit
private

◆ commentsLabel

QLabel* DeckEditorDeckDockWidget::commentsLabel
private

◆ deckEditor

AbstractTabDeckEditor* DeckEditorDeckDockWidget::deckEditor
private

◆ deckLoader

DeckLoader* DeckEditorDeckDockWidget::deckLoader

◆ deckModel

DeckListModel* DeckEditorDeckDockWidget::deckModel

◆ deckTagsDisplayWidget

DeckPreviewDeckTagsDisplayWidget* DeckEditorDeckDockWidget::deckTagsDisplayWidget
private

◆ deckView

QTreeView* DeckEditorDeckDockWidget::deckView

◆ deckViewKeySignals

KeySignals DeckEditorDeckDockWidget::deckViewKeySignals
private

◆ hashLabel

LineEditUnfocusable* DeckEditorDeckDockWidget::hashLabel
private

◆ hashLabel1

QLabel* DeckEditorDeckDockWidget::hashLabel1
private

◆ historyManagerWidget

DeckListHistoryManagerWidget* DeckEditorDeckDockWidget::historyManagerWidget
private

◆ nameDebounceTimer

QTimer* DeckEditorDeckDockWidget::nameDebounceTimer
private

◆ nameEdit

LineEditUnfocusable* DeckEditorDeckDockWidget::nameEdit
private

◆ nameLabel

QLabel* DeckEditorDeckDockWidget::nameLabel
private

◆ proxy

DeckListStyleProxy* DeckEditorDeckDockWidget::proxy

◆ quickSettingsWidget

SettingsButtonWidget* DeckEditorDeckDockWidget::quickSettingsWidget
private

◆ showBannerCardCheckBox

QCheckBox* DeckEditorDeckDockWidget::showBannerCardCheckBox
private

◆ showTagsWidgetCheckBox

QCheckBox* DeckEditorDeckDockWidget::showTagsWidgetCheckBox
private

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