Main Page   Compound List   File List   Compound Members   File Members  

KMtraceViewerMainWindow Class Reference

The main window of the kmtraceviewer application. More...

#include <KMtraceViewerMainWindow.hh>

Collaboration diagram for KMtraceViewerMainWindow:

Collaboration graph
[legend]
List of all members.

Public Slots

void slotModuleChanged (QString module, int line)
void slotModuleUnselect ()

Public Methods

 KMtraceViewerMainWindow (const char *ktreefile=0)
 ~KMtraceViewerMainWindow ()
void setModel (KMtraceModel *model)
void setModelFromFilename (const char *filename)

Protected Slots

void slotEditToolbars ()
void slotUpdateToolbars ()
void slotShowSuppressed ()
void slotSuppressListDialog ()
void slotSuppressListDialogDone ()
void slotOpenFile ()
void slotOpenRecentFile (const KURL &url)
virtual bool queryExit ()
virtual void restoreSettings (KConfig *config)
virtual void saveSettings (KConfig *config)

Private Attributes

KMtraceModelm_model
KMtraceStatisticsViewm_statsView
KMtraceLeaksViewm_leaksView
KMtraceSourceCodeViewm_sourceCodeView
KStatusBar * m_statusBar
KToggleAction * m_showSuppressListDialog
KToggleAction * m_showSuppressedAction
KMtraceSuppressListDialogm_suppressListDialog
QSplitter * m_splitter

Detailed Description

The main window of the kmtraceviewer application.

The main windows of the application is divided into three parts:

Author:
Andreas Baumann <andreas_baumann@users.sourceforge.net>
See also:
KMtraceStatisticsView, KMtraceLeaksView, KMtraceSourceCodeView
Version:


Constructor & Destructor Documentation

KMtraceViewerMainWindow::KMtraceViewerMainWindow const char *    ktreefile = 0
 

Creates a kmtrace viewer main window.

Parameters:
ktreefile the name of the file containing the output of the kmtrace program

KMtraceViewerMainWindow::~KMtraceViewerMainWindow  
 


Member Function Documentation

bool KMtraceViewerMainWindow::queryExit   [protected, virtual, slot]
 

void KMtraceViewerMainWindow::restoreSettings KConfig *    config [protected, virtual, slot]
 

void KMtraceViewerMainWindow::saveSettings KConfig *    config [protected, virtual, slot]
 

void KMtraceViewerMainWindow::setModel KMtraceModel   model
 

Sets (and replaces) the model of memory leaks to be shown. This function informs all children about then changed model.

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

void KMtraceViewerMainWindow::setModelFromFilename const char *    filename
 

Sets (and replaces) the model of memory leaks to be shown based on a ktreefile to read.

Parameters:
filename a ktreefile containing the model

void KMtraceViewerMainWindow::slotEditToolbars   [protected, slot]
 

void KMtraceViewerMainWindow::slotModuleChanged QString    module,
int    line
[slot]
 

Tells the main window to show a new status line. Normally connected to the signal KMtraceLeaksView ::moduleChanged which gets called when the user changes the focus in the list of modules. See also slot slotModuleUnselect .

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

void KMtraceViewerMainWindow::slotModuleUnselect   [slot]
 

Tells the main window to show a new statis line saying there is no source code (because none is available either in a library call or when having the list view focus not within the function call stack).

void KMtraceViewerMainWindow::slotOpenFile   [protected, slot]
 

void KMtraceViewerMainWindow::slotOpenRecentFile const KURL &    url [protected, slot]
 

void KMtraceViewerMainWindow::slotShowSuppressed   [protected, slot]
 

void KMtraceViewerMainWindow::slotSuppressListDialog   [protected, slot]
 

void KMtraceViewerMainWindow::slotSuppressListDialogDone   [protected, slot]
 

void KMtraceViewerMainWindow::slotUpdateToolbars   [protected, slot]
 


Member Data Documentation

KMtraceLeaksView* KMtraceViewerMainWindow::m_leaksView [private]
 

KMtraceModel* KMtraceViewerMainWindow::m_model [private]
 

KToggleAction* KMtraceViewerMainWindow::m_showSuppressedAction [private]
 

KToggleAction* KMtraceViewerMainWindow::m_showSuppressListDialog [private]
 

KMtraceSourceCodeView* KMtraceViewerMainWindow::m_sourceCodeView [private]
 

QSplitter* KMtraceViewerMainWindow::m_splitter [private]
 

KMtraceStatisticsView* KMtraceViewerMainWindow::m_statsView [private]
 

KStatusBar* KMtraceViewerMainWindow::m_statusBar [private]
 

KMtraceSuppressListDialog* KMtraceViewerMainWindow::m_suppressListDialog [private]
 


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