Mercurial > hg > easyhg
annotate historywidget.h @ 120:c92f5859c707
* Add incremental log (though not incremental relayout)
author | Chris Cannam |
---|---|
date | Mon, 29 Nov 2010 11:01:19 +0000 |
parents | 807c79350bf1 |
children | c3e8342d2de9 |
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@116 | 27 |
Chris@116 | 28 class HistoryWidget : public QWidget |
Chris@116 | 29 { |
Chris@116 | 30 Q_OBJECT |
Chris@116 | 31 |
Chris@116 | 32 public: |
Chris@116 | 33 HistoryWidget(); |
Chris@116 | 34 virtual ~HistoryWidget(); |
Chris@116 | 35 |
Chris@120 | 36 void parseNewLog(QString log); |
Chris@120 | 37 void parseIncrementalLog(QString log); |
Chris@116 | 38 |
Chris@116 | 39 private: |
Chris@116 | 40 Changesets m_changesets; |
Chris@116 | 41 |
Chris@116 | 42 Panned *m_panned; |
Chris@116 | 43 Panner *m_panner; |
Chris@116 | 44 |
Chris@116 | 45 void clearChangesets(); |
Chris@120 | 46 void layoutAll(); |
Chris@116 | 47 Changesets parseChangeSets(QString); |
Chris@116 | 48 }; |
Chris@116 | 49 |
Chris@116 | 50 #endif |