|
|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: D T
Length: 10925 (0x2aad)
Types: TextFile
Names: »DIFFS«
└─⟦060c9c824⟧ Bits:30007080 DKUUG TeX 2/12/89
└─⟦this⟧ »./tex82/TeXgraphics/fig2latex/fig_src/DIFFS«
func.h
73,74d72
< #define F_UNCONSTRAINT 260 /*fs*/
< #define F_MOUNTHATTAN 261 /*fs*/
77,78d74
< #define F_LATEX_LINE 262 /*fs*/
< #define F_LATEX_ARROW 263 /*fs*/
global.c
110,111d109
< int latexline_mode = 0;
< int latexarrow_mode = 0;
line.c
30d29
< extern struct cursor crosshair_cursor;
35,36d33
< extern int latexline_mode, latexarrow_mode;
< extern int magnet_mode, latexarrow_mode;
43d39
< extern int latex_endpoint();
50d45
< static struct cursor *cur_cursor;
54d48
< create_latexobject();
57d50
< latex_elasticline();
60,61c53
< get_direction(), get_intermediatepoint(),
< get_latexpoint();
---
> get_direction(), get_intermediatepoint();
91,96c83
< if (latexline_mode || latexarrow_mode) {
< canvas_locmove_proc = latex_elasticline;
< canvas_leftbut_proc = get_latexpoint;
< canvas_middlebut_proc = create_latexobject;
< }
< else if (manhattan_mode || mountain_mode) {
---
> if (manhattan_mode || mountain_mode) {
99d85
< canvas_middlebut_proc = create_lineobject;
104d89
< canvas_middlebut_proc = create_lineobject;
106,107c91
< win_setcursor(canvas_swfd, &null_cursor);
< cur_cursor = &null_cursor;
---
> canvas_middlebut_proc = create_lineobject;
108a93
> win_setcursor(canvas_swfd, &null_cursor);
125,147d109
< draw_latexline()
< {
< int x, y;
< struct cursor *c;
<
< latex_endpoint(fix_x, fix_y, cur_x, cur_y, &x, &y, latexarrow_mode, (magnet_mode)? 5: 1);
< pw_vector(canvas_pixwin, fix_x, fix_y, x, y, INV_PAINT,1);
< c = (x == cur_x && y == cur_y)? &null_cursor: &crosshair_cursor;
< if (c != cur_cursor) {
< win_setcursor(canvas_swfd, c);
< cur_cursor = c;
< }
< }
<
< latex_elasticline(x, y)
< int x, y;
< {
< draw_latexline();
< cur_x = x;
< cur_y = y;
< draw_latexline();
< }
<
244,256d205
< get_latexpoint(x, y)
< int x, y;
< {
< draw_latexline(x, y);
< latex_endpoint(fix_x, fix_y, x, y, &cur_x, &cur_y, latexarrow_mode, (magnet_mode)? 5: 1);
< if (cur_cursor != &null_cursor) {
< win_setcursor(canvas_swfd, &null_cursor);
< cur_cursor = &null_cursor;
< }
< win_setmouseposition(canvas_swfd, cur_x, cur_y);
< get_intermediatepoint(cur_x, cur_y);
< }
<
273,287d221
< }
<
< create_latexobject(x, y)
< int x, y;
< {
< if (x != fix_x || y != fix_y || num_point == 1) {
< draw_latexline(x, y);
< latex_endpoint(fix_x, fix_y, x, y, &cur_x, &cur_y, latexarrow_mode, (magnet_mode)? 5: 1);
< if (cur_cursor != &null_cursor) {
< win_setcursor(canvas_swfd, &null_cursor);
< cur_cursor = &null_cursor;
< }
< win_setmouseposition(canvas_swfd, cur_x, cur_y);
< }
< create_lineobject(cur_x, cur_y);
panel.c
34d33
< static set_geometry();
76,81c75,78
< 1, 2, 0, 17, &unconstraint_ic, F_UNCONSTRAINT, set_geometry, null_proc, S_ON,
< 0, 2, 1, 17, &mounthattan_ic, F_MOUNTHATTAN, set_geometry, null_proc, S_ON,
< 0, 2, 0, 18, &manhattan_ic, F_MANHATTAN, set_geometry, null_proc, S_ON,
< 0, 2, 1, 18, &mountain_ic, F_MOUNTAIN, set_geometry, null_proc, S_ON,
< 0, 2, 0, 19, &latexline_ic, F_LATEX_LINE, set_geometry, null_proc, S_ON,
< 0, 2, 1, 19, &latexarrow_ic, F_LATEX_ARROW, set_geometry, null_proc, S_ON,
---
> 0, -1, 0, 17, &manhattan_ic, F_MANHATTAN, mode_on, mode_off, S_TOG,
> 0, -1, 1, 17, &mountain_ic, F_MOUNTAIN, mode_on, mode_off, S_TOG,
> 0, -1, 0, 18, &backarrow_ic, F_AUTOB_ARROW, mode_on, mode_off, S_TOG,
> 0, -1, 1, 18, &forarrow_ic, F_AUTOF_ARROW, mode_on, mode_off, S_TOG,
83,84c80,82
< 0, -1, 0, 20, &backarrow_ic, F_AUTOB_ARROW, mode_on, mode_off, S_TOG,
< 0, -1, 1, 20, &forarrow_ic, F_AUTOF_ARROW, mode_on, mode_off, S_TOG,
---
> 1, 2, 0, 20, &solidline_ic, F_SET_SOLID_LINE, set_style, null_proc, S_ON,
> 0, 2, 1, 20, &dashline_ic, F_SET_DASH_LINE, set_style, null_proc, S_ON,
> 0, 2, 1, 21, &dottedline_ic, F_SET_DOTTED_LINE, set_style, null_proc, S_ON,
86,90c84
< 1, 3, 0, 21, &solidline_ic, F_SET_SOLID_LINE, set_style, null_proc, S_ON,
< 0, 3, 1, 21, &dashline_ic, F_SET_DASH_LINE, set_style, null_proc, S_ON,
< 0, 3, 1, 22, &dottedline_ic, F_SET_DOTTED_LINE, set_style, null_proc, S_ON,
<
< 1, -1, 1, 23, &magnet_ic, F_MAGNET, mode_on, mode_off, S_TOG,
---
> 0, -1, 1, 23, &magnet_ic, F_MAGNET, mode_on, mode_off, S_TOG,
93c87
< #define NUM_GROUP 4
---
> #define NUM_GROUP 3
195,196d188
< extern int latexline_mode;
< extern int latexarrow_mode;
215,226d206
< case F_UNCONSTRAINT :
< manhattan_mode = 0;
< mountain_mode = 0;
< latexline_mode = 0;
< latexarrow_mode = 0;
< group[sw->group] = sw;
< break;
< case F_MOUNTHATTAN :
< manhattan_mode = 1;
< mountain_mode = 1;
< group[sw->group] = sw;
< break;
229d208
< group[sw->group] = sw;
233d211
< group[sw->group] = sw;
235,242d212
< case F_LATEX_LINE :
< latexline_mode = 1;
< group[sw->group] = sw;
< break;
< case F_LATEX_ARROW :
< latexarrow_mode = 1;
< group[sw->group] = sw;
< break;
469,523d438
< set_geometry(sw)
< F_switch *sw;
< {
< extern int manhattan_mode;
< extern int mountain_mode;
< extern int latexline_mode;
< extern int latexarrow_mode;
<
< switch (sw->value) {
< case F_UNCONSTRAINT :
< manhattan_mode = 0;
< mountain_mode = 0;
< latexline_mode = 0;
< latexarrow_mode = 0;
< put_msg("UNCONSTRAINT geometry (for POLYLINE and SPLINE)");
< break;
< case F_MOUNTHATTAN :
< mountain_mode = 1;
< manhattan_mode = 1;
< latexline_mode = 0;
< latexarrow_mode = 0;
< put_msg("MOUNT-HATTAN geometry (for POLYLINE and SPLINE)");
< break;
< case F_MANHATTAN :
< manhattan_mode = 1;
< mountain_mode = 0;
< latexline_mode = 0;
< latexarrow_mode = 0;
< put_msg("MANHATTAN geometry (for POLYLINE and SPLINE)");
< break;
< case F_MOUNTAIN :
< mountain_mode = 1;
< manhattan_mode = 0;
< latexline_mode = 0;
< latexarrow_mode = 0;
< put_msg("MOUNTAIN geometry (for POLYLINE and SPLINE)");
< break;
< case F_LATEX_LINE :
< latexline_mode = 1;
< manhattan_mode = 0;
< mountain_mode = 0;
< latexarrow_mode = 0;
< put_msg("LATEX LINE geometry: allow only LaTeX line slopes");
< break;
< case F_LATEX_ARROW :
< latexarrow_mode = 1;
< manhattan_mode = 0;
< mountain_mode = 0;
< latexline_mode = 0;
< put_msg("LATEX ARROW geometry: allow only LaTeX arrow slopes");
< break;
< }
< }
<
< static
533a449,450
> extern int manhattan_mode;
> extern int mountain_mode;
538a456,463
> case F_MANHATTAN :
> manhattan_mode = 1;
> put_msg("MANHATTAN geometry (for POLYLINE and SPLINE)");
> break;
> case F_MOUNTAIN :
> mountain_mode = 1;
> put_msg("MOUNTAIN geometry (for POLYLINE and SPLINE)");
> break;
557a483,484
> extern int manhattan_mode;
> extern int mountain_mode;
562a490,495
> case F_MANHATTAN :
> manhattan_mode = 0;
> break;
> case F_MOUNTAIN :
> mountain_mode = 0;
> break;
panel.h
57,78d56
< static u_int latexline_image[32] = {
< 0x00000000,0x00000000,0x00007000,0x001F8000,
< 0x00F00000,0x01EFC000,0x01903F00,0x028C00F0,
< 0x04830000,0x08808000,0x08806000,0x10801000,
< 0x00000000,0x00000000,0x00000000,0x00000000,
< 0x00000000,0x180FC186,0x18CFC0CC,0x192300CC,
< 0x19230078,0x19E37C30,0x19236030,0x19236078,
< 0x180360CC,0x1F8378CC,0x1F836186,0x00006000,
< 0x00006000,0x00007C00,0x00000000,0x00000000, };
< mpr_static(latexline_ic, 32, 32, 1, latexline_image);
<
< static u_int latexarrow_image[32] = {
< 0x00000000,0x00003C00,0x0000F800,0x001F3000,
< 0x00F00000,0x01EFC000,0x01903F60,0x028C00F0,
< 0x048340F8,0x19C0C000,0x1DC0E000,0x1880F000,
< 0x10800000,0x00000000,0x00000000,0x00000000,
< 0x00000000,0x180FC186,0x18CFC0CC,0x192300CC,
< 0x19230078,0x19E37C30,0x19236030,0x19236078,
< 0x180360CC,0x1F8378CC,0x1F836186,0x00006000,
< 0x00006000,0x00007C00,0x00000000,0x00000000, };
< mpr_static(latexarrow_ic, 32, 32, 1, latexarrow_image);
<
336,357d313
< static u_int unconstraint_image[32] = {
< 0x00000000,0x00000000,0x00000000,0x00055F80,
< 0x00102F80,0x00400780,0x00002340,0x01000060,
< 0x00004010,0x04000030,0x00004068,0x080001C8,
< 0x00004708,0x10000E04,0x0000981F,0x1000700E,
< 0x0000C00E,0x1000280E,0x00004204,0x10000084,
< 0x00001020,0x08000008,0x00000800,0x04000010,
< 0x00000400,0x01000040,0x00000200,0x00400100,
< 0x00100400,0x00055000,0x00000000,0x00000000, };
< mpr_static(unconstraint_ic, 32, 32, 1, unconstraint_image);
<
< static u_int mounthattan_image[32] = {
< 0x00000000,0x00000000,0x00000000,0x00000000,
< 0x00000000,0x001F8000,0x001F8000,0x00198000,
< 0x00198040,0x001980A0,0x0039C110,0x0039C208,
< 0x0130C404,0x02B0C802,0x0470D001,0x0830E000,
< 0x1030C000,0x2030C000,0x4030F000,0x8030F000,
< 0x00300000,0x00300000,0x00000000,0x00000000,
< 0x00000000,0x00000000,0x00000000,0x00000000,
< 0xFFFFFFFF,0x00000000,0x00000000,0x00000000, };
< mpr_static(mounthattan_ic, 32, 32, 1, mounthattan_image);
<
366c322
< 0x00000000, 0xFFFFFFFF, 0x00000000, 0x00000000, };
---
> 0xFFFFFFFF, 0x00000000, 0x00000000, 0x00000000, };
movept.c
18,19d17
< extern int latexline_mode, latexarrow_mode;
< extern int magnet_mode;
37d34
< extern struct cursor null_cursor;
57d53
< move_latexlinepoint(), fix_movedlatexlinepoint();
68,70d63
< static int latex_fix_x, latex_fix_y;
< struct cursor *cur_latexcursor;
<
459d451
< int latex_case;
464d455
< latex_case = 0;
510,521d500
< if (latexline_mode || latexarrow_mode) {
< if (left_point != NULL) {
< latex_fix_x = left_point->x;
< latex_fix_y = left_point->y;
< latex_case = 1;
< }
< else if (p != NULL) {
< latex_fix_x = p->x;
< latex_fix_y = p->y;
< latex_case = 1;
< }
< }
528,533d506
< else if (latex_case) {
< draw_pointlink(INV_PAINT);
< canvas_locmove_proc = move_latexlinepoint;
< canvas_middlebut_proc = fix_movedlatexlinepoint;
< cur_latexcursor = &crosshair_cursor;
< }
551,566d523
< move_latexlinepoint(x, y)
< int x, y;
< {
< struct cursor *c;
<
< draw_pointlink(INV_PAINT);
< latex_endpoint(latex_fix_x, latex_fix_y, x, y, &cur_x, &cur_y,
< latexarrow_mode, (magnet_mode)? 5: 1);
< draw_pointlink(INV_PAINT);
< c = (x == cur_x && y == cur_y)? &null_cursor: &crosshair_cursor;
< if (c != cur_latexcursor) {
< win_setcursor(canvas_swfd, c);
< cur_latexcursor = c;
< }
< }
<
599,616d555
< new_position.x = x;
< new_position.y = y;
< clean_up();
< set_action_object(F_MOVE_POINT, O_POLYLINE);
< set_latestline(cur_l);
< relocate_linepoint(cur_l, x, y, fix_x, fix_y, moved_point, left_point);
< wrapup_movepoint();
< }
<
< fix_movedlatexlinepoint(x, y)
< int x, y;
< {
< draw_pointlink(INV_PAINT);
< latex_endpoint(latex_fix_x, latex_fix_y, x, y, &x, &y,
< latexarrow_mode, (magnet_mode)? 5: 1);
< if (cur_latexcursor != &crosshair_cursor)
< win_setcursor(canvas_swfd, &crosshair_cursor);
< win_setmouseposition(canvas_swfd, x, y);