Main Page   Compound List   File List   Compound Members   File Members  

KMtraceLeaksView Class Reference

The widget showing a list a memory leaks and their data. More...

#include <KMtraceLeaksView.hh>

Collaboration diagram for KMtraceLeaksView:

Collaboration graph
[legend]
List of all members.

Public Slots

void slotExpandAll ()
void slotCollapseAll ()
void slotFind ()

Signals

void moduleChanged (QString module, int line)
void moduleUnselect ()

Public Methods

 KMtraceLeaksView (QWidget *parent, KMtraceModel *model)
void setModel (KMtraceModel *model)
void setShowSuppressed (bool show)

Private Slots

void slotContextLeak (QListViewItem *item, const QPoint &point, int column)
void slotSelectionChanged (QListViewItem *item)
void slotExecuted (QListViewItem *item)
void slotSearch ()
void slotSearchDone ()
void slotSuppress (KMtraceLeak *leak, QString string)
void slotSuppressionChanged (KMtraceLeak *leak)

Private Methods

void doExpandAll ()
void doCollapseAll ()
void doSelectItem (QListViewItem *item)
void doSearch (int where, QString what, bool caseSensitive)

Private Attributes

KMtraceModel * m_model
KPopupMenu * m_menu
int m_menuItemIdSuppress
KMtraceLeaksFindDialog * m_findDialog
KMtraceSuppressDialog * m_suppressDialog
QListViewItemIterator * m_findIterator
QListViewItem * m_findItem
int m_posY
bool m_showSuppressed

Detailed Description

The widget showing a list a memory leaks and their data.

The widget is an extension of a KListView class. Its list view items are of type KMtraceLeaksViewItem , which is the view of a KMtraceLeak model or a KMtraceCall .

Author:
Andreas Baumann <andreas_baumann@users.sourceforge.net>
See also:
KMtraceLeaksViewItem, KMtraceLeak
Version:


Constructor & Destructor Documentation

KMtraceLeaksView::KMtraceLeaksView (  QWidget *    parent,
KMtraceModel *    model
) 
 

Create a new list view for all leaks of the model.

Parameters:
parent the parent widget which should contain this widget
model the model to be shown


Member Function Documentation

void KMtraceLeaksView::doCollapseAll (    )  [private]
 

void KMtraceLeaksView::doExpandAll (    )  [private]
 

void KMtraceLeaksView::doSearch (  int    where,
QString    what,
bool    caseSensitive
)  [private]
 

void KMtraceLeaksView::doSelectItem (  QListViewItem *    item )  [private]
 

void KMtraceLeaksView::moduleChanged (  QString    module,
int    line
)  [signal]
 

The module with name 'module' should be displayed at line 'line'. At the moment we inform a source code viewer in class KMtraceViewerMainWindow , could also be the kdevelop main window if integrating the leak detection more into kdevelop as tool plugin.

Parameters:
module the filename of file containig the source code of the leaking code
line set the focus to this line

void KMtraceLeaksView::moduleUnselect (    )  [signal]
 

No module should be shown (as no function in the any call stack is currently selected). At the moment we inform a source code viewer in class KMtraceViewerMainWindow , could also be the kdevelop main window if integrating the leak detection more into kdevelop as tool plugin.

void KMtraceLeaksView::setModel (  KMtraceModel *    model ) 
 

Sets (and replaces) the model of memory leaks to be shown. This function creates the list items of the widget (leak information and call stacks) based on the information from the model.

Parameters:
model a model containing the memory leaks and the suppression

void KMtraceLeaksView::setShowSuppressed (  bool    show ) 
 

Boolean flag which specifies if suppressed leaks should be shown (and marked and suppressed leaks) or if they should be hidden from the list view.

Parameters:
show 

void KMtraceLeaksView::slotCollapseAll (    )  [slot]
 

Collapse all call stacks of all memory leaks.

void KMtraceLeaksView::slotContextLeak (  QListViewItem *    item,
const QPoint &    point,
int    column
)  [private, slot]
 

void KMtraceLeaksView::slotExecuted (  QListViewItem *    item )  [private, slot]
 

void KMtraceLeaksView::slotExpandAll (    )  [slot]
 

Expand all call stacks of all memory leaks.

void KMtraceLeaksView::slotFind (    )  [slot]
 

Open a non-modal memory leak find dialog.

void KMtraceLeaksView::slotSearch (    )  [private, slot]
 

void KMtraceLeaksView::slotSearchDone (    )  [private, slot]
 

void KMtraceLeaksView::slotSelectionChanged (  QListViewItem *    item )  [private, slot]
 

void KMtraceLeaksView::slotSuppress (  KMtraceLeak *    leak,
QString    string
)  [private, slot]
 

void KMtraceLeaksView::slotSuppressionChanged (  KMtraceLeak *    leak )  [private, slot]
 


Member Data Documentation

KMtraceLeaksFindDialog* KMtraceLeaksView::m_findDialog [private]
 

QListViewItem* KMtraceLeaksView::m_findItem [private]
 

QListViewItemIterator* KMtraceLeaksView::m_findIterator [private]
 

KPopupMenu* KMtraceLeaksView::m_menu [private]
 

int KMtraceLeaksView::m_menuItemIdSuppress [private]
 

KMtraceModel* KMtraceLeaksView::m_model [private]
 

int KMtraceLeaksView::m_posY [private]
 

bool KMtraceLeaksView::m_showSuppressed [private]
 

KMtraceSuppressDialog* KMtraceLeaksView::m_suppressDialog [private]
 


The documentation for this class was generated from the following files:
Generated on Fri Jan 3 11:42:32 2003 for kmtraceviewer by doxygen1.3-rc1