Source Code (Use browser search to find items of interest.)

Class Index

kchart'GraphLabel (./koffice/kchart/gdchart/gdc_samp2.cpp:27)

class GraphLabel : public QLabel
{
public:
    GraphLabel( QWidget* parent = 0, const char* name = 0 ) : QLabel( parent, name ) {};

protected:
    void paintEvent( QPaintEvent* );
};

/* set some sample data points */

kchart'GraphLabel::paintEvent() (./koffice/kchart/gdchart/gdc_pie_samp.cpp:96)

void GraphLabel::paintEvent( QPaintEvent* e )
{
    QPixmap buffer( size() );
    buffer.fill( white );
    QPainter p( &buffer );
    /* ----- call the lib ----- */
	pie_gif( width(),			/* width */
			 height(),			/* height */
			 &p,			/* paint here */
			 GDC_2DPIE,		/* or GDC_2DPIE */
			 7,				/* number of slices */
			 lbl,			/* slice labels (unlike out_gif(), can be NULL */
			 ps );			/* data array */

	bitBlt( this, e->rect().topLeft(), &buffer, e->rect() );
}

kchart'GraphLabel::paintEvent() (./koffice/kchart/gdchart/gdc_samp1.cpp:62)

void GraphLabel::paintEvent( QPaintEvent* e )
{
    QPixmap buffer( size() );
    buffer.fill( white );
    QPainter p( &buffer );
    /* ----- call the lib ----- */
     out_graph( width(), height(),      /* short       width, height */
                &p,        // Paint into this painter
                GDC_3DBAR,     /* GDC_CHART_T chart type */
                6,             /* int         number of points per data set */
                t,             /* char*[]     array of X labels */
                2,             /* int         number of data sets */
                a,             /* float[]     data set 1 */
                b );           /*  ...        data set n */
     bitBlt( this, e->rect().topLeft(), &buffer, e->rect() );
}

kchart'GraphLabel::paintEvent() (./koffice/kchart/gdchart/gdc_samp2.cpp:97)

void GraphLabel::paintEvent( QPaintEvent* e )
{
    QPixmap buffer( size() );
    buffer.fill( white );
    QPainter p( &buffer );
    /* ----- call the lib ----- */
	out_graph( width(), height(),									// overall width, height
			   &p,										// open FILE pointer
			   GDC_COMBO_HLC_AREA,							// chart type
			   12,											// number of points
			   t,											// X axis label array
			   1,											// number of sets (see README)
			   h,											// set 1 (high)
			   l,											// low
			   c,											// close
			   v );											// combo/volume

     bitBlt( this, e->rect().topLeft(), &buffer, e->rect() );
}