Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
printing_selector_card_display_widget.h
Go to the documentation of this file.
1
6
7#ifndef PRINTING_SELECTOR_CARD_DISPLAY_WIDGET_H
8#define PRINTING_SELECTOR_CARD_DISPLAY_WIDGET_H
9
11
12// IWYU pragma: keep
13// ZoneCounts appears inside a QMap in a slot signature, so the moc-generated
14// code needs the complete type.
15#include "printing_selector.h"
16
17#include <QWidget>
18#include <qtmetamacros.h>
19
23class QSlider;
24class QString;
25class QVBoxLayout;
27struct ZoneCounts;
28template <class Key, class T> class QMap;
29
31{
32 Q_OBJECT
33
34public:
36 AbstractTabDeckEditor *deckEditor,
37 DeckStateManager *deckStateManager,
38 QSlider *cardSizeSlider,
39 const ExactCard &rootCard);
40
41public slots:
43 void updateCardAmounts(const QMap<QString, ZoneCounts> &uuidToAmounts);
44
45 void resizeEvent(QResizeEvent *event) override;
46
47signals:
49
50private:
52 QVBoxLayout *layout;
55};
56
57#endif // PRINTING_SELECTOR_CARD_DISPLAY_WIDGET_H
AbstractTabDeckEditor is the base class for all deck editor tabs.
Definition abstract_tab_deck_editor.h:77
This class centralizes the management of the state of the deck in the deck editor tab....
Definition deck_state_manager.h:32
Represents a specific card instance, defined by its CardInfo and a particular printing.
Definition exact_card.h:24
PrintingSelectorCardDisplayWidget(QWidget *parent, AbstractTabDeckEditor *deckEditor, DeckStateManager *deckStateManager, QSlider *cardSizeSlider, const ExactCard &rootCard)
Constructs a PrintingSelectorCardDisplayWidget to display card information.
Definition printing_selector_card_display_widget.cpp:36
void updateCardAmounts(const QMap< QString, ZoneCounts > &uuidToAmounts)
Definition printing_selector_card_display_widget.cpp:81
SetNameAndCollectorsNumberDisplayWidget * setNameAndCollectorsNumberDisplayWidget
Definition printing_selector_card_display_widget.h:53
void resizeEvent(QResizeEvent *event) override
Definition printing_selector_card_display_widget.cpp:87
ExactCard rootCard
Definition printing_selector_card_display_widget.h:51
void clampSetNameToPicture()
Adjusts the width of the set name display to fit the card overlay widget.
Definition printing_selector_card_display_widget.cpp:73
QVBoxLayout * layout
Definition printing_selector_card_display_widget.h:52
PrintingSelectorCardOverlayWidget * overlayWidget
Definition printing_selector_card_display_widget.h:54
Definition printing_selector_card_overlay_widget.h:26
Definition game.h:18
A widget to display the set name and collectors number with adjustable font size.
Definition set_name_and_collectors_number_display_widget.h:19
Definition printing_selector.h:28