Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
printing_selector.h
Go to the documentation of this file.
1
6
7#ifndef PRINTING_SELECTOR_H
8#define PRINTING_SELECTOR_H
9
10#include <QWidget>
12#include <qtmetamacros.h>
13
14class CardSizeWidget;
15class FlowWidget;
17class QCheckBox;
18class QHBoxLayout;
19class QString;
20class QTimer;
21class QVBoxLayout;
23template <class Key, class T> class QMap;
24
25#define BATCH_SIZE 10
26
28{
29 int mainboard = 0;
30 int sideboard = 0;
31 int tokensboard = 0;
32};
33
39
93
94#endif // PRINTING_SELECTOR_H
QSharedPointer< CardInfo > CardInfoPtr
Definition card_info.cpp:15
AbstractTabDeckEditor is the base class for all deck editor tabs.
Definition abstract_tab_deck_editor.h:77
A widget for adjusting card sizes using a slider.
Definition card_size_widget.h:23
This class centralizes the management of the state of the deck in the deck editor tab....
Definition deck_state_manager.h:32
Definition flow_widget.h:27
Definition printing_selector_card_search_widget.h:20
Definition printing_selector_card_selection_widget.h:19
Definition printing_selector_card_sorting_widget.h:26
Definition printing_selector_placeholder_widget.h:11
void printingsInDeckChanged()
Definition printing_selector.cpp:123
CardInfoPtr selectedCard
Definition printing_selector.h:89
void retranslateUi()
Definition printing_selector.cpp:118
AbstractTabDeckEditor * deckEditor
Definition printing_selector.h:87
void nextCardRequested()
int currentIndex
Definition printing_selector.h:91
void updateDisplay()
Updates the display by clearing the layout and loading new sets for the current card.
Definition printing_selector.cpp:175
QWidget * sortAndOptionsContainer
Definition printing_selector.h:78
QCheckBox * navigationCheckBox
Definition printing_selector.h:80
SettingsButtonWidget * displayOptionsWidget
Definition printing_selector.h:77
CardSizeWidget * cardSizeWidget
Definition printing_selector.h:85
FlowWidget * flowWidget
Definition printing_selector.h:84
PrintingSelectorCardSearchWidget * searchBar
Definition printing_selector.h:82
void cardAmountsChanged(const QMap< QString, ZoneCounts > &uuidToAmounts)
DeckStateManager * deckStateManager
Definition printing_selector.h:88
QVBoxLayout * layout
Definition printing_selector.h:76
void setCard(const CardInfoPtr &newCard)
Sets the current card for the selector and updates the display.
Definition printing_selector.cpp:201
PrintingSelectorCardSortingWidget * sortToolBar
Definition printing_selector.h:81
PrintingSelector(QWidget *parent, AbstractTabDeckEditor *deckEditor)
Constructs a PrintingSelector widget to display and manage card printings.
Definition printing_selector.cpp:48
PrintingSelectorPlaceholderWidget * placeholderWidget
Definition printing_selector.h:83
QHBoxLayout * sortAndOptionsLayout
Definition printing_selector.h:79
PrintingSelectorCardSelectionWidget * cardSelectionBar
Definition printing_selector.h:86
void toggleVisibilityNavigationButtons(bool _state)
Toggles the visibility of the navigation buttons.
Definition printing_selector.cpp:278
void prevCardRequested()
void getAllSetsForCurrentCard()
Loads and displays all sets for the current selected card.
Definition printing_selector.cpp:226
QTimer * widgetLoadingBufferTimer
Definition printing_selector.h:90
void updateCardAmounts()
Definition printing_selector.cpp:162
Definition game.h:18
Definition settings_button_widget.h:21
Definition printing_selector.h:28
int sideboard
Definition printing_selector.h:30
int mainboard
Definition printing_selector.h:29
int tokensboard
Definition printing_selector.h:31