1
/***************************************************************************
2
* Copyright (C) 2005 by Robert Gruber *
3
* rgruber@users.sourceforge.net *
5
* This file has been taken from cervisia an adapted to fit my needs: *
6
* Copyright (C) 1999-2002 Bernd Gehrmann <bernd@mail.berlios.de> *
7
* Copyright (c) 2003-2005 André Wöbbeking <Woebbeking@web.de> *
9
* This program is free software; you can redistribute it and/or modify *
10
* it under the terms of the GNU General Public License as published by *
11
* the Free Software Foundation; either version 2 of the License, or *
12
* (at your option) any later version. *
14
***************************************************************************/
16
#ifndef ANNOTATEVIEW_H
17
#define ANNOTATEVIEW_H
20
#include <klistview.h>
27
* This is the main widget of each page.
28
* It shows the user the output of cvs annotate.
29
* The user can click any line of this view in order
30
* to get a new page which shows the annotate output
31
* of the clicked revision.
33
class AnnotateView : public KListView, public QToolTip
39
explicit AnnotateView(AnnotatePage *parent, const char *name=0 );
41
void addLine(QString rev, QString author, QDateTime date, QString content,
42
QString comment, bool odd);
44
virtual QSize sizeHint() const;
45
void maybeTip( const QPoint & p );
48
AnnotatePage * m_page;
51
void itemClicked(QListViewItem *item);