diff historywidget.h @ 133:aaeab914f2a3

* Better attempt at retaining current visible area when history scene changes; first cut at highlighting new items
author Chris Cannam
date Tue, 30 Nov 2010 12:45:34 +0000
parents 4986642800f0
children 1208d9688a8f
line wrap: on
line diff
--- a/historywidget.h	Tue Nov 30 11:41:46 2010 +0000
+++ b/historywidget.h	Tue Nov 30 12:45:34 2010 +0000
@@ -21,6 +21,7 @@
 #include "changeset.h"
 
 #include <QWidget>
+#include <QSet>
 
 class Panned;
 class Panner;
@@ -43,15 +44,18 @@
 private:
     Changesets m_changesets;
     QStringList m_currentIds;
+    QSet<QString> m_newIds;
     UncommittedItem *m_uncommitted;
 
     Panned *m_panned;
     Panner *m_panner;
 
     void clearChangesets();
+    void replaceChangesets(Changesets);
+    void addChangesets(Changesets);
     void layoutAll();
     void setChangesetParents();
-    void updateCurrentItems();
+    void updateNewAndCurrentItems();
 };
 
 #endif