~ubuntu-branches/ubuntu/intrepid/kdesdk/intrepid-updates

« back to all changes in this revision

Viewing changes to cervisia/logdialog.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2008-05-28 10:11:43 UTC
  • mto: This revision was merged to the branch mainline in revision 37.
  • Revision ID: james.westby@ubuntu.com-20080528101143-gzc3styjz1b70zxu
Tags: upstream-4.0.80
ImportĀ upstreamĀ versionĀ 4.0.80

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *  Copyright (C) 1999-2002 Bernd Gehrmann
 
3
 *                          bernd@mail.berlios.de
 
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
 * This program is distributed in the hope that it will be useful,
 
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
 * GNU General Public License for more details.
 
14
 *
 
15
 * You should have received a copy of the GNU General Public License
 
16
 * along with this program; if not, write to the Free Software
 
17
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 
18
 */
 
19
 
 
20
#ifndef LOGDIALOG_H
 
21
#define LOGDIALOG_H
 
22
 
 
23
#include <kdialog.h>
 
24
 
 
25
#include "loginfo.h"
 
26
 
 
27
#include <qlist.h>
 
28
 
 
29
class LogListView;
 
30
class LogTreeView;
 
31
class LogPlainView;
 
32
 
 
33
class QComboBox;
 
34
class QLabel;
 
35
class QTabWidget;
 
36
class QTextEdit;
 
37
class OrgKdeCervisiaCvsserviceCvsserviceInterface;
 
38
class KConfig;
 
39
 
 
40
class LogDialogTagInfo
 
41
{
 
42
public:
 
43
    QString rev;
 
44
    QString tag;
 
45
    QString branchpoint;
 
46
};
 
47
 
 
48
 
 
49
class LogDialog : public KDialog
 
50
{
 
51
    Q_OBJECT
 
52
 
 
53
public:
 
54
    explicit LogDialog( KConfig& cfg, QWidget *parent=0);
 
55
 
 
56
    virtual ~LogDialog();
 
57
 
 
58
    bool parseCvsLog(OrgKdeCervisiaCvsserviceCvsserviceInterface* service, const QString& fileName);
 
59
 
 
60
protected slots:
 
61
    void slotOk();
 
62
    void slotApply();
 
63
 
 
64
private slots:
 
65
    void findClicked();
 
66
    void diffClicked();
 
67
    void annotateClicked();
 
68
    void revisionSelected(QString rev, bool rmb);
 
69
    void tagASelected(int n);
 
70
    void tagBSelected(int n);
 
71
    void tabChanged(QWidget* w);
 
72
 
 
73
private:
 
74
    void tagSelected(LogDialogTagInfo* tag, bool rmb);
 
75
    void updateButtons();
 
76
 
 
77
    QString filename;
 
78
    QList<Cervisia::LogInfo*> items;
 
79
    QList<LogDialogTagInfo*> tags;
 
80
    QString selectionA;
 
81
    QString selectionB;
 
82
    LogTreeView *tree;
 
83
    LogListView *list;
 
84
    LogPlainView *plain;
 
85
    QTabWidget *tabWidget;
 
86
    QLabel *revbox[2];
 
87
    QLabel *authorbox[2];
 
88
    QLabel *datebox[2];
 
89
    QTextEdit *commentbox[2];
 
90
    QTextEdit *tagsbox[2];
 
91
    QComboBox *tagcombo[2];
 
92
 
 
93
    OrgKdeCervisiaCvsserviceCvsserviceInterface* cvsService;
 
94
    KConfig&         partConfig;
 
95
};
 
96
 
 
97
#endif // LOGDIALOG_H
 
98
 
 
99
// Local Variables:
 
100
// c-basic-offset: 4
 
101
// End: