Cockatrice 2025-11-30-Development-2.11.0-beta.38
A cross-platform 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)
bool getHideFullGames () const
bool getHideGamesThatStarted () const
bool getHidePasswordProtectedGames () const
void setShowPasswordProtectedGames (bool _passwordProtectedGamesHidden)
bool getHideBuddiesOnlyGames () const
void setHideBuddiesOnlyGames (bool _hideBuddiesOnlyGames)
bool getHideOpenDecklistGames () const
void setHideOpenDecklistGames (bool _hideOpenDecklistGames)
bool getHideIgnoredUserGames () const
void setHideIgnoredUserGames (bool _hideIgnoredUserGames)
bool getHideNotBuddyCreatedGames () const
QString getGameNameFilter () const
void setGameNameFilter (const QString &_gameNameFilter)
QStringList getCreatorNameFilters () const
void setCreatorNameFilter (const QString &_creatorNameFilter)
QSet< int > getGameTypeFilter () const
void setGameTypeFilter (const QSet< int > &_gameTypeFilter)
int getMaxPlayersFilterMin () const
int getMaxPlayersFilterMax () const
void setMaxPlayersFilter (int _maxPlayersFilterMin, int _maxPlayersFilterMax)
QTime getMaxGameAge () const
bool getShowOnlyIfSpectatorsCanWatch () const
bool getShowSpectatorPasswordProtected () const
bool getShowOnlyIfSpectatorsCanChat () const
bool getShowOnlyIfSpectatorsCanSeeHands () const

Public Attributes

const QMap< QTime, QString > gameAgeMap

Private Slots

void actOk ()
void toggleSpectatorCheckboxEnabledness (bool spectatorsEnabled)

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

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
nodiscard
Here is the caller graph for this function:

◆ getGameNameFilter()

QString DlgFilterGames::getGameNameFilter ( ) const
nodiscard
Here is the caller graph for this function:

◆ getGameTypeFilter()

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

◆ getHideBuddiesOnlyGames()

bool DlgFilterGames::getHideBuddiesOnlyGames ( ) const
nodiscard
Here is the caller graph for this function:

◆ getHideFullGames()

bool DlgFilterGames::getHideFullGames ( ) const
nodiscard
Here is the caller graph for this function:

◆ getHideGamesThatStarted()

bool DlgFilterGames::getHideGamesThatStarted ( ) const
nodiscard
Here is the caller graph for this function:

◆ getHideIgnoredUserGames()

bool DlgFilterGames::getHideIgnoredUserGames ( ) const
nodiscard
Here is the caller graph for this function:

◆ getHideNotBuddyCreatedGames()

bool DlgFilterGames::getHideNotBuddyCreatedGames ( ) const
nodiscard
Here is the caller graph for this function:

◆ getHideOpenDecklistGames()

bool DlgFilterGames::getHideOpenDecklistGames ( ) const
nodiscard
Here is the caller graph for this function:

◆ getHidePasswordProtectedGames()

bool DlgFilterGames::getHidePasswordProtectedGames ( ) const
nodiscard
Here is the caller graph for this function:

◆ getMaxGameAge()

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

◆ getMaxPlayersFilterMax()

int DlgFilterGames::getMaxPlayersFilterMax ( ) const
nodiscard
Here is the caller graph for this function:

◆ getMaxPlayersFilterMin()

int DlgFilterGames::getMaxPlayersFilterMin ( ) const
nodiscard
Here is the caller graph for this function:

◆ getShowOnlyIfSpectatorsCanChat()

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

◆ getShowOnlyIfSpectatorsCanSeeHands()

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

◆ getShowOnlyIfSpectatorsCanWatch()

bool DlgFilterGames::getShowOnlyIfSpectatorsCanWatch ( ) const
nodiscard
Here is the caller graph for this function:

◆ getShowSpectatorPasswordProtected()

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

◆ setCreatorNameFilter()

void DlgFilterGames::setCreatorNameFilter ( const QString & _creatorNameFilter)

◆ setGameNameFilter()

void DlgFilterGames::setGameNameFilter ( const QString & _gameNameFilter)

◆ setGameTypeFilter()

void DlgFilterGames::setGameTypeFilter ( const QSet< int > & _gameTypeFilter)

◆ setHideBuddiesOnlyGames()

void DlgFilterGames::setHideBuddiesOnlyGames ( bool _hideBuddiesOnlyGames)

◆ setHideIgnoredUserGames()

void DlgFilterGames::setHideIgnoredUserGames ( bool _hideIgnoredUserGames)

◆ setHideOpenDecklistGames()

void DlgFilterGames::setHideOpenDecklistGames ( bool _hideOpenDecklistGames)

◆ setMaxPlayersFilter()

void DlgFilterGames::setMaxPlayersFilter ( int _maxPlayersFilterMin,
int _maxPlayersFilterMax )

◆ setShowPasswordProtectedGames()

void DlgFilterGames::setShowPasswordProtectedGames ( bool _passwordProtectedGamesHidden)

◆ 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

◆ 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: