Okay, I've had a hack at it now. I think that I have gotten them working in a basic form. I have not even looked into changing how the dependency arrows are drawn. The attached JPG shows an example. The patch shows, well, my changes in the libplanner directory. It would be good if somebody can let me know if I have implemented what is intended. I hope that in any case it is better than them not being implemented at all. I am thinking that I should farm that switch out to another function, I usually program with tabs set to 4 and had trouble coming to terms with the lack of column real-estate. Also, this is the first time I have sumbitted anything to an open-source project. Let me know if I did anything stupid, wrong, un-ethical. Thanks, Corey b.t.w. Malcolm, thanks for the heads up. On Tue, 30 Mar 2004 09:23 pm, you wrote: > On Tue, 2004-03-30 at 20:24 +1000, Corey Schuhen wrote: > > I have looked at using planner for a project of mine and it looks pretty good, > > such that it would almost do the job... almost. Good work guys. What I really > > need is the other dependancy types to work. From what I can tell the "lag" > > option does not work either. > > The lag option does work ... roughly. :-) > > The units seem to behave strangely. Lag units (that you enter in the > dialog box) are in hours -- although this is not clear when you are > assiging them. It appears that the MrpRelation GObject stores the lag in > seconds (based on what is in src/planner-task-dialog.c around line 942). > > As far as implementing the other relation types (start-to-finish, > finish-to-finish, etc), you should start poking around > libplanner/mrp-relation.[ch]. Also look at the relation types in > libplanner/mrp-types.h -- search for MRP_RELATION_FS and its friends and > then look for the four or five main places where it is used. > > > Consequently, I would not mind having a "hack". I have not programmed with > > Gnome or GTK before, well actually I did write a small GTK app about 4 years > > ago but I have well and truly forgotten all about that. I tried to have a > > poke around and did not get very far. > > > > I have read the "getting-started-hacking.xml" document. B.t.w. how do I > > convert this into a more redable format? or view it? I expected that "make" > > would generate a html or pdf from the xml. > > I have attached two files that will help you get started. I'll try to > fix this up a bit better and send a patch to Richard, but for now > (assuming you have the DocBook stylesheets installed -- something like > the docbook-xsl package on many distributions) run > > xsltproc -o foo.html params.xsl getting-started-hacking.xml > > and drop the style.css file in the same location as foo.html. Then > loading foo.html into a browser will give you a mostly readable version > of the document as an HTML file. > > > I was hoping that somebody could give me some pointers and a rough overview on > > how the code fits togeather. Maybe even tell me which modules/classes do the > > work that I will need to change. > > > > One thing that I did want to specifically know is, where in code does the > > "scheduling" get done. If I create a dependancy, where is the code that > > decides where in time this dependant task should get shifted to. > > Start with the function mrp_project_reschedule in > libplanner/mrp-project.c and some of the other functions around there. > Also libplanner/mrp-task-manager.c will be useful to read through -- > that includes the implementation of the task object that is at the > centre of all these calculations. > > Hopefully this can help you get started and then some of the other guys > on this list can help you out further. > > Cheers, > Malcolm > -- -- Corey Schuhen corey_m schuhen net http://schuhen.net
Attachment:
gantt_chart.jpg
Description: JPEG image
Attachment:
make_other_dep_types_work.patch.gz
Description: GNU Zip compressed data