Cockatrice 2025-11-30-Development-2.11.0-beta.38
A cross-platform virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
DlgCreateToken Class Reference

#include <dlg_create_token.h>

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

Public Member Functions

 DlgCreateToken (const QStringList &_predefinedTokens, QWidget *parent=nullptr)
TokenInfo getTokenInfo () const

Protected Member Functions

void closeEvent (QCloseEvent *event) override

Private Slots

void faceDownCheckBoxToggled (bool checked)
void tokenSelectionChanged (const QModelIndex &current, const QModelIndex &previous)
void updateSearch (const QString &search)
void actChooseTokenFromAll (bool checked)
void actChooseTokenFromDeck (bool checked)
void actOk ()
void actReject ()

Private Member Functions

void updateSearchFieldWithoutUpdatingFilter (const QString &newValue) const

Private Attributes

CardDatabaseModelcardDatabaseModel
TokenDisplayModelcardDatabaseDisplayModel
QStringList predefinedTokens
QLabel * nameLabel
QLabel * colorLabel
QLabel * ptLabel
QLabel * annotationLabel
QComboBox * colorEdit
QLineEdit * nameEdit
QLineEdit * ptEdit
QLineEdit * annotationEdit
QCheckBox * destroyCheckBox
QCheckBox * faceDownCheckBox
QRadioButton * chooseTokenFromAllRadioButton
QRadioButton * chooseTokenFromDeckRadioButton
CardInfoPictureWidgetpic
QTreeView * chooseTokenView

Constructor & Destructor Documentation

◆ DlgCreateToken()

DlgCreateToken::DlgCreateToken ( const QStringList & _predefinedTokens,
QWidget * parent = nullptr )
explicit
Here is the call graph for this function:

Member Function Documentation

◆ actChooseTokenFromAll

void DlgCreateToken::actChooseTokenFromAll ( bool checked)
privateslot
Here is the caller graph for this function:

◆ actChooseTokenFromDeck

void DlgCreateToken::actChooseTokenFromDeck ( bool checked)
privateslot
Here is the caller graph for this function:

◆ actOk

void DlgCreateToken::actOk ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actReject

void DlgCreateToken::actReject ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ closeEvent()

void DlgCreateToken::closeEvent ( QCloseEvent * event)
overrideprotected
Here is the call graph for this function:

◆ faceDownCheckBoxToggled

void DlgCreateToken::faceDownCheckBoxToggled ( bool checked)
privateslot
Here is the caller graph for this function:

◆ getTokenInfo()

TokenInfo DlgCreateToken::getTokenInfo ( ) const
nodiscard
Here is the call graph for this function:
Here is the caller graph for this function:

◆ tokenSelectionChanged

void DlgCreateToken::tokenSelectionChanged ( const QModelIndex & current,
const QModelIndex & previous )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateSearch

void DlgCreateToken::updateSearch ( const QString & search)
privateslot
Here is the caller graph for this function:

◆ updateSearchFieldWithoutUpdatingFilter()

void DlgCreateToken::updateSearchFieldWithoutUpdatingFilter ( const QString & newValue) const
private
Here is the caller graph for this function:

Member Data Documentation

◆ annotationEdit

QLineEdit * DlgCreateToken::annotationEdit
private

◆ annotationLabel

QLabel * DlgCreateToken::annotationLabel
private

◆ cardDatabaseDisplayModel

TokenDisplayModel* DlgCreateToken::cardDatabaseDisplayModel
private

◆ cardDatabaseModel

CardDatabaseModel* DlgCreateToken::cardDatabaseModel
private

◆ chooseTokenFromAllRadioButton

QRadioButton* DlgCreateToken::chooseTokenFromAllRadioButton
private

◆ chooseTokenFromDeckRadioButton

QRadioButton * DlgCreateToken::chooseTokenFromDeckRadioButton
private

◆ chooseTokenView

QTreeView* DlgCreateToken::chooseTokenView
private

◆ colorEdit

QComboBox* DlgCreateToken::colorEdit
private

◆ colorLabel

QLabel * DlgCreateToken::colorLabel
private

◆ destroyCheckBox

QCheckBox* DlgCreateToken::destroyCheckBox
private

◆ faceDownCheckBox

QCheckBox* DlgCreateToken::faceDownCheckBox
private

◆ nameEdit

QLineEdit* DlgCreateToken::nameEdit
private

◆ nameLabel

QLabel* DlgCreateToken::nameLabel
private

◆ pic

CardInfoPictureWidget* DlgCreateToken::pic
private

◆ predefinedTokens

QStringList DlgCreateToken::predefinedTokens
private

◆ ptEdit

QLineEdit * DlgCreateToken::ptEdit
private

◆ ptLabel

QLabel * DlgCreateToken::ptLabel
private

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