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

« back to all changes in this revision

Viewing changes to languages/ada/problemreporter.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) 2002 by Roberto Raggi <roberto@kdevelop.org>
3
 
   Copyright (C) 2003 Oliver Kellogg <okellogg@users.sourceforge.net>
4
 
 
5
 
   This library is free software; you can redistribute it and/or
6
 
   modify it under the terms of the GNU Library General Public
7
 
   version 2, License as published by the Free Software Foundation.
8
 
 
9
 
   This library 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
 
   You should have received a copy of the GNU Library General Public License
15
 
   along with this library; see the file COPYING.LIB.  If not, write to
16
 
   the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17
 
   Boston, MA 02111-1307, USA.
18
 
*/
19
 
 
20
 
#ifndef PROBLEMSREPORTER_H
21
 
#define PROBLEMSREPORTER_H
22
 
 
23
 
#include <qlistview.h>
24
 
 
25
 
class AdaSupportPart;
26
 
class QTimer;
27
 
class KDialogBase;
28
 
class BackgroundParser;
29
 
 
30
 
namespace KParts{
31
 
    class Part;
32
 
}
33
 
 
34
 
namespace KTextEditor{
35
 
    class EditInterface;
36
 
        class MarkInterface;
37
 
    class Document;
38
 
}
39
 
 
40
 
class ProblemReporter: public QListView{
41
 
    Q_OBJECT
42
 
public:
43
 
    ProblemReporter( AdaSupportPart* part, QWidget* parent=0, const char* name=0 );
44
 
    virtual ~ProblemReporter();
45
 
 
46
 
    virtual void reportError( QString message, QString filename,
47
 
                              int line, int column );
48
 
 
49
 
    virtual void reportWarning( QString message, QString filename,
50
 
                                int line, int column );
51
 
 
52
 
    virtual void reportMessage( QString message, QString filename,
53
 
                                int line, int column );
54
 
 
55
 
public slots:
56
 
    void reparse();
57
 
    void configure();
58
 
    void configWidget( KDialogBase* );
59
 
 
60
 
private slots:
61
 
    void slotPartAdded( KParts::Part* );
62
 
    void slotPartRemoved( KParts::Part* );
63
 
    void slotActivePartChanged( KParts::Part* );
64
 
    void slotTextChanged();
65
 
    void slotSelected( QListViewItem* );
66
 
 
67
 
private:
68
 
    AdaSupportPart* m_adaSupport;
69
 
    KTextEditor::EditInterface* m_editor;
70
 
    KTextEditor::Document* m_document;
71
 
    KTextEditor::MarkInterface* m_markIface;
72
 
    QTimer* m_timer;
73
 
    QString m_filename;
74
 
    int m_active;
75
 
    int m_delay;
76
 
    BackgroundParser* m_bgParser;
77
 
};
78
 
 
79
 
#endif