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 class NDEVR_API DownloadDatasetWidget : public QWidget
12 {
13 Q_OBJECT
14 public:
15 DownloadDatasetWidget(QWidget* parent = nullptr);
16 void startDownload(const String& url, const File& file);
17 void setUpdateTarget(DesignObjectLookup* lookup);
18 void loadFile(const File& f);
19 protected slots:
20 void downloadFinishedSlot();
21 void downloadFailedSlot();
22 void updatePercentSlot();
23 signals:
24 void downloadActiveSignal(bool is_downloading);
27 protected:
29 ItemDownloader* m_downloader = nullptr;
30 ProgressWidget* m_progress = nullptr;
31 DesignObjectLookup* m_lookup = nullptr;
32 };
33}
#define NDEVR_API
Definition DLLInfo.h:67
A core class where all Design Objects including models, materials, and geometries are stored.
Definition DesignObjectLookup.h:65
Definition DownloadDatasetWidget.h:12
void downloadActiveSignal(bool is_downloading)
File m_file
Definition DownloadDatasetWidget.h:28
void onFinishedSignal(File file)
Logic for reading or writing to a file as well as navigating filesystems.
Definition File.h:48
Definition ItemDownloader.h:104
Definition ProgressWidget.h:43
The core String class for the software.
Definition String.h:47
Definition ACIColor.h:37