comparison changesetscene.h @ 168:4bad3c5c053a

* Add "Show summary" feature * Add simplistic kinetic scrolling to history widget
author Chris Cannam
date Tue, 14 Dec 2010 17:20:10 +0000
parents 70fe12873106
children 8fd71f570884
comparison
equal deleted inserted replaced
167:94be1e218655 168:4bad3c5c053a
20 20
21 #include <QGraphicsScene> 21 #include <QGraphicsScene>
22 22
23 class ChangesetItem; 23 class ChangesetItem;
24 class UncommittedItem; 24 class UncommittedItem;
25 class DateItem;
25 26
26 class ChangesetScene : public QGraphicsScene 27 class ChangesetScene : public QGraphicsScene
27 { 28 {
28 Q_OBJECT 29 Q_OBJECT
29 30
30 public: 31 public:
31 ChangesetScene(); 32 ChangesetScene();
32 33
33 void addChangesetItem(ChangesetItem *item); 34 void addChangesetItem(ChangesetItem *item);
34 void addUncommittedItem(UncommittedItem *item); 35 void addUncommittedItem(UncommittedItem *item);
36 void addDateItem(DateItem *item);
35 37
36 signals: 38 signals:
37 void commit(); 39 void commit();
38 void revert(); 40 void revert();
39 void diffWorkingFolder(); 41 void diffWorkingFolder();
42 void showSummary();
40 void showWork(); 43 void showWork();
41 44
42 void updateTo(QString id); 45 void updateTo(QString id);
43 void diffToParent(QString id, QString parent); 46 void diffToParent(QString id, QString parent);
44 void diffToCurrent(QString id); 47 void diffToCurrent(QString id);
45 void mergeFrom(QString id); 48 void mergeFrom(QString id);
46 void tag(QString id); 49 void tag(QString id);
47 50
48 public slots: 51 private slots:
49 void changesetDetailShown(); 52 void changesetDetailShown();
53 void changesetDetailHidden();
54 void dateItemClicked();
50 55
51 private: 56 private:
52 ChangesetItem *m_detailShown; 57 ChangesetItem *m_detailShown;
53 }; 58 };
54 59