KDevelop API Documentation

ValgrindPart Class Reference

Valgrind is a tool that helps you find memory management problems in programs. More...

#include <valgrind_part.h>

Inheritance diagram for ValgrindPart:

Inheritance graph
[legend]
Collaboration diagram for ValgrindPart:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ValgrindPart (QObject *parent, const char *name, const QStringList &)
 ~ValgrindPart ()
void runValgrind (const QString &exec, const QString &parameters, const QString &valExec, const QString &valParameters)
void savePartialProjectSession (QDomElement *el)
void restorePartialProjectSession (const QDomElement *el)
 To restore any settings which differs from project to project, you can override this base class method to read in from a certain subtree of the project session file.

Private Slots

void slotExecValgrind ()
void slotExecCalltree ()
void slotKillValgrind ()
void slotStopButtonClicked (KDevPlugin *which)
void receivedStdout (KProcess *, char *, int)
void receivedStderr (KProcess *, char *, int)
void processExited (KProcess *)
void loadOutput ()
void projectOpened ()

Private Member Functions

void getActiveFiles ()
void appendMessage (const QString &message)
void appendMessages (const QStringList &lines)
void receivedString (const QString &str)
void clear ()

Private Attributes

QString _lastExec
QString _lastParams
QString _lastValExec
QString _lastValParams
QString _lastCtExec
QString _lastCtParams
QString _lastKcExec
KProcessproc
QString currentMessage
QString lastPiece
QStringList activeFiles
int currentPid
QGuardedPtr< ValgrindWidgetm_widget
struct {
   bool   runKc
   QString   kcPath
kcInfo

Detailed Description

Valgrind is a tool that helps you find memory management problems in programs.

http://developer.kde.org/~sewardj/

Author(s):
$AUTHOR$

2nd author full name ...

nth author full name

Maintainer(s):
$AUTHOR$

2nd maintainer full name ...

nth maintainer full name

Feature(s):
Integrates Valgrind into KDevelop

Bug:
Describe a the 1st bug that you know of, but probably hasn't been reported yet. ..

Describe a the nth bug that you know of, but probably hasn't been reported yet.

Requirement(s):
Describe a the 1st requirement of your part.

Describe a the 2nd requirement of your part. ...

Describe a the nth requirement of your part.

Todo:
Describe a the 1st TODO of your part.

Describe a the 2nd TODO of your part. ...

Describe a the nth TODO of your part.

F.A.Q.:
First frequenly asked question about your part ? Answer.

Second frequenly asked question about your part ? Answer. ...

Last frequenly asked question about your part ? Answer.

Note:
First note text.

Second note text. ...

Last note text.

Warning:
First warning text.

Second warning text. ...

Last warning text.

Definition at line 16 of file valgrind_part.h.


Constructor & Destructor Documentation

ValgrindPart::ValgrindPart QObject parent,
const char *  name,
const QStringList
 

ValgrindPart::~ValgrindPart  ) 
 

Definition at line 73 of file valgrind_part.cpp.

References m_widget, KDevPlugin::mainWindow(), and KDevMainWindow::removeView().


Member Function Documentation

void ValgrindPart::appendMessage const QString message  )  [private]
 

Definition at line 139 of file valgrind_part.cpp.

References activeFiles, guessActiveItem(), m_widget, and message().

Referenced by appendMessages(), and processExited().

void ValgrindPart::appendMessages const QStringList lines  )  [private]
 

Definition at line 263 of file valgrind_part.cpp.

References appendMessage(), currentMessage, and currentPid.

Referenced by receivedString().

void ValgrindPart::clear  )  [private]
 

Definition at line 204 of file valgrind_part.cpp.

References currentMessage, currentPid, lastPiece, and m_widget.

Referenced by loadOutput(), and runValgrind().

void ValgrindPart::getActiveFiles  )  [private]
 

Definition at line 108 of file valgrind_part.cpp.

References activeFiles, KDevProject::allFiles(), KURL::cleanPath(), kdDebug(), KURL::path(), KDevPlugin::project(), and KDevProject::projectDirectory().

Referenced by loadOutput(), and runValgrind().

void ValgrindPart::loadOutput  )  [private, slot]
 

Definition at line 86 of file valgrind_part.cpp.

References clear(), getActiveFiles(), KFileDialog::getOpenFileName(), receivedString(), and KMessageBox::sorry().

void ValgrindPart::processExited KProcess  )  [private, slot]
 

Definition at line 288 of file valgrind_part.cpp.

References appendMessage(), KDevPlugin::core(), currentMessage, kcInfo, lastPiece, KProcess::pid(), KDevCore::running(), and KProcess::start().

void ValgrindPart::projectOpened  )  [private, slot]
 

Definition at line 81 of file valgrind_part.cpp.

References _lastExec.

void ValgrindPart::receivedStderr KProcess ,
char *  ,
int 
[private, slot]
 

Definition at line 240 of file valgrind_part.cpp.

References len, and receivedString().

void ValgrindPart::receivedStdout KProcess ,
char *  ,
int 
[private, slot]
 

Definition at line 235 of file valgrind_part.cpp.

void ValgrindPart::receivedString const QString str  )  [private]
 

Definition at line 245 of file valgrind_part.cpp.

References appendMessages(), and lastPiece.

Referenced by loadOutput(), and receivedStderr().

void ValgrindPart::restorePartialProjectSession const QDomElement el  )  [virtual]
 

To restore any settings which differs from project to project, you can override this base class method to read in from a certain subtree of the project session file.

During project loading, respectively project session (.kdevses) loading, this method will be called to give a chance to adapt the part to the newly loaded project. For instance, the debugger part might restore the set breakpoints from the previous debug session for the certain project.

Note:
Take attention to the difference to common not-project-related session stuff. They belong to the application rc file (kdeveloprc)

