trixie wrote:@ssolie
would it not make more sense to implement this functionality in window.class itself somehow?
Of course, this would be even more logical! The window.class knows everything about the window state so it would mean even less work for the programmer if the AmigaGuide help was provided through the window.class.
I started with the AmigaGuide class as a learning exercise, and don't necessarily need to finish or release it. Having the same functionality in window.class would be perfect, instead of just another dependency.
It could be integrated quite nicely into window.class with a WINDOW_HelpGuide tag to specify the AmigaGuide document filename. Individual gadgets could have a GA_HelpNode (or IA_HelpNode) tag to specify which node of that document to open. I suppose a WINDOW_HelpNode might be useful too, to provide a default other than "Main".
I think an external amigaguide.class is fine for now, and that can then be utilised by window.class and gadgetclass through tags like the above at a later date, and probably very easily.
On second thoughts - considering that AmigaGuide is neither a modern or at least cross-platform standard, nor it seems to be developed any further - it may be just the right time to muse upon:
- whether we still want AmigaGuide as the standard for Amiga documentation and help, and what we can do to improve it (because it does need improvement - both the format itself and the OS infrastructure that supports it);
- whether it wouldn't be a better idea to adopt a different format, instead of hardcoding into window.class a format that saw its heyday fifteen years ago.
As xenic says, the ability to inline images into AmigaGuide documents is the main thing that is missing. If you're going for a very context-sensitive help where individual gadgets have their own nodes, anything more complicated than AmigaGuide is completely unnecessary (full documentation can always be PDF or HTML, neither of which are really suitable for context-sensitive help). I doubt the OS4 devs have the time or resources to write a replacement anyway.
Also, there's no reason why a WINDOW_HelpFormat tag couldn't be added at a later date to choose a format other than AmigaGuide.