Cockatrice 2026-06-27-Development-3.1.0-beta.3
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
TabCardArtRules Class Reference

#include <tab_card_art_rules.h>

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

Public Member Functions

 TabCardArtRules (TabSupervisor *parent, AbstractClient *client)
QString getTabText () const override
void retranslateUi () override
Public Member Functions inherited from Tab
 Tab (TabSupervisor *_tabSupervisor)
const QList< QMenu * > & getTabMenus () const
TabSupervisorgetTabSupervisor () const
bool getContentsChanged () const
void setContentsChanged (bool _contentsChanged)
virtual bool closeRequest ()
virtual void tabActivated ()

Private Slots

void addRule ()
void removeSelected ()
void refresh ()

Private Member Functions

void setupUi ()
void initSearchBar ()
void populateProviderCombo (const QString &cardName)

Private Attributes

AbstractClientclient
QLineEdit * searchEdit
QCompleter * searchCompleter
CardDatabaseModelcardDbModel
CardDatabaseDisplayModelcardDbDisplayModel
CardSearchModelcardSearchModel
CardCompleterProxyModelcardProxyModel
QComboBox * providerComboBox
QComboBox * modeBox
QLineEdit * reasonEdit
QPushButton * addBtn
QPushButton * removeBtn
QPushButton * refreshBtn
QTableView * table
CardArtRulesModeltableModel

Additional Inherited Members

Signals inherited from Tab
void userEvent (bool globalEvent=true)
void tabTextChanged (Tab *tab, const QString &newTabText)
Protected Slots inherited from Tab
void showCardInfoPopup (const QPoint &pos, const CardRef &cardRef)
void deleteCardInfoPopup (const QString &cardName)
Protected Member Functions inherited from Tab
void addTabMenu (QMenu *menu)
Protected Attributes inherited from Tab
TabSupervisortabSupervisor

Constructor & Destructor Documentation

◆ TabCardArtRules()

TabCardArtRules::TabCardArtRules ( TabSupervisor * parent,
AbstractClient * client )
Here is the call graph for this function:

Member Function Documentation

◆ addRule

void TabCardArtRules::addRule ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getTabText()

QString TabCardArtRules::getTabText ( ) const
inlineoverridevirtual

Implements Tab.

◆ initSearchBar()

void TabCardArtRules::initSearchBar ( )
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ populateProviderCombo()

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

◆ refresh

void TabCardArtRules::refresh ( )
privateslot
Here is the caller graph for this function:

◆ removeSelected

void TabCardArtRules::removeSelected ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ retranslateUi()

void TabCardArtRules::retranslateUi ( )
overridevirtual

Implements Tab.

Here is the caller graph for this function:

◆ setupUi()

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

Member Data Documentation

◆ addBtn

QPushButton* TabCardArtRules::addBtn
private

◆ cardDbDisplayModel

CardDatabaseDisplayModel* TabCardArtRules::cardDbDisplayModel
private

◆ cardDbModel

CardDatabaseModel* TabCardArtRules::cardDbModel
private

◆ cardProxyModel

CardCompleterProxyModel* TabCardArtRules::cardProxyModel
private

◆ cardSearchModel

CardSearchModel* TabCardArtRules::cardSearchModel
private

◆ client

AbstractClient* TabCardArtRules::client
private

◆ modeBox

QComboBox* TabCardArtRules::modeBox
private

◆ providerComboBox

QComboBox* TabCardArtRules::providerComboBox
private

◆ reasonEdit

QLineEdit* TabCardArtRules::reasonEdit
private

◆ refreshBtn

QPushButton* TabCardArtRules::refreshBtn
private

◆ removeBtn

QPushButton* TabCardArtRules::removeBtn
private

◆ searchCompleter

QCompleter* TabCardArtRules::searchCompleter
private

◆ searchEdit

QLineEdit* TabCardArtRules::searchEdit
private

◆ table

QTableView* TabCardArtRules::table
private

◆ tableModel

CardArtRulesModel* TabCardArtRules::tableModel
private

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