GUI interface

Discuss the proposed GUI for ADFFS
Post Reply
JonAbbott
Posts: 2938
Joined: Thu Apr 11, 2013 12:13 pm
Location: Essex
Contact:

GUI interface

Post by JonAbbott »

Here's a rough idea of what I originally envisaged the GUI looking like, basically along the lines of MAMEUI which is where this PC screenshot came from.

In this example its showing one of the snapshots and the description file (description files are in the JFDI spec, but none of the ZIP's currently contain them. Refer to the ZIP file structure here), we should also have tabs to show other things such as the cover art or accompanying instructions/manuals/protection etc.

Initially, we should start with the list on the left and add the right section for snapshots later, once we have a PNG module.
GUI example
GUI example
gui_example1.png (66.16 KiB) Viewed 12403 times
hoglet
Posts: 4
Joined: Wed Jul 10, 2013 10:15 pm

Re: GUI interface

Post by hoglet »

Jon,

Thanks for posting this, it's a really good initial target to aim for.

Does anyone have a feel for the pros and cons of implementing this in basic or C?

Regarding: PNG Decoding, there are a few possible starting points:
http://www.orpheusweb.co.uk/ttehtann/Programmes/ (the first program is a PNG to Risc OS Sprite Convertor)
http://lodev.org/lodepng/ (portable PNG library written in C)
http://www.squeakysoftware.org/libraries.html (a port of libPNG to RISC OS)

Also, might be possible to extract PNG code from one of the RISC OS browsers:
http://www.vigay.com/inet/browsers.html

Of course, it could be that some of the above are only compatible with much later versions of RISC OS.

What's the baseline version we are trying to support? 3.11? Or earlier?

Dave
hoglet
Posts: 4
Joined: Wed Jul 10, 2013 10:15 pm

Re: GUI interface

Post by hoglet »

There also seems to have been a PNG Developers Kit for RISC OS. See:
http://www.drobe.co.uk/article.php?id=448
http://gerph.org/riscos/ramble/graphics ... sions.html
http://select.riscos.com/prm/graphics/convertpng.html

Does anyone know any more about this, it's version compatibility, and whether it is still available?

Edit: Looks this this might be RISCOS 4.32 and later:
http://source.riscpkg.org/websvn/filede ... .swi&rev=3

Dave
hoglet
Posts: 4
Joined: Wed Jul 10, 2013 10:15 pm

Re: GUI interface

Post by hoglet »

Here's yet another:
http://www.riscos.info/index.php/Spr2Png

Requires RISC OS 3.5 or later for deep sprites.

Source exists here:
http://old-www.moreofthesa.me.uk/progs.graphics.html

Dave
JonAbbott
Posts: 2938
Joined: Thu Apr 11, 2013 12:13 pm
Location: Essex
Contact:

Re: GUI interface

Post by JonAbbott »

If PNG code exists for C, that would be an obvious choice to go for although does lead to compatibility issues with CLib and RO version. We are currently dependent on CLib for ZLib, although I do plan to go back and remove that dependency at some point.

BASIC works across all versions of RO and has no dependencies, although we obviously have to write a converter for PNG to Sprites - which can't be that hard...can it? I've yet to look into it, although it sounds like some of the links you've provided may well provide source.
tlsa
Posts: 1
Joined: Fri Sep 13, 2013 6:19 pm

Re: GUI interface

Post by tlsa »

NetSurf uses libpng, and it works perfectly. (I'm a NetSurf developer, btw.)

I made a really trivial program for messing about with alpha channels, which also uses libpng. Feel free to pillage from it: http://www.smoothartist.com/#AlphaGen
JonAbbott
Posts: 2938
Joined: Thu Apr 11, 2013 12:13 pm
Location: Essex
Contact:

Re: GUI interface

Post by JonAbbott »

tlsa wrote:Feel free to pillage
Brilliant...and welcome :D
Post Reply