comparison grapher.h @ 185:ec2baee80833

* Some rather uncertain modifications to grapher logic for branch homes -- try to place branches close to their "parent branches". Have also experimented with placing popular branches closer to the centre; neither is definitively better. Also, make changeset placement tend towards the branch home for the changeset
author Chris Cannam
date Sun, 19 Dec 2010 19:12:52 +0000
parents 70fe12873106
children 8fd71f570884
comparison
equal deleted inserted replaced
184:1220f26d6f35 185:ec2baee80833
86 86
87 void layoutRow(QString id); 87 void layoutRow(QString id);
88 void layoutCol(QString id); 88 void layoutCol(QString id);
89 void allocateBranchHomes(Changesets csets); 89 void allocateBranchHomes(Changesets csets);
90 bool rangesConflict(const Range &r1, const Range &r2); 90 bool rangesConflict(const Range &r1, const Range &r2);
91 int findAvailableColumn(int row, int parent, bool preferParentCol); 91 int findAvailableColumn(int row, int parent, int sign, bool preferParentCol);
92 bool isAvailable(int row, int col); 92 bool isAvailable(int row, int col);
93 }; 93 };
94 94
95 #endif 95 #endif