![]() |
Cockatrice 2026-09-01-Development-3.1.0-beta.10
A virtual tabletop for multiplayer card games
|
Dialog for configuring the playmat card art for a deck. More...
#include <playmat_settings_dialog.h>
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 |
| CardDatabaseModel * | cardDatabaseModel |
| CardDatabaseDisplayModel * | cardDatabaseDisplayModel |
| CardSearchModel * | searchModel |
| CardCompleterProxyModel * | proxyModel |
| 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 |
| PlaymatPreviewWidget * | preview |
| QPixmap | currentPixmap |
| CardRef | currentCard |
| PlaymatParams | currentParams |
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.
|
explicit |
| CardRef PlaymatSettingsDialog::card | ( | ) | const |
|
private |
|
private |
|
privateslot |
|
privateslot |
| PlaymatParams PlaymatSettingsDialog::params | ( | ) | const |
|
private |
|
privateslot |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |