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

« back to all changes in this revision

Viewing changes to languages/pascal/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
 
 
4
 
   This library is free software; you can redistribute it and/or
5
 
   modify it under the terms of the GNU Library General Public
6
 
   version 2, License as published by the Free Software Foundation.
7
 
 
8
 
   This library is distributed in the hope that it will be useful,
9
 
   but WITHOUT ANY WARRANTY; without even the implied warranty of
10
 
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11
 
   Library General Public License for more details.
12
 
 
13
 
   You should have received a copy of the GNU Library General Public License
14
 
   along with this library; see the file COPYING.LIB.  If not, write to
15
 
   the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
16
 
   Boston, MA 02111-1307, USA.
17
 
*/
18
 
 
19
 
#ifndef PROBLEMSREPORTER_H
20
 
#define PROBLEMSREPORTER_H
21
 
 
22
 
#include <qlistview.h>
23
 
 
24
 
class PascalSupportPart;
25
 
class QTimer;
26
 
class KDialogBase;
27
 
class BackgroundParser;
28
 
 
29
 
namespace KParts{
30
 
    class Part;
31
 
}
32
 
 
33
 
namespace KTextEditor{
34
 
    class EditInterface;
35
 
        class MarkInterface;
36
 
    class Document;
37
 
}
38
 
 
39
 
class ProblemReporter: public QListView{
40
 
    Q_OBJECT
41
 
public:
42
 
    ProblemReporter( PascalSupportPart* part, QWidget* parent=0, const char* name=0 );
43
 
    virtual ~ProblemReporter();
44
 
 
45
 
    virtual void reportError( QString message, QString filename,
46
 
                              int line, int column );
47
 
 
48
 
    virtual void reportWarning( QString message, QString filename,
49
 
                                int line, int column );
50
 
 
51
 
    virtual void reportMessage( QString message, QString filename,
52
 
                                int line, int column );
53
 
 
54
 
public slots:
55
 
    void reparse();
56
 
    void configure();
57
 
    void configWidget( KDialogBase* );
58
 
 
59
 
private slots:
60
 
    void slotPartAdded( KParts::Part* );
61
 
    void slotPartRemoved( KParts::Part* );
62
 
    void slotActivePartChanged( KParts::Part* );
63
 
    void slotTextChanged();
64
 
    void slotSelected( QListViewItem* );
65
 
 
66
 
private:
67
 
    PascalSupportPart* m_pascalSupport;
68
 
    KTextEditor::EditInterface* m_editor;
69
 
    KTextEditor::Document* m_document;
70
 
    KTextEditor::MarkInterface* m_markIface;
71
 
    QTimer* m_timer;
72
 
    QString m_filename;
73
 
    int m_active;
74
 
    int m_delay;
75
 
    BackgroundParser* m_bgParser;
76
 
};
77
 
 
78
 
#endif