Reimplemented from KDevPlugin.

Definition at line 307 of file valgrind_part.cpp.

References _lastCtExec, _lastCtParams, _lastExec, _lastKcExec, _lastParams, _lastValExec, and _lastValParams.

void ValgrindPart::runValgrind const QString exec,
const QString params,
const QString valExec,
const QString valParams
 

Definition at line 212 of file valgrind_part.cpp.

References _lastExec, _lastParams, clear(), KProcess::clearArguments(), KDevPlugin::core(), getActiveFiles(), KProcess::isRunning(), m_widget, KDevPlugin::mainWindow(), proc, KDevMainWindow::raiseView(), KDevCore::running(), KMessageBox::sorry(), and KProcess::start().

Referenced by slotExecCalltree(), and slotExecValgrind().

void ValgrindPart::savePartialProjectSession QDomElement el  )  [virtual]
 

See also:
restorePartialProjectSession - This is the other way round, the same just for saving.

Reimplemented from KDevPlugin.

Definition at line 325 of file valgrind_part.cpp.

References _lastCtExec, _lastCtParams, _lastExec, _lastKcExec, _lastParams, _lastValExec, and _lastValParams.

void ValgrindPart::slotExecCalltree  )  [private, slot]
 

Definition at line 168 of file valgrind_part.cpp.

References _lastCtExec, _lastCtParams, _lastExec, _lastKcExec, _lastParams, ValgrindDialog::ctExecutable(), ValgrindDialog::ctParams(), ValgrindDialog::executableName(), ValgrindDialog::kcExecutable(), kcInfo, ValgrindDialog::parameters(), KDevPlugin::project(), runValgrind(), ValgrindDialog::setCtExecutable(), ValgrindDialog::setCtParams(), ValgrindDialog::setExecutable(), ValgrindDialog::setKcExecutable(), and ValgrindDialog::setParameters().

void ValgrindPart::slotExecValgrind  )  [private, slot]
 

Definition at line 149 of file valgrind_part.cpp.

References _lastExec, _lastParams, _lastValExec, _lastValParams, ValgrindDialog::executableName(), kcInfo, ValgrindDialog::parameters(), KDevPlugin::project(), runValgrind(), ValgrindDialog::setExecutable(), ValgrindDialog::setParameters(), ValgrindDialog::setValExecutable(), ValgrindDialog::setValParams(), ValgrindDialog::valExecutable(), and ValgrindDialog::valParams().

void ValgrindPart::slotKillValgrind  )  [private, slot]
 

Definition at line 191 of file valgrind_part.cpp.

References KProcess::kill(), and proc.

Referenced by slotStopButtonClicked().

void ValgrindPart::slotStopButtonClicked KDevPlugin which  )  [private, slot]
 

Definition at line 197 of file valgrind_part.cpp.

References slotKillValgrind().


Member Data Documentation

QString ValgrindPart::_lastCtExec [private]
 

Definition at line 46 of file valgrind_part.h.

Referenced by restorePartialProjectSession(), savePartialProjectSession(), and slotExecCalltree().

QString ValgrindPart::_lastCtParams [private]
 

Definition at line 46 of file valgrind_part.h.

Referenced by restorePartialProjectSession(), savePartialProjectSession(), and slotExecCalltree().

QString ValgrindPart::_lastExec [private]
 

Definition at line 46 of file valgrind_part.h.

Referenced by projectOpened(), restorePartialProjectSession(), runValgrind(), savePartialProjectSession(), slotExecCalltree(), and slotExecValgrind().

QString ValgrindPart::_lastKcExec [private]
 

Definition at line 46 of file valgrind_part.h.

Referenced by restorePartialProjectSession(), savePartialProjectSession(), and slotExecCalltree().

QString ValgrindPart::_lastParams [private]
 

Definition at line 46 of file valgrind_part.h.

Referenced by restorePartialProjectSession(), runValgrind(), savePartialProjectSession(), slotExecCalltree(), and slotExecValgrind().

QString ValgrindPart::_lastValExec [private]
 

Definition at line 46 of file valgrind_part.h.

Referenced by restorePartialProjectSession(), savePartialProjectSession(), and slotExecValgrind().

QString ValgrindPart::_lastValParams [private]
 

Definition at line 46 of file valgrind_part.h.

Referenced by restorePartialProjectSession(), savePartialProjectSession(), and slotExecValgrind().

QStringList ValgrindPart::activeFiles [private]
 

Definition at line 51 of file valgrind_part.h.

Referenced by appendMessage(), and getActiveFiles().

QString ValgrindPart::currentMessage [private]
 

Definition at line 49 of file valgrind_part.h.

Referenced by appendMessages(), clear(), and processExited().

int ValgrindPart::currentPid [private]
 

Definition at line 52 of file valgrind_part.h.

Referenced by appendMessages(), and clear().

struct { ... } ValgrindPart::kcInfo [private]
 

Referenced by processExited(), slotExecCalltree(), and slotExecValgrind().

QString ValgrindPart::kcPath [private]
 

Definition at line 56 of file valgrind_part.h.

QString ValgrindPart::lastPiece [private]
 

Definition at line 50 of file valgrind_part.h.

Referenced by clear(), processExited(), and receivedString().

QGuardedPtr<ValgrindWidget> ValgrindPart::m_widget [private]
 

Definition at line 53 of file valgrind_part.h.

Referenced by appendMessage(), clear(), runValgrind(), and ~ValgrindPart().

KProcess* ValgrindPart::proc [private]
 

Definition at line 48 of file valgrind_part.h.

Referenced by runValgrind(), and slotKillValgrind().

bool ValgrindPart::runKc [private]
 

Definition at line 55 of file valgrind_part.h.


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:49:44 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003