Overview     Modules     Class Hierarchy     Classes     Members  

tlp::CSVImportConfigurationWidget Class Reference

Widget generating a CSVImportParameters object configuring the CSV import process. More...

#include <CSVImportConfigurationWidget.h>

Inheritance diagram for tlp::CSVImportConfigurationWidget:
Collaboration diagram for tlp::CSVImportConfigurationWidget:

List of all members.

Signals

Public Member Functions

Protected Slots

Protected Member Functions

Protected Attributes


Detailed Description

Widget generating a CSVImportParameters object configuring the CSV import process.

Use a CSV parser to fill this widget with previews and CSV file statistics like number of rows and columns.


Constructor & Destructor Documentation

tlp::CSVImportConfigurationWidget::CSVImportConfigurationWidget ( QWidget *  parent = 0  ) 
tlp::CSVImportConfigurationWidget::~CSVImportConfigurationWidget (  ) 

Member Function Documentation

void tlp::CSVImportConfigurationWidget::addPropertyToPropertyList ( const std::string &  propertyName,
bool  isEditable,
const std::string &  propertyType = std::string("Auto detect") 
) [protected]

Add a property to the current property list.

void tlp::CSVImportConfigurationWidget::begin (  )  [virtual]

Function called at the beginning of the file parsing.

Implements tlp::CSVContentHandler.

void tlp::CSVImportConfigurationWidget::changeEvent ( QEvent *  e  )  [protected]
void tlp::CSVImportConfigurationWidget::clearPropertiesTypeList (  )  [protected]

Empty the properties list.

unsigned int tlp::CSVImportConfigurationWidget::columnCount (  )  const [protected]
virtual PropertyConfigurationWidget* tlp::CSVImportConfigurationWidget::createPropertyConfigurationWidget ( unsigned int  propertyNumber,
const QString &  propertyName,
bool  propertyNameIsEditable,
const std::string &  propertyType,
QWidget *  parent 
) [protected, virtual]

Creates a property configuration widget.

Parameters:
propertyNumber The property number.
propertyName The name of the property.
propertyNameIsEditable Whether the property's name is editable.
propertyType The type of the property.
parent This widget's parent.
Returns:
:PropertyConfigurationWidget*
void tlp::CSVImportConfigurationWidget::end ( unsigned int  rowNumber,
unsigned int  columnNumber 
) [virtual]

Function called at the end of the parsing.

Parameters:
rowNumber the number of row read in the file.
columnNumber The column number for the line with the greatest column number.

Implements tlp::CSVContentHandler.

void tlp::CSVImportConfigurationWidget::fileInfoChanged (  )  [signal]
void tlp::CSVImportConfigurationWidget::filterPreviewLineNumber ( bool  filter  )  [protected, slot]
void tlp::CSVImportConfigurationWidget::fromLineValueChanged ( int  value  )  [protected, slot]
QString tlp::CSVImportConfigurationWidget::genrateColumnName ( unsigned int  col  )  const [protected]
unsigned int tlp::CSVImportConfigurationWidget::getFirstImportedLineIndex (  )  const [protected]

The index of the first imported line. This index change if user use the first line as column names. The first imported line is the firstLineIndex but with the By example if user want to import all lines but use the first line as column names this funnction will return 1 not 0.

unsigned int tlp::CSVImportConfigurationWidget::getFirstLineIndex (  )  const [protected]

The index of the first line to get in the file.

A line number from 0 to LastLineIndex.

CSVImportParameters tlp::CSVImportConfigurationWidget::getImportParameters (  )  const

Get the import parameters.

Use this object to configure import process of the CSVImportGraph object.

unsigned int tlp::CSVImportConfigurationWidget::getLastLineIndex (  )  const [protected]

The index of the last line to take in the file.

std::vector<CSVColumn> tlp::CSVImportConfigurationWidget::getPropertiesToImport (  )  const [protected]
void tlp::CSVImportConfigurationWidget::line ( unsigned int  row,
const std::vector< std::string > &  lineTokens 
) [virtual]

Function called for each line in the file.

Parameters:
row The number of the row.
lineTokens The tokens.

Implements tlp::CSVContentHandler.

void tlp::CSVImportConfigurationWidget::previewLineNumberChanged ( int  value  )  [protected, slot]
void tlp::CSVImportConfigurationWidget::propertyNameChanged ( QString  propertyName  )  [protected, slot]
void tlp::CSVImportConfigurationWidget::propertyStateChanged ( bool  activated  )  [protected, slot]
unsigned int tlp::CSVImportConfigurationWidget::rowCount (  )  const [protected]
void tlp::CSVImportConfigurationWidget::setNewParser ( tlp::CSVParser parser  ) 

Update the widget contents with the new file parser.

void tlp::CSVImportConfigurationWidget::toLineValueChanged ( int  value  )  [protected, slot]
void tlp::CSVImportConfigurationWidget::updateLineNumbers ( bool  resetValues  )  [protected]
void tlp::CSVImportConfigurationWidget::updateTableHeaders (  )  [protected, slot]
void tlp::CSVImportConfigurationWidget::updateWidget (  )  [protected]
void tlp::CSVImportConfigurationWidget::useFirstLineAsHeaderUpdated (  )  [protected, slot]
bool tlp::CSVImportConfigurationWidget::useFirstLineAsPropertyName (  )  const [protected]

Member Data Documentation



Tulip Software by LaBRI Visualization Team    2001 - 2012