1#ifndef WINDOW_DECKEDITORVISUAL_H
2#define WINDOW_DECKEDITORVISUAL_H
107 [[nodiscard]] QString
getTabText()
const override;
AbstractTabDeckEditor(TabSupervisor *_tabSupervisor)
Constructs an AbstractTabDeckEditor.
Definition abstract_tab_deck_editor.cpp:57
Represents a specific card instance, defined by its CardInfo and a particular printing.
Definition exact_card.h:19
void onDeckChanged() override
Refresh UI when the deck changes.
Definition tab_deck_editor_visual.cpp:94
void refreshShortcuts() override
Refresh keyboard shortcuts for this tab.
Definition tab_deck_editor_visual.cpp:273
void createSearchAndDatabaseFrame()
Create search and database display frame.
QWidget * centralWidget
Central widget of the editor.
Definition tab_deck_editor_visual.h:89
void retranslateUi() override
Retranslate UI strings (for i18n support).
Definition tab_deck_editor_visual.cpp:318
void processMainboardCardClick(const QMouseEvent *event, const ExactCard &card, const QString &zoneName)
Handle card clicks in the mainboard visual deck.
Definition tab_deck_editor_visual.cpp:182
void restartLayout() override
Reset and restart the layout to default.
Definition tab_deck_editor_visual.cpp:293
TabDeckEditorVisual(TabSupervisor *_tabSupervisor)
Constructs a visual deck editor tab.
Definition tab_deck_editor_visual.cpp:43
QHBoxLayout * searchLayout
Layout for search bar.
Definition tab_deck_editor_visual.h:87
void processDatabaseCardClick(const QMouseEvent *event, const ExactCard &card)
Handle card clicks in the database visual display.
Definition tab_deck_editor_visual.cpp:248
void setDeck(const LoadedDeck &_deck) override
Sets the deck for this tab and selects the sub-tab to open on startup, per the "Visual deck editor st...
Definition tab_deck_editor_visual.cpp:103
bool actSaveDeckAs() override
Save the deck under a new name.
Definition tab_deck_editor_visual.cpp:264
QVBoxLayout * searchAndDatabaseFrame
Layout for search and database display.
Definition tab_deck_editor_visual.h:86
TabDeckEditorVisualTabWidget * tabContainer
Tab container holding different visual widgets.
Definition tab_deck_editor_visual.h:83
void changeModelIndexAndCardInfo(const ExactCard &activeCard)
Update the currently selected card in the deck and UI.
Definition tab_deck_editor_visual.cpp:163
bool eventFilter(QObject *o, QEvent *e) override
Synchronize dock state with menu items.
Definition tab_deck_editor_visual.cpp:346
void createCentralFrame()
Create central frame for visual widgets.
Definition tab_deck_editor_visual.cpp:62
void changeModelIndexToCard(const ExactCard &activeCard)
Change the deck view selection to a specific card.
Definition tab_deck_editor_visual.cpp:170
void createDeckAnalyticsDock()
Create the deck analytics dock widget.
QString getTabText() const override
Get the display text for the tab.
Definition tab_deck_editor_visual.cpp:153
void loadLayout() override
Load the editor layout from settings.
Definition tab_deck_editor_visual.cpp:280
QVBoxLayout * centralFrame
Layout for central widgets.
Definition tab_deck_editor_visual.h:85
QDockWidget * searchAndDatabaseDock
Dock widget for search/database display.
Definition tab_deck_editor_visual.h:88
void createMenus() override
Setup menus for this visual deck editor.
Definition tab_deck_editor_visual.cpp:130
Definition tab_supervisor.h:84
Represents a deck that was loaded from somewhere. Contains the DeckList itself, as well as info about...
Definition loaded_deck.h:14