Cockatrice 2026-09-01-Development-3.1.0-beta.10
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
playmat_collection_dialog.h
Go to the documentation of this file.
1#ifndef COCKATRICE_PLAYMAT_COLLECTION_DIALOG_H
2#define COCKATRICE_PLAYMAT_COLLECTION_DIALOG_H
3
4#include <QDialog>
6
7class QComboBox;
8class QLabel;
9class QListWidget;
10class QListWidgetItem;
11class QPushButton;
12
21class PlaymatCollectionDialog : public QDialog
22{
23 Q_OBJECT
24
25public:
26 explicit PlaymatCollectionDialog(QWidget *parent = nullptr);
27
28 void accept() override;
29
30private slots:
31 void addPlaymat();
32 void editPlaymat();
33 void removePlaymat();
34 void movePlaymatUp();
35 void movePlaymatDown();
36 void selectionChanged();
37
38private:
39 void setupUi();
40 void retranslateUi();
41 int currentRow() const;
42
43 QList<PlaymatInfo> playmats;
44 QListWidget *playmatList;
45 QComboBox *modeCombo;
46 QLabel *modeLabel;
47 QPushButton *addButton;
48 QPushButton *editButton;
49 QPushButton *removeButton;
50 QPushButton *moveUpButton;
51 QPushButton *moveDownButton;
52};
53
54#endif // COCKATRICE_PLAYMAT_COLLECTION_DIALOG_H
void movePlaymatUp()
Definition playmat_collection_dialog.cpp:152
void removePlaymat()
Definition playmat_collection_dialog.cpp:141
void selectionChanged()
Definition playmat_collection_dialog.cpp:99
QPushButton * moveUpButton
Definition playmat_collection_dialog.h:50
QLabel * modeLabel
Definition playmat_collection_dialog.h:46
QPushButton * addButton
Definition playmat_collection_dialog.h:47
void movePlaymatDown()
Definition playmat_collection_dialog.cpp:164
void setupUi()
Definition playmat_collection_dialog.cpp:35
QListWidget * playmatList
Definition playmat_collection_dialog.h:44
void retranslateUi()
Definition playmat_collection_dialog.cpp:176
QList< PlaymatInfo > playmats
Working copy edited by the dialog.
Definition playmat_collection_dialog.h:43
void editPlaymat()
Definition playmat_collection_dialog.cpp:122
QComboBox * modeCombo
Definition playmat_collection_dialog.h:45
void accept() override
Definition playmat_collection_dialog.cpp:22
QPushButton * removeButton
Definition playmat_collection_dialog.h:49
QPushButton * moveDownButton
Definition playmat_collection_dialog.h:51
int currentRow() const
Definition playmat_collection_dialog.cpp:30
QPushButton * editButton
Definition playmat_collection_dialog.h:48
void addPlaymat()
Definition playmat_collection_dialog.cpp:108
PlaymatCollectionDialog(QWidget *parent=nullptr)
Definition playmat_collection_dialog.cpp:15