A popup that is shown when a remote project is being downloaded.
More...
|
| void | downloadFailedSlot (StringView error) |
| | Slot called when the download fails.
|
|
void | downloadFinishedSlot () |
| | Slot called when the download completes successfully.
|
|
void | updatePercentSlot () |
| | Slot called periodically to update the progress display.
|
|
|
ItemDownloader * | m_downloader = nullptr |
| | The downloader handling the network transfer.
|
|
File | m_file |
| | The target file for the current download.
|
|
DesignObjectLookup * | m_lookup = nullptr |
| | The design object lookup to update after download.
|
|
ProgressWidget * | m_progress = nullptr |
| | The progress bar widget.
|
A popup that is shown when a remote project is being downloaded.
Definition at line 14 of file DownloadDatasetWidget.h.
◆ DownloadDatasetWidget()
| DownloadDatasetWidget::DownloadDatasetWidget |
( |
QWidget * | parent = nullptr | ) |
|
◆ downloadActiveSignal()
| void DownloadDatasetWidget::downloadActiveSignal |
( |
bool | is_downloading | ) |
|
Emitted when the download active state changes.
- Parameters
-
| [in] | is_downloading | True if a download is in progress. |
◆ downloadFailedSlot()
| void DownloadDatasetWidget::downloadFailedSlot |
( |
StringView | error | ) |
|
|
protected |
Slot called when the download fails.
- Parameters
-
| [in] | error | A description of the failure. |
◆ loadFile()
| void DownloadDatasetWidget::loadFile |
( |
const File & | f | ) |
|
Loads a previously downloaded file into the design object lookup.
- Parameters
-
◆ onFinishedSignal()
| void DownloadDatasetWidget::onFinishedSignal |
( |
File | file | ) |
|
Emitted when a download finishes successfully.
- Parameters
-
| [in] | file | The downloaded file. |
◆ setUpdateTarget()
Sets the design object lookup to update once the download completes.
- Parameters
-
◆ startDownload()
| void DownloadDatasetWidget::startDownload |
( |
const StringView & | url, |
|
|
const File & | file ) |
Starts downloading a remote dataset from the given URL to the specified file.
- Parameters
-
| [in] | url | The URL to download from. |
| [in] | file | The local file to save the downloaded data to. |
The documentation for this class was generated from the following file: