KDevelop API Documentation

ProblemReporter Class Reference

#include <problemreporter.h>

Inheritance diagram for ProblemReporter:

Inheritance graph
[legend]
Collaboration diagram for ProblemReporter:

Collaboration graph
[legend]
List of all members.

Public Slots

void reparse ()
void configure ()
void configWidget (KDialogBase *)
void reparse ()
void configure ()
void configWidget (KDialogBase *)
void reparse ()
void configure ()
void configWidget (KDialogBase *)
void reparse ()
void configure ()
void configWidget (KDialogBase *)

Public Member Functions

 ProblemReporter (AdaSupportPart *part, QWidget *parent=0, const char *name=0)
virtual ~ProblemReporter ()
virtual void reportError (QString message, QString filename, int line, int column)
virtual void reportWarning (QString message, QString filename, int line, int column)
virtual void reportMessage (QString message, QString filename, int line, int column)
 ProblemReporter (CppSupportPart *part, QWidget *parent=0, const char *name=0)
virtual ~ProblemReporter ()
void removeAllProblems (const QString &filename)
void reportProblem (const QString &fileName, const Problem &p)
 ProblemReporter (JavaSupportPart *part, QWidget *parent=0, const char *name=0)
virtual ~ProblemReporter ()
void removeAllProblems (const QString &filename)
void reportProblem (const QString &fileName, const Problem &p)
 ProblemReporter (PascalSupportPart *part, QWidget *parent=0, const char *name=0)
virtual ~ProblemReporter ()
virtual void reportError (QString message, QString filename, int line, int column)
virtual void reportWarning (QString message, QString filename, int line, int column)
virtual void reportMessage (QString message, QString filename, int line, int column)

Private Slots

void slotPartAdded (KParts::Part *)
void slotPartRemoved (KParts::Part *)
void slotActivePartChanged (KParts::Part *)
void slotTextChanged ()
void slotSelected (QListViewItem *)
void slotPartAdded (KParts::Part *)
void slotPartRemoved (KParts::Part *)
void slotActivePartChanged (KParts::Part *)
void slotTextChanged ()
void slotSelected (QListViewItem *)
void slotFileParsed (const QString &fileName)
void slotTabSelected (int tabindex)
void slotFilter ()
void closedFile (const KURL &fileName)
void slotPartAdded (KParts::Part *)
void slotPartRemoved (KParts::Part *)
void slotActivePartChanged (KParts::Part *)
void slotTextChanged ()
void slotSelected (QListViewItem *)
void slotPartAdded (KParts::Part *)
void slotPartRemoved (KParts::Part *)
void slotActivePartChanged (KParts::Part *)
void slotTextChanged ()
void slotSelected (QListViewItem *)

Private Member Functions

QString levelToString (int level) const
int levelToMarkType (int level) const
void InitListView (KListView *listview)
void removeAllItems (QListView *listview, const QString &filename)
void filterList (KListView *listview, const QString &level)
void updateCurrentWith (QListView *listview, const QString &level, const QString &filename)
void initCurrentList ()
QString levelToString (int level) const
int levelToMarkType (int level) const

Private Attributes

AdaSupportPartm_adaSupport
KTextEditor::EditInterfacem_editor
KTextEditor::Documentm_document
KTextEditor::MarkInterfacem_markIface
QTimerm_timer
QString m_filename
int m_active
int m_delay
BackgroundParserm_bgParser
QGridLayoutm_gridLayout
QTabBarm_tabBar
QWidgetStackm_widgetStack
KListViewm_currentList
KListViewm_errorList
KListViewm_fixmeList
KListViewm_warningList
KListViewm_todoList
KListViewm_filteredList
QLineEditm_filterEdit
CppSupportPartm_cppSupport
QGuardedPtr< KTextEditor::Documentm_document
KTextEditor::MarkInterfacem_markIface
QTimerm_timer
QString m_fileName
int m_canParseFile
JavaSupportPartm_javaSupport
QGuardedPtr< KTextEditor::Documentm_document
KTextEditor::MarkInterfacem_markIface
QTimerm_timer
PascalSupportPartm_pascalSupport
KTextEditor::EditInterfacem_editor
KTextEditor::Documentm_document
KTextEditor::MarkInterfacem_markIface
QTimerm_timer
BackgroundParserm_bgParser

