Mercurial > hg > easyhg
comparison changesetscene.cpp @ 141:e6c6b88d19b9
* Start hooking up right-button menus on changeset & uncommitted items
author | Chris Cannam |
---|---|
date | Tue, 30 Nov 2010 17:56:11 +0000 |
parents | 1f27f71a7034 |
children | 2fef6b0dfbe8 |
comparison
equal
deleted
inserted
replaced
140:bad40d7e7a2b | 141:e6c6b88d19b9 |
---|---|
15 COPYING included with this distribution for more information. | 15 COPYING included with this distribution for more information. |
16 */ | 16 */ |
17 | 17 |
18 #include "changesetscene.h" | 18 #include "changesetscene.h" |
19 #include "changesetitem.h" | 19 #include "changesetitem.h" |
20 #include "uncommitteditem.h" | |
20 | 21 |
21 ChangesetScene::ChangesetScene() | 22 ChangesetScene::ChangesetScene() |
22 : QGraphicsScene(), m_detailShown(0) | 23 : QGraphicsScene(), m_detailShown(0) |
23 { | 24 { |
25 } | |
26 | |
27 void | |
28 ChangesetScene::addChangesetItem(ChangesetItem *item) | |
29 { | |
30 addItem(item); | |
31 | |
32 connect(item, SIGNAL(detailShown()), | |
33 this, SLOT(changesetDetailShown())); | |
34 | |
35 connect(item, SIGNAL(updateTo(QString)), | |
36 this, SIGNAL(updateTo(QString))); | |
37 | |
38 connect(item, SIGNAL(diffToCurrent(QString)), | |
39 this, SIGNAL(diffToCurrent(QString))); | |
40 | |
41 connect(item, SIGNAL(diffToPrevious(QString)), | |
42 this, SIGNAL(diffToPrevious(QString))); | |
43 | |
44 connect(item, SIGNAL(mergeFrom(QString)), | |
45 this, SIGNAL(mergeFrom(QString))); | |
46 | |
47 connect(item, SIGNAL(tag(QString)), | |
48 this, SIGNAL(tag(QString))); | |
49 } | |
50 | |
51 void | |
52 ChangesetScene::addUncommittedItem(UncommittedItem *item) | |
53 { | |
54 addItem(item); | |
55 | |
56 connect(item, SIGNAL(commit()), | |
57 this, SIGNAL(commit())); | |
58 | |
59 connect(item, SIGNAL(revert()), | |
60 this, SIGNAL(revert())); | |
61 | |
62 connect(item, SIGNAL(diff()), | |
63 this, SIGNAL(diffWorkingFolder())); | |
24 } | 64 } |
25 | 65 |
26 void | 66 void |
27 ChangesetScene::changesetDetailShown() | 67 ChangesetScene::changesetDetailShown() |
28 { | 68 { |