home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 1: Amiga
/
FrozenFish-Apr94.iso
/
bbs
/
alib
/
d5xx
/
d563
/
kpri.lha
/
Kpri
/
Kpri.doc
< prev
next >
Wrap
Text File
|
1991-11-20
|
7KB
|
189 lines
Kpri 2.0
© Koessi 91
/* It's public domain - have fun ! */
NAME:
Kpri
USAGE:
In CLI/Shell:
type
'Kpri <filename>'
You may add a textfile as argument on the commandline. This
will be processed to use 96 chars per line, 88 lines per page,
no splitting, but titlelines (default).
On WorkBench:
DoubleClick on it's icon to start it. You may add a textfile
as argument by shift-DoubleClick on its icon together with the
Kpri-icon. This will be processed to use 96 chars per line, 88
lines per page, no splitting, but titlelines (default).
VERSION:
1.01 september 91 /* needed REQ.library, but is still
compatible with OS 1.3 & 2.0 ! */
2.0 october 91 /* now needs (only...) OS 2.0 !!! */
Kickstart 37.145 / Workbench 37.33 / A3000 tested.
FUNCTION:
Another nec-p6 intuition-frontend to choose several printstyles.
The special gag:
You can split your text files into their odd and even pages and
print on both sides of the paper, which doesn't only save paper
- it also makes long documents better readable (to me).
When started a window should appear in the mid of the wb-screen.
Several gadgets allow control over the programs features:
"lines per page" /* CYCLEKIND, default 88 */
chooz one of two pagelengths:
66 or 88 are possible
This gadget also reflects the style ordered with
a text selected from storagelist.
"chars per page" /* CYCLEKIND, default 96 */
chooz one of three linelengths:
80 chars per line /* use this for school */
96 chars per line /* extra fast mode on nec-p6 */
132 chars per line /* good for listings */
This gadget also reflects the style ordered with
a text selected from storagelist.
"split" /* CHECKBOX, default off */
split the file into it's odd and even pages.
"add titlelines" /* CHECKBOX, default on */
adds title-line on top of each page , showing
date of printout, filename and page-number.
"automatic" /* CHECKBOX, default on */
This will prompt you for printing all the stored
texts in the following order:
1. All odd pages of splitted texts
/* turn your paper at this point to use the other */
/* side!!! */
2. All even pages of splitted texts
3. All unsplitted texts
If the storagelist is empty and "automatic" is ordered
every call of the filerequester will prompt you whether
to print the pages immediately or skip them for later
use. Also you will be asked to print all the stored
texts when terminating the program.
"load files" /* BOOLEAN */
calls the asl-filerequester to load a text into memory,
that will be processed depending on the page- and
linelength chosen, doing split and titling as ordered.
You can use different styles for different files !
"storage:" /* LISTVIEW */
The processed texts are stored in memory and listed
in a scrollfield, from where you can choose them at
anytime to print them out or erase them from memory
if anything is wrong ???.
"print it" /* BOOLEAN */
Print out textbuffer chosen from storagelist.
"forget it" /* BOOLEAN */
Erase textbuffer chosen from storagelist.
"Q U I T" /* BOOLEAN */
Can't use my supertool? /* love it or leave it */
BUGS:
None known yet. /* \8- */
TODO:
Get out bugs
Add something
Earn money
COMPILING:
Compiled by DICE - Matt Dillon's C-compiler-enviroment.
/* I do have fun - thanx Matt */
I used OS 2.0 includes & amiga20.lib - a lot of special 2.0-stuff.
Libraries are opened automatically by DICE-startup!
Sourcefiles:
defs.h - included in all #?.c files
protos.h - generated by 'makeproto'
gadgets.c - generated by 'tpledit' and modified to my needs
main.c - checks for OS 2.0, opens window and does idcmp-loop
parse.c - actions according to the gadgets
process.c - buffer handling, read, split and titling of texts
prtinits.c - printer and parallel device initializings
subs.c - memory and environment routines
pic.c - logo image datas
tags - nice when using 'dme'
flowchart - generated overview of function calls
dcc_back.o - (D)link with this to detach anything from cli.
Currentdir is set correctly, but no stdin, stdout or
stderr supported ! Unusable with resident options or
source that declares its own '_main'-function !
The resulting program will not work after being
crunched by 'PowerPacker' or 'Imploder'
/* great programs, by the way! */
wbmain.o - (D)link with this to support simple workbench-startup.
Complete filenames of multiselected Icons are send as
arguments to 'main(int argc, UBYTE **argv)' as if
they were given on a cli-commandline. No tooltype
support yet! Workbench-Message is replied automatically,
so your source will not notice any difference from the
cli-starts!
SEE ALSO:
DmakeFile
CREDITS:
Thanx to Matt Dillon for 'DME', 'tpledit' & 'DICE' /* DO REGISTER!!! */
Thanx to Fred Fish and all the authors for the Library.
AUTHOR:
Koessi
phone germany 02192 7630