comparison grapher.h @ 153:70fe12873106

* Show both parents of uncommitted merge; fixes to right-button menus
author Chris Cannam
date Thu, 02 Dec 2010 17:55:21 +0000
parents 644bd31e8301
children ec2baee80833
comparison
equal deleted inserted replaced
152:2b997861174b 153:70fe12873106
32 class Grapher 32 class Grapher
33 { 33 {
34 public: 34 public:
35 Grapher(ChangesetScene *scene) { m_scene = scene; } 35 Grapher(ChangesetScene *scene) { m_scene = scene; }
36 36
37 void layout(Changesets csets, QString uncommittedSproutsFrom = ""); 37 void layout(Changesets csets,
38 QStringList uncommittedParents,
39 QString uncommittedBranch);
38 40
39 ChangesetItem *getItemFor(Changeset *cs); 41 ChangesetItem *getItemFor(Changeset *cs);
40 42
41 UncommittedItem *getUncommittedItem() { return m_uncommitted; } 43 UncommittedItem *getUncommittedItem() { return m_uncommitted; }
42 44
75 IdSet m_handled; 77 IdSet m_handled;
76 78
77 typedef QMap<int, QString> RowDateMap; 79 typedef QMap<int, QString> RowDateMap;
78 RowDateMap m_rowDates; 80 RowDateMap m_rowDates;
79 81
80 QString m_uncommittedParentId; 82 QStringList m_uncommittedParents;
81 int m_uncommittedParentRow; 83 int m_uncommittedParentRow;
82 UncommittedItem *m_uncommitted; 84 UncommittedItem *m_uncommitted;
83 bool m_haveAllocatedUncommittedColumn; 85 bool m_haveAllocatedUncommittedColumn;
84 86
85 void layoutRow(QString id); 87 void layoutRow(QString id);