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

« back to all changes in this revision

Viewing changes to vcs/cvsservice/annotatedialog.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 program is free software; you can redistribute it and/or modify  *
6
 
 *   it under the terms of the GNU General Public License as published by  *
7
 
 *   the Free Software Foundation; either version 2 of the License, or     *
8
 
 *   (at your option) any later version.                                   *
9
 
 *                                                                         *
10
 
 ***************************************************************************/
11
 
 
12
 
#ifndef ANNOTATEDIALOG_H
13
 
#define ANNOTATEDIALOG_H
14
 
 
15
 
#include <kdialogbase.h>
16
 
 
17
 
class CvsJob_stub;
18
 
class CvsService_stub;
19
 
class AnnotatePage;
20
 
 
21
 
/**
22
 
 * Implementation for the dialog displaying 'cvs annotate' output.
23
 
 *
24
 
 * This dialog hold a tab for each revision. The user just needs to 
25
 
 * click a line in the AnnotateView to get the annotate output for 
26
 
 * the selected revision.
27
 
 *
28
 
 * @author Robert Gruber <rgruber@users.sourceforge.net>
29
 
 */
30
 
class AnnotateDialog : public KDialogBase
31
 
{
32
 
    Q_OBJECT
33
 
public:
34
 
    AnnotateDialog( CvsService_stub *cvsService, QWidget *parent=0, const char *name=0, int flags=0 );
35
 
    virtual ~AnnotateDialog();
36
 
 
37
 
    /**
38
 
     * Entrypoint from outside.
39
 
     * By calling this method, an annotate job is execuded for the given 
40
 
     * file and the specifed a revision. 
41
 
     * The output gets showen in the page which has already been created by the constructor.
42
 
     * 
43
 
     * You need to call this function in order to set the file which you want to annotate.
44
 
     * Any further operation will be execucted on the file specified by @param pathName
45
 
     *
46
 
     * @param pathName The file for which to run cvs annotate
47
 
     */
48
 
    void startFirstAnnotate( const QString pathName, const QString revision = "" );
49
 
 
50
 
private slots:
51
 
    /**
52
 
     * This slot runs cvs annotate for the given revision.
53
 
     * The output gets shown in a new page.
54
 
     * @param rev The revision which will be annotated
55
 
     */
56
 
    void slotAnnotate(const QString rev);
57
 
 
58
 
private:
59
 
    QString m_pathName;
60
 
 
61
 
    AnnotatePage *m_cvsAnnotatePage;
62
 
    CvsService_stub *m_cvsService;
63
 
};
64
 
 
65
 
#endif