Commit Graph

  • 1d5f65bda8 use drawHandle() instead of drawConnect() master Josh Holtrop 2011-10-03 21:36:43 -04:00
  • 76781b0ef6 install-deps: install openopt Josh Holtrop 2011-10-03 21:28:49 -04:00
  • af826b32fe fix gtkgl import Josh Holtrop 2011-10-03 21:22:49 -04:00
  • 096072e21d download and extract OpenOpt Josh Holtrop 2011-10-03 21:22:37 -04:00
  • 3826686c96 install-deps: handle gtkgl dependency Josh Holtrop 2011-10-03 21:16:32 -04:00
  • 9be9335d8e update install-deps to get numpy and FuncDesigner Josh Holtrop 2011-10-03 20:45:33 -04:00
  • f84c9d4234 make use of PointRef.getPt(), silly Josh Holtrop 2011-10-03 18:01:49 -04:00
  • a6ae3dd3a6 redraw when cancelling in ConnectMode Josh Holtrop 2011-10-03 17:59:16 -04:00
  • 599d21a272 always queue a redraw when changing modes Josh Holtrop 2011-10-03 17:58:12 -04:00
  • bf340f12d9 add draw() to Mode; draw in-progress Connects Josh Holtrop 2011-10-03 17:55:28 -04:00
  • 751b063237 add XDim and YDim modes (no graphics yet) Josh Holtrop 2011-10-03 12:29:50 -04:00
  • 1585c8c9f2 add initial Dimension class Josh Holtrop 2011-10-03 11:09:00 -04:00
  • 075538442f add initial install-deps script Josh Holtrop 2011-10-01 22:58:56 -04:00
  • 1c7c495914 HorizontalMode and VerticalMode inherit from ConnectMode Josh Holtrop 2011-09-30 15:25:47 -04:00
  • 62dcd76efc draw horizontal/vertical constraints connecting multiple shapes Josh Holtrop 2011-09-30 14:58:00 -04:00
  • a24179d38f add Horiz/Vert contraint buttons and drawing modes Josh Holtrop 2011-09-30 14:40:09 -04:00
  • 6c6e7be7e4 update snap points after solving sketch Josh Holtrop 2011-09-30 14:22:10 -04:00
  • 49de2c6245 slight optimization for drawing circles Josh Holtrop 2011-09-09 14:18:06 -04:00
  • c622bf671b ConnectMode: right click to cancel connection Josh Holtrop 2011-09-09 14:01:29 -04:00
  • 155d04fc90 ConnectMode: clear first ptref when creating a Connect! Josh Holtrop 2011-09-09 09:13:13 -04:00
  • e0491b7b1a ConnectMode creates Connect object and re-solves sketch! Josh Holtrop 2011-09-08 16:32:26 -04:00
  • 702aa1eaf8 add ConnectMode class Josh Holtrop 2011-09-08 16:00:28 -04:00
  • 05c8627395 add Mode, LineMode, and CircleMode classes Josh Holtrop 2011-09-08 15:58:07 -04:00
  • 701b7db7ba use "object" baseclass for unspecified superclasses Josh Holtrop 2011-09-08 15:29:51 -04:00
  • fe5af49b39 create temporary addButton() method for text-based toolbar items Josh Holtrop 2011-09-08 15:21:35 -04:00
  • 7afe81f775 update status icon with sketch solve status Josh Holtrop 2011-09-08 14:41:51 -04:00
  • f15c2dfd79 add invalidate(); call from merge_in_drawing_shape() Josh Holtrop 2011-09-08 14:25:57 -04:00
  • 1f98204b4a solve() in reshape() instead of init() Josh Holtrop 2011-09-08 14:25:37 -04:00
  • f9d9d9ebfb add SketchWidget.solve(); Window.update_sketch_status() Josh Holtrop 2011-09-08 14:21:39 -04:00
  • 8066327ad9 change StatusBar to a VBox of individual status elements Josh Holtrop 2011-09-08 14:08:31 -04:00
  • 4a76120fce right-click while not drawing will return to select mode Josh Holtrop 2011-09-06 16:01:01 -04:00
  • 7d256d4fe1 clean up shapes and constraits package imports to only import classes Josh Holtrop 2011-08-08 15:35:41 -04:00
  • c69c7e3184 split set_hover_snap_point() from update_hover_snap_point() Josh Holtrop 2011-08-05 10:19:59 -04:00
  • 9f9747cbe8 add get_snap_ptrefs_within_range() Josh Holtrop 2011-08-04 18:51:37 -04:00
  • e3c9d19e9a connect to snap points when creating a circle Josh Holtrop 2011-08-04 14:39:15 -04:00
  • f489d11a57 draw in-progress lines to snap point Josh Holtrop 2011-07-28 19:53:01 -04:00
  • 84f1e6585b do not create a horizontal/vertical constraint when snapping lines Josh Holtrop 2011-07-28 18:10:38 -04:00
  • f6b2b30910 add snap points for just-drawn shapes Josh Holtrop 2011-07-28 18:06:18 -04:00
  • aebf7df80f add PointRef class, convert snap points to PointRef instances Josh Holtrop 2011-07-28 18:01:16 -04:00
  • de69e966cb clear hover snap point when drawing a circle Josh Holtrop 2011-07-28 13:15:59 -04:00
  • fdcb07003c snap lines to shape handles while drawing Josh Holtrop 2011-07-28 10:28:57 -04:00
  • c75fbc50ab add Connect constraints for sequentially drawn lines Josh Holtrop 2011-07-28 09:19:19 -04:00
  • b5080f14dd change drawingConstraints to a hash for easier updating Josh Holtrop 2011-07-28 00:43:43 -04:00
  • ada889ab5e increase snap dist, store snap_dist^2 Josh Holtrop 2011-07-28 00:00:23 -04:00
  • 6c91677c11 draw hover snap point Josh Holtrop 2011-07-27 23:57:32 -04:00
  • a0fe5aa6aa move glColor() out of individual draw routines Josh Holtrop 2011-07-27 23:17:35 -04:00
  • 03754f3cec call do_*_motion() regardless of drawing status Josh Holtrop 2011-07-27 22:58:55 -04:00
  • 4a7e677bf3 added cancel_drawing_shape() Josh Holtrop 2011-07-27 22:42:36 -04:00
  • 47ac5cb3fd clear drawingShape/drawingConstraints on new mode Josh Holtrop 2011-07-27 22:40:16 -04:00
  • 895fa54ed7 change cursor for drawing modes Josh Holtrop 2011-07-27 22:26:09 -04:00
  • cd1deb3c8b add snap points, update on viewport changes Josh Holtrop 2011-07-27 22:14:48 -04:00
  • ea43216f16 rename snap_dist to hv_snap_dist Josh Holtrop 2011-07-27 21:41:01 -04:00
  • 409783d01f Sketch.solve() returns solve result as integer Josh Holtrop 2011-07-27 18:27:11 -04:00
  • b95e8e8789 complete circle drawing Josh Holtrop 2011-07-27 18:03:32 -04:00
  • 4ec320ff5d implement setRadius()/setPt() for Circle Josh Holtrop 2011-07-27 18:03:09 -04:00
  • 5c790ae79f create merge_in_drawing_shape() Josh Holtrop 2011-07-27 17:14:57 -04:00
  • 57d166dfc7 comment Josh Holtrop 2011-07-27 17:13:37 -04:00
  • 8d9144581c switch drawingLine/drawingCircle to generic drawingShape Josh Holtrop 2011-07-27 17:12:00 -04:00
  • eb28222f23 add initial do_circle_*_click() Josh Holtrop 2011-07-27 16:57:48 -04:00
  • 999561a4ab queue redraw when exiting line/circle mode Josh Holtrop 2011-07-27 16:53:07 -04:00
  • 8b89a5975f break out 'line' mode actions into separate functions Josh Holtrop 2011-07-27 16:52:23 -04:00
  • 1564fbbb74 mode buttons change SketchWidget mode Josh Holtrop 2011-07-27 16:40:39 -04:00
  • 99129c60e1 rework buttons into mode_buttons Josh Holtrop 2011-07-27 16:35:35 -04:00
  • 5f2436f3b7 initially assign focus to SketchWidget Josh Holtrop 2011-07-27 16:29:34 -04:00
  • 8c3193bbec clean up ToggleToolButton handling; add Circle button Josh Holtrop 2011-07-27 16:18:03 -04:00
  • 21896bea8e minor code reformatting Josh Holtrop 2011-07-27 15:42:14 -04:00
  • f07f5b23bc add toggled_event() callback Josh Holtrop 2011-07-25 23:49:46 -04:00
  • 55dadd2240 add a toolbar Josh Holtrop 2011-07-25 23:35:31 -04:00
  • edd8fd6107 add SampleSketch class Josh Holtrop 2011-07-25 23:13:25 -04:00
  • e398a6e6c8 moved shapes and constraints into module directories Josh Holtrop 2011-06-17 12:21:12 -04:00
  • 4e70df40e3 add status bar to window Josh Holtrop 2011-04-24 11:50:02 -04:00
  • 2b690763d2 pressing Escape quits the program for now Josh Holtrop 2011-04-24 11:44:07 -04:00
  • 8c76ce3155 SketchWidget takes window parameter Josh Holtrop 2011-04-24 11:31:20 -04:00
  • b34ba613b2 snap within angle and distance Josh Holtrop 2011-04-23 22:35:27 -04:00
  • 6a6e635902 fix screenDistToDist() bug Josh Holtrop 2011-04-23 22:34:52 -04:00
  • 9e8c5ac5d6 Sketch: only attempt to solve if #vars == #equs Josh Holtrop 2011-04-23 22:23:07 -04:00
  • 4758cb9c3f add horizontal/vertical constraint on newly drawn lines Josh Holtrop 2011-04-23 21:55:05 -04:00
  • c7885bc0d6 individual constraint drawing routines responsible for setting color Josh Holtrop 2011-04-23 21:52:29 -04:00
  • 65f80774a1 draw horizontal/vertical constraint on drawLine Josh Holtrop 2011-04-23 21:51:42 -04:00
  • 854df86eaf snap lines to horizontal/vertical within snap_angle degrees Josh Holtrop 2011-04-23 21:48:42 -04:00
  • 02db7d629d draw horizontal and vertical constraints Josh Holtrop 2011-04-23 21:06:56 -04:00
  • 0401d89bb4 map screen to pixels 1:1 Josh Holtrop 2011-04-23 17:18:34 -04:00
  • 5f02703ecd tweak default colors Josh Holtrop 2011-04-05 17:25:40 -04:00
  • c05ea0a4b0 filled out drawConnect(), tweak colors Josh Holtrop 2011-04-04 14:04:26 -04:00
  • 7dc35f67bb add Circle.getPt() Josh Holtrop 2011-04-04 13:53:15 -04:00
  • 40fa3cbc3b Line: getPt(2) defined Josh Holtrop 2011-04-04 13:53:03 -04:00
  • abfe98a221 set color in individual draw*() routines Josh Holtrop 2011-04-04 11:46:14 -04:00
  • 73a6e5cf92 add drawConnect() stub Josh Holtrop 2011-04-04 09:11:20 -04:00
  • 5ef8b73b29 SketchWidget: remove size param from draw*() Josh Holtrop 2011-04-03 20:11:26 -04:00
  • f2fdf19079 SketchWidget: refactor drawing of shapes/constraints Josh Holtrop 2011-04-03 20:09:56 -04:00
  • 15f020e93a add constraints package for constraint classes Josh Holtrop 2011-04-03 12:15:55 -04:00
  • 2094ab8df8 add 'shapes' package to collect shape classes Josh Holtrop 2011-04-03 12:14:16 -04:00
  • 72c1865cf6 add configuration parameters for colors Josh Holtrop 2011-04-03 12:10:22 -04:00
  • f6cc39914b SketchWidget: s/redraw()/queue_redraw()/ Josh Holtrop 2011-04-03 12:00:51 -04:00
  • f20726e571 add crude line drawing Josh Holtrop 2011-04-03 11:50:44 -04:00
  • 204f4591e9 add Line.setPt() Josh Holtrop 2011-04-03 11:50:28 -04:00
  • 764012a889 much more user-friendly zooming Josh Holtrop 2011-04-02 00:32:15 -04:00
  • 21d969b5cb a very non-user-friendly zoom Josh Holtrop 2011-04-02 00:20:29 -04:00
  • e1011b83ba fix panning Josh Holtrop 2011-04-02 00:13:49 -04:00
  • aaf857d071 fix up panning code, now backwards Josh Holtrop 2011-04-02 00:09:23 -04:00