SciDAVis
1.D4
|
Origin project import class. More...
#include <importOPJ.h>
Public Member Functions | |
bool | createProjectTree (const OriginFile &opj) |
int | error () |
bool | importGraphs (const OriginFile &opj) |
bool | importNotes (const OriginFile &opj) |
ImportOPJ (ApplicationWindow *app, const QString &filename) | |
bool | importTables (const OriginFile &opj) |
Private Member Functions | |
QString | parseOriginTags (const QString &str) |
QString | parseOriginText (const QString &str) |
int | translateOrigin2ScidavisLineStyle (int linestyle) |
Private Attributes | |
ApplicationWindow * | mw |
int | parse_error |
int | xoffset |
Origin project import class.
ImportOPJ::ImportOPJ | ( | ApplicationWindow * | app, |
const QString & | filename | ||
) |
bool ImportOPJ::createProjectTree | ( | const OriginFile & | opj | ) |
References ApplicationWindow::addFolderListViewItem(), Folder::addWindow(), ApplicationWindow::changeFolder(), ApplicationWindow::current_folder, FolderListItem::folder(), Folder::folderListItem(), ApplicationWindow::folders, mw, posixTimeToString(), ApplicationWindow::projectFolder(), Folder::removeWindow(), Folder::setActiveWindow(), Folder::setBirthDate(), Folder::setFolderListItem(), Folder::setModificationDate(), and Folder::window().
Referenced by ImportOPJ().
|
inline |
References parse_error.
bool ImportOPJ::importGraphs | ( | const OriginFile & | opj | ) |
hack used in order to avoid resize and repaint events
References CurveLayout::aCol, Graph::addErrorBars(), Graph::addFunctionCurve(), MultiLayer::addLayer(), MultiLayer::arrangeLayers(), CurveLayout::aStyle, ApplicationWindow::autoResizeLayers, ApplicationWindow::autoScaleFonts, Graph::Box, Graph::ColHeader, ColorBox::color(), Graph::curve(), Graph::Date, Graph::Day, Grid::enableZeroLineX(), Grid::enableZeroLineY(), Graph::ErrorBars, CurveLayout::fillCol, CurveLayout::filledArea, Graph::getPenStyle(), Graph::grid(), ApplicationWindow::hideWindow(), Graph::Histogram, Graph::HorizontalBars, Graph::initCurveLayout(), Graph::insertCurve(), CurveLayout::lCol, Graph::Line, Graph::LineSymbols, QwtHistogram::loadData(), CurveLayout::lStyle, CurveLayout::lWidth, Graph::Month, ApplicationWindow::multilayerPlot(), mw, Graph::newLegend(), Graph::Numeric, OBJECTXOFFSET, parseOriginText(), CurveLayout::penWidth, Graph::Pie, Graph::Scatter, Graph::setAutoscaleFonts(), QwtHistogram::setBinning(), Graph::setCurveStyle(), QwtBarCurve::setGap(), Graph::setIgnoreResizeEvents(), Grid::setMajPenX(), Grid::setMajPenY(), Grid::setMinPenX(), Grid::setMinPenY(), Graph::setScale(), MyWidget::setWindowLabel(), Graph::setXAxisTitle(), Graph::setYAxisTitle(), Graph::showAxis(), CurveLayout::sSize, CurveLayout::sType, CurveLayout::symCol, ApplicationWindow::table(), Graph::Time, translateOrigin2ScidavisLineStyle(), Graph::Txt, Graph::updateCurveLayout(), ApplicationWindow::updateFunctionLists(), Graph::VerticalBars, and xoffset.
Referenced by ImportOPJ().
bool ImportOPJ::importNotes | ( | const OriginFile & | opj | ) |
References mw, ApplicationWindow::newNote(), OBJECTXOFFSET, Note::setText(), MyWidget::setWindowLabel(), and xoffset.
Referenced by ImportOPJ().
bool ImportOPJ::importTables | ( | const OriginFile & | opj | ) |
References Table::column(), Table::columnCount(), SciDAVis::DateTime, SciDAVis::Day, ApplicationWindow::hideWindow(), SciDAVis::Month, mw, ApplicationWindow::newMatrix(), ApplicationWindow::newTable(), SciDAVis::noDesignation, OBJECTXOFFSET, Column::outputFilter(), Matrix::saveCellsToMemory(), Matrix::setCell(), Table::setColPlotDesignation(), Column::setColumnMode(), Matrix::setColumnsWidth(), TableView::setColumnWidth(), AbstractAspect::setComment(), DateTime2StringFilter::setFormat(), Matrix::setFormula(), Column::setFormula(), AbstractAspect::setName(), Double2StringFilter::setNumDigits(), Double2StringFilter::setNumericFormat(), Matrix::setNumericFormat(), Column::setTextAt(), Column::setValueAt(), Matrix::setWindowLabel(), Table::setWindowLabel(), SciDAVis::Text, Table::verticalHeaderWidth(), SciDAVis::X, SciDAVis::xErr, xoffset, SciDAVis::Y, SciDAVis::yErr, and SciDAVis::Z.
Referenced by ImportOPJ().
|
private |
References strreverse().
Referenced by parseOriginText().
|
private |
References parseOriginTags().
Referenced by importGraphs().
|
private |
Referenced by importGraphs().
|
private |
Referenced by createProjectTree(), importGraphs(), importNotes(), ImportOPJ(), and importTables().
|
private |
Referenced by error(), and ImportOPJ().
|
private |
Referenced by importGraphs(), importNotes(), ImportOPJ(), and importTables().