MetricBgDelegate Class Reference

#include <MetricBgDelegate.h>

List of all members.

Public Member Functions

 MetricBgDelegate (QObject *parent=0, const QString &configureId="MetricsBgDelegate", MetricsConfig *globalConfig=NULL)
void setupConfigWidget (QWidget *parent=0)
void applyConfigWidget (QWidget *parent=0)
const QString & configureId () const
const MetricsInfometricsInfo () const
MetricsInfometricsInfo ()
QItemDelegate * copy ()

Protected Member Functions

virtual void paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
QColor getColor (double val) const
 Returns a color for a metric value between [0,1].

Protected Attributes

QString configId
const MetricsConfig metricsConfig
QString metricsName
MetricsInfo metricsInf
QGradient gradient
QImage colorMap

Private Slots

void gradientFinished (int result)

Private Member Functions

 MetricBgDelegate (const MetricBgDelegate &o)


Detailed Description

This delegate paints the background of an itemview according to a metric attribute (value is color-coded)

Definition at line 15 of file MetricBgDelegate.h.


Constructor & Destructor Documentation

MetricBgDelegate::MetricBgDelegate ( QObject *  parent = 0,
const QString &  configureId = "MetricsBgDelegate",
MetricsConfig globalConfig = NULL 
)

Definition at line 21 of file MetricBgDelegate.cpp.

Referenced by copy().

Here is the caller graph for this function:

MetricBgDelegate::MetricBgDelegate ( const MetricBgDelegate o  )  [inline, private]

Definition at line 62 of file MetricBgDelegate.h.


Member Function Documentation

void MetricBgDelegate::applyConfigWidget ( QWidget *  parent = 0  ) 

Definition at line 108 of file MetricBgDelegate.cpp.

Referenced by AsmView::contextMenuEvent().

Here is the call graph for this function:

Here is the caller graph for this function:

const QString& MetricBgDelegate::configureId (  )  const [inline]

Definition at line 27 of file MetricBgDelegate.h.

QItemDelegate* MetricBgDelegate::copy (  )  [inline]

Definition at line 36 of file MetricBgDelegate.h.

Referenced by AsmView::contextMenuEvent().

Here is the call graph for this function:

Here is the caller graph for this function:

QColor MetricBgDelegate::getColor ( double  val  )  const [protected]

Returns a color for a metric value between [0,1].

Definition at line 41 of file MetricBgDelegate.cpp.

Referenced by paint().

Here is the caller graph for this function:

void MetricBgDelegate::gradientFinished ( int  result  )  [private, slot]

Definition at line 228 of file MetricBgDelegate.cpp.

Referenced by setupConfigWidget().

MetricsInfo& MetricBgDelegate::metricsInfo (  )  [inline]

Definition at line 33 of file MetricBgDelegate.h.

const MetricsInfo& MetricBgDelegate::metricsInfo (  )  const [inline]

Definition at line 30 of file MetricBgDelegate.h.

void MetricBgDelegate::paint ( QPainter *  painter,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const [protected, virtual]

Definition at line 135 of file MetricBgDelegate.cpp.

Here is the call graph for this function:

void MetricBgDelegate::setupConfigWidget ( QWidget *  parent = 0  ) 

Definition at line 66 of file MetricBgDelegate.cpp.

Referenced by AsmView::contextMenuEvent().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

QImage MetricBgDelegate::colorMap [protected]

Definition at line 55 of file MetricBgDelegate.h.

Referenced by applyConfigWidget(), getColor(), and MetricBgDelegate().

QString MetricBgDelegate::configId [protected]

Definition at line 44 of file MetricBgDelegate.h.

Referenced by configureId().

QGradient MetricBgDelegate::gradient [protected]

Definition at line 54 of file MetricBgDelegate.h.

Referenced by applyConfigWidget(), MetricBgDelegate(), and setupConfigWidget().

const MetricsConfig MetricBgDelegate::metricsConfig [protected]

Definition at line 46 of file MetricBgDelegate.h.

Referenced by applyConfigWidget(), and setupConfigWidget().

MetricsInfo MetricBgDelegate::metricsInf [protected]

Definition at line 48 of file MetricBgDelegate.h.

Referenced by applyConfigWidget(), metricsInfo(), and paint().

QString MetricBgDelegate::metricsName [protected]

Definition at line 47 of file MetricBgDelegate.h.

Referenced by applyConfigWidget(), paint(), and setupConfigWidget().


The documentation for this class was generated from the following files:
Generated on Tue Sep 15 14:48:49 2009 for RoseQtWidgets by  doxygen 1.4.7