Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
tab_deck_editor.h
Go to the documentation of this file.
1#ifndef WINDOW_DECKEDITOR_H
2#define WINDOW_DECKEDITOR_H
3
5
6#include <qtmetamacros.h>
7
8class TabSupervisor;
9
49{
50 Q_OBJECT
51
52protected slots:
54 void loadLayout() override;
55
57 void restartLayout() override;
58
60 void refreshShortcuts() override;
61
63 bool eventFilter(QObject *o, QEvent *e) override;
64
65public:
70 explicit TabDeckEditor(TabSupervisor *_tabSupervisor);
71
73 void retranslateUi() override;
74
76 [[nodiscard]] QString getTabText() const override;
77
79 void createMenus() override;
80};
81
82#endif
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
QString getTabText() const override
Returns the tab text, including modified mark if applicable.
Definition tab_deck_editor.cpp:84
void createMenus() override
Creates menus for deck editing and view options.
Definition tab_deck_editor.cpp:52
void loadLayout() override
Loads the saved layout or default layout.
Definition tab_deck_editor.cpp:129
TabDeckEditor(TabSupervisor *_tabSupervisor)
Constructs a TabDeckEditor instance.
Definition tab_deck_editor.cpp:33
void retranslateUi() override
Retranslates UI elements for localization.
Definition tab_deck_editor.cpp:94
void refreshShortcuts() override
Refreshes shortcuts for this tab from settings.
Definition tab_deck_editor.cpp:120
void restartLayout() override
Resets the layout to default positions and dock states.
Definition tab_deck_editor.cpp:145
bool eventFilter(QObject *o, QEvent *e) override
Handles dock visibility, floating, and top-level changes.
Definition tab_deck_editor.cpp:171
Definition tab_supervisor.h:92