filebrowser: implement loader view for waiting while folder selection

Origin commit data
------------------
Branch: ni/coolstream
Commit: 8d95fbb81e
Author: Thilo Graf <dbt@novatux.de>
Date: 2021-11-01 (Mon, 01 Nov 2021)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
2021-11-01 21:12:01 +01:00
committed by vanhofen
parent ec4a0a53b9
commit 2dbd9aad77

View File

@@ -33,6 +33,7 @@
#include <gui/widget/icons.h>
#include <gui/widget/iconfont.h>
#include <gui/widget/msgbox.h>
#include <gui/widget/hourglass.h>
#include <algorithm>
#include <iostream>
@@ -292,6 +293,9 @@ CFile *CFileBrowser::getSelectedFile()
void CFileBrowser::ChangeDir(const std::string & filename, int selection)
{
CHourGlass hg(x + width/2, y + height/3);
hg.setXPos(hg.getXPos()-hg.getWidth()/2);
hg.paint(false);
std::string newpath;
if ((m_Mode != ModeSC) && (filename == ".."))
{
@@ -348,6 +352,7 @@ void CFileBrowser::ChangeDir(const std::string & filename, int selection)
if ((selection != -1) && (selection < (int)filelist.size()))
selected = selection;
hg.kill(COL_MENUCONTENT_PLUS_0);
paintHead();
paint();
paintFoot();