Constructor & Destructor Documentation

ProblemReporter::ProblemReporter AdaSupportPart part,
QWidget parent = 0,
const char *  name = 0
 

Definition at line 78 of file problemreporter.cpp.

References KListView::addColumn(), configure(), KListView::doubleClicked(), m_timer, KDevPlugin::partController(), reparse(), slotActivePartChanged(), slotPartAdded(), slotPartRemoved(), and slotSelected().

ProblemReporter::~ProblemReporter  )  [virtual]
 

Definition at line 114 of file problemreporter.cpp.

References m_bgParser.

ProblemReporter::ProblemReporter CppSupportPart part,
QWidget parent = 0,
const char *  name = 0
 

Definition at line 86 of file problemreporter.cpp.

References KParts::PartManager::activePart(), KListView::addColumn(), closedFile(), configure(), InitListView(), KListView::KListView(), m_canParseFile, m_currentList, m_errorList, m_filterEdit, m_filteredList, m_fixmeList, m_gridLayout, m_tabBar, m_timer, m_todoList, m_widgetStack, KDevPlugin::partController(), KListView::removeColumn(), reparse(), slotActivePartChanged(), slotFileParsed(), slotFilter(), slotPartAdded(), slotPartRemoved(), and slotTabSelected().

virtual ProblemReporter::~ProblemReporter  )  [virtual]
 

ProblemReporter::ProblemReporter JavaSupportPart part,
QWidget parent = 0,
const char *  name = 0
 

Definition at line 82 of file problemreporter.cpp.

References KListView::addColumn(), configure(), KListView::executed(), m_timer, KDevPlugin::partController(), reparse(), slotActivePartChanged(), slotPartAdded(), slotPartRemoved(), and slotSelected().

virtual ProblemReporter::~ProblemReporter  )  [virtual]
 

ProblemReporter::ProblemReporter PascalSupportPart part,
QWidget parent = 0,
const char *  name = 0
 

Definition at line 76 of file problemreporter.cpp.

References KListView::addColumn(), configure(), KListView::doubleClicked(), m_timer, KDevPlugin::partController(), reparse(), slotActivePartChanged(), slotPartAdded(), slotPartRemoved(), and slotSelected().

virtual ProblemReporter::~ProblemReporter  )  [virtual]
 


Member Function Documentation

void ProblemReporter::closedFile const KURL fileName  )  [private, slot]
 

Definition at line 269 of file problemreporter.cpp.

References CppSupportPart::backgroundParser(), m_cppSupport, KURL::path(), and BackgroundParser::problems().

Referenced by ProblemReporter().

void ProblemReporter::configure  )  [slot]
 

void ProblemReporter::configure  )  [slot]
 

void ProblemReporter::configure  )  [slot]
 

void ProblemReporter::configure  )  [slot]
 

Definition at line 243 of file problemreporter.cpp.

References kdDebug(), m_active, m_delay, KConfigBase::readBoolEntry(), KConfigBase::readNumEntry(), and KConfigBase::setGroup().

Referenced by configWidget(), and ProblemReporter().

void ProblemReporter::configWidget KDialogBase  )  [slot]
 

void ProblemReporter::configWidget KDialogBase  )  [slot]
 

void ProblemReporter::configWidget KDialogBase  )  [slot]
 

void ProblemReporter::configWidget KDialogBase dlg  )  [slot]
 

Definition at line 252 of file problemreporter.cpp.

References KDialogBase::addVBoxPage(), configure(), and kdDebug().

void ProblemReporter::filterList KListView listview,
const QString level
[private]
 

Definition at line 188 of file problemreporter.cpp.

References KListView::KListViewItem, m_filterEdit, and m_filteredList.

Referenced by slotFilter().

void ProblemReporter::initCurrentList  )  [private]
 

Definition at line 331 of file problemreporter.cpp.

References m_cppSupport, m_currentList, m_errorList, m_fixmeList, m_tabBar, m_todoList, KDevPlugin::project(), KDevProject::projectDirectory(), and updateCurrentWith().

void ProblemReporter::InitListView KListView listview  )  [private]
 

Definition at line 204 of file problemreporter.cpp.

