21 #ifndef CSVGRAPHMAPPINGCONFIGURATIONWIDGET_H
22 #define CSVGRAPHMAPPINGCONFIGURATIONWIDGET_H
24 #include <QtGui/QWidget>
25 #include <QtGui/QComboBox>
26 #include <tulip/tuliphash.h>
27 #include <tulip/CSVGraphImport.h>
31 class CSVGraphMappingConfigurationWidget;
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;
130 void changeEvent(QEvent *e);
134 Ui::CSVGraphMappingConfigurationWidget *ui;
137 void createNewProperty();
140 void mappingChanged();
143 #endif // CSVGRAPHMAPPINGCONFIGURATIONWIDGET_H