ENH: optimize media file user interface

Change-Id: Ic16133fd366fcbf41dd0c9535907786754186857
This commit is contained in:
chunmao.guo 2022-10-09 11:11:47 +08:00 committed by Lane.Wei
parent aa2129280d
commit 37723752cd
8 changed files with 79 additions and 36 deletions

View file

@ -95,6 +95,7 @@ public:
wxBitmap thumbnail;
int flags = 0;
int progress = -1; // -1: waiting
std::string path;
bool IsSelect() const { return flags & FF_SELECT; }
bool IsDownload() const { return flags & FF_DOWNLOAD; }
@ -124,6 +125,8 @@ public:
void DownloadFiles(size_t index, std::string const &path);
void DownloadCheckFiles(std::string const &path);
void DownloadCancel(size_t index);
size_t GetCount() const;
@ -164,7 +167,7 @@ private:
void DeleteFilesContinue();
void DownloadNextFile(std::string const &path);
void DownloadNextFile();
void UpdateFocusThumbnail();