QtiPlot  0.9.8.2
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
PieLabel Class Reference

#include <PieCurve.h>

Inheritance diagram for PieLabel:
LegendWidget FrameWidget

List of all members.

Public Member Functions

QString customText ()
 PieLabel (Graph *, PieCurve *pie=0)
QString saveToString ()
void setCustomText (const QString &s)
void setPieCurve (PieCurve *pie)
- Public Member Functions inherited from LegendWidget
int angle ()
void clone (LegendWidget *t)
QFont font ()
bool hasTeXOutput ()
bool isAutoUpdateEnabled ()
 LegendWidget (Graph *)
void print (QPainter *p, const QwtScaleMap map[QwtPlot::axisCnt])
void setAngle (int angle)
void setAutoUpdate (bool on=true)
void setFont (const QFont &font)
void setTeXOutput (bool on=true)
void setText (const QString &s)
void setTextColor (const QColor &c)
void showTextEditor ()
QString text ()
QColor textColor ()
QSize textSize (QPainter *p, const QwtText &text)
 ~LegendWidget ()
- Public Member Functions inherited from FrameWidget
AttachPolicy attachPolicy ()
QColor backgroundColor ()
double bottom ()
QRectF boundingRect () const
 Return bounding rectangle in plot coordinates.
QBrush brush ()
QColor frameColor ()
Qt::PenStyle frameLineStyle ()
QPen framePen ()
int frameStyle ()
 FrameWidget (Graph *)
double frameWidth ()
bool isOnTop ()
void mousePressEvent (QMouseEvent *)
void move (const QPoint &pos)
Graphplot ()
void resetCoordinates ()
void resetOrigin ()
double right ()
void setAttachPolicy (AttachPolicy attachTo)
void setBackgroundColor (const QColor &c)
void setBrush (const QBrush &b)
void setCoordinates (double left, double top, double right, double bottom)
 Set position (xValue() and yValue()), right and bottom values giving everything in plot coordinates.
void setFrameColor (const QColor &c)
void setFrameLineStyle (const Qt::PenStyle &s)
void setFramePen (const QPen &p)
void setFrameStyle (int style)
void setFrameWidth (double w)
void setOnTop (bool on=true)
void setOrigin (int x, int y)
 Sets the position of the top left corner in paint coordinates.
void setOriginCoord (double x, double y)
 Sets the position of the top left corner in axis coordinates.
void setRect (int x, int y, int w, int h)
 Set geometry, giving everything in paint coordinates.
void setSize (int w, int h)
 Set size in paint coordinates (pixels).
void setSize (const QSize &newSize)
 Set size in paint coordinates.
void showContextMenu ()
void showPropertiesDialog ()
virtual void updateCoordinates ()
double xValue ()
 Returns the x axis coordiante of the top left corner.
double yValue ()
 Returns the y axis coordiante of the top left corner.

Static Public Member Functions

static void restore (Graph *g, const QStringList &lst)

Private Member Functions

void closeEvent (QCloseEvent *e)

Private Attributes

QString d_custom_text
PieCurved_pie_curve

Additional Inherited Members

- Signals inherited from LegendWidget
void enableEditor ()
- Signals inherited from FrameWidget
void changedCoordinates (const QRectF &)
void showDialog ()
void showMenu ()

Constructor & Destructor Documentation

PieLabel::PieLabel ( Graph plot,
PieCurve pie = 0 
)

Member Function Documentation

void PieLabel::closeEvent ( QCloseEvent *  e)
private
QString PieLabel::customText ( )
void PieLabel::restore ( Graph g,
const QStringList &  lst 
)
static
QString PieLabel::saveToString ( )
virtual
void PieLabel::setCustomText ( const QString &  s)
inline

References d_custom_text.

Referenced by PieCurve::addLabel().

void PieLabel::setPieCurve ( PieCurve pie)
inline

References d_pie_curve.

Referenced by PieCurve::addLabel(), and Graph::removePie().


Member Data Documentation

QString PieLabel::d_custom_text
private

Referenced by customText(), and setCustomText().

PieCurve* PieLabel::d_pie_curve
private

Referenced by saveToString(), and setPieCurve().


The documentation for this class was generated from the following files: