summaryrefslogtreecommitdiffstats
path: root/vcs/cvsservice/diffdialog.h
blob: 12bfc88aa03cb82d6a3c9927df9278dd9ed3b745 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/***************************************************************************
 *   Copyright (C) 2003 by Mario Scalas                                    *
 *   mario.scalas@libero.it                                                *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef __DIFFDIALOG_H
#define __DIFFDIALOG_H

#include "diffdialogbase.h"
#include "cvsentry.h"

/**
* Implementation for a dialog which collects data for diff operation
*
* @author Mario Scalas
*/
class DiffDialog : public DiffDialogBase
{
    Q_OBJECT
public:
    DiffDialog(const CVSEntry &entry, QWidget *parent = 0, const char *name = 0, WFlags f = 0 );
    virtual ~DiffDialog();

    QString revA() const;
    QString revB() const;

private:
    enum  DiffType { diffLocalBASE, diffLocalHEAD, diffLocalOther, diffArbitrary };

    DiffType requestedDiff() const;
    CVSEntry m_entry;
protected slots:
    virtual void languageChange();
};

#endif // __DIFFDIALOG_H