tlp::ImportCSVDataWidget Class Reference#include <ImportCSVDataWidget.h>
Inherits tlp::CSVContentHandler.
Inheritance diagram for tlp::ImportCSVDataWidget:
[legend]Collaboration diagram for tlp::ImportCSVDataWidget:
[legend]List of all members.Signals
Public Member Functions
Protected Slots
Protected Member Functions
Protected Attributes
Constructor & Destructor Documentation
tlp::ImportCSVDataWidget::ImportCSVDataWidget |
( |
QWidget * |
parent = NULL |
) |
|
|
virtual tlp::ImportCSVDataWidget::~ImportCSVDataWidget |
( |
|
) |
[virtual] |
|
Member Function Documentation
void tlp::ImportCSVDataWidget::begin |
( |
|
) |
[virtual] |
|
virtual CSVParser* tlp::ImportCSVDataWidget::buildCSVParser |
( |
|
) |
[protected, virtual] |
|
|
Create and return the CSV parser object. |
QWidget* tlp::ImportCSVDataWidget::buildWidget |
( |
QWidget * |
parent |
) |
|
|
virtual bool tlp::ImportCSVDataWidget::checkIfDataAreValid |
( |
|
) |
[protected, virtual] |
|
|
Function used to check if all the selected options are valid. |
virtual void tlp::ImportCSVDataWidget::CSVFileChanged |
( |
QString |
file |
) |
[protected, virtual, slot] |
|
void tlp::ImportCSVDataWidget::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. |
|
Test if a property is compatible with the given type. |
tlp::Graph* tlp::ImportCSVDataWidget::getGraph |
( |
|
) |
const [inline] |
|
tlp::node tlp::ImportCSVDataWidget::getNextNode |
( |
|
) |
[protected] |
|
|
Get the next node in the graph if it exists or an invalid node. |
tlp::node tlp::ImportCSVDataWidget::getNode |
( |
unsigned int |
row, |
|
|
unsigned int |
column |
|
) |
[protected] |
|
|
Compute the node number in function of the given row and column. |
|
Find or create a property in the graph. |
tlp::PropertyInterface* tlp::ImportCSVDataWidget::getPropertyInterface |
( |
unsigned int |
row, |
|
|
unsigned int |
column, |
|
|
const std::string & |
token |
|
) |
[protected] |
|
|
Get the property interface for the given row or column or create it if needed. |
void tlp::ImportCSVDataWidget::graphChanged |
( |
tlp::Graph * |
newGraph |
) |
[protected] |
|
|
Function called to set the graph. |
|
Try to find the type from a string. |
|
Try to find the type of a vector of string. |
virtual void tlp::ImportCSVDataWidget::loadCSVData |
( |
|
) |
[protected, virtual] |
|
|
Parse and load data in the graph. |
bool tlp::ImportCSVDataWidget::loadDataIntoGraph |
( |
|
) |
|
|
virtual void tlp::ImportCSVDataWidget::separatorChanged |
( |
QString |
newSeparator |
) |
[protected, virtual, slot] |
|
void tlp::ImportCSVDataWidget::setGraph |
( |
tlp::Graph * |
graph |
) |
|
|
void tlp::ImportCSVDataWidget::stopDataLoading |
( |
|
) |
[protected] |
|
|
Stop the current data loading. |
void tlp::ImportCSVDataWidget::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. |
virtual void tlp::ImportCSVDataWidget::updatePreviews |
( |
|
) |
[protected, virtual] |
|
void tlp::ImportCSVDataWidget::updateWidgetState |
( |
|
) |
[protected] |
|
virtual void tlp::ImportCSVDataWidget::useFirstRowAsPropertyNameChanged |
( |
bool |
useFirstRow |
) |
[protected, virtual, slot] |
|
void tlp::ImportCSVDataWidget::validStateChange |
( |
bool |
valid |
) |
[signal] |
|
Member Data Documentation
|