[Planner Dev] Update to the new task initials and resource button/menu feature.




Hi all,

I've finished adding a new feature that implements the resource
initials on the Gantt that I wanted. I've finished coding
and doing testing which will take a few days.

Its a handy feature - If you define anything in the (new)
initials field on a resource then it uses this in the
gantt display instead of the resource name.

This is the only place that the initials are used
but it does keep the gantt chart much tidier (which
is what I wanted).

Some fun cut+paste learning on this one as I had to change
the dtd too (created a new one and update the DTD validation
code). I'll test to make sure that the legacy MrProject
and older Planners don't bork on the new file. If they do then
we may have to implement a FileSaveAs or ExportAs (Planner0.11)
style menu offering too but I'll see.

I also found a bug in current code (also in MrProject !) in that
the Gantt chart units display doesn't update as the units are changed.

See http://bugzilla.gnome.org/show_bug.cgi?id=136045

I tweaked the gantt_row_ensure_layout () in planner-gantt-row.c
to make sure that gantt_row_update_resources (row) is never
missed out (moved it down a line). This seems to fix the problem.

@@ -602,9 +605,8 @@ gantt_row_ensure_layout (PlannerGanttRow
 	if (row->priv->layout == NULL) {
 		row->priv->layout = gtk_widget_create_pango_layout (
 			GTK_WIDGET (GNOME_CANVAS_ITEM (row)->canvas), NULL);
-
-		gantt_row_update_resources (row);
 	}
+	gantt_row_update_resources (row);
 }

(the line offset may vary).

I'm still working on my rolled-up resource patch but thats
a lot harder than I initially thought so I will ship a working
but not fully featured implementation which gives people a
nice resource button BUT it'll only update/focus on one task.
What I've done is still a very handy button/menu option which
I use all the time on my own Project plans.

The patch I send will have both the Resource Button/menu and
the Resource Initials feature.

I'd like to work next on a quick way of accessing constraints
until I know enough to complete the rolled-up-tasks change
feature.

Rgds,
Lincoln.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]