tlp::CSVImportConfigurationWidget Class Reference
Widget generating a CSVImportParameters object configuring the CSV import process.
More...
#include <CSVImportConfigurationWidget.h>
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] |
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::getFirstLineIndex |
( |
|
) |
const [protected] |
Get the import parameters.
Use this object to configure import process of the CSVImportGraph object.
unsigned int tlp::CSVImportConfigurationWidget::getLastLineIndex |
( |
|
) |
const [protected] |
std::vector<CSVColumn> tlp::CSVImportConfigurationWidget::getPropertiesToImport |
( |
|
) |
const [protected] |
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::token |
( |
unsigned int |
row, |
|
|
unsigned int |
column, |
|
|
const std::string & |
token | |
|
) |
| | [virtual] |
Function called for each tokens found in the file.
- Parameters:
-
| row | The row position of the token. |
| column | The column position of the token. |
| token | The token. |
Implements tlp::CSVContentHandler.
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