QtiPlot 0.9.7.3
|
#include <TexWidget.h>
Public Member Functions | |
void | clone (TexWidget *t) |
QString | formula () |
QPixmap | pixmap () const |
Return the pixmap to be drawn. | |
void | print (QPainter *p, const QwtScaleMap map[QwtPlot::axisCnt]) |
virtual QString | saveToString () |
void | setBestSize () |
void | setFormula (const QString &s) |
void | setPixmap (const QPixmap &) |
TexWidget (Graph *, const QString &s=QString::null, const QPixmap &pix=QPixmap()) | |
Static Public Member Functions | |
static void | restore (Graph *g, const QStringList &lst) |
Private Member Functions | |
void | paintEvent (QPaintEvent *e) |
Private Attributes | |
QString | d_formula |
int | d_margin |
QPixmap | d_pix |
TexWidget::TexWidget | ( | Graph * | plot, |
const QString & | s = QString::null , |
||
const QPixmap & | pix = QPixmap() |
||
) |
References d_margin, d_pix, and FrameWidget::setSize().
void TexWidget::clone | ( | TexWidget * | t | ) |
QString TexWidget::formula | ( | ) | [inline] |
References d_formula.
Referenced by clone(), EnrichmentDialog::fetchImage(), restore(), EnrichmentDialog::setWidget(), and EnrichmentDialog::~EnrichmentDialog().
void TexWidget::paintEvent | ( | QPaintEvent * | e | ) | [private, virtual] |
Reimplemented from FrameWidget.
References FrameWidget::d_frame, FrameWidget::d_frame_pen, d_margin, d_pix, FrameWidget::drawFrame(), and FrameWidget::Shadow.
QPixmap TexWidget::pixmap | ( | ) | const [inline] |
Return the pixmap to be drawn.
References d_pix.
Referenced by clone(), EnrichmentDialog::fetchImage(), EnrichmentDialog::setWidget(), and EnrichmentDialog::~EnrichmentDialog().
void TexWidget::print | ( | QPainter * | p, |
const QwtScaleMap | map[QwtPlot::axisCnt] | ||
) | [virtual] |
Reimplemented from FrameWidget.
References FrameWidget::calculateBottomValue(), FrameWidget::calculateRightValue(), FrameWidget::calculateXValue(), FrameWidget::calculateYValue(), FrameWidget::d_frame, FrameWidget::d_frame_pen, d_margin, d_pix, FrameWidget::drawFrame(), FrameWidget::plot(), and FrameWidget::Shadow.
void TexWidget::restore | ( | Graph * | g, |
const QStringList & | lst | ||
) | [static] |
References Graph::addTexFormula(), FrameWidget::bottom(), formula(), FrameWidget::frameStyle(), FrameWidget::Page, PenStyleBox::penStyle(), FrameWidget::right(), FrameWidget::setAttachPolicy(), FrameWidget::setCoordinates(), FrameWidget::setFramePen(), FrameWidget::setFrameStyle(), FrameWidget::setOnTop(), and Graph::updateLayout().
Referenced by ApplicationWindow::openGraph().
QString TexWidget::saveToString | ( | ) | [virtual] |
Reimplemented from FrameWidget.
void TexWidget::setBestSize | ( | ) |
References FrameWidget::d_frame, FrameWidget::d_frame_pen, d_margin, d_pix, FrameWidget::setSize(), and FrameWidget::Shadow.
Referenced by EnrichmentDialog::setBestSize().
void TexWidget::setFormula | ( | const QString & | s | ) | [inline] |
References d_formula.
Referenced by AddWidgetTool::addEquation(), EnrichmentDialog::createImage(), and EnrichmentDialog::updateForm().
void TexWidget::setPixmap | ( | const QPixmap & | pix | ) |
References FrameWidget::d_frame, FrameWidget::d_frame_pen, d_margin, d_pix, FrameWidget::setSize(), and FrameWidget::Shadow.
Referenced by EnrichmentDialog::createImage(), and EnrichmentDialog::updateForm().
QString TexWidget::d_formula [private] |
Referenced by clone(), formula(), saveToString(), and setFormula().
int TexWidget::d_margin [private] |
Referenced by paintEvent(), print(), setBestSize(), setPixmap(), and TexWidget().
QPixmap TexWidget::d_pix [private] |
Referenced by clone(), paintEvent(), pixmap(), print(), saveToString(), setBestSize(), setPixmap(), and TexWidget().