diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2020-12-28 06:23:44 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-28 06:23:44 -0500 |
| commit | 4b059fa71f0d5043bfac8e48757c69b11a6168c6 (patch) | |
| tree | 1f619884298e51bba99ec26bd41b8f2568119c01 /src/downloadstab.h | |
| parent | 89bbdf22cde8d16d2d5e72999abf97b38ecd7b11 (diff) | |
| parent | 9b3e91b53e769aec2622eb79509945c09fca8897 (diff) | |
Merge pull request #1332 from isanae/more-stuff
More stuff
Diffstat (limited to 'src/downloadstab.h')
| -rw-r--r-- | src/downloadstab.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/downloadstab.h b/src/downloadstab.h new file mode 100644 index 00000000..ac0cf0e2 --- /dev/null +++ b/src/downloadstab.h @@ -0,0 +1,36 @@ +#ifndef MODORGANIZER_DOWNLOADTAB_INCLUDED +#define MODORGANIZER_DOWNLOADTAB_INCLUDED + +#include <filterwidget.h> + +namespace Ui { class MainWindow; } +class OrganizerCore; +class DownloadListWidget; + +class DownloadsTab : public QObject +{ + Q_OBJECT; + +public: + DownloadsTab(OrganizerCore& core, Ui::MainWindow* ui); + + void update(); + +private: + struct DownloadsTabUi + { + QPushButton* refresh; + DownloadListWidget* list; + QCheckBox* showHidden; + QLineEdit* filter; + }; + + OrganizerCore& m_core; + DownloadsTabUi ui; + MOBase::FilterWidget m_filter; + + void refresh(); + void resumeDownload(int downloadIndex); +}; + +#endif // MODORGANIZER_DOWNLOADTAB_INCLUDED |
