tlp::CSVTableWidget Class Reference
Simple table preview of CSV file. Load in a QTableWidget the data send by a CSVContentHandler.
More...
#include <CSVImportConfigurationWidget.h>
List of all members.
Public Member Functions
- CSVTableWidget (QWidget *parent=NULL)
- void begin ()
- void token (unsigned int row, unsigned int column, const std::string &token)
- void end (unsigned int rowNumber, unsigned int columnNumber)
- void setMaxPreviewLineNumber (unsigned int lineNumber)
- Limit the line number of the preview. Need to parse the file again to take this limit in account.
- unsigned int getMaxPreviewLineNumber () const
- Get the preview line number.
Detailed Description
Simple table preview of CSV file. Load in a QTableWidget the data send by a CSVContentHandler.
Constructor & Destructor Documentation
tlp::CSVTableWidget::CSVTableWidget |
( |
QWidget * |
parent = NULL |
) |
|
Member Function Documentation
void tlp::CSVTableWidget::begin |
( |
|
) |
[virtual] |
void tlp::CSVTableWidget::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.
unsigned int tlp::CSVTableWidget::getMaxPreviewLineNumber |
( |
|
) |
const [inline] |
Get the preview line number.
void tlp::CSVTableWidget::setMaxPreviewLineNumber |
( |
unsigned int |
lineNumber |
) |
[inline] |
Limit the line number of the preview. Need to parse the file again to take this limit in account.
void tlp::CSVTableWidget::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.