Referencia de la Clase toPieChart

#include <topiechart.h>

Diagrama de herencias de toPieChart

[leyenda]
Diagrama de colaboración para toPieChart:
[leyenda]
Lista de todos los miembros.

Slots públicos

void editPrint (void)
void openCopy (void)

Métodos públicos

 toPieChart (QWidget *parent=NULL, const char *name=NULL, WFlags f=0)
 toPieChart (toPieChart *pie, QWidget *parent=NULL, const char *name=NULL, WFlags f=0)
void setPostfix (const QString &post)
const QString & postfix (void) const
void setTitle (const QString &title=QString::null)
const QString & title (void)
void setDisplayPercent (bool pct)
bool displayPercent (void) const
void showLegend (bool on)
bool legend (void) const
void setValues (std::list< double > &values, std::list< QString > &labels)
void addValue (double value, const QString &label)
std::list< double > & values (void)
std::list< QString > & labels (void)

Métodos protegidos

virtual void mouseDoubleClickEvent (QMouseEvent *e)
virtual void mousePressEvent (QMouseEvent *e)
virtual void paintChart (QPainter *p, QRect rect)
virtual void paintEvent (QPaintEvent *e)

Atributos privados

std::list< double > Values
std::list< QString > Labels
QString Postfix
bool Legend
bool DisplayPercent
QString Title
QPopupMenu * Menu

Descripción detallada

A widget that displays a piechart.


Documentación del constructor y destructor

toPieChart::toPieChart QWidget parent = NULL,
const char *  name = NULL,
WFlags  f = 0
 

Create a new piechart.

Parámetros:
parent Parent widget.
name Name of widget.
f Widget flags.

toPieChart::toPieChart toPieChart pie,
QWidget parent = NULL,
const char *  name = NULL,
WFlags  f = 0
 

Create a copy of a piechart.

Parámetros:
pie Pie chart to copy.
parent Parent widget.
name Name of widget.
f Widget flags.


Documentación de las funciones miembro

void toPieChart::addValue double  value,
const QString &  label
[inline]
 

Add a value to the piechart.

Parámetros:
value New value to add.
label Label of this new value.

bool toPieChart::displayPercent void   )  const [inline]
 

Check if only percent is displayed

Devuelve:
True if only percent is displayed.

void toPieChart::editPrint void   )  [slot]
 

Print the chart

std::list<QString>& toPieChart::labels void   )  [inline]
 

Get labels of piechart.

Devuelve:
List of labels.

bool toPieChart::legend void   )  const [inline]
 

Check if legend is displayed or not.

Devuelve:
If legend is displayed or not.

void toPieChart::mouseDoubleClickEvent QMouseEvent *  e  )  [protected, virtual]
 

void toPieChart::mousePressEvent QMouseEvent *  e  )  [protected, virtual]
 

void toPieChart::openCopy void   )  [slot]
 

Open in new window

void toPieChart::paintChart QPainter *  p,
QRect  rect
[protected, virtual]
 

Paint chart in a given rectangle.

Gráfico de llamadas para esta función:

void toPieChart::paintEvent QPaintEvent *  e  )  [protected, virtual]
 

Reimplemented for internal reasons.

Gráfico de llamadas para esta función:

const QString& toPieChart::postfix void   )  const [inline]
 

Get the postfix string.

Devuelve:
Current postfix string.

void toPieChart::setDisplayPercent bool  pct  )  [inline]
 

Display piecharts in percent instead of actual values

Parámetros:
pct Wether or not to display percent only.

void toPieChart::setPostfix const QString &  post  )  [inline]
 

Set the postfix text to append the current values when they are displayed in the pie.

Parámetros:
post Postfix string, no space will be added after the value before the string so if you want the space you need to specify it first in this string.

void toPieChart::setTitle const QString &  title = QString::null  )  [inline]
 

Set title of the chart. Set to empty string to not display title.

Parámetros:
title Title of chart.

Gráfico de llamadas para esta función:

void toPieChart::setValues std::list< double > &  values,
std::list< QString > &  labels
[inline]
 

Set value list of piechart.

Parámetros:
values List of values to display.
labels List of labels, if label is empty it will not appear in legend.

void toPieChart::showLegend bool  on  )  [inline]
 

Specify if legend should be displayed to the right of the graph, default is on.

Parámetros:
on Whether to display graph or not.

const QString& toPieChart::title void   )  [inline]
 

Get title of chart.

Devuelve:
Title of chart.

std::list<double>& toPieChart::values void   )  [inline]
 

Get list of values.

Devuelve:
Values in piechart.


Documentación de los datos miembro

bool toPieChart::DisplayPercent [private]
 

std::list<QString> toPieChart::Labels [private]
 

bool toPieChart::Legend [private]
 

QPopupMenu* toPieChart::Menu [private]
 

QString toPieChart::Postfix [private]
 

QString toPieChart::Title [private]
 

std::list<double> toPieChart::Values [private]
 


La documentación para esta clase fué generada a partir de los siguientes archivos:
Generado el Sat May 21 00:05:09 2005 para BulmaGes por  doxygen 1.4.2