From ea62292f39c89ad360d755d54c37a98b7e204e0b Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Mon, 1 Nov 2021 21:12:01 +0100 Subject: [PATCH] filebrowser: implement loader view for waiting while folder selection Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/8d95fbb81ee005071b80311109b3d0e546e9961b Author: Thilo Graf Date: 2021-11-01 (Mon, 01 Nov 2021) --- src/gui/filebrowser.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gui/filebrowser.cpp b/src/gui/filebrowser.cpp index cb21ef810..b72c2c434 100644 --- a/src/gui/filebrowser.cpp +++ b/src/gui/filebrowser.cpp @@ -33,6 +33,7 @@ #include #include #include +#include #include #include @@ -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();