1
/***************************************************************************
2
* Copyright (C) 2005 by Robert Gruber *
3
* rgruber@users.sourceforge.net *
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. *
10
***************************************************************************/
12
#ifndef ANNOTATEDIALOG_H
13
#define ANNOTATEDIALOG_H
15
#include <kdialogbase.h>
18
class CvsService_stub;
22
* Implementation for the dialog displaying 'cvs annotate' output.
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.
28
* @author Robert Gruber <rgruber@users.sourceforge.net>
30
class AnnotateDialog : public KDialogBase
34
AnnotateDialog( CvsService_stub *cvsService, QWidget *parent=0, const char *name=0, int flags=0 );
35
virtual ~AnnotateDialog();
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.
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
46
* @param pathName The file for which to run cvs annotate
48
void startFirstAnnotate( const QString pathName, const QString revision = "" );
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
56
void slotAnnotate(const QString rev);
61
AnnotatePage *m_cvsAnnotatePage;
62
CvsService_stub *m_cvsService;