References KListView::addColumn(), KListView::executed(), and slotSelected().

Referenced by ProblemReporter().

int ProblemReporter::levelToMarkType int  level  )  const [private]
 

int ProblemReporter::levelToMarkType int  level  )  const [private]
 

Definition at line 475 of file problemreporter.cpp.

Referenced by reportProblem().

QString ProblemReporter::levelToString int  level  )  const [private]
 

QString ProblemReporter::levelToString int  level  )  const [private]
 

Definition at line 458 of file problemreporter.cpp.

Referenced by reportProblem().

void ProblemReporter::removeAllItems QListView listview,
const QString filename
[private]
 

Definition at line 282 of file problemreporter.cpp.

Referenced by removeAllProblems().

void ProblemReporter::removeAllProblems const QString filename  ) 
 

void ProblemReporter::removeAllProblems const QString filename  ) 
 

Definition at line 294 of file problemreporter.cpp.

References kdDebug(), m_cppSupport, m_document, m_errorList, m_fixmeList, m_markIface, m_todoList, KTextEditor::MarkInterface::marks(), KDevPlugin::project(), KDevProject::projectDirectory(), removeAllItems(), and KTextEditor::MarkInterface::removeMark().

Referenced by JavaDriver::fileParsed(), and CppDriver::fileParsed().

void ProblemReporter::reparse  )  [slot]
 

void ProblemReporter::reparse  )  [slot]
 

void ProblemReporter::reparse  )  [slot]
 

void ProblemReporter::reparse  )  [slot]
 

Definition at line 152 of file problemreporter.cpp.

References kdDebug(), m_bgParser, m_delay, m_editor, m_markIface, m_timer, KTextEditor::MarkInterface::marks(), KTextEditor::MarkInterface::removeMark(), and KTextEditor::EditInterface::text().

Referenced by ProblemReporter(), and slotActivePartChanged().

virtual void ProblemReporter::reportError QString  message,
QString  filename,
int  line,
int  column
[virtual]
 

void ProblemReporter::reportError QString  message,
QString  filename,
int  line,
int  column
[virtual]
 

Definition at line 203 of file problemreporter.cpp.

References KTextEditor::MarkInterface::addMark(), m_markIface, and message().

Referenced by PascalSupportPart::parse(), PascalParser::reportError(), PascalLexer::reportError(), and BackgroundParser::run().

virtual void ProblemReporter::reportMessage QString  message,
QString  filename,
int  line,
int  column
[virtual]
 

void ProblemReporter::reportMessage QString  message,
QString  filename,
int  line,
int  column
[virtual]
 

Definition at line 231 of file problemreporter.cpp.

References message().

Referenced by PascalParser::reportMessage().

void ProblemReporter::reportProblem const QString fileName,
const Problem p
 

void ProblemReporter::reportProblem const QString fileName,
const Problem p
 

Definition at line 374 of file problemreporter.cpp.

References KTextEditor::MarkInterface::addMark(), Problem::column(), Problem::level(), levelToMarkType(), levelToString(), Problem::line(), m_cppSupport, m_currentList, m_document, m_fileName, m_markIface, KDevPlugin::project(), KDevProject::projectDirectory(), and Problem::text().

Referenced by JavaDriver::fileParsed(), and CppDriver::fileParsed().

virtual void ProblemReporter::reportWarning QString  message,
QString  filename,
int  line,
int  column
[virtual]
 

void ProblemReporter::reportWarning QString  message,
QString  filename,
int  line,
int  column
[virtual]
 

Definition at line 219 of file problemreporter.cpp.

References message().

Referenced by PascalLexer::reportWarning().

void ProblemReporter::slotActivePartChanged KParts::Part  )  [private, slot]
 

void ProblemReporter::slotActivePartChanged KParts::Part  )  [private, slot]
 

void ProblemReporter::slotActivePartChanged KParts::Part  )  [private, slot]
 

void ProblemReporter::slotActivePartChanged KParts::Part  )  [private, slot]
 

Definition at line 124 of file problemreporter.cpp.

References m_delay, m_document, m_editor, m_filename, m_markIface, m_timer, KURL::path(), reparse(), slotTextChanged(), and KParts::ReadOnlyPart::url().

Referenced by ProblemReporter().

