~ubuntu-branches/debian/sid/kdevelop/sid

« back to all changes in this revision

Viewing changes to vcs/cvsservice/annotateview.h

  • Committer: Bazaar Package Importer
  • Author(s): Jeremy Lainé
  • Date: 2010-05-05 07:21:55 UTC
  • mfrom: (1.2.3 upstream) (5.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100505072155-h78lx19pu04sbhtn
Tags: 4:4.0.0-2
* Upload to unstable (Closes: #579947, #481832).
* Acknowledge obsolete NMU fixes (Closes: #562410, #546961).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/***************************************************************************
2
 
 *   Copyright (C) 2005 by Robert Gruber                                   *
3
 
 *   rgruber@users.sourceforge.net                                         *
4
 
 *                                                                         *
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>           *
8
 
 *                                                                         *
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.                                   *
13
 
 *                                                                         *
14
 
 ***************************************************************************/
15
 
 
16
 
#ifndef ANNOTATEVIEW_H
17
 
#define ANNOTATEVIEW_H
18
 
 
19
 
 
20
 
#include <klistview.h>
21
 
#include <qtooltip.h>
22
 
 
23
 
class QDateTime;
24
 
class AnnotatePage;
25
 
 
26
 
/**
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.
32
 
 */
33
 
class AnnotateView : public KListView, public QToolTip
34
 
{
35
 
    Q_OBJECT
36
 
 
37
 
public:
38
 
 
39
 
    explicit AnnotateView(AnnotatePage *parent, const char *name=0 );
40
 
 
41
 
    void addLine(QString rev, QString author, QDateTime date, QString content, 
42
 
            QString comment, bool odd);
43
 
 
44
 
    virtual QSize sizeHint() const;
45
 
    void maybeTip( const QPoint & p );
46
 
 
47
 
private:
48
 
    AnnotatePage * m_page;
49
 
 
50
 
public slots:
51
 
    void itemClicked(QListViewItem *item);
52
 
};
53
 
 
54
 
 
55
 
#endif