comparison src/changesetscene.h @ 370:b9c153e00e84

Move source files to src/
author Chris Cannam
date Thu, 24 Mar 2011 10:27:51 +0000
parents changesetscene.h@4811eb34e819
children 61bde1f0ff0a
comparison
equal deleted inserted replaced
369:19cce6d2c470 370:b9c153e00e84
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
2
3 /*
4 EasyMercurial
5
6 Based on HgExplorer by Jari Korhonen
7 Copyright (c) 2010 Jari Korhonen
8 Copyright (c) 2011 Chris Cannam
9 Copyright (c) 2011 Queen Mary, University of London
10
11 This program is free software; you can redistribute it and/or
12 modify it under the terms of the GNU General Public License as
13 published by the Free Software Foundation; either version 2 of the
14 License, or (at your option) any later version. See the file
15 COPYING included with this distribution for more information.
16 */
17
18 #ifndef CHANGESETSCENE_H
19 #define CHANGESETSCENE_H
20
21 #include <QGraphicsScene>
22
23 class ChangesetItem;
24 class Changeset;
25 class UncommittedItem;
26 class DateItem;
27
28 class ChangesetScene : public QGraphicsScene
29 {
30 Q_OBJECT
31
32 public:
33 ChangesetScene();
34
35 void addChangesetItem(ChangesetItem *item);
36 void addUncommittedItem(UncommittedItem *item);
37 void addDateItem(DateItem *item);
38
39 ChangesetItem *getItemById(QString id); // Slow: traversal required
40
41 signals:
42 void commit();
43 void revert();
44 void diffWorkingFolder();
45 void showSummary();
46 void showWork();
47 void newBranch();
48 void noBranch();
49
50 void updateTo(QString id);
51 void diffToParent(QString id, QString parent);
52 void showSummary(Changeset *);
53 void diffToCurrent(QString id);
54 void mergeFrom(QString id);
55 void newBranch(QString id);
56 void tag(QString id);
57
58 private slots:
59 void changesetDetailShown();
60 void changesetDetailHidden();
61 void dateItemClicked();
62
63 private:
64 ChangesetItem *m_detailShown;
65 };
66
67 #endif