1#ifndef WINDOW_DECKEDITORVISUAL_H
2#define WINDOW_DECKEDITORVISUAL_H
8#include <qtmetamacros.h>
118 [[nodiscard]] QString
getTabText()
const override;
Defines the AbstractTabDeckEditor class, which provides a base for deck editor tabs in the applicatio...
AbstractTabDeckEditor(TabSupervisor *_tabSupervisor)
Constructs an AbstractTabDeckEditor.
Definition abstract_tab_deck_editor.cpp:75
Represents a specific card instance, defined by its CardInfo and a particular printing.
Definition exact_card.h:24
void onDeckChanged() override
Refresh UI when the deck changes.
Definition tab_deck_editor_visual.cpp:112
void refreshShortcuts() override
Refresh keyboard shortcuts for this tab.
Definition tab_deck_editor_visual.cpp:304
void createSearchAndDatabaseFrame()
Create search and database display frame.
QWidget * centralWidget
Central widget of the editor.
Definition tab_deck_editor_visual.h:100
void retranslateUi() override
Retranslate UI strings (for i18n support).
Definition tab_deck_editor_visual.cpp:349
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:200
QString createNewZone()
Prompts for and creates a new custom deck zone.
Definition tab_deck_editor_visual.cpp:291
void restartLayout() override
Reset and restart the layout to default.
Definition tab_deck_editor_visual.cpp:324
TabDeckEditorVisual(TabSupervisor *_tabSupervisor)
Constructs a visual deck editor tab.
Definition tab_deck_editor_visual.cpp:60
QHBoxLayout * searchLayout
Layout for search bar.
Definition tab_deck_editor_visual.h:98
void processDatabaseCardClick(const QMouseEvent *event, const ExactCard &card)
Handle card clicks in the database visual display.
Definition tab_deck_editor_visual.cpp:266
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:121
bool actSaveDeckAs() override
Save the deck under a new name.
Definition tab_deck_editor_visual.cpp:282
QVBoxLayout * searchAndDatabaseFrame
Layout for search and database display.
Definition tab_deck_editor_visual.h:97
TabDeckEditorVisualTabWidget * tabContainer
Tab container holding different visual widgets.
Definition tab_deck_editor_visual.h:94
void changeModelIndexAndCardInfo(const ExactCard &activeCard)
Update the currently selected card in the deck and UI.
Definition tab_deck_editor_visual.cpp:181
bool eventFilter(QObject *o, QEvent *e) override
Synchronize dock state with menu items.
Definition tab_deck_editor_visual.cpp:377
void createCentralFrame()
Create central frame for visual widgets.
Definition tab_deck_editor_visual.cpp:79
void changeModelIndexToCard(const ExactCard &activeCard)
Change the deck view selection to a specific card.
Definition tab_deck_editor_visual.cpp:188
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:171
void loadLayout() override
Load the editor layout from settings.
Definition tab_deck_editor_visual.cpp:311
QVBoxLayout * centralFrame
Layout for central widgets.
Definition tab_deck_editor_visual.h:96
QDockWidget * searchAndDatabaseDock
Dock widget for search/database display.
Definition tab_deck_editor_visual.h:99
void createMenus() override
Setup menus for this visual deck editor.
Definition tab_deck_editor_visual.cpp:148
Definition tab_supervisor.h:92
Represents a deck that was loaded from somewhere. Contains the DeckList itself, as well as info about...
Definition loaded_deck.h:14