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

« back to all changes in this revision

Viewing changes to vcs/subversion/svn_blamewidget.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) 2007 Dukju Ahn (dukjuahn@gmail.com)
3
 
 *
4
 
 *  This program is free software; you can redistribute it and/or
5
 
 *  modify it under the terms of the GNU General Public
6
 
 *  License as published by the Free Software Foundation; either
7
 
 *  version 2 of the License, or (at your option) any later version.
8
 
 *
9
 
 *  This program is distributed in the hope that it will be useful,
10
 
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
11
 
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12
 
 *  Library General Public License for more details.
13
 
 */
14
 
 
15
 
 
16
 
#ifndef SVN_BLAMEWIDGET_H
17
 
#define SVN_BLAMEWIDGET_H
18
 
 
19
 
#include <qwidget.h>
20
 
#include <qdialog.h>
21
 
#include <qvaluelist.h>
22
 
class QVBoxLayout;
23
 
class QListView;
24
 
class QGridLayout;
25
 
class QPushButton;
26
 
class QStringList;
27
 
 
28
 
class SvnBlameHolder {
29
 
public:
30
 
//      SvnBlameHolder(){};
31
 
//      ~SvnBlameHolder(){};
32
 
        unsigned int line;
33
 
        long int rev;
34
 
        QString date;
35
 
        QString author;
36
 
        QString content;        
37
 
};      
38
 
 
39
 
class QListView;
40
 
 
41
 
class SvnBlameWidget : public QWidget {
42
 
        Q_OBJECT
43
 
public:
44
 
        SvnBlameWidget( QWidget * parent = 0, const char * name = 0, bool modal = FALSE, WFlags f = 0 );
45
 
        virtual ~SvnBlameWidget();
46
 
        void copyBlameData( QValueList<SvnBlameHolder> *blamelist );
47
 
        void show();
48
 
        QListView* outView();
49
 
protected:
50
 
    QValueList <SvnBlameHolder> m_blamelist;
51
 
    
52
 
    QVBoxLayout *m_layout;
53
 
    QListView *m_listView;
54
 
};
55
 
 
56
 
class SvnBlameFileSelectDlg : public QDialog {
57
 
    Q_OBJECT
58
 
public:
59
 
    SvnBlameFileSelectDlg( QWidget *parent = 0L );
60
 
    virtual ~SvnBlameFileSelectDlg();
61
 
    void setCandidate( QStringList *modifies );
62
 
    QString selected();
63
 
    
64
 
protected:
65
 
    virtual void accept();
66
 
    
67
 
private:
68
 
    QGridLayout *m_layout;
69
 
    QListView *m_view;
70
 
    QPushButton *m_okBtn;
71
 
    QPushButton *m_cancelBtn;
72
 
    
73
 
    QStringList *m_candidates;
74
 
    QString m_selected;
75
 
};
76
 
 
77
 
#endif