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

#include <pages.h>

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

Public Member Functions

 LoadSetsPage (QWidget *parent=nullptr)
void retranslateUi () override
bool isComplete () const override
Public Member Functions inherited from OracleWizardPage
 OracleWizardPage (QWidget *parent=nullptr)

Protected Member Functions

void initializePage () override
bool validatePage () override
void readSetsFromByteArray (QByteArray _data)
void readSetsFromFile (const QString &fileName)
void downloadSetsFile (const QUrl &url)
void cancelWork () override
 Asks an active page to stop any background worker before the wizard (and its importer) can be torn down underneath it. Default is a no-op.
Protected Member Functions inherited from OracleWizardPage
OracleWizard * wizard ()

Private Slots

void actLoadSetsFile ()
void actRestoreDefaultUrl ()
void actDownloadProgressSetsFile (qint64 received, qint64 total)
void actDownloadFinishedSetsFile ()
void updateParsingProgress (int bytesRead, int totalBytes)
void scanProgressToStdout (int bytesRead, int totalBytes)
void importFinished ()
void zipDownloadFailed (const QString &message)

Private Member Functions

void beginLoadSets (bool compressedFile=false)

Private Attributes

QRadioButton * urlRadioButton
QRadioButton * fileRadioButton
QLineEdit * urlLineEdit
QLineEdit * fileLineEdit
QPushButton * urlButton
QPushButton * fileButton
QLabel * progressLabel
QProgressBar * progressBar
QFutureWatcher< LoadSetsResult > watcher
QFuture< LoadSetsResult > future
bool loadActive = false

Additional Inherited Members

Signals inherited from OracleWizardPage
void readyToContinue ()

Constructor & Destructor Documentation

◆ LoadSetsPage()

LoadSetsPage::LoadSetsPage ( QWidget * parent = nullptr)
explicit
Here is the call graph for this function:

Member Function Documentation

◆ actDownloadFinishedSetsFile

void LoadSetsPage::actDownloadFinishedSetsFile ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actDownloadProgressSetsFile

void LoadSetsPage::actDownloadProgressSetsFile ( qint64 received,
qint64 total )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ actLoadSetsFile

void LoadSetsPage::actLoadSetsFile ( )
privateslot
Here is the caller graph for this function:

◆ actRestoreDefaultUrl

void LoadSetsPage::actRestoreDefaultUrl ( )
privateslot
Here is the caller graph for this function:

◆ beginLoadSets()

void LoadSetsPage::beginLoadSets ( bool compressedFile = false)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ cancelWork()

void LoadSetsPage::cancelWork ( )
overrideprotectedvirtual

Asks an active page to stop any background worker before the wizard (and its importer) can be torn down underneath it. Default is a no-op.

Reimplemented from OracleWizardPage.

◆ downloadSetsFile()

void LoadSetsPage::downloadSetsFile ( const QUrl & url)
protected
Here is the call graph for this function:
Here is the caller graph for this function:

◆ importFinished

void LoadSetsPage::importFinished ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ initializePage()

void LoadSetsPage::initializePage ( )
overrideprotected
Here is the call graph for this function:

◆ isComplete()

bool LoadSetsPage::isComplete ( ) const
override

◆ readSetsFromByteArray()

void LoadSetsPage::readSetsFromByteArray ( QByteArray _data)
protected
Here is the call graph for this function:
Here is the caller graph for this function:

◆ readSetsFromFile()

void LoadSetsPage::readSetsFromFile ( const QString & fileName)
protected
Here is the call graph for this function:
Here is the caller graph for this function:

◆ retranslateUi()

void LoadSetsPage::retranslateUi ( )
overridevirtual

Implements OracleWizardPage.

◆ scanProgressToStdout

void LoadSetsPage::scanProgressToStdout ( int bytesRead,
int totalBytes )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateParsingProgress

void LoadSetsPage::updateParsingProgress ( int bytesRead,
int totalBytes )
privateslot
Here is the caller graph for this function:

◆ validatePage()

bool LoadSetsPage::validatePage ( )
overrideprotected
Here is the call graph for this function:
Here is the caller graph for this function:

◆ zipDownloadFailed

void LoadSetsPage::zipDownloadFailed ( const QString & message)
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ fileButton

QPushButton* LoadSetsPage::fileButton
private

◆ fileLineEdit

QLineEdit* LoadSetsPage::fileLineEdit
private

◆ fileRadioButton

QRadioButton* LoadSetsPage::fileRadioButton
private

◆ future

QFuture<LoadSetsResult> LoadSetsPage::future
private

◆ loadActive

bool LoadSetsPage::loadActive = false
private

◆ progressBar

QProgressBar* LoadSetsPage::progressBar
private

◆ progressLabel

QLabel* LoadSetsPage::progressLabel
private

◆ urlButton

QPushButton* LoadSetsPage::urlButton
private

◆ urlLineEdit

QLineEdit* LoadSetsPage::urlLineEdit
private

◆ urlRadioButton

QRadioButton* LoadSetsPage::urlRadioButton
private

◆ watcher

QFutureWatcher<LoadSetsResult> LoadSetsPage::watcher
private

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