Cockatrice 2026-10-19-Development-3.1.2-beta.2
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>
5#include <QList>
7#include <qtmetamacros.h>
8
9class QComboBox;
10class QLabel;
11class QListWidget;
12class QPushButton;
13class QWidget;
14
23class PlaymatCollectionDialog : public QDialog
24{
25 Q_OBJECT
26
27public:
28 explicit PlaymatCollectionDialog(QWidget *parent = nullptr);
29
30 void accept() override;
31
32private slots:
33 void addPlaymat();
34 void editPlaymat();
35 void removePlaymat();
36 void movePlaymatUp();
37 void movePlaymatDown();
38 void selectionChanged();
39
40private:
41 void setupUi();
42 void retranslateUi();
43 int currentRow() const;
44
46 QListWidget *playmatList;
47 QComboBox *modeCombo;
48 QLabel *modeLabel;
49 QPushButton *addButton;
50 QPushButton *editButton;
51 QPushButton *removeButton;
52 QPushButton *moveUpButton;
53 QPushButton *moveDownButton;
54};
55
56#endif // COCKATRICE_PLAYMAT_COLLECTION_DIALOG_H
void movePlaymatUp()
Definition playmat_collection_dialog.cpp:160
void removePlaymat()
Definition playmat_collection_dialog.cpp:149
void selectionChanged()
Definition playmat_collection_dialog.cpp:107
QPushButton * moveUpButton
Definition playmat_collection_dialog.h:52
QLabel * modeLabel
Definition playmat_collection_dialog.h:48
QPushButton * addButton
Definition playmat_collection_dialog.h:49
void movePlaymatDown()
Definition playmat_collection_dialog.cpp:172
void setupUi()
Definition playmat_collection_dialog.cpp:43
QListWidget * playmatList
Definition playmat_collection_dialog.h:46
void retranslateUi()
Definition playmat_collection_dialog.cpp:184
QList< PlaymatInfo > playmats
Working copy edited by the dialog.
Definition playmat_collection_dialog.h:45
void editPlaymat()
Definition playmat_collection_dialog.cpp:130
QComboBox * modeCombo
Definition playmat_collection_dialog.h:47
void accept() override
Definition playmat_collection_dialog.cpp:30
QPushButton * removeButton
Definition playmat_collection_dialog.h:51
QPushButton * moveDownButton
Definition playmat_collection_dialog.h:53
int currentRow() const
Definition playmat_collection_dialog.cpp:38
QPushButton * editButton
Definition playmat_collection_dialog.h:50
void addPlaymat()
Definition playmat_collection_dialog.cpp:116
PlaymatCollectionDialog(QWidget *parent=nullptr)
Definition playmat_collection_dialog.cpp:23
Definition remote_connection_controller.h:20