blob: 71706dd40e2bb9340a3ee20bc83fdfba710704fd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
############################################################################
#
# File: gridedit.icn
#
# Subject: Program to create and edit binary arrays
#
# Author: Ralph E. Griswold
#
# Date: December 21, 1999
#
############################################################################
#
# This file is in the public domain.
#
############################################################################
#
# This application provides a variety of facilities for creating and
# editing binary arrays. It is intended for use with weaving tie-ups
# and liftplans.
#
############################################################################
#
# Requires: Version 9 graphics, /tmp
#
############################################################################
#
# Links: tieedit
#
############################################################################
link tieedit
procedure main(args)
grid_init()
ready()
while ProcessEvent(grid_root, , grid_shortcuts) do
if \grid_state then exit()
end
procedure ready()
grid_state := &null
grid_rows := pat2rows("10,#001002004008010020040080100200")
setup()
WAttrib(grid_window, "canvas=normal")
return
end
|