Origin project import class. More...
#include <importOPJ.h>
Public Member Functions | |
bool | createProjectTree (const OPJFile &opj) |
int | error () |
bool | importGraphs (const OPJFile &opj) |
bool | importNotes (const OPJFile &opj) |
ImportOPJ (ApplicationWindow *app, const QString &filename) | |
bool | importTables (const OPJFile &opj) |
Private Member Functions | |
void | addText (const text &_text, Graph *graph, LegendWidget *txt, const rect &layerRect, double fFontScaleFactor, double fXScale, double fYScale) |
int | arrowAngle (double length, double width) |
QString | parseOriginTags (const QString &str) |
QString | parseOriginText (const QString &str) |
int | translateOrigin2QtiplotLineStyle (int linestyle) |
Private Attributes | |
ApplicationWindow * | mw |
int | parse_error |
int | xoffset |
Origin project import class.
ImportOPJ::ImportOPJ | ( | ApplicationWindow * | app, | |
const QString & | filename | |||
) |
void ImportOPJ::addText | ( | const text & | _text, | |
Graph * | graph, | |||
LegendWidget * | txt, | |||
const rect & | layerRect, | |||
double | fFontScaleFactor, | |||
double | fXScale, | |||
double | fYScale | |||
) | [private] |
int ImportOPJ::arrowAngle | ( | double | length, | |
double | width | |||
) | [inline, private] |
Referenced by importGraphs().
bool ImportOPJ::createProjectTree | ( | const OPJFile & | opj | ) |
int ImportOPJ::error | ( | ) | [inline] |
References parse_error.
bool ImportOPJ::importGraphs | ( | const OPJFile & | opj | ) |
hack used in order to avoid resize and repaint events
References CurveLayout::aCol, Graph::addArrow(), Graph::addCurves(), Graph::addErrorBars(), Graph::addFunction(), Graph::addImage(), MultiLayer::addLayer(), addText(), Graph::Area, arrowAngle(), CurveLayout::aStyle, Graph::axisTitleFont(), Graph::Box, ScaleDraw::ColHeader, Table::colIndex(), Table::colName(), ColorBox::color(), Table::colX(), Table::colY(), Graph::curve(), ScaleDraw::Date, ScaleDraw::Day, ArrowMarker::drawEndArrow(), ArrowMarker::drawStartArrow(), Grid::enableZeroLineX(), Grid::enableZeroLineY(), Graph::ErrorBars, CurveLayout::fillCol, CurveLayout::filledArea, Graph::getPenStyle(), Graph::grid(), ApplicationWindow::hideWindow(), Graph::Histogram, Graph::HorizontalBars, Graph::initCurveLayout(), Graph::insertCurve(), JulianDateTime2String(), CurveLayout::lCol, Graph::Line, Graph::LineSymbols, QwtHistogram::loadData(), CurveLayout::lStyle, CurveLayout::lWidth, Graph::masterCurve(), ApplicationWindow::maximizeWindow(), ApplicationWindow::minimizeWindow(), ScaleDraw::Month, ApplicationWindow::multilayerPlot(), mw, Graph::newLegend(), ScaleDraw::Numeric, parseOriginText(), CurveLayout::penWidth, Graph::Pie, Graph::Scatter, Graph::setAutoscaleFonts(), Graph::setAxisFont(), Graph::setAxisTitleFont(), QwtHistogram::setBinning(), MdiSubWindow::setBirthDate(), MdiSubWindow::setCaptionPolicy(), ArrowMarker::setColor(), FrameWidget::setCoordinates(), QwtPieCurve::setCounterClockwise(), Graph::setCurveStyle(), ArrowMarker::setEndPoint(), QwtPieCurve::setFirstColor(), QwtPieCurve::setFixedLabelsPosition(), QwtBarCurve::setGap(), ArrowMarker::setHeadAngle(), ArrowMarker::setHeadLength(), QwtPieCurve::setHorizontalOffset(), QwtPieCurve::setLabelCategories(), QwtPieCurve::setLabelPercentagesFormat(), QwtPieCurve::setLabelsAutoFormat(), DataCurve::setLabelsColumnName(), QwtPieCurve::setLabelsEdgeDistance(), QwtPieCurve::setLabelValuesFormat(), Grid::setMajPenX(), Grid::setMajPenY(), Grid::setMinPenX(), Grid::setMinPenY(), QwtPieCurve::setRadius(), Graph::setScale(), QwtPieCurve::setStartAzimuth(), ArrowMarker::setStartPoint(), ArrowMarker::setStyle(), LegendWidget::setText(), QwtPieCurve::setThickness(), QwtPieCurve::setViewAngle(), ArrowMarker::setWidth(), MdiSubWindow::setWindowLabel(), Graph::setXAxisTitle(), Graph::setYAxisTitle(), Graph::showAxis(), CurveLayout::sSize, CurveLayout::sType, CurveLayout::symCol, ApplicationWindow::table(), ScaleDraw::Text, ScaleDraw::Time, translateOrigin2QtiplotLineStyle(), Graph::updateCurveLayout(), ApplicationWindow::updateFunctionLists(), Graph::updateVectorsLayout(), vector(), Graph::VectXYAM, Graph::VectXYXY, Graph::VerticalBars, and xoffset.
Referenced by ImportOPJ().
bool ImportOPJ::importNotes | ( | const OPJFile & | opj | ) |
References JulianDateTime2String(), mw, ApplicationWindow::newNote(), OBJECTXOFFSET, MdiSubWindow::setBirthDate(), Note::setText(), MdiSubWindow::setWindowLabel(), and xoffset.
Referenced by ImportOPJ().
bool ImportOPJ::importTables | ( | const OPJFile & | opj | ) |
References MatrixModel::dataVector(), Table::freeMemory(), Matrix::ImageView, JulianDateTime2String(), Table::Label, matrix(), Matrix::matrixModel(), ApplicationWindow::maximizeWindow(), ApplicationWindow::minimizeWindow(), mw, ApplicationWindow::newHiddenTable(), ApplicationWindow::newMatrix(), ApplicationWindow::newTable(), Table::None, Matrix::numCols(), Matrix::numRows(), Table::numRows(), OBJECTXOFFSET, Table::saveToMemory(), MdiSubWindow::setBirthDate(), MdiSubWindow::setCaptionPolicy(), Table::setColComment(), Table::setColName(), Table::setColNumericFormat(), Table::setColPlotDesignation(), Matrix::setColumnsWidth(), Table::setColumnWidth(), Table::setCommand(), Table::setDateFormat(), Table::setDayFormat(), Matrix::setFormula(), Table::setHeaderColType(), Matrix::setHeaderViewType(), Table::setMonthFormat(), Matrix::setNumericFormat(), Table::setText(), Table::setTextFormat(), Table::setTimeFormat(), Matrix::setViewType(), MdiSubWindow::setWindowLabel(), Matrix::verticalHeaderWidth(), Table::verticalHeaderWidth(), Table::X, Table::xErr, xoffset, Matrix::XY, Table::Y, Table::yErr, and Table::Z.
Referenced by ImportOPJ().
QString ImportOPJ::parseOriginTags | ( | const QString & | str | ) | [private] |
References strreverse().
Referenced by parseOriginText().
QString ImportOPJ::parseOriginText | ( | const QString & | str | ) | [private] |
References parseOriginTags().
Referenced by addText(), and importGraphs().
int ImportOPJ::translateOrigin2QtiplotLineStyle | ( | int | linestyle | ) | [private] |
Referenced by importGraphs().
ApplicationWindow* ImportOPJ::mw [private] |
Referenced by addText(), createProjectTree(), importGraphs(), importNotes(), ImportOPJ(), and importTables().
int ImportOPJ::parse_error [private] |
Referenced by error(), and ImportOPJ().
int ImportOPJ::xoffset [private] |
Referenced by importGraphs(), importNotes(), ImportOPJ(), and importTables().