Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Examples  

YStatistics Class Reference

#include <statistics.h>

Inheritance diagram for YStatistics:

Inheritance graph
[legend]
Collaboration diagram for YStatistics:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 YStatistics ()
virtual ~YStatistics ()
YStatisticTableGetTable () const
QLabel * GetLabel () const
QWidget * GetMainWidget ()
virtual int InitInstance (YStatisticHandler *handler, QWidget *p)
void FillTable ()
virtual void PostCreate ()
 This function is called after initialization the whole class. It is used to resize the tables.

virtual unsigned int GetMaxEntries () const=0
 Returns the number of entries (columns) of the statistic table.

virtual unsigned int GetMaxProperties () const=0
 Returns the number of properties.

virtual QStringList GetPropertyNames () const=0
 Returns a list of property names which should be drawn in each row.

virtual QStringList GetEntryNames () const=0
 Returns a list of entry names which should be drawn in each row.

virtual QString GetTableTitle () const=0
 Return title of statistic table.

virtual YLogFileStatisticsGetEntryLogFileStatistics (int number)=0
 Returns the ptr to YLogFileStatistics of the given column.


Private Attributes

QVBox * vbox
QLabel * label
YStatisticTabletable

Detailed Description

This class is an abstract base class providing an interface for different statisti tables It acts like a widget. It must be inserted with InsertStatistic()


Constructor & Destructor Documentation

YStatistics::YStatistics   [inline]
 

virtual YStatistics::~YStatistics   [inline, virtual]
 


Member Function Documentation

void YStatistics::FillTable  
 

virtual YLogFileStatistics* YStatistics::GetEntryLogFileStatistics int    number [pure virtual]
 

Returns the ptr to YLogFileStatistics of the given column.

Implemented in YTaskEnvironmentStatistics, YMutexEnvironmentStatistics, YCPUEnvironmentStatistics, YSummaryEnvironmentStatistics, YTaskProjectStatistics, YMutexProjectStatistics, YCPUProjectStatistics, and YSummaryProjectStatistics.

virtual QStringList YStatistics::GetEntryNames   const [pure virtual]
 

Returns a list of entry names which should be drawn in each row.

Implemented in YTaskEnvironmentStatistics, YMutexEnvironmentStatistics, YCPUEnvironmentStatistics, YSummaryEnvironmentStatistics, and YProjectStatistics.

QLabel* YStatistics::GetLabel   const [inline]
 

QWidget* YStatistics::GetMainWidget   [inline]
 

virtual unsigned int YStatistics::GetMaxEntries   const [pure virtual]
 

Returns the number of entries (columns) of the statistic table.

Implemented in YTaskEnvironmentStatistics, YMutexEnvironmentStatistics, YCPUEnvironmentStatistics, YSummaryEnvironmentStatistics, and YProjectStatistics.

virtual unsigned int YStatistics::GetMaxProperties   const [pure virtual]
 

Returns the number of properties.

Implemented in YTaskEnvironmentStatistics, YMutexEnvironmentStatistics, YCPUEnvironmentStatistics, YSummaryEnvironmentStatistics, YTaskProjectStatistics, YMutexProjectStatistics, YCPUProjectStatistics, and YSummaryProjectStatistics.

virtual QStringList YStatistics::GetPropertyNames   const [pure virtual]
 

Returns a list of property names which should be drawn in each row.

Implemented in YTaskEnvironmentStatistics, YMutexEnvironmentStatistics, YCPUEnvironmentStatistics, YSummaryEnvironmentStatistics, YTaskProjectStatistics, YMutexProjectStatistics, YCPUProjectStatistics, and YSummaryProjectStatistics.

YStatisticTable* YStatistics::GetTable   const [inline]
 

virtual QString YStatistics::GetTableTitle   const [pure virtual]
 

Return title of statistic table.

Implemented in YEnvironmentStatistics, YSummaryEnvironmentStatistics, YProjectStatistics, and YSummaryProjectStatistics.

int YStatistics::InitInstance YStatisticHandler   handler,
QWidget *    parent
[virtual]
 

This function is called during InitInstance() and during YResultFrame::UpdateResults() after inserting YStatistics

virtual void YStatistics::PostCreate   [inline, virtual]
 

This function is called after initialization the whole class. It is used to resize the tables.


Member Data Documentation

QLabel* YStatistics::label [private]
 

YStatisticTable* YStatistics::table [private]
 

QVBox* YStatistics::vbox [private]
 


The documentation for this class was generated from the following files:
Generated on Fri Feb 14 00:03:39 2003 for Yasa by doxygen1.3-rc3