HaikuDepot: begin support for multiple screenshots

Operating Systems / Haiku - Julian Harnath [rwth-aachen.de] - 24 November 2017 17:22 EST

- Initial support for displaying multiple screenshots for packages which have more than one. Still rough and unfinished.

Screenshot window now has a toolbar with prev/next buttons and a busy loading indicator. Switching through the screenshots works.

There's currently a server-side bug which makes all data turn up 15 times in the JSON file, so please don't report a bug about HaikuDepot showing 15 or 30 screenshots available when it's really just 1 or 2 :)

Still to be done: toolbar icons instead of text labels; better handling of screenshot window resizing; maybe thumbnails of screenshots and preloading other screenshots in the background. Main window also needs a way to indicate that there are more screenshots than the one thumbnail, needs some more thought about how that might look.

This concludes my HaikuDepot commits from the coding sprint at KDC 2017 Toulouse!

c210060f38 HaikuDepot: begin support for multiple screenshots
src/apps/haikudepot/ui/ScreenshotWindow.cpp | 80 ++++++++++++++++++++++++++++-
src/apps/haikudepot/ui/ScreenshotWindow.h | 19 +++++++
2 files changed, 97 insertions(+), 2 deletions(-)

Upstream: cgit.haiku-os.org


  • Share