API Documentation
Loading...
Searching...
No Matches
DownloadDatasetWidget.h
Go to the documentation of this file.
1#pragma once
2#include "DLLInfo.h"
3#include <NDEVR/File.h>
4#include <QWidget>
5namespace NDEVR
6{
7 class QTModelManager;
8 class ProgressWidget;
9 class ItemDownloader;
10 class DesignObjectLookup;
11 /**--------------------------------------------------------------------------------------------------
12 \brief A popup that is shown when a remote project is being downlaoded.
13 **/
14 class NDEVR_API DownloadDatasetWidget : public QWidget
15 {
16 Q_OBJECT
17 public:
18 DownloadDatasetWidget(QWidget* parent = nullptr);
19 void startDownload(const String& url, const File& file);
21 void loadFile(const File& f);
22 protected slots:
26 signals:
27 void downloadActiveSignal(bool is_downloading);
30 protected:
32 ItemDownloader* m_downloader = nullptr;
33 ProgressWidget* m_progress = nullptr;
34 DesignObjectLookup* m_lookup = nullptr;
35 };
36}
#define NDEVR_API
Definition DLLInfo.h:50
A core class where all Design Objects including models, materials, and geometries are stored....
Definition DesignObjectLookup.h:65
A popup that is shown when a remote project is being downlaoded.
Definition DownloadDatasetWidget.h:15
void downloadActiveSignal(bool is_downloading)
void loadFile(const File &f)
void setUpdateTarget(DesignObjectLookup *lookup)
DownloadDatasetWidget(QWidget *parent=nullptr)
void startDownload(const String &url, const File &file)
File m_file
Definition DownloadDatasetWidget.h:31
void onFinishedSignal(File file)
Logic for reading or writing to a file as well as navigating filesystems.
Definition File.h:48
Used for Downloading resources from a network.
Definition ItemDownloader.h:120
Displays the progress, either horizontally as a bar or as a roand spin dial. Contains various options...
Definition ProgressWidget.h:47
The core String class for the NDEVR API.
Definition String.h:69
Definition ACIColor.h:37