Josh Holtrop
|
701b7db7ba
|
use "object" baseclass for unspecified superclasses
|
2011-09-08 15:29:51 -04:00 |
|
Josh Holtrop
|
f15c2dfd79
|
add invalidate(); call from merge_in_drawing_shape()
|
2011-09-08 14:25:57 -04:00 |
|
Josh Holtrop
|
1f98204b4a
|
solve() in reshape() instead of init()
|
2011-09-08 14:25:37 -04:00 |
|
Josh Holtrop
|
f9d9d9ebfb
|
add SketchWidget.solve(); Window.update_sketch_status()
|
2011-09-08 14:21:39 -04:00 |
|
Josh Holtrop
|
4a76120fce
|
right-click while not drawing will return to select mode
|
2011-09-06 16:01:01 -04:00 |
|
Josh Holtrop
|
c69c7e3184
|
split set_hover_snap_point() from update_hover_snap_point()
|
2011-08-05 10:19:59 -04:00 |
|
Josh Holtrop
|
9f9747cbe8
|
add get_snap_ptrefs_within_range()
|
2011-08-04 18:51:37 -04:00 |
|
Josh Holtrop
|
e3c9d19e9a
|
connect to snap points when creating a circle
|
2011-08-04 14:39:15 -04:00 |
|
Josh Holtrop
|
f489d11a57
|
draw in-progress lines to snap point
|
2011-07-28 19:53:01 -04:00 |
|
Josh Holtrop
|
84f1e6585b
|
do not create a horizontal/vertical constraint when snapping lines
|
2011-07-28 18:10:38 -04:00 |
|
Josh Holtrop
|
f6b2b30910
|
add snap points for just-drawn shapes
|
2011-07-28 18:06:18 -04:00 |
|
Josh Holtrop
|
aebf7df80f
|
add PointRef class, convert snap points to PointRef instances
|
2011-07-28 18:01:16 -04:00 |
|
Josh Holtrop
|
de69e966cb
|
clear hover snap point when drawing a circle
|
2011-07-28 13:15:59 -04:00 |
|
Josh Holtrop
|
fdcb07003c
|
snap lines to shape handles while drawing
|
2011-07-28 10:28:57 -04:00 |
|
Josh Holtrop
|
c75fbc50ab
|
add Connect constraints for sequentially drawn lines
|
2011-07-28 09:19:19 -04:00 |
|
Josh Holtrop
|
b5080f14dd
|
change drawingConstraints to a hash for easier updating
|
2011-07-28 00:43:43 -04:00 |
|
Josh Holtrop
|
ada889ab5e
|
increase snap dist, store snap_dist^2
|
2011-07-28 00:00:23 -04:00 |
|
Josh Holtrop
|
6c91677c11
|
draw hover snap point
|
2011-07-27 23:57:32 -04:00 |
|
Josh Holtrop
|
a0fe5aa6aa
|
move glColor() out of individual draw routines
|
2011-07-27 23:17:35 -04:00 |
|
Josh Holtrop
|
03754f3cec
|
call do_*_motion() regardless of drawing status
|
2011-07-27 22:58:55 -04:00 |
|
Josh Holtrop
|
4a7e677bf3
|
added cancel_drawing_shape()
|
2011-07-27 22:42:36 -04:00 |
|
Josh Holtrop
|
47ac5cb3fd
|
clear drawingShape/drawingConstraints on new mode
|
2011-07-27 22:40:16 -04:00 |
|
Josh Holtrop
|
895fa54ed7
|
change cursor for drawing modes
|
2011-07-27 22:26:09 -04:00 |
|
Josh Holtrop
|
cd1deb3c8b
|
add snap points, update on viewport changes
|
2011-07-27 22:14:48 -04:00 |
|
Josh Holtrop
|
ea43216f16
|
rename snap_dist to hv_snap_dist
|
2011-07-27 21:41:01 -04:00 |
|
Josh Holtrop
|
b95e8e8789
|
complete circle drawing
|
2011-07-27 18:03:32 -04:00 |
|
Josh Holtrop
|
5c790ae79f
|
create merge_in_drawing_shape()
|
2011-07-27 17:14:57 -04:00 |
|
Josh Holtrop
|
57d166dfc7
|
comment
|
2011-07-27 17:13:37 -04:00 |
|
Josh Holtrop
|
8d9144581c
|
switch drawingLine/drawingCircle to generic drawingShape
|
2011-07-27 17:12:00 -04:00 |
|
Josh Holtrop
|
eb28222f23
|
add initial do_circle_*_click()
|
2011-07-27 16:57:48 -04:00 |
|
Josh Holtrop
|
999561a4ab
|
queue redraw when exiting line/circle mode
|
2011-07-27 16:53:07 -04:00 |
|
Josh Holtrop
|
8b89a5975f
|
break out 'line' mode actions into separate functions
|
2011-07-27 16:52:23 -04:00 |
|
Josh Holtrop
|
1564fbbb74
|
mode buttons change SketchWidget mode
|
2011-07-27 16:40:39 -04:00 |
|
Josh Holtrop
|
5f2436f3b7
|
initially assign focus to SketchWidget
|
2011-07-27 16:29:34 -04:00 |
|
Josh Holtrop
|
21896bea8e
|
minor code reformatting
|
2011-07-27 15:42:14 -04:00 |
|
Josh Holtrop
|
8c76ce3155
|
SketchWidget takes window parameter
|
2011-04-24 11:31:20 -04:00 |
|
Josh Holtrop
|
b34ba613b2
|
snap within angle and distance
|
2011-04-23 22:35:27 -04:00 |
|
Josh Holtrop
|
6a6e635902
|
fix screenDistToDist() bug
|
2011-04-23 22:34:52 -04:00 |
|
Josh Holtrop
|
4758cb9c3f
|
add horizontal/vertical constraint on newly drawn lines
|
2011-04-23 21:55:05 -04:00 |
|
Josh Holtrop
|
c7885bc0d6
|
individual constraint drawing routines responsible for setting color
|
2011-04-23 21:52:29 -04:00 |
|
Josh Holtrop
|
65f80774a1
|
draw horizontal/vertical constraint on drawLine
|
2011-04-23 21:51:42 -04:00 |
|
Josh Holtrop
|
854df86eaf
|
snap lines to horizontal/vertical within snap_angle degrees
|
2011-04-23 21:48:42 -04:00 |
|
Josh Holtrop
|
02db7d629d
|
draw horizontal and vertical constraints
|
2011-04-23 21:06:56 -04:00 |
|
Josh Holtrop
|
0401d89bb4
|
map screen to pixels 1:1
|
2011-04-23 17:18:34 -04:00 |
|
Josh Holtrop
|
5f02703ecd
|
tweak default colors
|
2011-04-05 17:25:40 -04:00 |
|
Josh Holtrop
|
c05ea0a4b0
|
filled out drawConnect(), tweak colors
|
2011-04-04 14:04:26 -04:00 |
|
Josh Holtrop
|
abfe98a221
|
set color in individual draw*() routines
|
2011-04-04 11:46:14 -04:00 |
|
Josh Holtrop
|
73a6e5cf92
|
add drawConnect() stub
|
2011-04-04 09:11:20 -04:00 |
|
Josh Holtrop
|
5ef8b73b29
|
SketchWidget: remove size param from draw*()
|
2011-04-03 20:11:26 -04:00 |
|
Josh Holtrop
|
f2fdf19079
|
SketchWidget: refactor drawing of shapes/constraints
|
2011-04-03 20:09:56 -04:00 |
|