1. 15 Mar, 2008 1 commit
    • Maurice van der Pot's avatar
      Fixed bug #382548. Planner now correctly detects loops that would be · 37d81612
      Maurice van der Pot authored
      2008-03-15  Maurice van der Pot  <griffon26@kfk4ever.com>
      
      	* libplanner/mrp-task-manager.c:
      	(remove_parent_predecessors_from_dependency_graph),
      	(remove_parent_from_dependency_graph),
      	(add_parent_predecessors_to_dependency_graph),
      	(add_parent_to_dependency_graph),
      	(task_manager_build_dependency_graph),
      	(task_manager_do_forward_pass), (task_manager_do_backward_pass),
      	(check_move_traverse_recursive), (check_move_traverse),
      	(mrp_task_manager_check_move):
      	Fixed bug #382548. Planner now correctly detects loops that would be created
      	by indenting a task that is a predecessor of the task that would become its
      	parent, so it will no longer crash trying to undo an invalid action.
      	* tests/task-test.c: (main):
      	Added regression tests for bug #382548 and related issues.
      
      
      svn path=/trunk/; revision=894
      37d81612
  2. 15 Mar, 2005 1 commit
    • Richard Hult's avatar
      Fix bug #157254. · 50d534fc
      Richard Hult authored
      2005-03-15  Richard Hult  <richard@imendio.com>
      
      	Fix bug #157254.
      
      	* libplanner/mrp-time.c: Add new (temporary) API and use it to
      	improve performance a lot with large projects. Long term we should
      	either switch to it completely or rename it.
      
      	* src/planner-gantt-background.c: (gantt_background_draw):
      	* src/planner-gantt-header.c: (gantt_header_init),
      	(gantt_header_expose_event), (gantt_header_motion_notify_event):
      	* src/planner-gantt-print.c: (print_time_header):
      	* src/planner-scale-utils.c: (planner_scale_format_time):
      	* src/planner-scale-utils.h:
      	* src/planner-task-dialog.c: (task_dialog_update_schedule_label),
      	(task_dialog_calendar_changed_cb): Use the new API.
      
      	* tests/time-test.c: Remove obsolete test.
      50d534fc
  3. 06 Oct, 2004 1 commit
    • Richard Hult's avatar
      Select the inserted task, not the parent. Fixes bug #151729. · 42cc513b
      Richard Hult authored
      2004-10-06  Richard Hult  <richard@imendio.com>
      
      	* src/planner-task-tree.c (planner_task_tree_insert_task): Select
      	the inserted task, not the parent. Fixes bug #151729.
      	(planner_task_tree_insert_subtask): Likewise.
      
      	* tests/Makefile.am: Don't add the tests to make check since the
      	loadable modules aren't found when doing distcheck. We should fix
      	this for real at some point instead of disabling the automatic
      	testing.
      42cc513b
  4. 01 Aug, 2004 2 commits
    • Richard Hult's avatar
      Build dependency graph in one go, and add functions to add/remove a single · 97044fe0
      Richard Hult authored
      2004-08-01  Richard Hult  <richard@imendio.com>
      
      	* libplanner/mrp-task-manager.c:
      	(task_manager_clean_graph_func),
      	(task_manager_build_dependency_graph),
      	(add_predecessor_to_dependency_graph),
      	(remove_predecessor_from_dependency_graph_recursive),
      	(remove_predecessor_from_dependency_graph),
      	(remove_parent_from_dependency_graph),
      	(add_parent_to_dependency_graph),
      	(remove_task_from_dependency_graph),
      	(add_task_to_dependency_graph): Build dependency graph in one go,
      	and add functions to add/remove a single task.
      
      	(task_manager_traverse_dependency_graph),
      	(task_manager_calc_relation),
      	(task_manager_do_forward_pass_helper),
      	(task_manager_do_forward_pass), (task_manager_do_backward_pass),
      	(mrp_task_manager_rebuild), (mrp_task_manager_recalc): Use the new
      	dependency graph when doing the CPM forward/backward passes.
      
      	(check_predecessor_traverse),
      	(mrp_task_manager_check_predecessor),
      	(mrp_task_manager_check_move): Check for loops in the graph when
      	adding a predecessor or moving a subtree.
      
      	* libplanner/mrp-private.h:
      	* libplanner/mrp-task.c: (task_init), (task_finalize),
      	(task_remove_subtree_cb), (imrp_task_insert_child),
      	(imrp_task_get_graph_node): Replace the dependency tree + links
      	with a graph.
      
      	* tests/files/test-2.planner:
      	* tests/scheduler-test.c: (main): Make it simple to add more test
      	files, and add one.
      97044fe0
    • Richard Hult's avatar
      Clean up. · 7f17a098
      Richard Hult authored
      2004-08-01  Richard Hult  <richard@imendio.com>
      
      	* src/Makefile.am: Clean up.
      
      	* Makefile.am:
      	* configure.in:
      	* tests/: Add back the tests and add a new test for the
      	scheduler.
      
      2004-08-01  Richard Hult  <richard@imendio.com>
      
      	* src/planner-window.c (window_do_save_as): Use the right
      	response, fixes saving.
      7f17a098
  5. 01 Dec, 2003 1 commit