Cockatrice 2026-09-01-Development-3.1.0-beta.10
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
PlaymatCollectionDialog Class Reference

Dialog for editing the user-level playmat collection. More...

#include <playmat_collection_dialog.h>

Inheritance diagram for PlaymatCollectionDialog:
[legend]
Collaboration diagram for PlaymatCollectionDialog:
[legend]

Public Member Functions

 PlaymatCollectionDialog (QWidget *parent=nullptr)
void accept () override

Private Slots

void addPlaymat ()
void editPlaymat ()
void removePlaymat ()
void movePlaymatUp ()
void movePlaymatDown ()
void selectionChanged ()

Private Member Functions

void setupUi ()
void retranslateUi ()
int currentRow () const

Private Attributes

QList< PlaymatInfoplaymats
 Working copy edited by the dialog.
QListWidget * playmatList
QComboBox * modeCombo
QLabel * modeLabel
QPushButton * addButton
QPushButton * editButton
QPushButton * removeButton
QPushButton * moveUpButton
QPushButton * moveDownButton

Detailed Description

Dialog for editing the user-level playmat collection.

The collection is the fallback used when a deck has no playmat of its own. It supports multiple entries and a pick mode (always first / round-robin / random). The dialog edits a working copy and writes it to the settings only when accepted.

Constructor & Destructor Documentation

◆ PlaymatCollectionDialog()

PlaymatCollectionDialog::PlaymatCollectionDialog ( QWidget * parent = nullptr)
explicit
Here is the call graph for this function:

Member Function Documentation

◆ accept()

void PlaymatCollectionDialog::accept ( )
override
Here is the call graph for this function:
Here is the caller graph for this function:

◆ addPlaymat

void PlaymatCollectionDialog::addPlaymat ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ currentRow()

int PlaymatCollectionDialog::currentRow ( ) const
private
Here is the caller graph for this function:

◆ editPlaymat

void PlaymatCollectionDialog::editPlaymat ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ movePlaymatDown

void PlaymatCollectionDialog::movePlaymatDown ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ movePlaymatUp

void PlaymatCollectionDialog::movePlaymatUp ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ removePlaymat

void PlaymatCollectionDialog::removePlaymat ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ retranslateUi()

void PlaymatCollectionDialog::retranslateUi ( )
private
Here is the caller graph for this function:

◆ selectionChanged

void PlaymatCollectionDialog::selectionChanged ( )
privateslot
Here is the caller graph for this function:

◆ setupUi()

void PlaymatCollectionDialog::setupUi ( )
private
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ addButton

QPushButton* PlaymatCollectionDialog::addButton
private

◆ editButton

QPushButton* PlaymatCollectionDialog::editButton
private

◆ modeCombo

QComboBox* PlaymatCollectionDialog::modeCombo
private

◆ modeLabel

QLabel* PlaymatCollectionDialog::modeLabel
private

◆ moveDownButton

QPushButton* PlaymatCollectionDialog::moveDownButton
private

◆ moveUpButton

QPushButton* PlaymatCollectionDialog::moveUpButton
private

◆ playmatList

QListWidget* PlaymatCollectionDialog::playmatList
private

◆ playmats

QList<PlaymatInfo> PlaymatCollectionDialog::playmats
private

Working copy edited by the dialog.

◆ removeButton

QPushButton* PlaymatCollectionDialog::removeButton
private

The documentation for this class was generated from the following files: