File: idraw-readme.txt

package info (click to toggle)
neuron 8.2.6-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 34,760 kB
  • sloc: cpp: 149,571; python: 58,465; ansic: 50,329; sh: 3,510; xml: 213; pascal: 51; makefile: 35; sed: 5
file content (459 lines) | stat: -rw-r--r-- 22,903 bytes parent folder | download | duplicates (7)
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
NAME
     idraw - drawing editor

SYNOPSIS
     idraw [options] [file]

DESCRIPTION
     Idraw is a drawing editor that  lets  you  create  and  edit
     drawings made up of graphics like text, lines, splines, rec-
     tangles, polygons, and ellipses.   Drawings  are  stored  in
     files  that can be printed on a PostScript printer.  You can
     can open an existing drawing when starting up idraw by  typ-
     ing a file name on the command line.

     Idraw displays a portrait or landscape view of an 8.5 by  11
     inch  page in its drawing area.  In a column along the draw-
     ing area's left side is a set of  drawing  tool  icons,  and
     above  the drawing area is a set of pull-down menus contain-
     ing commands.  A panner in the lower left  corner  lets  you
     pan  and  zoom the the drawing area.  Along the top is a set
     of indicators that display editing information.

DRAWING TOOLS
     You must engage a tool before you can use it.  You engage  a
     tool  by  clicking  on  its  icon or by typing the character
     below and to the right of its icon.  The icon of the drawing
     tool  that's  engaged  appears  in  inverted  colors.   Once
     engaged, you use the tool by clicking the left mouse  button
     in the drawing area.

     The Select, Move, Scale, Stretch, Rotate,  and  Alter  tools
     manipulate  existing  graphics.  Magnify makes a part of the
     view expand to fill the entire view.  Text, Line, Multiline,
     Open  Spline, Ellipse, Rectangle, Polygon, and Closed Spline
     create new graphics.  Each tool works as follows:

     Select         Select a graphic, unselecting all others.   A
                    graphic  is selected if its handles are visi-
                    ble.  Handles are small inverse-video squares
                    that either surround the graphic or demarcate
                    its important points (such as  the  endpoints
                    of  a  line). If you hold down the shift key,
                    Select extends the selection: it selects  the
                    unselected graphic (or unselects the selected
                    graphic) you clicked on but does not unselect
                    other  selections.   Clicking  anywhere other
                    than on a graphic unselects  everything;  you
                    may also drag a rubberband rectangle around a
                    group of graphics to select all  of  them  at
                    once.    Shortcut:  the  right  mouse  button
                    invokes Select while  the  mouse  is  in  the
                    drawing area.

     Move           Move  graphics  from  one  spot  to  another.
                    Shortcut:  the  middle  mouse  button invokes
                    Move while the mouse is in the drawing area.

     Scale          Scale graphics about their centers.

     Stretch        Stretch graphics vertically  or  horizontally
                    while tying down the opposite edge.

     Rotate         Rotate graphics about their centers according
                    to  the  angle  between  two  radii:  the one
                    defined by the original  clicking  point  and
                    the  one  defined  by  the  current  dragging
                    point.

     Alter          Modify a graphic's  structure.   This  tool's
                    effect is described below for each graphic.

     Magnify        Magnify a portion of the drawing specified by
                    sweeping  out a rectangular area.  Idraw will
                    magnify the area to occupy the entire screen,
                    if possible.

     Text           Create some text.  Left-click to position the
                    first  line  of  text,  and then type as much
                    text as you want.  You  may  use  emacs-style
                    keystrokes  to edit the text as well as enter
                    it.  You can leave text editing mode by  typ-
                    ing ESC or by simply clicking somewhere else.
                    The Alter tool lets you edit the text  in  an
                    existing text graphic.

     Line           Create a line.  The shift key constrains  the
                    line  to  lie  on  either the vertical or the
                    horizontal axis.  You may left-click with the
                    Alter  tool  on  either endpoint of a line to
                    move the endpoint to a new location.

     Multiline      Create a set of connected lines.   The  shift
                    key  constrains each segment to lie on either
                    the vertical or the  horizontal  axis.   Each
                    left-click starts a new segment (i.e., adds a
                    vertex); each right-click  removes  the  last
                    vertex  added.   The  middle button finalizes
                    the multiline.  The Alter tool lets you move,
                    add,  and  remove  vertices  from an existing
                    multiline.

     Open Spline    Create an open B-spline.  The shift key  con-
                    strains  each  control point to lie on either
                    the vertical or the horizontal axis with  the
                    preceding  point.   Each  left-click  adds  a
                    control point; each right-click  removes  the
                    last  control point added.  The middle button
                    finalizes the spline.  The  Alter  tool  lets
                    you move, add, and remove control points from
                    an existing open spline.

     Ellipse        Create an ellipse.  The shift key  constrains
                    the  ellipse  to  the shape of a circle.  The
                    Alter tool does not affect ellipses.

     Rectangle      Create a rectangle.  The shift key constrains
                    the  rectangle to the shape of a square.  The
                    Alter tool  lets  you  move  the  rectangle's
                    corners  independently  to  form a four-sided
                    polygon.

     Polygon        Create a polygon.  The shift  key  constrains
                    each  side  to  lie on either the vertical or
                    the horizontal axis.  Each left-click  starts
                    a  new  segment  (i.e.,  adds a vertex); each
                    right-click removes the  last  vertex  added.
                    The middle button finalizes the polygon.  The
                    Alter tool lets you  move,  add,  and  remove
                    vertices from an existing polygon.

     Closed Spline  Create a closed B-spline.  The shift key con-
                    strains  each  control point to lie on either
                    the vertical or the horizontal axis with  the
                    preceding point.  Each left-click adds a con-
                    trol point; each right-click removes the last
                    control   point  added.   The  middle  button
                    finalizes the spline.  The  Alter  tool  lets
                    you move, add, and remove control points from
                    an existing closed spline.

PULL-DOWN MENUS
     The pull-down menus File, Edit, Structure, Font, Brush, Pat-
     tern,  FgColor,  BgColor,  Align, and View above the drawing
     area contain commands for editing the drawing and  for  con-
     trolling idraw's execution.  The File menu contains the fol-
     lowing commands to operate on files:

     New            Destroy the current drawing  and  replace  it
                    with an unnamed blank drawing.

     Revert         Reread the current  drawing,  destroying  any
                    unsaved changes.

     Open...        Specify an existing drawing to edit through a
                    FileChooser(3I),  which  lets  you browse the
                    file system easily.

     Save As...     Save the current drawing in  a  file  with  a
                    specific name.

     Save           Save the current drawing in the file it  came
                    from.

     Print...       Send a PostScript version of the drawing to a
                    printer  or  to a file.  The bold rectangular
                    outline (called the page boundary)  appearing
                    in  the drawing area indicates the portion of
                    the drawing that will appear on  the  printed
                    page.

     Import Graphic...
                    Create a graphic from the  information  in  a
                    file  and insert it into the current drawing.
                    Idraw can import images  from  files  in  the
                    following formats: TIFF; PostScript generated
                    by pgmtops, ppmtops, and idraw; X bitmap for-
                    mat; and Unidraw format.

     Quit           Quit idraw.

     The Edit menu contains the following  commands  for  editing
     graphics:

     Undo           Undo the last editing operation.   Successive
                    Undo  commands undo earlier and earlier edit-
                    ing operations.

     Redo           Redo the last editing operation.   Successive
                    Redo  commands  redo  later and later editing
                    operations up to the first  operation  undone
                    by  Undo.   Undone  operations  that have not
                    been redone are lost as soon as a new  opera-
                    tion is performed.

     Cut            Remove the selected graphics from the drawing
                    and  place  them  in a temporary storage area
                    called the clipboard.

     Copy           Copy the selected  graphics  into  the  clip-
                    board.

     Paste          Paste copies of the graphics in the clipboard
                    into  the  drawing.  Together, Cut, Copy, and
                    Paste let you transfer graphics between draw-
                    ings  simply  by  cutting graphics out of one
                    view and pasting them into another.

     Duplicate      Duplicate the selected graphics and  add  the
                    copies to the drawing.

     Delete         Destroy the selected graphics.

     Select All     Select every graphic in the drawing.

     Flip Horizontal, Flip Vertical
                    Flip the selected graphics into their  mirror
                    images along the horizontal or vertical axes.

     90 Clockwise, 90 CounterCW
                    Rotate  the  selected  graphics  90   degrees
                    clockwise or counterclockwise.

     Precise Move..., Precise Scale..., Precise Rotate...
                    Move, scale,  or  rotate  graphics  by  exact
                    amounts  that  you type in a dialog box.  You
                    can specify movements in pixels, points, cen-
                    timeters,  or inches.  Scalings are specified
                    in terms of magnification factors in the hor-
                    izontal  and  vertical  dimensions. Rotations
                    are in degrees.

     The Structure menu contains the following commands to modify
     the  structure  of  the drawing, that is, the order in which
     graphics are drawn:

     Group          Nest the selected graphics in a newly created
                    picture.   A  picture  is just a graphic that
                    contains other graphics.  Group allows you to
                    build hierarchies of graphics.

     Ungroup        Dissolve any selected pictures.

     Bring To Front Bring the selected graphics to the  front  of
                    the  drawing so that they are drawn on top of
                    (after) other graphics.

     Send To Back   Send the selected graphics to the back of the
                    drawing   so   that  they  are  drawn  behind
                    (before) other graphics.

     The Font menu contains a set of fonts in  which  to  display
     text.  When you set the current font from the menu, you will
     also set all the selected graphics' fonts to that  font.   A
     font  indicator  in  the  upper  right  corner  displays the
     current font.

     The Brush menu contains a set of brushes with which to  draw
     lines.   When  you  set the current brush from the menu, you
     will also set all the selected  graphics'  brushes  to  that
     brush.   The  nonexistent  brush  draws  invisible lines and
     non-outlined graphics.  The arrowhead brushes add arrowheads
     to  either  or  both  ends  of  lines,  multilines, and open
     splines. A brush indicator in the upper left corner displays
     the current brush.

     The Pattern menu contains a set of patterns  with  which  to
     fill  graphics but not text.  Text always appears solid, but
     you can use a different color than black to get a  halftoned
     shade.   When you set the current pattern from the menu, you
     will also set all the selected graphics'  patterns  to  that
     pattern.   The  nonexistent pattern draws unfilled graphics,
     while the other patterns draw graphics filled with a  bitmap
     or a halftoned shade.

     The FgColor and BgColor menus contains a set of colors  with
     which  to  draw graphics and text.  When you set the current
     foreground or background color from the FgColor  or  BgColor
     menu,  you  will  also  set all the selected graphics' fore-
     ground or background colors.  The ``on'' bits in the bitmaps
     for  dashed lines and fill patterns appear in the foreground
     color while the ``off'' bits appear in the background color.
     A  black  and  white printer will print a halftoned shade of
     gray for any color other than black or  white.   The  brush,
     pattern, and font indicators all reflect the current colors.

     The Align menu contains  commands  to  align  graphics  with
     other  graphics.   The  first  graphic  selected stays fixed
     while the  other  graphics  move  in  the  order  they  were
     selected  according  to  the  type of alignment chosen.  The
     last Align command, Align to Grid, aligns  a  key  point  on
     each  selected  graphic to the nearest point on idraw's grid
     (see below).

     The View menu contains the following commands:

     New View       Create a duplicate idraw window containing  a
                    second  view  of  the  current  drawing.  The
                    second view may be panned, zoomed, and edited
                    independently  of  the  first.  Any number of
                    additional views may be made in this  manner.
                    Changes  made  to  a drawing through one view
                    appear synchronously in all  other  views  of
                    the  same drawing.  You may also view another
                    drawing in any idraw window via the Open com-
                    mand.

     Close View     Close the current idraw window.  Closing  the
                    last  idraw window is equivalent to issuing a
                    Quit command.

     Normal Size    Set the magnification to unity so the drawing
                    appears at actual size.

     Reduce to Fit  Reduce the magnification  until  the  drawing
                    fits entirely within the view.

     Center Page    Center the view over the center of the 8.5 by
                    11 inch page.

     Orientation    Toggle the  drawing's  orientation.   If  the
                    editor  was  formerly showing a portrait view
                    of the drawing, it will now show a  landscape
                    view of the drawing and vice versa.

     Grid on/off    Toggle idraw's grid on or off.  When the grid
                    is  on,  idraw draws a grid of equally spaced
                    points behind the drawing.

     Grid Spacing...
                    Change the grid spacing by specifying one  or
                    two  values  in  the  units  desired (pixels,
                    points,  centimeters,  or  inches).   If  two
                    values  are given (separated by a space), the
                    first specifies the  horizontal  spacing  and
                    second  the vertical spacing.  One value will
                    specify equal horizontal and  vertical  spac-
                    ing.

     Gravity on/off Toggle gravity on or off.  Gravity constrains
                    tool  operation  to  the grid, whether or not
                    the grid is visible.

X DEFAULTS
     You can customize the number of  undoable  changes  and  the
     font, brush, pattern, or color menus by setting resources in
     your  X  defaults  database.   Each  string  of   the   form
     ``idraw.resource:definition'' sets a resource.  For example,
     to customize any of the paint menus, set a resource given by
     the  concatenation of the menu's name and the entry's number
     (e.g., ``idraw.pattern8'') for each entry that you  want  to
     override.  All menus use the number 1 for the first entry.

     You must set resources only for the entries that you want to
     override,  not  all  of them.  If you want to add entries to
     the menus, simply set resources for  them.   However,  don't
     skip any numbers after the end of the menu, because the menu
     will end at the first undefined resource.  To shorten a menu
     instead  of  extending  it,  specify  a  blank string as the
     resource for the entry following the last.

     Idraw understands the following resources:

     history        Set the maximum number  of  undoable  changes
                    (20 by default).

     initialfont    Specify the  font  that  will  be  active  on
                    startup.
                     Supply a number that identifies the font  by
                    its position in the Font menu starting from 1
                    for the first entry.

     fonti          Define a custom font to use for the ith entry
                    in   the   Font  menu.   Give  three  strings
                    separated by whitespace.   The  first  string
                    defines  the  font's  name, the second string
                    the corresponding print font, and  the  third
                    string   the   print   size.    For  example,
                    ``idraw.font3:8x13bold   Courier-Bold    13''
                    defines the third font entry.

     initialbrush   Specify the brush  that  will  be  active  on
                    startup.   Give  a number that identifies the
                    brush by  its  position  in  the  Brush  menu
                    starting from 1 for the first entry.

     brushi         Define a custom brush  to  use  for  the  ith
                    entry  in  the  Brush  menu.   The definition
                    requires two numbers:  a  16-bit  hexadecimal
                    number to define the brush's line style (each
                    1 bit draws a dash and each 0 bit produces  a
                    gap),  and  a  decimal  integer to define the
                    brush's  width  in  pixels.    For   example,
                    ``idraw.brush2:ffff   1''  defines  a  single
                    pixel wide  solid  line.  If  the  definition
                    specifies  only  the string ``none'', then it
                    defines the nonexistent brush.

     initialpattern Specify the pattern that will  be  active  on
                    startup.   Give  a number that identifies the
                    pattern by its position in the  Pattern  menu
                    starting from 1 for the first entry.

     patterni       Define a custom pattern to use  for  the  ith
                    entry  in  the Pattern menu.  You can specify
                    the pattern from a 16x16 bitmap, a  8x8  bit-
                    map, a 4x4 bitmap, a grayscale number, or the
                    string ``none''.  You specify the 16x16  bit-
                    map  with sixteen 16-bit hexadecimal numbers,
                    the 8x8 bitmap with eight  8-bit  hexadecimal
                    numbers,  the 4x4 bitmap with a single 16-bit
                    hexadecimal number, and the grayscale  number
                    with  a  single  floating  point number.  The
                    floating point number must contain  a  period
                    to distinguish itself from the single hexade-
                    cimal number, and it must lie between 0.0 and
                    1.0, where 0.0 corresponds to a solid pattern
                    and 1.0 to a clear pattern.  On the  printer,
                    the  bitmap  patterns  appear as bitmaps, the
                    grayscale  patterns   appear   as   halftoned
                    shades,   and  the  ``none''  patterns  never
                    obscure any underlying graphics.   For  exam-
                    ple, ``idraw.pattern8:8421'' defines a diago-
                    nally hatched pattern.

     initialfgcolor Specify the foreground  color  that  will  be
                    active  on startup.  Give a number that iden-
                    tifies the  color  by  its  position  in  the
                    FgColor  menu  starting  from 1 for the first
                    entry.

     fgcolori       Define a custom color  to  use  for  the  ith
                    entry  in  the  FgColor  menu.  Give a string
                    defining the name of the color and optionally
                    three  decimal  numbers  between  0 and 65535
                    following the name to define the red,  green,
                    and blue components of the color's intensity.
                    The intensities override the name;  that  is,
                    idraw  will look the name up in a window sys-
                    tem database of common  colors  only  if  you
                    omit  the intensities.  You can define shades
                    of gray by using equal  proportions  of  each
                    primary       color.        For      example,
                    ``idraw.fgcolor8:Indigo   48896   0   65280''
                    defines  a color that is a mixture of red and
                    blue.

     initialbgcolor Specify the background  color  that  will  be
                    active  on startup.  Give a number that iden-
                    tifies the  color  by  its  position  in  the
                    BgColor  menu  starting  from 1 for the first
                    entry.

     bgcolori       Define a custom color  to  use  for  the  ith
                    entry  in  the  BgColor menu.  The same rules
                    apply to background colors as  to  foreground
                    colors.

WEB PAGE
	http://www.vectaport.com/ivtools/idraw.html