Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
DeckEditorSettingsPage Class Reference

#include <deck_editor_settings_page.h>

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

Public Member Functions

 DeckEditorSettingsPage ()
void retranslateUi () override
QString getLastUpdateTime ()
Public Member Functions inherited from AbstractSettingsPage
virtual QList< SettingsSearchEntry > getSearchEntries ()
QList< SettingsPageSection > getSections ()
 Sections of this page for sub-page navigation, in display order.

Private Slots

void storeSettings ()
void urlListChanged (const QModelIndex &, int, int, const QModelIndex &, int)
void setSpoilersEnabled (bool)
void spoilerPathButtonClicked ()
void updateSpoilers ()
void unlockSettings ()
void actAddURL ()
void actRemoveURL ()
void actEditURL ()
void actAdjustRateLimit ()
void resetDownloadedURLsButtonClicked ()

Private Member Functions

QListWidgetItem * addUrlItem (const QString &url)
 Adds a list item for the given URL, storing the raw URL alongside its displayed label.
QString urlForItem (const QListWidgetItem *item) const
 Returns the raw URL stored on a list item.
QString urlLabel (const QString &url) const
 Returns the display label for a URL, including its current effective rate limit.
void refreshUrlItems ()
 Refreshes the displayed label of every URL item after limits or settings change.

Private Attributes

QPushButton resetDownloadURLs
QLabel urlLinkLabel
QCheckBox picDownloadCheckBox
QListWidget * urlList
QAction * aAdd
QAction * aEdit
QAction * aRemove
QAction * aRateLimit
QCheckBox mcDownloadSpoilersCheckBox
QLabel msDownloadSpoilersLabel
QGroupBox * mpGeneralGroupBox
QGroupBox * mpSpoilerGroupBox
QLineEdit * mpSpoilerSavePathLineEdit
QLabel mcSpoilerSaveLabel
QLabel lastUpdatedLabel
QLabel infoOnSpoilersLabel
QPushButton * mpSpoilerPathButton
QPushButton * updateNowButton

Additional Inherited Members

Static Protected Member Functions inherited from AbstractSettingsPage
static QList< SettingsSearchEntry > autoDetectSearchEntries (QWidget *page, int pageIndex)

Constructor & Destructor Documentation

◆ DeckEditorSettingsPage()

DeckEditorSettingsPage::DeckEditorSettingsPage ( )
Here is the call graph for this function:

Member Function Documentation

◆ actAddURL

void DeckEditorSettingsPage::actAddURL ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actAdjustRateLimit

void DeckEditorSettingsPage::actAdjustRateLimit ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actEditURL

void DeckEditorSettingsPage::actEditURL ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actRemoveURL

void DeckEditorSettingsPage::actRemoveURL ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ addUrlItem()

QListWidgetItem * DeckEditorSettingsPage::addUrlItem ( const QString & url)
private

Adds a list item for the given URL, storing the raw URL alongside its displayed label.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getLastUpdateTime()

QString DeckEditorSettingsPage::getLastUpdateTime ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ refreshUrlItems()

void DeckEditorSettingsPage::refreshUrlItems ( )
private

Refreshes the displayed label of every URL item after limits or settings change.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ resetDownloadedURLsButtonClicked

void DeckEditorSettingsPage::resetDownloadedURLsButtonClicked ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ retranslateUi()

void DeckEditorSettingsPage::retranslateUi ( )
overridevirtual

Implements AbstractSettingsPage.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setSpoilersEnabled

void DeckEditorSettingsPage::setSpoilersEnabled ( bool anInput)
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ spoilerPathButtonClicked

void DeckEditorSettingsPage::spoilerPathButtonClicked ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ storeSettings

void DeckEditorSettingsPage::storeSettings ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ unlockSettings

void DeckEditorSettingsPage::unlockSettings ( )
privateslot
Here is the caller graph for this function:

◆ updateSpoilers

void DeckEditorSettingsPage::updateSpoilers ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ urlForItem()

QString DeckEditorSettingsPage::urlForItem ( const QListWidgetItem * item) const
nodiscardprivate

Returns the raw URL stored on a list item.

Here is the caller graph for this function:

◆ urlLabel()

QString DeckEditorSettingsPage::urlLabel ( const QString & url) const
nodiscardprivate

Returns the display label for a URL, including its current effective rate limit.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ urlListChanged

void DeckEditorSettingsPage::urlListChanged ( const QModelIndex & ,
int ,
int ,
const QModelIndex & ,
int  )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ aAdd

QAction* DeckEditorSettingsPage::aAdd
private

◆ aEdit

QAction * DeckEditorSettingsPage::aEdit
private

◆ aRateLimit

QAction * DeckEditorSettingsPage::aRateLimit
private

◆ aRemove

QAction * DeckEditorSettingsPage::aRemove
private

◆ infoOnSpoilersLabel

QLabel DeckEditorSettingsPage::infoOnSpoilersLabel
private

◆ lastUpdatedLabel

QLabel DeckEditorSettingsPage::lastUpdatedLabel
private

◆ mcDownloadSpoilersCheckBox

QCheckBox DeckEditorSettingsPage::mcDownloadSpoilersCheckBox
private

◆ mcSpoilerSaveLabel

QLabel DeckEditorSettingsPage::mcSpoilerSaveLabel
private

◆ mpGeneralGroupBox

QGroupBox* DeckEditorSettingsPage::mpGeneralGroupBox
private

◆ mpSpoilerGroupBox

QGroupBox* DeckEditorSettingsPage::mpSpoilerGroupBox
private

◆ mpSpoilerPathButton

QPushButton* DeckEditorSettingsPage::mpSpoilerPathButton
private

◆ mpSpoilerSavePathLineEdit

QLineEdit* DeckEditorSettingsPage::mpSpoilerSavePathLineEdit
private

◆ msDownloadSpoilersLabel

QLabel DeckEditorSettingsPage::msDownloadSpoilersLabel
private

◆ picDownloadCheckBox

QCheckBox DeckEditorSettingsPage::picDownloadCheckBox
private

◆ resetDownloadURLs

QPushButton DeckEditorSettingsPage::resetDownloadURLs
private

◆ updateNowButton

QPushButton* DeckEditorSettingsPage::updateNowButton
private

◆ urlLinkLabel

QLabel DeckEditorSettingsPage::urlLinkLabel
private

◆ urlList

QListWidget* DeckEditorSettingsPage::urlList
private

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