Logo Search packages:      
Sourcecode: qtiplot version File versions  Download package

ApplicationWindow * ApplicationWindow::plotFile ( const QString &  fn  )  [slot]

Create a new project from a data file.

Parameters:
fn is read as a data file with the default column separator (as set by the user) and inserted as a table into a new, empty project. This table is then plotted with the Graph::LineSymbols style.

Definition at line 3450 of file ApplicationWindow.cpp.

References applyUserSettings(), MyWidget::Both, columnSeparator, d_ASCII_comment_string, d_ASCII_import_comments, d_ASCII_import_read_only, multilayerPlot(), newTable(), restoreApplicationGeometry(), MyWidget::setCaptionPolicy(), simplify_spaces, strip_spaces, and Table::YColumns().

{
      QApplication::setOverrideCursor(QCursor(Qt::WaitCursor));
      ApplicationWindow *app = new ApplicationWindow();
      app->applyUserSettings();
      app->restoreApplicationGeometry();

      Table* t = app->newTable(fn, app->columnSeparator, 0, true, app->strip_spaces, app->simplify_spaces,
                app->d_ASCII_import_comments, app->d_ASCII_comment_string, app->d_ASCII_import_read_only);
      t->setCaptionPolicy(MyWidget::Both);
      app->multilayerPlot(t, t->YColumns(),Graph::LineSymbols);
      QApplication::restoreOverrideCursor();
      return 0;
}


Generated by  Doxygen 1.6.0   Back to index