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

Dialog for configuring the playmat card art for a deck. More...

#include <playmat_settings_dialog.h>

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

Public Member Functions

 PlaymatSettingsDialog (const CardRef &initialCard={}, const PlaymatParams &initialParams={}, QWidget *parent=nullptr)
CardRef card () const
PlaymatParams params () const

Private Slots

void onCardNameChanged (const QString &name)
void onParamChanged ()
void reloadPreview ()

Private Member Functions

void setupUi ()
void populateProviderCombo (const QString &cardName)
void initializeSearchBar ()
void retranslateUi ()
void setNumericEditorsVisible (bool visible)
QDoubleSpinBox * makeSpinBox (double min, double max, double value, double step)

Private Attributes

QLineEdit * searchBar
QCompleter * completer
CardDatabaseModelcardDatabaseModel
CardDatabaseDisplayModelcardDatabaseDisplayModel
CardSearchModelsearchModel
CardCompleterProxyModelproxyModel
QComboBox * providerComboBox
QMetaObject::Connection pixmapUpdatedConnection
QLabel * cardNameLabel
QLabel * printingLabel
QLabel * previewCaptionLabel
QCheckBox * showNumericEditorsCheck
QFormLayout * controlsForm
QLabel * leftMarginLabel
QLabel * rightMarginLabel
QLabel * verticalOffsetLabel
QLabel * zoomLabel
QGroupBox * controlsGroup
QGroupBox * previewGroup
QPushButton * removeButton
QDoubleSpinBox * marginLSpin
QDoubleSpinBox * marginRSpin
QDoubleSpinBox * verticalOffsetSpin
QDoubleSpinBox * zoomSpin
PlaymatPreviewWidgetpreview
QPixmap currentPixmap
CardRef currentCard
PlaymatParams currentParams

Detailed Description

Dialog for configuring the playmat card art for a deck.

The crop surface is the primary control: drag to pan the visible art, scroll (or +/- keys) to zoom, arrow keys to nudge. Card name and printing are selected below. A checkbox reveals optional numerical editors for the raw PlaymatParams. These controls edit the same stored PlaymatParams that ship in deck files and player properties.

Constructor & Destructor Documentation

◆ PlaymatSettingsDialog()

PlaymatSettingsDialog::PlaymatSettingsDialog ( const CardRef & initialCard = {},
const PlaymatParams & initialParams = {},
QWidget * parent = nullptr )
explicit
Here is the call graph for this function:

Member Function Documentation

◆ card()

CardRef PlaymatSettingsDialog::card ( ) const
Here is the caller graph for this function:

◆ initializeSearchBar()

void PlaymatSettingsDialog::initializeSearchBar ( )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ makeSpinBox()

QDoubleSpinBox * PlaymatSettingsDialog::makeSpinBox ( double min,
double max,
double value,
double step )
private
Here is the caller graph for this function:

◆ onCardNameChanged

void PlaymatSettingsDialog::onCardNameChanged ( const QString & name)
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ onParamChanged

void PlaymatSettingsDialog::onParamChanged ( )
privateslot
Here is the caller graph for this function:

◆ params()

PlaymatParams PlaymatSettingsDialog::params ( ) const
Here is the caller graph for this function:

◆ populateProviderCombo()

void PlaymatSettingsDialog::populateProviderCombo ( const QString & cardName)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ reloadPreview

void PlaymatSettingsDialog::reloadPreview ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ retranslateUi()

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

◆ setNumericEditorsVisible()

void PlaymatSettingsDialog::setNumericEditorsVisible ( bool visible)
private
Here is the caller graph for this function:

◆ setupUi()

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

Member Data Documentation

◆ cardDatabaseDisplayModel

CardDatabaseDisplayModel* PlaymatSettingsDialog::cardDatabaseDisplayModel
private

◆ cardDatabaseModel

CardDatabaseModel* PlaymatSettingsDialog::cardDatabaseModel
private

◆ cardNameLabel

QLabel* PlaymatSettingsDialog::cardNameLabel
private

◆ completer

QCompleter* PlaymatSettingsDialog::completer
private

◆ controlsForm

QFormLayout* PlaymatSettingsDialog::controlsForm
private

◆ controlsGroup

QGroupBox* PlaymatSettingsDialog::controlsGroup
private

◆ currentCard

CardRef PlaymatSettingsDialog::currentCard
private

◆ currentParams

PlaymatParams PlaymatSettingsDialog::currentParams
private

◆ currentPixmap

QPixmap PlaymatSettingsDialog::currentPixmap
private

◆ leftMarginLabel

QLabel* PlaymatSettingsDialog::leftMarginLabel
private

◆ marginLSpin

QDoubleSpinBox* PlaymatSettingsDialog::marginLSpin
private

◆ marginRSpin

QDoubleSpinBox* PlaymatSettingsDialog::marginRSpin
private

◆ pixmapUpdatedConnection

QMetaObject::Connection PlaymatSettingsDialog::pixmapUpdatedConnection
private

◆ preview

PlaymatPreviewWidget* PlaymatSettingsDialog::preview
private

◆ previewCaptionLabel

QLabel* PlaymatSettingsDialog::previewCaptionLabel
private

◆ previewGroup

QGroupBox* PlaymatSettingsDialog::previewGroup
private

◆ printingLabel

QLabel* PlaymatSettingsDialog::printingLabel
private

◆ providerComboBox

QComboBox* PlaymatSettingsDialog::providerComboBox
private

◆ proxyModel

CardCompleterProxyModel* PlaymatSettingsDialog::proxyModel
private

◆ removeButton

QPushButton* PlaymatSettingsDialog::removeButton
private

◆ rightMarginLabel

QLabel* PlaymatSettingsDialog::rightMarginLabel
private

◆ searchBar

QLineEdit* PlaymatSettingsDialog::searchBar
private

◆ searchModel

CardSearchModel* PlaymatSettingsDialog::searchModel
private

◆ showNumericEditorsCheck

QCheckBox* PlaymatSettingsDialog::showNumericEditorsCheck
private

◆ verticalOffsetLabel

QLabel* PlaymatSettingsDialog::verticalOffsetLabel
private

◆ verticalOffsetSpin

QDoubleSpinBox* PlaymatSettingsDialog::verticalOffsetSpin
private

◆ zoomLabel

QLabel* PlaymatSettingsDialog::zoomLabel
private

◆ zoomSpin

QDoubleSpinBox* PlaymatSettingsDialog::zoomSpin
private

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