problemreporter.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef PROBLEMSREPORTER_H
00021 #define PROBLEMSREPORTER_H
00022
00023 #include <qlistview.h>
00024
00025 class AdaSupportPart;
00026 class QTimer;
00027 class KDialogBase;
00028 class BackgroundParser;
00029
00030 namespace KParts{
00031 class Part;
00032 }
00033
00034 namespace KTextEditor{
00035 class EditInterface;
00036 class MarkInterface;
00037 class Document;
00038 }
00039
00040 class ProblemReporter: public QListView{
00041 Q_OBJECT
00042 public:
00043 ProblemReporter( AdaSupportPart* part, QWidget* parent=0, const char* name=0 );
00044 virtual ~ProblemReporter();
00045
00046 virtual void reportError( QString message, QString filename,
00047 int line, int column );
00048
00049 virtual void reportWarning( QString message, QString filename,
00050 int line, int column );
00051
00052 virtual void reportMessage( QString message, QString filename,
00053 int line, int column );
00054
00055 public slots:
00056 void reparse();
00057 void configure();
00058 void configWidget( KDialogBase* );
00059
00060 private slots:
00061 void slotPartAdded( KParts::Part* );
00062 void slotPartRemoved( KParts::Part* );
00063 void slotActivePartChanged( KParts::Part* );
00064 void slotTextChanged();
00065 void slotSelected( QListViewItem* );
00066
00067 private:
00068 AdaSupportPart* m_adaSupport;
00069 KTextEditor::EditInterface* m_editor;
00070 KTextEditor::Document* m_document;
00071 KTextEditor::MarkInterface* m_markIface;
00072 QTimer* m_timer;
00073 QString m_filename;
00074 int m_active;
00075 int m_delay;
00076 BackgroundParser* m_bgParser;
00077 };
00078
00079 #endif
This file is part of the documentation for KDevelop Version 3.1.2.