void ProblemReporter::slotFileParsed const QString fileName  )  [private, slot]
 

Definition at line 492 of file problemreporter.cpp.

References m_active, and m_canParseFile.

Referenced by ProblemReporter().

void ProblemReporter::slotFilter  )  [private, slot]
 

Definition at line 172 of file problemreporter.cpp.

References filterList(), m_errorList, m_filterEdit, m_filteredList, m_fixmeList, m_tabBar, and m_todoList.

Referenced by ProblemReporter().

void ProblemReporter::slotPartAdded KParts::Part  )  [private, slot]
 

void ProblemReporter::slotPartAdded KParts::Part  )  [private, slot]
 

void ProblemReporter::slotPartAdded KParts::Part  )  [private, slot]
 

void ProblemReporter::slotPartAdded KParts::Part  )  [private, slot]
 

Definition at line 261 of file problemreporter.cpp.

References KTextEditor::MarkInterfaceExtension::setPixmap().

Referenced by ProblemReporter().

void ProblemReporter::slotPartRemoved KParts::Part  )  [private, slot]
 

void ProblemReporter::slotPartRemoved KParts::Part  )  [private, slot]
 

void ProblemReporter::slotPartRemoved KParts::Part  )  [private, slot]
 

void ProblemReporter::slotPartRemoved KParts::Part  )  [private, slot]
 

Definition at line 271 of file problemreporter.cpp.

References kdDebug(), m_document, m_editor, and m_timer.

Referenced by ProblemReporter().

void ProblemReporter::slotSelected QListViewItem  )  [private, slot]
 

void ProblemReporter::slotSelected QListViewItem  )  [private, slot]
 

void ProblemReporter::slotSelected QListViewItem  )  [private, slot]
 

void ProblemReporter::slotSelected QListViewItem  )  [private, slot]
 

Definition at line 195 of file problemreporter.cpp.

References KDevPartController::editDocument(), m_adaSupport, and KDevPlugin::partController().

Referenced by InitListView(), and ProblemReporter().

void ProblemReporter::slotTabSelected int  tabindex  )  [private, slot]
 

Definition at line 199 of file problemreporter.cpp.

References m_widgetStack.

Referenced by ProblemReporter().

void ProblemReporter::slotTextChanged  )  [private, slot]
 

void ProblemReporter::slotTextChanged  )  [private, slot]
 

void ProblemReporter::slotTextChanged  )  [private, slot]
 

void ProblemReporter::slotTextChanged  )  [private, slot]
 

Definition at line 146 of file problemreporter.cpp.

References m_delay, and m_timer.

Referenced by slotActivePartChanged().

void ProblemReporter::updateCurrentWith QListView listview,
const QString level,
const QString filename
[private]
 

Definition at line 347 of file problemreporter.cpp.

References m_currentList.

Referenced by initCurrentList().


Member Data Documentation

int ProblemReporter::m_active [private]
 

Definition at line 73 of file problemreporter.h.

Referenced by configure(), and slotFileParsed().

AdaSupportPart* ProblemReporter::m_adaSupport [private]
 

Definition at line 68 of file problemreporter.h.

Referenced by slotSelected().

BackgroundParser* ProblemReporter::m_bgParser [private]
 

Definition at line 75 of file problemreporter.h.

BackgroundParser* ProblemReporter::m_bgParser [private]
 

Definition at line 76 of file problemreporter.h.

Referenced by reparse(), and ~ProblemReporter().

int ProblemReporter::m_canParseFile [private]
 

Definition at line 97 of file problemreporter.h.

Referenced by ProblemReporter(), and slotFileParsed().

CppSupportPart* ProblemReporter::m_cppSupport [private]
 

Definition at line 90 of file problemreporter.h.

Referenced by closedFile(), initCurrentList(), removeAllProblems(), and reportProblem().

KListView* ProblemReporter::m_currentList [private]
 

Definition at line 82 of file problemreporter.h.

Referenced by initCurrentList(), ProblemReporter(), reportProblem(), and updateCurrentWith().

int ProblemReporter::m_delay [private]
 

Definition at line 74 of file problemreporter.h.

Referenced by configure(), reparse(), slotActivePartChanged(), and slotTextChanged().

KTextEditor::Document* ProblemReporter::m_document [private]
 

