![]() |
Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
|
#include <deck_editor_deck_dock_widget.h>
Public Slots | |
| void | selectPrevCard () |
| void | selectNextCard () |
| void | updateBannerCardComboBox () |
| void | syncDisplayWidgetsToModel () |
| void | actAddCard (const ExactCard &card, const QString &zoneName) |
| void | actIncrementSelection () |
| void | actDecrementCard (const ExactCard &card, QString zoneName) |
| void | actDecrementSelection () |
| void | actSwapCard (const ExactCard &card, const QString &zoneName) |
| void | actSwapSelection () |
| void | actRemoveCard () |
| void | initializeFormats () |
Signals | |
| void | selectedCardChanged (const ExactCard &card) |
Public Member Functions | |
| DeckEditorDeckDockWidget (AbstractTabDeckEditor *parent) | |
| void | createDeckDock () |
| ExactCard | getCurrentCard () |
| void | retranslateUi () |
| QComboBox * | getGroupByComboBox () |
| QItemSelectionModel * | getSelectionModel () const |
Public Attributes | |
| DeckListStyleProxy * | proxy |
| QTreeView * | deckView |
| QComboBox * | bannerCardComboBox |
| QLabel * | playmatLabel |
| QPushButton * | playmatSettingsButton |
Private Slots | |
| void | decklistCustomMenu (QPoint point) |
| void | updateCard (QModelIndex, const QModelIndex ¤t) |
| void | writeName () |
| Writes the contents of the name textBox to the DeckStateManager. | |
| void | writeComments () |
| Writes the contents of the comments textBox to the DeckStateManager. | |
| void | writeBannerCard (int) |
| Writes the selected bannerCard to the DeckStateManager. | |
| void | openPlaymatSettings () |
| void | updatePlaymatLabel () |
| void | applyActiveGroupCriteria () |
| void | setSelectedIndex (const QModelIndex &newCardIndex, bool preserveWidgetFocus) |
| void | updateHash () |
| void | refreshShortcuts () |
| void | updateShowBannerCardComboBox (bool visible) |
| void | updateShowTagsWidget (bool visible) |
| void | syncBannerCardComboBoxSelectionWithDeck () |
| void | changeSelectedCard (int changeBy) |
| Selects a card based on the change direction. | |
| void | recursiveExpand (const QModelIndex &parent) |
| Expands all parents of the given index. | |
| void | expandAll () |
| Fully expands all levels of the deck view. | |
Private Member Functions | |
| DeckListModel * | getModel () const |
| Convenience method to get the underlying model instance from the DeckStateManager. | |
| QModelIndexList | getSelectedCardNodeSourceIndices () const |
| void | offsetCountAtIndex (const QModelIndex &idx, bool isIncrement) |
| Increments or decrements the amount of the card node at the index by 1. | |
| void | addMoveToZoneMenu (QMenu *menu, const QModelIndex &sourceCardIndex, const QString ¤tBoardName) |
| void | addChangeBoardMenu (QMenu *menu, const QString &zoneName) |
| QString | createNewCustomZone (const QString &initialBoardName={}) |
| void | addNewZoneAction (QMenu *menu, const QString &initialBoardName={}) |
Private Attributes | |
| AbstractTabDeckEditor * | deckEditor |
| DeckStateManager * | deckStateManager |
| DeckListHistoryManagerWidget * | historyManagerWidget |
| KeySignals | deckViewKeySignals |
| QLabel * | nameLabel |
| LineEditUnfocusable * | nameEdit |
| QTimer * | nameDebounceTimer |
| SettingsButtonWidget * | quickSettingsWidget |
| QCheckBox * | showBannerCardCheckBox |
| QCheckBox * | showTagsWidgetCheckBox |
| QLabel * | commentsLabel |
| QTextEdit * | commentsEdit |
| QTimer * | commentsDebounceTimer |
| QLabel * | bannerCardLabel |
| DeckPreviewDeckTagsDisplayWidget * | deckTagsDisplayWidget |
| QLabel * | hashLabel1 |
| LineEditUnfocusable * | hashLabel |
| QLabel * | activeGroupCriteriaLabel |
| QComboBox * | activeGroupCriteriaComboBox |
| QLabel * | formatLabel |
| QComboBox * | formatComboBox |
| QAction * | aRemoveCard |
| QAction * | aIncrement |
| QAction * | aDecrement |
| QAction * | aSwapCard |
| CommanderBracketWidget * | commanderBracketWidget |
|
explicit |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
private |
|
private |
|
private |
|
privateslot |
|
privateslot |
Selects a card based on the change direction.
| changeBy | The direction to change, -1 for previous, 1 for next. |
| void DeckEditorDeckDockWidget::createDeckDock | ( | ) |
|
private |
|
privateslot |
|
privateslot |
Fully expands all levels of the deck view.
| ExactCard DeckEditorDeckDockWidget::getCurrentCard | ( | ) |
|
inline |
|
private |
Convenience method to get the underlying model instance from the DeckStateManager.
|
nodiscardprivate |
Gets the source 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.
|
inlinenodiscard |
|
slot |
|
private |
Increments or decrements the amount of the card node at the index by 1.
| idx | The source index |
| isIncrement | If true, increments the count. If false, decrements the count |
|
privateslot |
|
privateslot |
Expands all parents of the given index.
| sourceIndex | The index to expand (model source index) |
|
privateslot |
| void DeckEditorDeckDockWidget::retranslateUi | ( | ) |
|
signal |
|
slot |
|
slot |
|
privateslot |
|
privateslot |
|
slot |
|
slot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
Writes the selected bannerCard to the DeckStateManager.
|
privateslot |
Writes the contents of the comments textBox to the DeckStateManager.
|
privateslot |
Writes the contents of the name textBox to the DeckStateManager.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
| QComboBox* DeckEditorDeckDockWidget::bannerCardComboBox |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
| QTreeView* DeckEditorDeckDockWidget::deckView |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
| QLabel* DeckEditorDeckDockWidget::playmatLabel |
| QPushButton* DeckEditorDeckDockWidget::playmatSettingsButton |
| DeckListStyleProxy* DeckEditorDeckDockWidget::proxy |
|
private |
|
private |
|
private |