Hi, I'm trying to rebuild AHIPrefs ReAction GUI from the "old" AHI SDK/sources (AHI gui_ca.c). I have almost remove all warnings, but can't get to complete the compilation, 'cos it uses
struct List *BrowserNodesA( STRPTR * ); struct List *ChooserLabelsA( STRPTR * ); struct List *ChooserLabels( STRPTR, ... ); void FreeBrowserNodes( struct List *); void FreeChooserLabels( struct List * ); struct List *ClickTabsA( STRPTR * ); struct List *ClickTabs( STRPTR, ... ); void FreeClickTabs( struct List * );
from reaction_lib_protos.h, I copy&paster from ReAction Layout LayoutExample.c :-) and cloned to create 'struct List *ClickTabsA(STRPTR *)'
but I don't know how to "recreate"
struct List *ChooserLabels( STRPTR, ... ); struct List *ClickTabs( STRPTR, ... );
fuctions. Are they "doable"? Or where to look to try to find a replacement?
TIA
Those shouldn't be too hard to do. As some of those functions are varargs stubs they will need to be implemented using VARARGS68K and va_#?() macros but that's not really much of a problem.
I began some work on replacements for these functions but ran into an unexpected problem:
Apparently it's not possible to have a varargs function without at least one non-vararg argument. This is annoying but can at least be somewhat easily worked around by adding a dummy argument to all the varargs functions and adding some silly macros to hide it.
There is a WIP version of my libreaction here:
https://dl.dropboxusercontent.com/u/26599983/libreaction.7z
ATM it only supports the ChooserLabelsA(), ChooserLabels() and FreeChooserLabels() functions.
I just added the following functions:
- ClickTabsA()
- ClickTabs()
- FreeClickTabs()
- BrowserNodesA()
- BrowserNodes()
- FreeBrowserNodes()
If the functions you listed above are all that are needed then this should be enough to get it compiling and hopefully running too.
The download link is the same as I posted above.
Just compiled AHI_CA myself:
https://dl.dropboxusercontent.com/u/26599983/ahi_ca.png
The clicktab isn't working correctly ATM so at least that needs looking into still.
WOW!! that's good news.
I have in my ToDo list to try to recompile it too, with the help of the files you gave/put here (listbrowser, chooser,...), but lack of time.
It would be nice if in a "near future" we get AHI_ReAction prefs. :-)
AOS4.1/SAM460ex/PPC460EX-1155MHZ/2048MB/RadeonHD6570/SSD120GB/DVDRW :-P
So it doesn't crash on startup the MySetGadgetAttrs() function needs to be changed to:
And "#include" needs to be added to the include statements.
Also Req() needs to be changed to:
Martin Blom gave me write access to the AHI SVN so I've committed my changes there directly now.
To get the source code and compile AHI_CA you just need to do (assuming that you are using a cross-compiler system):
svn co svn://svn.berlios.de/arp2/ahi/ahisrc/branches/BRANCH_6 ahisrc-6
cd ahisrc-6
./configure --host=ppc-amigaos
cd AHI
make AHI_CA
For a native compile you should probably do (not tested):
svn co svn://svn.berlios.de/arp2/ahi/ahisrc/branches/BRANCH_6 ahisrc-6
cd ahisrc-6
sh configure
cd AHI
gmake AHI_CA
I fixed the problem with the clicktab not working.
I've uploaded a compile of the current version here for anyone who wants to test it:
https://dl.dropboxusercontent.com/u/26599983/ahi_ca-wip.7z
Note that it includes debug information so the executable is larger than it would be normally.
@salass00
I, too, have been looking for a solution for the no longer supported on AmigaOS4 error. What are we supposed to do? What have people been doing to make chooser lists?
Were these just easy functions like:
The link to your download is no longer valid. Could you re-upload it?
Went and had some lunch....downloaded the file. Much like I thought.
Much like reactionlib.lha from Stephan Rupprecht.
I have asked about this before on EAB, why was it dropped? People obviously like the functions.