Definition at line 69 of file problemreporter.h.

QGuardedPtr<KTextEditor::Document> ProblemReporter::m_document [private]
 

Definition at line 66 of file problemreporter.h.

QGuardedPtr<KTextEditor::Document> ProblemReporter::m_document [private]
 

Definition at line 91 of file problemreporter.h.

KTextEditor::Document* ProblemReporter::m_document [private]
 

Definition at line 70 of file problemreporter.h.

Referenced by removeAllProblems(), reportProblem(), slotActivePartChanged(), and slotPartRemoved().

KTextEditor::EditInterface* ProblemReporter::m_editor [private]
 

Definition at line 68 of file problemreporter.h.

KTextEditor::EditInterface* ProblemReporter::m_editor [private]
 

Definition at line 69 of file problemreporter.h.

Referenced by reparse(), slotActivePartChanged(), and slotPartRemoved().

KListView* ProblemReporter::m_errorList [private]
 

Definition at line 83 of file problemreporter.h.

Referenced by initCurrentList(), ProblemReporter(), removeAllProblems(), and slotFilter().

QString ProblemReporter::m_fileName [private]
 

Definition at line 69 of file problemreporter.h.

Referenced by reportProblem().

QString ProblemReporter::m_filename [private]
 

Definition at line 72 of file problemreporter.h.

Referenced by slotActivePartChanged().

QLineEdit* ProblemReporter::m_filterEdit [private]
 

Definition at line 88 of file problemreporter.h.

Referenced by filterList(), ProblemReporter(), and slotFilter().

KListView* ProblemReporter::m_filteredList [private]
 

Definition at line 87 of file problemreporter.h.

Referenced by filterList(), ProblemReporter(), and slotFilter().

KListView* ProblemReporter::m_fixmeList [private]
 

Definition at line 84 of file problemreporter.h.

Referenced by initCurrentList(), ProblemReporter(), removeAllProblems(), and slotFilter().

QGridLayout* ProblemReporter::m_gridLayout [private]
 

Definition at line 79 of file problemreporter.h.

Referenced by ProblemReporter().

JavaSupportPart* ProblemReporter::m_javaSupport [private]
 

Definition at line 65 of file problemreporter.h.

KTextEditor::MarkInterface* ProblemReporter::m_markIface [private]
 

Definition at line 70 of file problemreporter.h.

KTextEditor::MarkInterface* ProblemReporter::m_markIface [private]
 

Definition at line 67 of file problemreporter.h.

KTextEditor::MarkInterface* ProblemReporter::m_markIface [private]
 

Definition at line 92 of file problemreporter.h.

KTextEditor::MarkInterface* ProblemReporter::m_markIface [private]
 

Definition at line 71 of file problemreporter.h.

Referenced by removeAllProblems(), reparse(), reportError(), reportProblem(), and slotActivePartChanged().

PascalSupportPart* ProblemReporter::m_pascalSupport [private]
 

Definition at line 67 of file problemreporter.h.

QTabBar* ProblemReporter::m_tabBar [private]
 

Definition at line 80 of file problemreporter.h.

Referenced by initCurrentList(), ProblemReporter(), and slotFilter().

QTimer* ProblemReporter::m_timer [private]
 

Definition at line 71 of file problemreporter.h.

QTimer* ProblemReporter::m_timer [private]
 

Definition at line 68 of file problemreporter.h.

QTimer* ProblemReporter::m_timer [private]
 

Definition at line 93 of file problemreporter.h.

QTimer* ProblemReporter::m_timer [private]
 

Definition at line 72 of file problemreporter.h.

Referenced by ProblemReporter(), reparse(), slotActivePartChanged(), slotPartRemoved(), and slotTextChanged().

KListView* ProblemReporter::m_todoList [private]
 

Definition at line 86 of file problemreporter.h.

Referenced by initCurrentList(), ProblemReporter(), removeAllProblems(), and slotFilter().

KListView* ProblemReporter::m_warningList [private]
 

Definition at line 85 of file problemreporter.h.

QWidgetStack* ProblemReporter::m_widgetStack [private]
 

Definition at line 81 of file problemreporter.h.

Referenced by ProblemReporter(), and slotTabSelected().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Feb 22 09:45:54 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003