|
QtiPlot
0.9.8.2
|
#include <TexWidget.h>
Public Member Functions | |
| void | clone (TexWidget *t) |
| QString | formula () |
| QPixmap | pixmap () const |
| Return the pixmap to be drawn. More... | |
| 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()) | |
Public Member Functions inherited from FrameWidget | |
| int | angle () |
| AttachPolicy | attachPolicy () |
| QColor | backgroundColor () |
| double | bottom () |
| QRectF | boundingRect () const |
| Return bounding rectangle in plot coordinates. More... | |
| 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) |
| Graph * | plot () |
| void | resetCoordinates () |
| void | resetOrigin () |
| double | right () |
| void | setAngle (int ang) |
| 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. More... | |
| 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. More... | |
| void | setOriginCoord (double x, double y) |
| Sets the position of the top left corner in axis coordinates. More... | |
| void | setRect (int x, int y, int w, int h) |
| Set geometry, giving everything in paint coordinates. More... | |
| void | setSize (int w, int h) |
| Set size in paint coordinates (pixels). More... | |
| void | setSize (const QSize &newSize) |
| Set size in paint coordinates. More... | |
| void | showContextMenu () |
| void | showPropertiesDialog () |
| virtual void | updateCoordinates () |
| double | xValue () |
| Returns the x axis coordiante of the top left corner. More... | |
| double | yValue () |
| Returns the y axis coordiante of the top left corner. More... | |
Static Public Member Functions | |
| static void | restore (Graph *g, const QStringList &lst) |
Static Public Member Functions inherited from FrameWidget | |
| static double | heightIn (QWidget *w, Unit unit) |
| static void | setRect (QWidget *, double x, double y, double w, double h, Unit unit=Pixel) |
| Set geometry of a widget in arbitrary units. More... | |
| static double | widthIn (QWidget *w, Unit unit) |
| static double | xIn (QWidget *w, Unit unit) |
| static double | yIn (QWidget *w, Unit unit) |
Private Member Functions | |
| void | paintEvent (QPaintEvent *e) |
Private Attributes | |
| QString | d_formula |
| int | d_margin |
| QPixmap | d_pix |
Additional Inherited Members | |
Public Types inherited from FrameWidget | |
| enum | AttachPolicy { Page, Scales } |
| The attach to policy. More... | |
| enum | FrameStyle { None = 0, Line = 1, Shadow = 2 } |
| The kinds of frame a FrameWidget can draw around. More... | |
| enum | Unit { Inch, Millimeter, Centimeter, Point, Pixel, Scale } |
| Length units. More... | |
Signals inherited from FrameWidget | |
| void | changedCoordinates (const QRectF &) |
| void | showDialog () |
| void | showMenu () |
Protected Member Functions inherited from FrameWidget | |
| double | calculateBottomValue () |
| Returns the y axis coordinate of the bottom right corner based on the pixel value. More... | |
| double | calculateRightValue () |
| Returns the x axis coordinate of the bottom right corner based on the pixel value. More... | |
| double | calculateXValue () |
| Returns the x axis coordinate of the top left corner based on the pixel value. More... | |
| double | calculateYValue () |
| Returns the y axis coordinate of the top left corner based on the pixel value. More... | |
| void | contextMenuEvent (QContextMenuEvent *) |
| virtual void | drawFrame (QPainter *p, const QRect &rect) |
Protected Attributes inherited from FrameWidget | |
| int | d_angle |
| Rotation angle: not implemented yet. More... | |
| AttachPolicy | d_attach_policy |
| The attach to policy. More... | |
| QBrush | d_brush |
| Background brush. More... | |
| int | d_frame |
| Frame type. More... | |
| QPen | d_frame_pen |
| Pen used to draw the frame. More... | |
| bool | d_on_top |
| Graph * | d_plot |
| Parent plot. More... | |
| int | d_shadow_width |
| Frame width in pixels. More... | |
| double | d_x |
| X axis coordinate of the top left corner. More... | |
| double | d_x_right |
| The right side position in scale coordinates. More... | |
| double | d_y |
| Y axis coordinate of the top left corner. More... | |
| double | d_y_bottom |
| The bottom side position in scale coordinates. More... | |
| 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 | ) |
|
inline |
References d_formula.
Referenced by clone(), EnrichmentDialog::fetchImage(), restore(), EnrichmentDialog::setWidget(), and EnrichmentDialog::~EnrichmentDialog().
|
privatevirtual |
Reimplemented from FrameWidget.
References FrameWidget::d_frame, FrameWidget::d_frame_pen, d_margin, d_pix, FrameWidget::drawFrame(), and FrameWidget::Shadow.
|
inline |
Return the pixmap to be drawn.
References d_pix.
Referenced by clone(), EnrichmentDialog::fetchImage(), EnrichmentDialog::setWidget(), and EnrichmentDialog::~EnrichmentDialog().
|
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.
|
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().
|
virtual |
Reimplemented from FrameWidget.
References d_formula, d_pix, and FrameWidget::saveToString().
| void TexWidget::setBestSize | ( | ) |
References FrameWidget::d_frame, FrameWidget::d_frame_pen, d_margin, d_pix, FrameWidget::setSize(), and FrameWidget::Shadow.
Referenced by EnrichmentDialog::setBestSize().
|
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().
|
private |
Referenced by clone(), formula(), saveToString(), and setFormula().
|
private |
Referenced by paintEvent(), print(), setBestSize(), setPixmap(), and TexWidget().
|
private |
Referenced by clone(), paintEvent(), pixmap(), print(), saveToString(), setBestSize(), setPixmap(), and TexWidget().
1.8.6