comparison src/grapher.h @ 506:470829a21f98

Identify closed branches and display them in a lighter shade
author Chris Cannam
date Mon, 17 Oct 2011 22:08:05 +0100
parents f051d210521e
children 67d18eaca830
comparison
equal deleted inserted replaced
505:1c05e7576ea5 506:470829a21f98
41 ChangesetItem *getItemFor(Changeset *cs); 41 ChangesetItem *getItemFor(Changeset *cs);
42 ChangesetItem *getItemFor(QString id); 42 ChangesetItem *getItemFor(QString id);
43 43
44 UncommittedItem *getUncommittedItem() { return m_uncommitted; } 44 UncommittedItem *getUncommittedItem() { return m_uncommitted; }
45 45
46 void setClosedHeadIds(QSet<QString> closed) { m_closedIds = closed; }
47
46 class LayoutException : public std::exception { 48 class LayoutException : public std::exception {
47 public: 49 public:
48 LayoutException(QString message) throw() : m_message(message) { } 50 LayoutException(QString message) throw() : m_message(message) { }
49 virtual ~LayoutException() throw() { } 51 virtual ~LayoutException() throw() { }
50 virtual const char *what() const throw() { 52 virtual const char *what() const throw() {
78 IdSet m_handled; 80 IdSet m_handled;
79 81
80 typedef QMap<int, QString> RowDateMap; 82 typedef QMap<int, QString> RowDateMap;
81 RowDateMap m_rowDates; 83 RowDateMap m_rowDates;
82 84
85 QSet<QString> m_closedIds;
86
83 bool m_showDates; 87 bool m_showDates;
84 88
85 QStringList m_uncommittedParents; 89 QStringList m_uncommittedParents;
86 int m_uncommittedParentRow; 90 int m_uncommittedParentRow;
87 UncommittedItem *m_uncommitted; 91 UncommittedItem *m_uncommitted;