Cockatrice 2025-11-30-Development-2.11.0-beta.38
A cross-platform virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
visual_deck_editor_sample_hand_widget.h
Go to the documentation of this file.
1
6
7#ifndef VISUAL_DECK_EDITOR_SAMPLE_HAND_WIDGET_H
8#define VISUAL_DECK_EDITOR_SAMPLE_HAND_WIDGET_H
9
12
13#include <QPushButton>
14#include <QSpinBox>
15#include <QWidget>
17
19{
20 Q_OBJECT
21public:
23 QList<ExactCard> getRandomCards(int amountToGet);
24
25public slots:
26 void updateDisplay();
27 void setDeckModel(DeckListModel *deckModel);
28 void retranslateUi();
29
30private:
32 QVBoxLayout *layout;
35 QPushButton *resetButton;
36 QSpinBox *handSizeSpinBox;
39};
40
41#endif // VISUAL_DECK_EDITOR_SAMPLE_HAND_WIDGET_H
TODO: Document this.
A widget for adjusting card sizes using a slider.
Definition card_size_widget.h:21
Qt model representing a decklist for use in views (tree/table).
Definition deck_list_model.h:200
Definition flow_widget.h:20
void retranslateUi()
Definition visual_deck_editor_sample_hand_widget.cpp:51
VisualDeckEditorSampleHandWidget(QWidget *parent, DeckListModel *deckListModel)
Definition visual_deck_editor_sample_hand_widget.cpp:10
QSpinBox * handSizeSpinBox
Definition visual_deck_editor_sample_hand_widget.h:36
QList< ExactCard > getRandomCards(int amountToGet)
Definition visual_deck_editor_sample_hand_widget.cpp:77
FlowWidget * flowWidget
Definition visual_deck_editor_sample_hand_widget.h:37
QVBoxLayout * layout
Definition visual_deck_editor_sample_hand_widget.h:32
CardSizeWidget * cardSizeWidget
Definition visual_deck_editor_sample_hand_widget.h:38
DeckListModel * deckListModel
Definition visual_deck_editor_sample_hand_widget.h:31
void setDeckModel(DeckListModel *deckModel)
Definition visual_deck_editor_sample_hand_widget.cpp:57
QWidget * resetAndHandSizeContainerWidget
Definition visual_deck_editor_sample_hand_widget.h:33
QHBoxLayout * resetAndHandSizeLayout
Definition visual_deck_editor_sample_hand_widget.h:34
QPushButton * resetButton
Definition visual_deck_editor_sample_hand_widget.h:35
void updateDisplay()
Definition visual_deck_editor_sample_hand_widget.cpp:64
TODO: Document this.