#include <deck_preview_widget.h>
◆ DeckPreviewWidget()
◆ actDeleteFile()
| void DeckPreviewWidget::actDeleteFile |
( |
| ) |
|
|
private |
◆ actRenameDeck()
| void DeckPreviewWidget::actRenameDeck |
( |
| ) |
|
|
private |
◆ actRenameFile()
| void DeckPreviewWidget::actRenameFile |
( |
| ) |
|
|
private |
◆ addSetBannerCardMenu()
| void DeckPreviewWidget::addSetBannerCardMenu |
( |
QMenu * | menu | ) |
|
|
private |
Adds the "Set Banner Card" submenu to the given menu. Does nothing if bannerCardComboBox is null.
- Parameters
-
| menu | The menu to add the submenu to |
◆ createRightClickMenu()
| QMenu * DeckPreviewWidget::createRightClickMenu |
( |
| ) |
|
|
private |
◆ deckLoadRequested
| void DeckPreviewWidget::deckLoadRequested |
( |
const QString & | filePath | ) |
|
|
signal |
◆ enterEvent()
| void DeckPreviewWidget::enterEvent |
( |
QEnterEvent * | event | ) |
|
|
overrideprotected |
◆ getDisplayName()
| QString DeckPreviewWidget::getDisplayName |
( |
| ) |
const |
|
nodiscardprivate |
The display name is given by the deck name, or the filename if the deck name is not set.
◆ imageClickedEvent()
◆ imageDoubleClickedEvent()
◆ openDeckEditor
| void DeckPreviewWidget::openDeckEditor |
( |
const LoadedDeck & | deck | ) |
|
|
signal |
◆ promptFileConversionIfRequired()
| bool DeckPreviewWidget::promptFileConversionIfRequired |
( |
| ) |
|
|
private |
Checks if the deck's file format supports tags. If not, then prompt the user for file conversion.
- Returns
- whether the resulting file can support adding tags
◆ refreshBannerCardText()
| void DeckPreviewWidget::refreshBannerCardText |
( |
| ) |
|
|
private |
Refreshes the banner card text. This also calls refreshBannerCardToolTip, since those two often need to be updated together.
◆ refreshBannerCardToolTip
| void DeckPreviewWidget::refreshBannerCardToolTip |
( |
| ) |
|
|
slot |
◆ reloadIfModified
| void DeckPreviewWidget::reloadIfModified |
( |
| ) |
|
|
slot |
Reloads the deck file if its modification time is newer than the stored one.
Reloads the deck if the file's last modified time has increased since we last checked.
◆ resizeEvent()
| void DeckPreviewWidget::resizeEvent |
( |
QResizeEvent * | event | ) |
|
|
overrideprotected |
◆ retranslateUi()
| void DeckPreviewWidget::retranslateUi |
( |
| ) |
|
◆ row()
| int DeckPreviewWidget::row |
( |
| ) |
const |
|
nodiscardprivate |
The row of this deck in the source model, or -1 if it no longer exists.
◆ setBannerCard
| void DeckPreviewWidget::setBannerCard |
( |
int | | ) |
|
|
slot |
◆ setTags
| void DeckPreviewWidget::setTags |
( |
const QStringList & | tags | ) |
|
|
slot |
◆ syncFromModel
| void DeckPreviewWidget::syncFromModel |
( |
| ) |
|
|
slot |
Re-reads the row's data from the model and syncs every child widget. Connected to the model's dataChanged signal.
Syncs the contents of the child widgets with the current row's data.
◆ updateBannerCardComboBox()
| void DeckPreviewWidget::updateBannerCardComboBox |
( |
const QString & | currentText | ) |
|
|
private |
◆ updateBannerCardComboBoxVisibility
| void DeckPreviewWidget::updateBannerCardComboBoxVisibility |
( |
bool | visible | ) |
|
|
slot |
◆ updateColorIdentityVisibility
| void DeckPreviewWidget::updateColorIdentityVisibility |
( |
bool | visible | ) |
|
|
slot |
◆ updateTagsVisibility
| void DeckPreviewWidget::updateTagsVisibility |
( |
bool | visible | ) |
|
|
slot |
◆ bannerCardComboBox
| QComboBox* DeckPreviewWidget::bannerCardComboBox |
|
private |
◆ bannerCardDisplayWidget
The banner card picture; the parent widget wires its size to the card size setting.
◆ bannerCardLabel
| QLabel* DeckPreviewWidget::bannerCardLabel |
|
private |
◆ colorIdentityWidget
◆ deckTagsDisplayWidget
◆ filePath
| QString DeckPreviewWidget::filePath |
|
private |
◆ fixedWidthChildren
| QList<QWidget *> DeckPreviewWidget::fixedWidthChildren |
|
private |
Children clamped to the picture width on resize.
◆ lastKnownBannerWidth
| int DeckPreviewWidget::lastKnownBannerWidth = -1 |
|
private |
The picture width last applied to the children.
◆ layout
| QVBoxLayout* DeckPreviewWidget::layout |
|
private |
◆ model
◆ visualDeckStorageWidget
The documentation for this class was generated from the following files: