X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROCurveCreator%2FCurveCreator_TableView.h;h=4565ab5d7ad4774e48cfae5f993c64381066bfa0;hb=09d10e66ba0fac5353c8d1f138055fc6fe86fb65;hp=a1e185ae3e7e0ad4464e48e7d99a5d3ff8c91e06;hpb=a8213a40ae36460055057f09e3e0828a01e27123;p=modules%2Fhydro.git diff --git a/src/HYDROCurveCreator/CurveCreator_TableView.h b/src/HYDROCurveCreator/CurveCreator_TableView.h index a1e185ae..4565ab5d 100644 --- a/src/HYDROCurveCreator/CurveCreator_TableView.h +++ b/src/HYDROCurveCreator/CurveCreator_TableView.h @@ -20,7 +20,10 @@ #ifndef CURVECREATOR_TABLEVIEW_H #define CURVECREATOR_TABLEVIEW_H +#include "CurveCreator_ICurve.hxx" + #include +#include class CurveCreator_TableItemDelegate : public QItemDelegate { @@ -36,4 +39,31 @@ public: const QModelIndex& theIndex ) const; }; +class CurveCreator_TableView : public QTableWidget +{ +public: + CurveCreator_TableView( CurveCreator_ICurve* theCurve, QWidget* theParent = 0, + const QStringList& theCoordTitles = QStringList() ); + ~CurveCreator_TableView() {}; + + void setCurve( CurveCreator_ICurve* theCurve ); + + void setLocalPointsToTable( const CurveCreator_ICurve::SectionToPointList& thePoints ); + + /** + * Returns a section index from the table + * \param theRowId a table row + */ + int getSectionId( const int theRowId ) const; + /** + * Returns a point index from the table + * \param theRowId a table row + */ + int getPointId( const int theRowId ) const; + +private: + CurveCreator_ICurve* myCurve; + +}; + #endif // CURVECREATOR_TABLEVIEW_H