- Add new WorkStatusView which keeps the user informed about what's happening. It's a status bar at the bottom of the window which shows on the left side either a spinning barber pole (for operations without a progress), or a progress bar (for download progress). Next to that is a text view showing a descriptive status text.
- Currently, it will notify of the following operations:- Repository refresh (barber pole)- Background packet actions, like preparation of install or uninstall (barber pole)- Package downloads, including downloads of dependencies (progress bar). Status text indicates the name of the package currently being downloaded (if any), and how many more packages are queued for download after it (if any).
- Hooks into PackageListView to be notified of package status changes (such as becoming pending or download progress)
- When the package currently being downloaded is also selected in the list view, the user sees the progress bar in WorkStatusView as well as the one in the PackageInfoView, which is redundant. This still needs a good solution...
125d42d95b HaikuDepot: add work status view
src/apps/haikudepot/Jamfile | 3 +-
src/apps/haikudepot/ui/MainWindow.cpp | 31 ++++++
src/apps/haikudepot/ui/MainWindow.h | 5 +
src/apps/haikudepot/ui/PackageListView.cpp | 18 +++-
src/apps/haikudepot/ui/PackageListView.h | 6 ++
src/apps/haikudepot/ui/WorkStatusView.cpp | 165 +++++++++++++++++++++++++++++
src/apps/haikudepot/ui/WorkStatusView.h | 53 +++++++++
7 files changed, 278 insertions(+), 3 deletions(-)