21 #ifndef CSVGRAPHMAPPINGCONFIGURATIONWIDGET_H
22 #define CSVGRAPHMAPPINGCONFIGURATIONWIDGET_H
24 #include <QtGui/QComboBox>
26 #include <tulip/tulipconf.h>
29 class CSVGraphMappingConfigurationWidget;
36 class CSVImportParameters;
37 class CSVToGraphDataMapping;
42 class TLP_QT_SCOPE CSVColumnComboBox :
public QComboBox {
44 CSVColumnComboBox(QWidget* parent=NULL);
50 void setCsvProperties(
const CSVImportParameters& csvProperties);
56 unsigned int getSelectedColumnIndex()
const;
60 void setDefaultText(
const QString& newDefaultText);
72 class TLP_QT_SCOPE GraphPropertiesSelectionComboBox :
public QComboBox {
75 GraphPropertiesSelectionComboBox(QWidget* parent=NULL);
84 std::string getSelectedGraphProperty()
const;
89 void selectProperty(
const std::string& propertyName);
93 void setDefaultText(
const QString& newDefaultText);
107 class TLP_QT_SCOPE CSVGraphMappingConfigurationWidget :
public QWidget {
110 CSVGraphMappingConfigurationWidget(QWidget *parent = NULL);
111 ~CSVGraphMappingConfigurationWidget();
116 void updateWidget(
tlp::Graph* graph,
const CSVImportParameters& importParameters);
120 CSVToGraphDataMapping *buildMappingObject()
const;
133 Ui::CSVGraphMappingConfigurationWidget *ui;
136 void createNewProperty();
139 void mappingChanged();
142 #endif // CSVGRAPHMAPPINGCONFIGURATIONWIDGET_H