Mercurial > hg > easyhg
comparison historywidget.h @ 145:644bd31e8301
* Include the uncommitted item in general graph layout (in case it is not at the head, when other items will need to avoid it)
author | Chris Cannam |
---|---|
date | Wed, 01 Dec 2010 17:41:14 +0000 |
parents | e6c6b88d19b9 |
children | 2fef6b0dfbe8 |
comparison
equal
deleted
inserted
replaced
143:f61f032b06f9 | 145:644bd31e8301 |
---|---|
24 #include <QSet> | 24 #include <QSet> |
25 | 25 |
26 class Panned; | 26 class Panned; |
27 class Panner; | 27 class Panner; |
28 class UncommittedItem; | 28 class UncommittedItem; |
29 class QGraphicsScene; | |
29 | 30 |
30 class HistoryWidget : public QWidget | 31 class HistoryWidget : public QWidget |
31 { | 32 { |
32 Q_OBJECT | 33 Q_OBJECT |
33 | 34 |
34 public: | 35 public: |
35 HistoryWidget(); | 36 HistoryWidget(); |
36 virtual ~HistoryWidget(); | 37 virtual ~HistoryWidget(); |
37 | 38 |
38 void setCurrent(QStringList ids); | 39 void setCurrent(QStringList ids, bool showUncommitted); |
39 void showUncommittedChanges(bool); | |
40 | 40 |
41 void parseNewLog(QString log); | 41 void parseNewLog(QString log); |
42 void parseIncrementalLog(QString log); | 42 void parseIncrementalLog(QString log); |
43 | 43 |
44 bool haveNewItems() const { return !m_newIds.empty(); } | 44 bool haveNewItems() const { return !m_newIds.empty(); } |
56 | 56 |
57 private: | 57 private: |
58 Changesets m_changesets; | 58 Changesets m_changesets; |
59 QStringList m_currentIds; | 59 QStringList m_currentIds; |
60 QSet<QString> m_newIds; | 60 QSet<QString> m_newIds; |
61 UncommittedItem *m_uncommitted; | 61 bool m_showUncommitted; |
62 bool m_uncommittedVisible; | 62 QString m_uncommittedParentId; |
63 | 63 |
64 Panned *m_panned; | 64 Panned *m_panned; |
65 Panner *m_panner; | 65 Panner *m_panner; |
66 | 66 |
67 QGraphicsScene *scene(); | |
67 void clearChangesets(); | 68 void clearChangesets(); |
68 void replaceChangesets(Changesets); | 69 void replaceChangesets(Changesets); |
69 void addChangesets(Changesets); | 70 void addChangesets(Changesets); |
70 void layoutAll(); | 71 void layoutAll(); |
71 void setChangesetParents(); | 72 void setChangesetParents(); |