CSV gui
ReqList: AmigaOS list requester for scripts that shows, sorts and selects
lines from arguments, files or the clipboard; meant as the base of a CSV
file GUI. By JosDuchIt and Joerg vande Loo, with help from Thomas Rapp and
Lyle Hazelwood.
The project's goal was a GUI to load, manipulate and save CSV files, callable
from scripts. What exists is ReqList, which does this for one-column files;
the CSV part is not written yet.
ReqList
From documentation/ReqList.C As_It_Is.txt:
TITLE/K,BODY/K,FROM/K,TO/K,CHOICES/M,MULTI/S,PERSIST/S,NOTEMPTY/S,PUBSCREEN/K
CHOICES: strings from which to select, or to be manipulated
MULTI: multiple lines can be selected
PERSIST: a selection does not close the GUI
NOTEMPTY: the GUI will not be closed unless a selection is made
FROM and TO can be files or the clipboard. Examples from the source:
ReqList MULTI TITLE Cities BODY "Please select:" CHOICES Washington Madrid Berlin London Wellington Paris Rome Adelaide PERSIST NOTEMPTY
ReqList MULTI TITLE Cities BODY "Please select:" FROM clips:0 PERSIST NOTEMPTY TO RAM:rl-out.txt
release/ has built versions for AmigaOS 4 (ReqList, ReqList.aosppc)
and AmigaOS 3 (ReqList.aos68k).
Building
The compile commands for AmigaOS 4 (GCC) and AmigaOS 3 (GCC or vbcc) are in
the comment at the top of src/ReqList.c. For AmigaOS 4:
gcc -DNDEBUG -c strnatcmp.c
gcc -gstabs -N -o ReqList ReqList.c strnatcmp.o -lraauto -lauto
Contents
src/ReqList.c: the program; wrapper_dos.c/.h, textclip.h and
strlcpy.c are helpers.
src/strnatcmp.c/.h: natural order string comparison, © Martin Pool.
src/ch06/: CSV reading and writing functions from the book "C Unleashed"
(Macmillan, 2000), chapter 6, by Steve Summit, kept for the CSV part.
documentation/: ReqList as it is, and the to-do list.
release/: the built ReqList programs.
contributors.txt.
Original project description
The OpenAmiga.org project page described the goal like this:
After just one column files CSV files are most common type of files you
may want to manipulate
- sort according to some column,
- delete, replace a/some line(s)
- update some column item
The gui tool should be callable form within a script (FROM , TO ,
operations to perrform ) It will open the file in a listview and present
appropriate gui gadgets manipulate thefile then save the result as wanted
(elsewhere)
The gui will closely follow the ReqList.c approacht doing the same for one
column files
FROM & TO files may be any clipboard's content.
History
JosDuchIt committed ReqList to the OpenAmiga.org Subversion repository in
March 2015. Moved to GitHub in November 2026, with its full commit history. |