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

#include <dlg_filter_games.h>

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

Public Member Functions

 DlgFilterGames (const QMap< int, QString > &_allGameTypes, const GamesProxyModel *_gamesProxyModel, QWidget *parent=nullptr)
GameFilterConfigs getFilters () const

Private Slots

void actOk ()
void toggleSpectatorCheckboxEnabledness (bool spectatorsEnabled)

Private Member Functions

QStringList getCreatorNameFilters () const
QSet< int > getGameTypeFilter () const
QTime getMaxGameAge () const
bool getShowSpectatorPasswordProtected () const
bool getShowOnlyIfSpectatorsCanChat () const
bool getShowOnlyIfSpectatorsCanSeeHands () const

Private Attributes

QGroupBox * generalGroupBox
QCheckBox * hideBuddiesOnlyGames
QCheckBox * hideFullGames
QCheckBox * hideGamesThatStarted
QCheckBox * hidePasswordProtectedGames
QCheckBox * hideIgnoredUserGames
QCheckBox * hideNotBuddyCreatedGames
QCheckBox * hideOpenDecklistGames
QLineEdit * gameNameFilterEdit
QLineEdit * creatorNameFilterEdit
QMap< int, QCheckBox * > gameTypeFilterCheckBoxes
QSpinBox * maxPlayersFilterMinSpinBox
QSpinBox * maxPlayersFilterMaxSpinBox
QComboBox * maxGameAgeComboBox
QCheckBox * showOnlyIfSpectatorsCanWatch
QCheckBox * showSpectatorPasswordProtected
QCheckBox * showOnlyIfSpectatorsCanChat
QCheckBox * showOnlyIfSpectatorsCanSeeHands
const QMap< int, QString > & allGameTypes
const GamesProxyModelgamesProxyModel
const QMap< QTime, QString > gameAgeMap

Constructor & Destructor Documentation

◆ DlgFilterGames()

DlgFilterGames::DlgFilterGames ( const QMap< int, QString > & _allGameTypes,
const GamesProxyModel * _gamesProxyModel,
QWidget * parent = nullptr )

Member Function Documentation

◆ actOk

void DlgFilterGames::actOk ( )
privateslot

◆ getCreatorNameFilters()

QStringList DlgFilterGames::getCreatorNameFilters ( ) const
nodiscardprivate
Here is the caller graph for this function:

◆ getFilters()

GameFilterConfigs DlgFilterGames::getFilters ( ) const
nodiscard
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getGameTypeFilter()

QSet< int > DlgFilterGames::getGameTypeFilter ( ) const
nodiscardprivate
Here is the caller graph for this function:

◆ getMaxGameAge()

QTime DlgFilterGames::getMaxGameAge ( ) const
nodiscardprivate
Here is the caller graph for this function:

◆ getShowOnlyIfSpectatorsCanChat()

bool DlgFilterGames::getShowOnlyIfSpectatorsCanChat ( ) const
nodiscardprivate
Here is the caller graph for this function:

◆ getShowOnlyIfSpectatorsCanSeeHands()

bool DlgFilterGames::getShowOnlyIfSpectatorsCanSeeHands ( ) const
nodiscardprivate
Here is the caller graph for this function:

◆ getShowSpectatorPasswordProtected()

bool DlgFilterGames::getShowSpectatorPasswordProtected ( ) const
nodiscardprivate
Here is the caller graph for this function:

◆ toggleSpectatorCheckboxEnabledness

void DlgFilterGames::toggleSpectatorCheckboxEnabledness ( bool spectatorsEnabled)
privateslot

Member Data Documentation

◆ allGameTypes

const QMap<int, QString>& DlgFilterGames::allGameTypes
private

◆ creatorNameFilterEdit

QLineEdit* DlgFilterGames::creatorNameFilterEdit
private

◆ gameAgeMap

const QMap<QTime, QString> DlgFilterGames::gameAgeMap
private

◆ gameNameFilterEdit

QLineEdit* DlgFilterGames::gameNameFilterEdit
private

◆ gamesProxyModel

const GamesProxyModel* DlgFilterGames::gamesProxyModel
private

◆ gameTypeFilterCheckBoxes

QMap<int, QCheckBox *> DlgFilterGames::gameTypeFilterCheckBoxes
private

◆ generalGroupBox

QGroupBox* DlgFilterGames::generalGroupBox
private

◆ hideBuddiesOnlyGames

QCheckBox* DlgFilterGames::hideBuddiesOnlyGames
private

◆ hideFullGames

QCheckBox* DlgFilterGames::hideFullGames
private

◆ hideGamesThatStarted

QCheckBox* DlgFilterGames::hideGamesThatStarted
private

◆ hideIgnoredUserGames

QCheckBox* DlgFilterGames::hideIgnoredUserGames
private

◆ hideNotBuddyCreatedGames

QCheckBox* DlgFilterGames::hideNotBuddyCreatedGames
private

◆ hideOpenDecklistGames

QCheckBox* DlgFilterGames::hideOpenDecklistGames
private

◆ hidePasswordProtectedGames

QCheckBox* DlgFilterGames::hidePasswordProtectedGames
private

◆ maxGameAgeComboBox

QComboBox* DlgFilterGames::maxGameAgeComboBox
private

◆ maxPlayersFilterMaxSpinBox

QSpinBox* DlgFilterGames::maxPlayersFilterMaxSpinBox
private

◆ maxPlayersFilterMinSpinBox

QSpinBox* DlgFilterGames::maxPlayersFilterMinSpinBox
private

◆ showOnlyIfSpectatorsCanChat

QCheckBox* DlgFilterGames::showOnlyIfSpectatorsCanChat
private

◆ showOnlyIfSpectatorsCanSeeHands

QCheckBox* DlgFilterGames::showOnlyIfSpectatorsCanSeeHands
private

◆ showOnlyIfSpectatorsCanWatch

QCheckBox* DlgFilterGames::showOnlyIfSpectatorsCanWatch
private

◆ showSpectatorPasswordProtected

QCheckBox* DlgFilterGames::showSpectatorPasswordProtected
private

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