annotate historywidget.h @ 129:4986642800f0

* Initial work on showing uncommitted changes (as dashed box) in history graph
author Chris Cannam
date Mon, 29 Nov 2010 20:53:34 +0000
parents fcaf09ee825d
children aaeab914f2a3
rev   line source
Chris@116 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
Chris@116 2
Chris@116 3 /*
Chris@116 4 EasyMercurial
Chris@116 5
Chris@116 6 Based on HgExplorer by Jari Korhonen
Chris@116 7 Copyright (c) 2010 Jari Korhonen
Chris@116 8 Copyright (c) 2010 Chris Cannam
Chris@116 9 Copyright (c) 2010 Queen Mary, University of London
Chris@116 10
Chris@116 11 This program is free software; you can redistribute it and/or
Chris@116 12 modify it under the terms of the GNU General Public License as
Chris@116 13 published by the Free Software Foundation; either version 2 of the
Chris@116 14 License, or (at your option) any later version. See the file
Chris@116 15 COPYING included with this distribution for more information.
Chris@116 16 */
Chris@116 17
Chris@116 18 #ifndef HISTORYWIDGET_H
Chris@116 19 #define HISTORYWIDGET_H
Chris@116 20
Chris@116 21 #include "changeset.h"
Chris@116 22
Chris@116 23 #include <QWidget>
Chris@116 24
Chris@116 25 class Panned;
Chris@116 26 class Panner;
Chris@129 27 class UncommittedItem;
Chris@116 28
Chris@116 29 class HistoryWidget : public QWidget
Chris@116 30 {
Chris@116 31 Q_OBJECT
Chris@116 32
Chris@116 33 public:
Chris@116 34 HistoryWidget();
Chris@116 35 virtual ~HistoryWidget();
Chris@116 36
Chris@128 37 void setCurrent(QStringList ids);
Chris@128 38 void showUncommittedChanges(bool);
Chris@128 39
Chris@120 40 void parseNewLog(QString log);
Chris@120 41 void parseIncrementalLog(QString log);
Chris@116 42
Chris@116 43 private:
Chris@116 44 Changesets m_changesets;
Chris@128 45 QStringList m_currentIds;
Chris@129 46 UncommittedItem *m_uncommitted;
Chris@116 47
Chris@116 48 Panned *m_panned;
Chris@116 49 Panner *m_panner;
Chris@116 50
Chris@116 51 void clearChangesets();
Chris@120 52 void layoutAll();
Chris@122 53 void setChangesetParents();
Chris@128 54 void updateCurrentItems();
Chris@116 55 };
Chris@116 56
Chris@116 57 #endif