tlp::ImportCSVDataConfigurationWidget Class Reference#include <ImportCSVDataConfigurationWidget.h>
Inherits tlp::CSVContentHandler.
Inheritance diagram for tlp::ImportCSVDataConfigurationWidget:
[legend]Collaboration diagram for tlp::ImportCSVDataConfigurationWidget:
[legend]List of all members.Public Types
- enum PropertyType {
AutoDetect,
Double,
Layout,
String,
Int,
Color,
Size,
Bool,
DoubleVector,
StringVector,
IntVector,
CoordVector,
ColorVector,
SizeVector,
BoolVector
}
- enum PropertyOrientation { Column,
Row
}
Signals
Public Member Functions
Protected Member Functions
Protected Attributes
Member Enumeration Documentation
|
- Enumerator:
-
AutoDetect |
|
Double |
|
Layout |
|
String |
|
Int |
|
Color |
|
Size |
|
Bool |
|
DoubleVector |
|
StringVector |
|
IntVector |
|
CoordVector |
|
ColorVector |
|
SizeVector |
|
BoolVector |
|
|
Constructor & Destructor Documentation
tlp::ImportCSVDataConfigurationWidget::ImportCSVDataConfigurationWidget |
( |
QWidget * |
parent = NULL |
) |
|
|
virtual tlp::ImportCSVDataConfigurationWidget::~ImportCSVDataConfigurationWidget |
( |
|
) |
[virtual] |
|
Member Function Documentation
void tlp::ImportCSVDataConfigurationWidget::addPropertyToPropertyList |
( |
const std::string & |
propertyName, |
|
|
bool |
isEditable, |
|
|
PropertyType |
propertyType = AutoDetect |
|
) |
|
|
|
Add a property to the current property list. |
void tlp::ImportCSVDataConfigurationWidget::begin |
( |
|
) |
[virtual] |
|
virtual QTableWidget* tlp::ImportCSVDataConfigurationWidget::buildPreviewWidget |
( |
QWidget * |
parent |
) |
[protected, virtual] |
|
|
Create and return the table widget preview widget. |
bool tlp::ImportCSVDataConfigurationWidget::checkIfMoreThanOnePropertyHaveTheName |
( |
const QString & |
name |
) |
|
|
void tlp::ImportCSVDataConfigurationWidget::clearPropertiesTypeList |
( |
|
) |
|
|
|
Empty the properties list. |
|
Build the property configuration widget from given parameters. - Parameters:
-
| propertyNumber | the property number. |
| propertyName | |
| isEditable | Is the property name editable? |
| defaultPropertyType | the default property type. |
|
void tlp::ImportCSVDataConfigurationWidget::csvFileChange |
( |
QString |
newFile |
) |
[signal] |
|
void tlp::ImportCSVDataConfigurationWidget::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. |
QString tlp::ImportCSVDataConfigurationWidget::getCsvFile |
( |
|
) |
const [inline] |
|
QString tlp::ImportCSVDataConfigurationWidget::getPropertyName |
( |
unsigned int |
propertyNumber |
) |
const |
|
PropertyOrientation tlp::ImportCSVDataConfigurationWidget::getPropertyOrientation |
( |
|
) |
const [inline] |
|
QString tlp::ImportCSVDataConfigurationWidget::getSeparator |
( |
|
) |
const [inline] |
|
unsigned int tlp::ImportCSVDataConfigurationWidget::numberOfPreviews |
( |
|
) |
const [inline] |
|
void tlp::ImportCSVDataConfigurationWidget::separatorChange |
( |
QString |
newSeparator |
) |
[signal] |
|
void tlp::ImportCSVDataConfigurationWidget::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. |
bool tlp::ImportCSVDataConfigurationWidget::useFirstRowAsPropertyName |
( |
|
) |
const [inline] |
|
void tlp::ImportCSVDataConfigurationWidget::useFirstRowAsPropertyNameChange |
( |
bool |
useFirstRowAsPropName |
) |
[signal] |
|
bool tlp::ImportCSVDataConfigurationWidget::useProperty |
( |
unsigned int |
propertyNumber |
) |
|
|
|
Return true if the property with the given number must be loaded in the graph. |
Member Data Documentation
|